UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
1,470 Views
Registered: ‎10-19-2017

Boot Failure: sbin/init and bin/sh empty symlinks

Hello, I am trying to boot Linux on my ZC706 using an SD Card. I currently have two partitions on the SD. The first is a FAT32 that contains the files BOOT.BIN (created with the petalinux-package command), image.ub, and system.dtb. The second is an ext4 with the decompressed files rootfs.cpio on it. It looks like the first partition is doing its job and is able to begin booting Linux. However during configuration of Linux, I begin getting error messages, then it just hangs.

Freeing unused kernel memory: 1024K (c0900000 - c0a00000)
request_module: runaway loop modprobe binfmt-0000
Starting init: /sbin/init exists but couldn't execute it (error -8)
request_module: runaway loop modprobe binfmt-0000
Starting init: /bin/sh exists but couldn't execute it (error -8)
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.0-xilinx-v2017.3 #7
Hardware name: Xilinx Zynq Platform
[<c010e244>] (unwind_backtrace) from [<c010a4a4>] (show_stack+0x10/0x14)
[<c010a4a4>] (show_stack) from [<c02dc2d0>] (dump_stack+0x80/0x9c)
[<c02dc2d0>] (dump_stack) from [<c010c9f8>] (ipi_cpu_stop+0x3c/0x70)
[<c010c9f8>] (ipi_cpu_stop) from [<c010d210>] (handle_IPI+0x64/0x84)
[<c010d210>] (handle_IPI) from [<c0101420>] (gic_handle_irq+0x78/0x94)
[<c0101420>] (gic_handle_irq) from [<c010ae8c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xef075f70 to 0xef075fb8)
5f60:                                     00000000 00000000 2eea3000 ef7e49c0
5f80: 90ab2fb8 00000000 ef7e3e40 00000000 9073d484 00000000 00000000 00000000
5fa0: 0000000b ef075fc0 c04b12e8 c04b130c 60000013 ffffffff
[<c010ae8c>] (__irq_svc) from [<c04b130c>] (cpuidle_enter_state+0xe4/0x1b0)
[<c04b130c>] (cpuidle_enter_state) from [<c014c834>] (cpu_startup_entry+0x17c/0x19c)
[<c014c834>] (cpu_startup_entry) from [<001014cc>] (0x1014cc)
---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

Now on a second glance, it looks like the rootfs.cpio file generated by PetaLinux has empty symlinks for both /bin/sh and /sbin/init file. I am guessing this is the cause of the issue. I untared the rootfs.tar.gz file and sure enough empty symlinks there too. I even looked in another project and found the same result. This is the first time I have been able to get past u-boot and into Linux on the actual hardware. Why are these files in the rootfs empty symlinks? Is this truly the cause of the problem as I suspect?

 

Tags (3)
0 Kudos
3 Replies
Voyager
Voyager
1,426 Views
Registered: ‎09-14-2016

Re: Boot Failure: sbin/init and bin/sh empty symlinks

Hello,

 

 

Your cmdline seems correct but maybe you can try to add: rootfstype=ext4

 

Because it looks like the kernel has founded the init :

 

Freeing unused kernel memory: 1024K (c0900000 - c0a00000)
request_module: runaway loop modprobe binfmt-0000
Starting init: /sbin/init exists but couldn't execute it (error -8)
request_module: runaway loop modprobe binfmt-0000
Starting init: /bin/sh exists but couldn't execute it (error -8)

 

Cheers,

Trigger

0 Kudos
Voyager
Voyager
1,425 Views
Registered: ‎09-14-2016

Re: Boot Failure: sbin/init and bin/sh empty symlinks

0 Kudos
Observer zosvitta
Observer
372 Views
Registered: ‎11-02-2018

Re: Boot Failure: sbin/init and bin/sh empty symlinks

Hi,

I am also facing the same issue.

Could you please tell, how this issue is fixed?

Thanks

0 Kudos