Kernel panic - not syncing: No init found. Try passing init= option to kernel.

7,172 views
Skip to first unread message

siva kumar

unread,
Mar 12, 2014, 6:13:34 AM3/12/14
to beagl...@googlegroups.com
hai ,
 
i try to mount the rootfs using nfs for my beagle bone back..while booting the kernel i'm facing the following issue ..

error log message :
=============

    5.745517] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.758912] IP-Config: Complete:
[    5.762359]      device=eth0, hwaddr=90:59:af:5b:d4:88, ipaddr=192.168.1.61, mask=255.255.255.0, gw=192.168.1.100
[    5.773113]      host=192.168.1.61, domain=, nis-domain=(none)
[    5.779231]      bootserver=192.168.1.69, rootserver=192.168.1.69, rootpath=
[    5.786438] ALSA device list:
[    5.789741]   #0: TI BeagleBone Black
[    5.799661] VFS: Mounted root (nfs filesystem) on device 0:12.
[    5.808793] devtmpfs: mounted
[    5.812347] Freeing init memory: 292K
[    5.822210] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    5.835271] [<c001367c>] (unwind_backtrace+0x0/0xe0) from [<c05e6d00>] (panic+0x84/0x1e0)
[    5.843839] [<c05e6d00>] (panic+0x84/0x1e0) from [<c05e1a80>] (kernel_init+0xb8/0xe4)
[    5.852039] [<c05e1a80>] (kernel_init+0xb8/0xe4) from [<c000d918>] (ret_from_fork+0x14/0x3c)
[    5.860868] drm_kms_helper: panic occurred, switching back to text console



i used the following procedure to build the  kernel 


U-Boot> setenv ipaddr 192.168.1.61
U-Boot> setenv serverip 192.168.1.69
U-Boot> tftpboot 0x80200000 uImage-BBB
U-Boot> setenv bootargs console=ttyO0,115200n8 root=/dev/nfs rw nfsroot=192.168.1.69:/nfsroot ip=192.168.1.61:192.168.1.69:192.168.1.100:255.255.255.0::eth0 
U-Boot> bootm 0x80200000

i tried with vaious bootargs for nfs booting but no success !!!

[1] setenv bootargs 'console=ttyO0,115200n8 noinitrd,3  root=/dev/nfs ip=192.168.1.61:192.168.1.69:192.168.1.100:255.255.255.0::eth0 rootwait rw nolock,rsize=1024,wsize=1024,rootdelay=2  nfsroot=192.168.1.69:/nfsroot '

[2]setenv bootargs 'console=ttyO0,115200n8 noinitrd root=/dev/nfs nfsroot=192.168.1.69:/nfsroot rw ip=192.168.1.61:192.168.1.69:192.168.1.100:255.255.255.0::eth0:'
and so  on..

pls share your experience to get my kernel bootable...

regards
siva


siva kumar

unread,
Mar 14, 2014, 12:58:57 AM3/14/14
to beagl...@googlegroups.com

hai all,

can anybody  help me how to boot the rootfs using nfs ..still i stuck with same issue..
currently i'm using ubuntu13.10 as a host pc to implement nfs booting.
i referred the following link to build the kernel 


regards 
siva

John Syn

unread,
Mar 14, 2014, 1:50:15 AM3/14/14
to beagl...@googlegroups.com

From: siva kumar <boopathi...@gmail.com>
Reply-To: <beagl...@googlegroups.com>
Date: Thursday, March 13, 2014 at 9:58 PM
To: <beagl...@googlegroups.com>
Subject: [beagleboard] Re: Kernel panic - not syncing: No init found. Try passing init= option to kernel.


hai all,

can anybody  help me how to boot the rootfs using nfs ..still i stuck with same issue..
currently i'm using ubuntu13.10 as a host pc to implement nfs booting.
i referred the following link to build the kernel 
I attached my uEnv.txt file I use for NFS. Make sure you change the IP address and <userID> for nfsroot to match your host IP and userID. My local network uses an address 10.100.116.xxx. My BBB is 10.100.116.104 and my host is 10.100.116.73.

You need to install nfs-kernel-server on your Ubuntu host

Add the following line to your /etc/exports file on your host


Place your rootfs in /home/<userID>/targetNFS on your host

sudo service nfs-kernel-server restart

I think that is all, so NFS should work for you. I hope this helps. 

