----- Guenter Roeck <linux@xxxxxxxxxxxx> åéï
On 09/03/2014 01:32 AM, Xuetao Guan wrote:'slink /init /bin/busybox 777 0 0' should be inserted in initramfs config
[ ... ]
Please try the following patch. That seems to do it.
I am sure it can be improved, but it is a start.
Thanks,
Guenter
Thanks. I'll test it.
BTW, Qemu codestyle is different, and tab should be replaced with blanks.
Here is where I am. User space code (busybox) was compiled
using the unicore toolchain available on the web.
...
serio: i8042 KBD port at 0x6eb00060,0x6eb00064 irq 22
mousedev: PS/2 mouse device common for all mice
Enable UniCore-F64 support.
Warning: unable to open an initial console.
Freeing unused kernel memory: 1156K (c0408000 - c0529000)
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
The kernel tries to execute the init program, which fails with SIGSEGV.
I confirmed that the init program is loaded and starts to execute.
Any idea what might cause such a problem ?
Thanks,
Guenter
Also, I recommend compile busybox statically for initramfs.
I need more information, including full kmsg and initramfs configs