This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Kernel Panic - not syncing: no init found when booting

Expert 1130 points

I was booting fine and then things went south. I'm not sure why this is happening. The boot output is below:

mice: PS/2 mouse device common for all mice
mmc mmc.0: Supporting 4-bit mode
mmc mmc.0: Using DMA mode
Registering platform device 'davinci-audio.0'. Parent at platform
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 10.8.100.80, my address is 10.8.105.5
IP-Config: Complete:
      device=eth0, addr=10.8.105.5, mask=255.255.254.0, gw=10.8.104.100,
     host=10.8.105.5, domain=extron.com, nis-domain=(none),
     bootserver=10.8.100.80, rootserver=10.8.105.18, rootpath=
Looking up port of RPC 100003/2 on 10.8.105.18
Looking up port of RPC 100005/1 on 10.8.105.18
VFS: Mounted root (nfs filesystem).
Freeing init memory: 180K
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
 <7>eth0: no IPv6 routers present

----------------------------------------------clip end--------------------------------------------------

These are my env variables

baudrate=115200
setboot=setenv bootargs $(bootargs) video=dm64xxfb:output=$(videostd);run setboo
t;bootm 0x2050000
bootdelay=3
nfshost=10.8.105.18
rootpath=/home/user/workdir/filesys
filesize=5fd2
fileaddr=80700000
gatewayip=10.8.104.100
netmask=255.255.254.0
ipaddr=10.8.105.5
dnsip=10.8.100.3
dnsip2=10.1.0.4
videocfg=video=davincifb:osd0=720x480x16,1350K:osd1=720x480,1350K:vid0=720x480,2
025K:vid1=720x480x,2025K davinci_enc_mngr.ch0_output=SVIDEO davinci_enc_mngr.ch0
_mode=NTSC
serverip=10.8.105.18
nfspath=/home/user/workdir/filesys
static_ip=10.8.105.5::255.255.254.0::::off
myip=dhcp
bootargs_nfs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10
.8.105.18:/home/user/workdir/filesys,nolock mem=120M
bootargs=video=davincifb:osd0=720x480x16,1350K:osd1=720x480,1350K:vid0=720x480,2
025K:vid1=720x480x,2025K davinci_enc_mngr.ch0_output=SVIDEO davinci_enc_mngr.ch0
_mode=NTSC console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.8
.105.18:/home/user/workdir/filesys,nolock mem=120M
bootcmd_flash=bootm 0x2050000
bootcmd_tftp=dhcp;bootm
bootcmd=tftp;bootm
bootfile=uImage
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:0e:99:02:5e:18
videostd=ntsc

 

Mike

  • It looks like you have things setup properly, it is strange that the boot log output shows rootpath as nothing though, if that is the problem than you may want to try using a static IP setup with the board directly connected to your PC to take out any issues from the rest of the network, I have seen cases where certain routers can corrupt nfs parameters, though usually it would be the nfs server ip if I recall correctly.

    The other thought here would be that there is something wrong/missing with your filesystem, namely the init file (and likely other files) due to the 'No init found'. This can happen if the filesystem you are mounting is copied in a manner where symbolic links are not preserved. Typically by the getting started guide the file system copy is done with the cp command's -a flag which is equivalent to -dpR where the -d option preserves the symbolic link

  • I solved these kind of many problem for many reasons,so Paste .config file. Then only we decide what is the problem..