Booting ML405 (Kernel panic - not syncing: No init found)
Neeraj Garg
neerajg at cdac.in
Tue Jul 15 16:26:46 EST 2008
Hi,
--Ron,Permissions are -rwxrwxr-x for all and owner is neeraj itself. And
shared libraries are present in lib/ . Now I have placed helloworld.elf
(using printf to print helloworld, and linked with -static option) in
bin/ and changed init=/bin/helloworld , again it says cannot execute
/bin/helloworld.
--John, we are using our custom hardware board, not exactly ML405 but
its more or less similar to ML405, so I cannot use bit file provided for
ML405. Till now we were using xilkernel, but now onward we are planning
to use Linux. For serial console I have no option other than uartlite.
This is how I compiled kernel :
1) make ARCH=ppc ml405_defconfig
2) patched kernel src with EDK(10.1) , so as to change xparameter.h, and
later made some changed in arch/ppc/boot/simple/embed_config.c and
xparameters.h file.
3) make ARCH=ppc menuconfig , and selected uartlite to be console and
ramdisk as file system.
4) Created ramdisk (as per Building embedded linux, Karim Yaghmour,
however major and minor number for device nodes is similar to ramdisk
provided at git.xilinx.com)
5) I have placed this ramdisk in arch/ppc/boot/images
6) And then issued $make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu-
zImge.initrd
--I have downloaded ELDK4.1 and installed it. And when I compile
simple helloworld.c using cross compiler, it says unresolved symbol
'printf' . Is there anything else to install with ELDK ?
-------------------------------------------------------------------
Neeraj Garg
In addition to what John wrote, I would also investigate your ramdisk.
I would be sure to check that you have the permissions/owner set correctly
on bin/busybox. Also, I would double check that, if you compiled busybox
with shared libraries, the shared libraries are in the right place
on your ramdisk.
Ron
>
> Hi,
>
> Yes I am using ARCH=ppc (actual line is $make ARCH=ppc
> CROSS_COMPILE=powerpc-405-linux-gnu- zImage.initrd ) for this I have
> placed ramdisk.image.gz in arch/ppc/boot/images. In case of ARCH=powerpc
> I cannot find processor type 405 , in make menuconfig. Thats why i am
> using ARCH=ppc.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20080715/665a44ac/attachment.htm>
More information about the Linuxppc-embedded
mailing list