Regard,
John

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
uEnv.txt

siva kumar

unread,
Mar 14, 2014, 10:55:05 AM3/14/14
to beagl...@googlegroups.com
hello john,
 thanks for your help
some how  i understood the flow of kernel booting from nfs 
but still i got  the same error report  
   6.876536] ALSA device list:
[    6.879838]   #0: TI BeagleBone Black
[    6.889766] VFS: Mounted root (nfs filesystem) on device 0:12.
[    6.896385] devtmpfs: mounted
[    6.899975] Freeing init memory: 292K
[    6.907579]
[    6.920985] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    6.934045] [<c001367c>] (unwind_backtrace+0x0/0xe0) from [<c05e6d00>] (panic+0x84/0x1e0)
[    6.942611] [<c05e6d00>] (panic+0x84/0x1e0) from [<c05e1a80>] (kernel_init+0xb8/0xe4)
[    6.950812] [<c05e1a80>] (kernel_init+0xb8/0xe4) from [<c000d918>] (ret_from_fork+0x14/0x3c)
[    6.959639] drm_kms_helper: panic occurred, switching back to text console


this is my uEnv.txt file
================

kernel_file=zImage
initrd_file=uInitrd
initrd_high=0xffffffff
fdt_high=0xffffffff

serverip=192.168.1.69
ipaddr=192.168.1.61
gwaddr=192.168.1.100
netmask=255.255.255.0

#Video: Uncomment to override:
#kms_force_mode=video=HDMI-A-1:1024x768@60

##BeagleBone Cape Overrides
##Note: On the BeagleBone Black, there is also an uEnv.txt in the eMMC, so if these changes do not seem to be makeing a difference...

##BeagleBone Black:
# Disable HDMI/eMMC
# Note it is necessary to disable BOTH HDMI and HDMIN (no audio) "capes"
# in order to use the HDMI pins for I/O
#optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G

# Default to leaving the HDMIN "cape" enabled, so HDMI works "out of the box"
# Comment the line below and uncomment the optargs= line above to use an unmodified
# BeBoPr or other board that uses the HDMI/LCD pins 
#siva optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONE-EMMC-2G capemgr.enable_partno=BB-BONE-AUDI-02

console=ttyO0,115200n8

mmcroot=/dev/mmcblk0p2 ro
mmcrootfstype=ext4 rootwait fixrtc
# ip_method=${ipaddr}:${serverip}:${gwaddr}:${netmask}::eth0:off
ip_method=192.168.1.61:192.168.1.69:192.168.1.100:255.255.255.0::eth0:off
nfsrootdev=/dev/nfs rw
nfsroot=192.168.1.69:/home/cis-69/targetNFS ,vers=3
nfsrootfstype=ext4 rootwait fixrtc 
nfsargs=setenv bootargs console=${console} ${optargs} ${kms_force_mode} root=${nfsrootdev} rootfstype=${nfsrootfstype} nfsroot=${nfsroot} init=/lib/modules/3.8.13/init mem=456M vram=50M ${expansion} 
#video=HDMI-A-1:1280x1024@60 ${expansion} 

loadkernel=tftp 0x80200000 ${kernel_file}
loadinitrd=tftp 0x81000000 ${initrd_file}; setenv initrd_size ${filesize}
loadfdt=tftp 0x815f0000 ${fdtfile}

boot_classic=run loadkernel; run loadinitrd
# boot_ftd=run loadkernel; run loadinitrd; run loadfdt
boot_ftd=run loadkernel; run loadfdt

device_args=run expansion_args; run nfsargs
mmcargs=setenv bootargs console=${console} ${optargs} rootdelay=5 ${kms_force_mode} root=${mmcroot} rootfstype=${mmcrootfstype} ${expansion}

expansion_args=setenv expansion ip=${ip_method}
#Classic Board File Boot:
#uenvcmd=run boot_classic; run device_args; bootz 0x80200000 0x81000000:${initrd_size}
#New Device Tree Boot:
# uenvcmd=run boot_ftd; run device_args; bootz 0x80200000 0x81000000:${initrd_size} 0x815f0000
uenvcmd=run boot_ftd; run device_args; bootz 0x80200000 - 0x815f0000


i tried this init=/lib/modules/3.8.13/init option  but no use of it 

help me out fix this issue

William Hermans

