|
From: Jotus K. <an_...@12...> - 2016-05-23 03:36:17
|
Hi Vegard,
Thanks for your reply.
I got the same result when I used ./linux init=/bin/sh command line to boot uml.
Finally, I mount my root_fs to /mnt and ldd init. The ldd told me some lib is miss and some lib is 32-bit for my 64-bit init.
Now, I can boot my UML.
Thanks all the same.
Jotus
At 2016-05-23 00:17:38, "Vegard Nossum" <veg...@gm...> wrote:
>On 16 May 2016 at 10:05, kail-gj <an_...@12...> wrote:
>> Hi,
>> I build my uml from source with CONFIG_INITRAMFS_SOURCE configured with
>> a rootfs text file. I specify the init file to busybox as
>> file /bin/busybox /home/xxxx/busybox/busybox 755 0 0 /init /bin/sh in
>> rootfs text file.
>> But it does not work and output "kernel panic - not syncing: No init
>> found" error. The full boot log is followed.
>> Please help me, thanks.
>> -------------------------------------------------
>> boot log:
>
>You still need to pass init= on the command line, no? This shows you
>didn't pass anything:
>
>> Kernel command line: root=98:0
>[...]
>> Kernel panic - not syncing: No init found. Try passing init= option to
>> kernel.
>
>
>Vegard |