On Fri, Mar 15, 2013 at 10:50 AM, richard -rw- weinberger
<richard.weinber...@gmail.com> wrote:
> On Fri, Mar 15, 2013 at 6:01 PM, Han <keepsim...@gmail.com> 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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to