unread,
Mar 14, 2014, 5:27:16 PM3/14/14
to beagl...@googlegroups.com
NFS root as done on ARCH, Debian, and busybox will not work the same way on ubuntu. Nor fedora or Angstrom for that matter. What you need to do is find a how to for netbooting Ubuntu ( PC ) and adapt it.

obviously going by the error messages above, this configuration does not like your initial ramdisk ( initrd ) for some reason.

John Syn

unread,
Mar 14, 2014, 5:39:48 PM3/14/14
to beagl...@googlegroups.com


From: siva kumar <boopathi...@gmail.com>
Reply-To: <beagl...@googlegroups.com>
Date: Friday, March 14, 2014 at 7:55 AM
To: <beagl...@googlegroups.com>
Subject: Re: [beagleboard] Re: Kernel panic - not syncing: No init found. Try passing init= option to kernel.

hello john,
 thanks for your help
some how  i understood the flow of kernel booting from nfs 
but still i got  the same error report  
   6.876536] ALSA device list:
[    6.879838]   #0: TI BeagleBone Black
[    6.889766] VFS: Mounted root (nfs filesystem) on device 0:12.
[    6.896385] devtmpfs: mounted
[    6.899975] Freeing init memory: 292K
[    6.907579]
[    6.920985] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    6.934045] [<c001367c>] (unwind_backtrace+0x0/0xe0) from [<c05e6d00>] (panic+0x84/0x1e0)
[    6.942611] [<c05e6d00>] (panic+0x84/0x1e0) from [<c05e1a80>] (kernel_init+0xb8/0xe4)
[    6.950812] [<c05e1a80>] (kernel_init+0xb8/0xe4) from [<c000d918>] (ret_from_fork+0x14/0x3c)
[    6.959639] drm_kms_helper: panic occurred, switching back to text console
Did you rebuild your kernel without Initrd configured?

Regards,
John

John Syn

unread,
Mar 14, 2014, 6:40:25 PM3/14/14
to beagl...@googlegroups.com

From: William Hermans <yyr...@gmail.com>
Reply-To: <beagl...@googlegroups.com>
Date: Friday, March 14, 2014 at 2:27 PM
To: <beagl...@googlegroups.com>
Subject: Re: [beagleboard] Re: Kernel panic - not syncing: No init found. Try passing init= option to kernel.

NFS root as done on ARCH, Debian, and busybox will not work the same way on ubuntu. Nor fedora or Angstrom for that matter. What you need to do is find a how to for netbooting Ubuntu ( PC ) and adapt it.

obviously going by the error messages above, this configuration does not like your initial ramdisk ( initrd ) for some reason.
NFS booting is not compatible with Initrd. Thus the kernel must be built without Initrd configured and uenvcmd has a dash instead of an Initrd memory load address.

Regards,
John

Douglas Jerome

unread,
Mar 14, 2014, 10:06:47 PM3/14/14
to beagl...@googlegroups.com
I build linux Linux systems that run on their inital RAM disk
and I can NFS boot them, so I don't think the kernel haveing
initrd capability does anything wrong.

Maybe I missed something in the thread, but why are
you using /lib/modules/3.8.13/init ??

When I see this
Kernel panic - not syncing: No init found. Try
passing init= option to kernel.
message it is because the /sbin/init program the kernel
tries to run is missing a dynamic dependency. This sort
of thing happens when you build a whole (small) system
from scratch.

Try using init=/bin/bash just to see if it runs. If so,
it isn't an NFS root problem per se, is is a problem
with the program you are using for init.

