>   Thanks for your suggestion,  i linked glibc with the code.   Then errors
> are gone.   When i am botting with the new kernel( I just put a printf in
> main.c ( linux/src/init).  When the executions comes to printf, i am
> getting exceptions.
>
>  Can we use user space calls in kernel.
>
> But all the user space programmes ( telnet, ftp ) all these are in busybox
> which is included in the ramdisk.  Do we need to place our code also in
> ramdisk.    How to place our programmes in ramdisk....
>

I understood that you were getting the linker errors when linking userspace 
programs not the kernel. If you _were_ linking the kernel then the correct 
fix would be to remove the offending glibc calls.

You must not use glibc calls from the kernel. If you do so then you will end 
up with a horrible mess. The kernel should build using only the source files 
that get unpacked into you linux tree, if you have to link with any other 
libraries then something is badly wrong.

User space programs must be built as seperate executables and placed onto a 
suitable filesystem, in you case the ramdisk. For information on how to do 
this see Documentation/ramdisk.txt in your kernel source tree.


_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
http://www.arm.linux.org.uk/armlinux/mailinglists.php
Please visit the above addresses for information on this list.

Reply via email to