|
From: Han <kee...@gm...> - 2013-03-15 18:11:39
|
On Fri, Mar 15, 2013 at 10:50 AM, richard -rw- weinberger <ric...@gm...> wrote: > On Fri, Mar 15, 2013 at 6:01 PM, Han <kee...@gm...> wrote: >> I started UML with "mem=128M", the module init only kmalloc 8 bytes: >> >> kmalloc(size, GFP_KERNEL); >> >> where "size" is 8. > > This has to work. Just in case, please retry with a more recent kernel. I will retry to a more recent kernel. On another front, I suspect that I might be using incorrect compiling/linking for the module. Because of certain constraints, I was modifying the build command from existing builds of the module code. The existing build were for x86 linux, and I modified them to use x86 UML. I modified the options for "gcc", and I think the compile is ok. But I did not modify "ld" command. Is there anything I should do for "ld" making sure linking was ok for the UML ? Here is example of my current ld: /usr/bin/ld -nostdlib -m elf_i386 -r -o <my_uml_module_name> <my_c_obj1> <my_c_obj2> the "ld" was successful but now I suspect it was only for the host, not good for UML. Note: my host linux uses different kernel version from the UML tree. The host kernel version is 2.6.18. Thanks Han > > -- > Thanks, > //richard |