Hello, I'm trying to compile a module from multiple source files. It
compiles nicely but I got troubles when loading it on µClinux.
Here is the error displayed :
----------------------------------------
insmod: page allocation failure. order:6, mode:0xd0
Stack from 00757e4c:<0>
<0> 00757e5c<0> 00000010<0> 00420f72<0> 0047fd59<0> 005dc1dc<0>
00000006<
0> 000000d0<0> 00000006<0>
<0> 00000000<0> 000000d0<0> 00000001<0> 00000000<0> dfffbfff<0>
005804b0<
0> 00568f60<0> 00580650<0>
<0> 00568f74<0> 00568f60<0> 00000000<0> ffff004a<0> 004233ee<0>
000000d0<
0> 00000006<0> 004959e0<0>
<0> 000000d0<0> 00000000<0> 005804b0<0> 00568f60<0> 00423f1c<0>
00568f60<
0> 000000d0<0> ffffffff<0>
<0> 00568f60<0> 000000d0<0> 00000001<0> 0041c7f4<0> 00000000<0>
000000d0<
0> 005804b0<0> 00568f6c<0>
<0> 00424120<0> 00568f60<0> 000000d0<0> ffffffff<0> 00022000<0>
0041c7f4<
0> 00000002<0> 005a8cd0<0>
Call Trace:<0>
<0> [<00424392>]<0> [<00427398>]<0> [<00427422>]<0> [<0041c084>]<0>
<0> [<0041c7f4>]<0> [<00402de4>]<0> [<00402d14>]<0> [<0041c862>]<0>
<0> [<00403f36>]<0>
insmod: cannot insert `/bin/ibc.ko': Cannot allocate memory (-1): Cannot
allocat
e memory
pid 26: failed 256
Here is the makefile :
-------------------------------
obj-m := ibc.o
ibc-objs := mod_ibc.o tools_ibc.o
KDIR ?= /home/coldfire/uClinux-dist.3/uClinux-dist/linux-2.6.x
PWD := $(shell pwd)
all:
$(MAKE) -C $(KDIR) ARCH=m68knommu CROSS_COMPILE=m68k-elf- M=$(PWD)
modules
clean:
$(MAKE) -C $(KDIR) ARCH=m68knommu CROSS_COMPILE=m68k-elf- M=$(PWD)
clean
Note that when I put everything in a single source file with his header
file, it loads and runs nicely.
Can somebody help be ?
Thank you by advance
Julien Terwagne_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev