[etherlab-users] Memory for kernel module -attachement

Westpfahl Jasper Jasper.Westpfahl-projekt at ipk.fraunhofer.de
Thu Jan 13 14:15:14 CET 2011

Here comes the attachment for the mail below - sorry!

-----Urspr√ľngliche Nachricht-----
Von: Westpfahl Jasper
Gesendet: Do 13.01.2011 14:08
An: etherlab-users at etherlab.orgetherlab-users@etherlab.org
Betreff: Memory for kernel module

Dear Etherlab-friends,

I've got a problem with memory allocation and I hope, somebody can help me...

Building a kernel modul with rtai stack size (in simulink configuration parameters / Etherlab C code generation options) works with values of 20000 and 200000. 
When inserting the module with 20000, it works fine, meaning that I get a connection to the realtime-process, but the stack size is not big enough to operate the model properly.
When inserting the module with 200000 (insmod tb_kmod.ko), I got the messsage

insmod: error inserting 'tb_kmod.ko': -1 Cannot allocate memory

Can anybody tell me, where and how to adjust the accepted Rtai stack size?

/var/log/messages is attached.

Thank You very much in advance!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: messages_insmod
Type: application/octet-stream
Size: 10207 bytes
Desc: messages_insmod
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20110113/33c6c764/attachment-0005.obj>

More information about the Etherlab-users mailing list