On 03/14/14 15:40, John Syn wrote:
>
> From: William Hermans <yyr...@gmail.com <mailto:yyr...@gmail.com>>
> Reply-To: <beagl...@googlegroups.com
> <mailto:beagl...@googlegroups.com>>
> Date: Friday, March 14, 2014 at 2:27 PM
> To: <beagl...@googlegroups.com <mailto:beagl...@googlegroups.com>>
> Subject: Re: [beagleboard] Re: Kernel panic - not syncing: No init
> found. Try passing init= option to kernel.
>
> NFS root as done on ARCH, Debian, and busybox will not work the same
> way on ubuntu. Nor fedora or Angstrom for that matter. What you need
> to do is find a how to for netbooting Ubuntu ( PC ) and adapt it.
>
> obviously going by the error messages above, this configuration does
> not like your initial ramdisk ( initrd ) for some reason.
>
> NFS booting is not compatible with Initrd. Thus the kernel must be built
> without Initrd configured and uenvcmd has a dash instead of an Initrd
> memory load address.
>
> Regards,
> John
>
>
>
>
> On Fri, Mar 14, 2014 at 7:55 AM, siva kumar
> <boopathi...@gmail.com <mailto:boopathi...@gmail.com>>
> wrote:
>
> hello john,
> thanks for your help
> some how i understood the flow of kernel booting from nfs
> but still i got the same error report
> 6.876536] ALSA device list:
> [ 6.879838] #0: TI BeagleBone Black
> [ 6.889766] VFS: Mounted root (nfs filesystem) on device 0:12.
> [ 6.896385] devtmpfs: mounted
> [ 6.899975] Freeing init memory: 292K
> [ 6.907579]
> *[ 6.920985] Kernel panic - not syncing: No init found. Try
> passing init= option to kernel. See Linux Documentation/init.txt
> for guidance.*
> [ 6.934045] [<c001367c>] (unwind_backtrace+0x0/0xe0) from
> [<c05e6d00>] (panic+0x84/0x1e0)
> [ 6.942611] [<c05e6d00>] (panic+0x84/0x1e0) from [<c05e1a80>]
> (kernel_init+0xb8/0xe4)
> [ 6.950812] [<c05e1a80>] (kernel_init+0xb8/0xe4) from
> [<c000d918>] (ret_from_fork+0x14/0x3c)
> [ 6.959639] drm_kms_helper: panic occurred, switching back to
> text console
>
>
> this is my uEnv.txt file
> ================
> *
> *
> *kernel_file=zImage*
> *initrd_file=uInitrd*
> *initrd_high=0xffffffff*
> *fdt_high=0xffffffff*
> *
> *
> *serverip=192.168.1.69*
> *ipaddr=192.168.1.61*
> *gwaddr=192.168.1.100*
> *netmask=255.255.255.0*
> *
> *
> *#Video: Uncomment to override:*
> *#kms_force_mode=video=HDMI-A-1:1024x768@60*
> *
> *
> *##BeagleBone Cape Overrides*
> *##Note: On the BeagleBone Black, there is also an uEnv.txt in
> the eMMC, so if these changes do not seem to be makeing a
> difference...*
> *
> *
> *##BeagleBone Black:*
> *# Disable HDMI/eMMC*
> *# Note it is necessary to disable BOTH HDMI and HDMIN (no
> audio) "capes"*
> *# in order to use the HDMI pins for I/O*
> *#optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G*
> *
> *
> *# Default to leaving the HDMIN "cape" enabled, so HDMI works
> "out of the box"*
> *# Comment the line below and uncomment the optargs= line above
> to use an unmodified*
> *# BeBoPr or other board that uses the HDMI/LCD pins *
> *#siva
> optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONE-EMMC-2G
> capemgr.enable_partno=BB-BONE-AUDI-02*
> *
> *
> *console=ttyO0,115200n8*
> *
> *
> *mmcroot=/dev/mmcblk0p2 ro*
> *mmcrootfstype=ext4 rootwait fixrtc*
> *# ip_method=${ipaddr}:${serverip}:${gwaddr}:${netmask}::eth0:off*
> *ip_method=192.168.1.61:192.168.1.69:192.168.1.100:255.255.255.0::eth0:off*
> *nfsrootdev=/dev/nfs rw*
> *nfsroot=192.168.1.69:/home/cis-69/targetNFS ,vers=3*
> *nfsrootfstype=ext4 rootwait fixrtc *
> *nfsargs=setenv bootargs console=${console} ${optargs}
> ${kms_force_mode} root=${nfsrootdev} rootfstype=${nfsrootfstype}
> nfsroot=${nfsroot}init=/lib/modules/3.8.13/init mem=456M
> vram=50M ${expansion} *
> *#video=HDMI-A-1:1280x1024@60 ${expansion} *
> *
> *
> *loadkernel=tftp 0x80200000 ${kernel_file}*
> *loadinitrd=tftp 0x81000000 ${initrd_file}; setenv initrd_size
> ${filesize}*
> *loadfdt=tftp 0x815f0000 ${fdtfile}*
> *
> *
> *boot_classic=run loadkernel; run loadinitrd*
> *# boot_ftd=run loadkernel; run loadinitrd; run loadfdt*
> *boot_ftd=run loadkernel; run loadfdt*
> *
> *
> *device_args=run expansion_args; run nfsargs*
> *mmcargs=setenv bootargs console=${console} ${optargs}
> rootdelay=5 ${kms_force_mode} root=${mmcroot}
> rootfstype=${mmcrootfstype} ${expansion}*
> *
> *
> *expansion_args=setenv expansion ip=${ip_method}*
> *#Classic Board File Boot:*
> *#uenvcmd=run boot_classic; run device_args; bootz 0x80200000
> 0x81000000:${initrd_size}*
> *#New Device Tree Boot:*
> *# uenvcmd=run boot_ftd; run device_args; bootz 0x80200000
> 0x81000000:${initrd_size} 0x815f0000*
> *uenvcmd=run boot_ftd; run device_args; bootz 0x80200000 -
> 0x815f0000*
>
>
> i tried this *init=/lib/modules/3.8.13/init option but no use
> of it *
> *
> *
> help me out fix this issue
>
> *
> *
>
>
>
> On Friday, 14 March 2014 11:20:15 UTC+5:30, john3909 wrote:
>
>
> From: siva kumar <boopathi...@gmail.com>
> Reply-To: <beagl...@googlegroups.com>
>
> Date: Thursday, March 13, 2014 at 9:58 PM
> To: <beagl...@googlegroups.com>
>
> Subject: [beagleboard] Re: Kernel panic - not syncing: No
> init found. Try passing init= option to kernel.
>
>
> hai all,
>
> can anybody help me how to boot the rootfs using nfs
> ..still i stuck with same issue..
> currently i'm using ubuntu13.10 as a host pc to
> implement nfs booting.
> i referred the following link to build the kernel
> http://wiki.beyondlogic.org/__index.php/BeagleBoneBlack___Building_Kernel
> <http://wiki.beyondlogic.org/index.php/BeagleBoneBlack_Building_Kernel>
> http://elinux.org/Building___BBB_Kernel
> <http://elinux.org/Building_BBB_Kernel>
>
> I attached my uEnv.txt file I use for NFS. Make sure you
> change the IP address and <userID> for nfsroot to match your
> host IP and userID. My local network uses an address
> 10.100.116.xxx. My BBB is 10.100.116.104 and my host is
> 10.100.116.73.
>
> You need to install nfs-kernel-server on your Ubuntu host
>
> Add the following line to your /etc/exports file on your host
>
> /home/<userID>/targetNFS
> 10.100.116.0/255.255.255.0(rw,__insecure,async,no_wdelay,no___root_squash,no_subtree_check)
> <http://10.100.116.0/255.255.255.0(rw,insecure,async,no_wdelay,no_root_squash,no_subtree_check)>
> *[ 5.799661] VFS: Mounted root (nfs filesystem)
> on device 0:12.*
> [ 5.808793] devtmpfs: mounted
> [ 5.812347] Freeing init memory: 292K
> *[ 5.822210] Kernel panic - not syncing: No init
> found. Try passing init= option to kernel. See
> Linux Documentation/init.txt for guidance.*
> [ 5.835271] [<c001367c>]
> (unwind_backtrace+0x0/0xe0) from [<c05e6d00>]
> (panic+0x84/0x1e0)
> [ 5.843839] [<c05e6d00>] (panic+0x84/0x1e0) from
> [<c05e1a80>] (kernel_init+0xb8/0xe4)
> [ 5.852039] [<c05e1a80>] (kernel_init+0xb8/0xe4)
> from [<c000d918>] (ret_from_fork+0x14/0x3c)
> [ 5.860868] drm_kms_helper: panic occurred,
> switching back to text console
>
>
>
> i used the following procedure to build the kernel
>
>
> U-Boot> setenv ipaddr 192.168.1.61
> U-Boot> setenv serverip 192.168.1.69
> U-Boot> tftpboot 0x80200000 uImage-BBB
> U-Boot> setenv bootargs console=ttyO0,115200n8
> root=/dev/nfs rw nfsroot=192.168.1.69:/nfsroot
> ip=192.168.1.61:192.168.1.69:__192.168.1.100:255.255.255.0::__eth0
>
> U-Boot> bootm 0x80200000
>
> i tried with vaious bootargs for nfs booting but no
> success !!!
>
> [1] setenv bootargs 'console=ttyO0,115200n8
> noinitrd,3 root=/dev/nfs
> ip=192.168.1.61:192.168.1.69:__192.168.1.100:255.255.255.0::__eth0
> rootwait rw
> nolock,rsize=1024,wsize=1024,__rootdelay=2
> nfsroot=192.168.1.69:/nfsroot '
>
> [2]setenv bootargs 'console=ttyO0,115200n8 noinitrd
> root=/dev/nfs nfsroot=192.168.1.69:/nfsroot rw
> ip=192.168.1.61:192.168.1.69:__192.168.1.100:255.255.255.0::__eth0:'
> and so on..
>
> pls share your experience to get my kernel bootable...
>
> regards
> siva
>
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to
> the Google Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails
> from it, send an email to beagleboard...@__googlegroups.com.
>
> For more options, visit
> https://groups.google.com/d/__optout
> <https://groups.google.com/d/optout>.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to beagleboard...@googlegroups.com
> <mailto:beagleboard...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to beagleboard...@googlegroups.com
> <mailto:beagleboard...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to beagleboard...@googlegroups.com
> <mailto:beagleboard...@googlegroups.com>.

William Hermans

unread,
Mar 15, 2014, 2:44:10 AM3/15/14
to beagl...@googlegroups.com
Yeah, not being able to netboot because of initrd is false as far as I know. It used to be in order to boot iSCSI you had to use initrd.

Perhaps upstart is incapable of supporting netboot ? I honestly dont know.

You know those uEnv.txt file boot parameters look very familiar . . . If you're copying from my blog on embeddedhobbyist.com, they wont work with Ubuntu.


On Fri, Mar 14, 2014 at 7:06 PM, Douglas Jerome <dou...@ttylinux.org> wrote:
I build linux Linux systems that run on their inital RAM disk
and I can NFS boot them, so I don't think the kernel haveing
initrd capability does anything wrong.

Maybe I missed something in the thread, but why are
you using /lib/modules/3.8.13/init ??

When I see this

     Kernel panic - not syncing: No init found.  Try
     passing init= option to kernel.
message it is because the /sbin/init program the kernel
tries to run is missing a dynamic dependency. This sort
of thing happens when you build a whole (small) system
from scratch.

Try using init=/bin/bash just to see if it runs. If so,
it isn't an NFS root problem per se, is is a problem
with the program you are using for init.

On 03/14/14 15:40, John Syn wrote:

From: William Hermans <yyr...@gmail.com <mailto:yyr...@gmail.com>>
Reply-To: <beagl...@googlegroups.com
<mailto:beagleboard@googlegroups.com>>

Date: Friday, March 14, 2014 at 2:27 PM

Subject: Re: [beagleboard] Re: Kernel panic - not syncing: No init
found. Try passing init= option to kernel.

    NFS root as done on ARCH, Debian, and busybox will not work the same
    way on ubuntu. Nor fedora or Angstrom for that matter. What you need
    to do is find a how to for netbooting Ubuntu ( PC ) and adapt it.

    obviously going by the error messages above, this configuration does
    not like your initial ramdisk ( initrd ) for some reason.

NFS booting is not compatible with Initrd. Thus the kernel must be built
without Initrd configured and uenvcmd has a dash instead of an Initrd
memory load address.

Regards,
John




    On Fri, Mar 14, 2014 at 7:55 AM, siva kumar
        it, send an email to beagleboard+unsubscribe@googlegroups.com
        <mailto:beagleboard+unsub...@googlegroups.com>.

        For more options, visit https://groups.google.com/d/optout.


    --
    For more options, visit http://beagleboard.org/discuss
    ---
    You received this message because you are subscribed to the Google
    Groups "BeagleBoard" group.
    To unsubscribe from this group and stop receiving emails from it,

    For more options, visit https://groups.google.com/d/optout.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google
Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send

For more options, visit https://groups.google.com/d/optout.

--
For more options, visit http://beagleboard.org/discuss
--- You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.

John Syn

unread,
Mar 15, 2014, 2:01:27 PM3/15/14
to beagl...@googlegroups.com

On 3/14/14, 7:06 PM, "Douglas Jerome" <dou...@ttylinux.org> wrote:

>I build linux Linux systems that run on their inital RAM disk
>and I can NFS boot them, so I don't think the kernel haveing
>initrd capability does anything wrong.
You could very well be correct; however, I recall a while back when I
started using NFS, I came across a similar problem. After Googling, I
found and article that said NFS isn¹t compatible with Initrd so I removed
Initrd from the kernel and replaced the Initrd address with a dash in
uEnv.txt and viola, NFS worked. I didn¹t do any further investigation. I
would be interested if anyone has managed to get NFS to work with Initrd
configured.

Regards,
John
>email to beagleboard...@googlegroups.com.

siva kumar

unread,
Mar 17, 2014, 5:34:46 AM3/17/14
to beagl...@googlegroups.com
hello john,
yes john i tried with rebuilding the kernel without initrd option too..
but no change with error log !!!

siva kumar

unread,
Mar 17, 2014, 5:39:43 AM3/17/14
to beagl...@googlegroups.com
when u saw my uEnv.txt file  i used to boot the args without initrd address as you said
# uenvcmd=run boot_ftd; run device_args; bootz 0x80200000 0x81000000:${initrd_size} 0x815f0000
uenvcmd=run boot_ftd; run device_args; bootz 0x80200000 - 0x815f0000

any ideas ...how to come back the kernel to boot up!!
Message has been deleted

siva kumar

unread,
Mar 17, 2014, 9:05:47 AM3/17/14
to beagl...@googlegroups.com

hai,

i tried to debug the boot process..
i went with some ideas to find the why such error comes..
[1] i tried to boot the kernel with init=/hello_world option.. i removed all the rootfs files like /dev /usr /opt /bin /sbin  folder and files except hello_world option
              ----to make sure that my print is able to execute when booting  was done
                  but i got different reply from my kernel
error log1
=======
[    5.800505] VFS: Mounted root (nfs filesystem) on device 0:12.
[    5.807034] devtmpfs: error mounting -2
[    5.811496] Freeing init memory: 288K
[    5.818299] Failed to execute /hello_arm.  Attempting defaults...
[    5.825859] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
 
also i'm not able to get the printed message !!!!
procedure i followed to boot the kernel from my board .i h'v done the booting with sd card using uEnv.txt file...

Douglas Jerome

unread,
Mar 17, 2014, 9:24:32 PM3/17/14
to beagl...@googlegroups.com
Control yourself. Stop doing random things.

Put the directories back into the file system. Change to
using init=/bin/bash and see if you get a shell prompt
when you boot.

On 03/17/14 06:05, siva kumar wrote:
>
> hai,
>
> i tried to debug the boot process..
> i went with some ideas to find the why such error comes..
> [1] i tried to boot the kernel with init=/hello_world option.. i removed
> all the rootfs files like /dev /usr /opt /bin /sbin folder and files
> except hello_world option
> ----to make sure that my print is able to execute when
> booting was done
> but i got different reply from my kernel
> error log1
> =======
> [ 5.800505] VFS: Mounted root (nfs filesystem) on device 0:12.
> [ 5.807034] devtmpfs: error mounting -2
> [ 5.811496] Freeing init memory: 288K
> [* 5.818299] Failed to execute /hello_arm. Attempting defaults...*
> [ 5.825859] Kernel panic - not syncing: No init found. Try passing
> init= option to kernel. See Linux Documentation/init.txt for guidance.

siva kumar

unread,
Mar 19, 2014, 1:24:03 PM3/19/14
to beagl...@googlegroups.com, dou...@ttylinux.org
hai all,

i already tried with init=/bin/bash and also  init=/sbin/init but the my output was the same 
kernel panic not sync no init found !!!

thanks&
regards
siva

Douglas Jerome

unread,
Mar 19, 2014, 9:45:31 PM3/19/14
to beagl...@googlegroups.com
I went back in this email chain and see that you are
trying an NFS boot. Have you verified that the file
system you need is at the NFS mount? Where did you get
that file system? There seems to be a problem, like
the programs aren't arm programs or the lib directory
is missing.

I think either /bin/bash really is not at the NFS mount,
or it is not an arm executable, or something is is wrong
in <mountpoint>/lib with a missing or wrong format .so
file.


On 03/19/14 10:24, siva kumar wrote:
> hai all,
>
> i already tried with init=/bin/bash and also init=/sbin/init but the my
> output was the same
> kernel panic not sync no init found !!!
>
> thanks&
> regards
> siva
>
>
> On Tuesday, 18 March 2014 06:54:32 UTC+5:30, djerome wrote:
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to beagleboard...@googlegroups.com
> <mailto:beagleboard...@googlegroups.com>.

siva kumar

unread,
Mar 20, 2014, 2:53:29 AM3/20/14
to beagl...@googlegroups.com, dou...@ttylinux.org
hai,
yes u r right , i try to mount my file system using nfs,
i also cross checked my rootfs that shows that /bin/bash file not  available ..
i dont know how that was missed ..!!!
when i look out my targetNFS directory (which is my actual nfs mount folder)
the following dir's available
bin   dev  home  media  proc  sbin  sys  usr
boot  etc  lib   mnt    run    tmp  var
inside /bin i'm not able to find any executable like bash.
but all the files are compiled for  arm arch . 
i ran 
targetNFS/bin#file *
ash:                            symbolic link to `busybox
busybox:                        ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
cat:                            symbolic link to `busybox'
chattr:                         symbolic link to `busybox'
chgrp:                          symbolic link to `busybox'
chmod:                          symbolic link to `busybox'
chown:                          symbolic link to `busybox'

and so on ..

i compiled the busybox using the following procedure: 
 

and i installed the kernel modules into this busybox/_install  directory and i renamed it to targetNFS to make available for nfs booting .
was anything wrong with busybox compilation?? . else shall i need to do some thing more for beaglebone black..
pls share your thoughts how to compile a busybox for beaglebone black.
 
also suggest me if any books or articles that taught  about internals of kernel architectures and procedure for building  a kernel for arm platform


regards
siva

Douglas Jerome

unread,
Mar 21, 2014, 9:22:49 PM3/21/14
to beagl...@googlegroups.com
On 03/19/14 23:53, siva kumar wrote:
> hai,
> yes u r right , i try to mount my file system using nfs,
> i also cross checked my rootfs that shows that /bin/bash file not
> available ..
> i dont know how that was missed ..!!!
> when i look out my targetNFS directory (which is my actual nfs mount folder)
> the following dir's available
> *bin dev home media proc sbin sys usr*
> *boot etc lib mnt run tmp var*
> inside /bin i'm not able to find any executable like *bash.*
> *but all the files are compiled for arm arch . *
> *i ran *
> *targetNFS/bin#file **
> *
> ash: symbolic link to `busybox
> busybox: ELF 32-bit LSB executable, ARM, version
> 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16,
> stripped
> cat: symbolic link to `busybox'
> chattr: symbolic link to `busybox'
> chgrp: symbolic link to `busybox'
> chmod: symbolic link to `busybox'
> chown: symbolic link to `busybox'
>
> *
> and so on ..
>
.
.
.
>
> regards
> siva


I suggest you set init to /bin/ash and see if you get a shell
when you boot. Also *look* for init in the file system; it
probably is /sbin/init, but verify you know where it is and after
you see the init=/bin/ash work then try your verified init pathname.


William Hermans

unread,
Mar 21, 2014, 11:09:45 PM3/21/14
to beagl...@googlegroups.com
Doesnt Ubuntu use dash by default ?


--
For more options, visit http://beagleboard.org/discuss
--- You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.

zhou.ji...@gmail.com

unread,
Apr 23, 2014, 12:45:36 PM4/23/14
to beagl...@googlegroups.com, dou...@ttylinux.org
I had the same issue. It was because I untar-ed the nfsroot in windows and then copied it to my linux host machine, so some sym links were lost. 

zhou.ji...@gmail.com

unread,
Apr 23, 2014, 12:47:47 PM4/23/14
to beagl...@googlegroups.com
Had the same issue. Found the reason, it was because I untar-ed the rootfs in a windows machine and copied it to the host linux machine, so some symbolic links were lost. 

datama...@gmail.com

unread,
Mar 30, 2015, 9:38:56 AM3/30/15
to beagl...@googlegroups.com
I have a very similar issue after mistakenly installing PAE on a 64-bit Ubuntu 14.04 machine.  Currently it seems to make sense to just reverse the process if that will return the 'init' file to the original state before the install.  I can only run the machine using a livecd to gain access to the affected drive.  How can I process to reverse my install settings?
Reply all
Reply to author
Forward
0 new messages