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 error on DM355 booting

Hi,

I tried to directly install the kernel image using tftp and i got the following output.


## Booting image at 80700000 ...                           

                    
   Image Name:   "RR Linux Kernel"                                             
   Image Type:   ARM Linux Kernel Image (uncompressed)                         
   Data Size:    3250544 Bytes =  3.1 MB                                       
   Load Address: 80008000                                                      
   Entry Point:  80008000                                                      
   Verifying Checksum ... OK                                                   
OK                                                                             
                                                                               
Starting kernel ...                                                            
                                                                               
[    0.000000] Linux version 2.6.29-ridgerun-davinci1 (root@mayank-laptop) (gcc1
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177   
[    0.000000] CPU: VIVT data cache, VIVT instruction cache                    
[    0.000000] Machine: DaVinci DM355 leopard                                  
[    0.000000] Memory policy: ECC disabled, Data cache writeback               
[    0.000000] DaVinci DM0355 variant 0x0                                      
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pa4
[    0.000000] Kernel command line: console=ttyS0,115200n8 video=davincifb:osd1)
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)              
[42949372.960000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[42949372.960000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) 
[42949372.980000] Memory: 116MB = 116MB total                                  
[42949372.980000] Memory: 114204KB available (2936K code, 203K data, 116K init)
[42949372.980000] Calibrating delay loop... 107.72 BogoMIPS (lpj=538624)       
[42949373.210000] Mount-cache hash table entries: 512                          
[42949373.210000] CPU: Testing write buffer coherency: ok                      
[42949373.220000] net_namespace: 520 bytes                                     
[42949373.220000] NET: Registered protocol family 16                           
[42949373.220000] MUX: initialized INT_EDMA_CC                                 
[42949373.220000] MUX: initialized VIN_CINL_EN                                 
[42949373.260000] DaVinci: 104 gpio irqs                                       
[42949373.370000] bio: create slab <bio-0> at 0                                
[42949373.370000] vpss vpss: dm355_vpss vpss probed                            
[42949373.370000] vpss vpss: dm355_vpss vpss probe success                     
[42949373.380000] ch0 default output "COMPOSITE", mode "NTSC"                  
[42949373.380000] VPBE Encoder Initialized                                     
[42949373.390000] SCSI subsystem initialized                                   
[42949373.390000] usbcore: registered new interface driver usbfs               
[42949373.400000] usbcore: registered new interface driver hub                 
[42949373.400000] usbcore: registered new device driver usb                    
[42949373.410000] Avnetlcd encoder initialized                                 
[42949373.430000] musb_hdrc: version 6.0, pio, host, debug=0                   
[42949373.450000] musb_hdrc: USB Host mode controller at fec64000 using PIO, IR2
[42949373.450000] musb_hdrc musb_hdrc: MUSB HDRC host driver                   
[42949373.450000] musb_hdrc musb_hdrc: new USB bus registered, assigned bus num1
[42949373.450000] usb usb1: configuration #1 chosen from 1 choice              
[42949373.450000] hub 1-0:1.0: USB hub found                                   
[42949373.450000] hub 1-0:1.0: 1 port detected                                 
[42949373.460000] NET: Registered protocol family 2                            
[42949373.460000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[42949373.460000] TCP established hash table entries: 4096 (order: 3, 32768 byt)
[42949373.460000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)    
[42949373.460000] TCP: Hash tables configured (established 4096 bind 4096)     
[42949373.460000] TCP reno registered                                          
[42949373.470000] NET: Registered protocol family 1                            
[42949373.480000] msgmni has been set to 223                                   
[42949373.480000] io scheduler noop registered (default)                       
[42949373.500000] davincifb davincifb.0: dm_osd0_fb: 720x480x16@0,0 with framebB
[42949373.510000] davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffeB
[42949373.530000] davincifb davincifb.0: dm_osd1_fb: 0x0x8@0,0 with framebufferB
[42949373.540000] davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffeB
[42949373.540000] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled     
[42949373.550000] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A 
[42949373.550000] console [ttyS0] enabled                                      
[42949373.880000] davinci_interrupt 337: VBUS error workaround (delay coming)  
[42949373.890000] brd: module loaded                                           
[42949373.920000] loop: module loaded                                          
[42949373.920000] dm9000 Ethernet Driver, V1.31                                
[42949374.050000] eth0 (dm9000): not using net_device_ops yet                  
[42949374.050000] eth0: dm9000a at c780c000,c7810016 IRQ 73 MAC: 00:0e:99:00:05)
[42949374.060000] Linux video capture interface: v2.00                         
[42949374.070000] vpfe-capture vpfe-capture: video device registered           
[42949374.080000] vpfe-capture vpfe-capture: v4l2 int master registered        
[42949374.090000] vpfe_capture: init successful                                
[42949374.090000] Trying to register davinci display video device.             
[42949374.100000] layer=c66f7200,layer->video_dev=c66f7364                     
[42949374.110000] Trying to register davinci display video device.             
[42949374.110000] layer=c66f7000,layer->video_dev=c66f7164                     
[42949374.120000] davinci_init:DaVinci V4L2 Display Driver V1.0 loaded         
[42949374.130000] vpfe-capture vpfe-capture: register slave mt9v113            
[42949374.130000] mt9v113 1-003c: chip id mismatch read 0x0, expecting 0x2280  
[42949374.140000] mt9v113 1-003c: Unable to detect decoder                     
[42949374.150000] mt9v113 1-003c: Registered to v4l2 master vpfe-capture!!     
[42949374.160000] Driver 'sd' needs updating - please use bus_type methods     
[42949374.170000] davinci_nand davinci_nand.0: 4-bit ECC nyet supported        
[42949374.180000] davinci_nand: probe of davinci_nand.0 failed with error -22  
[42949374.190000] Initializing USB Mass Storage driver...                      
[42949374.200000] usbcore: registered new interface driver usb-storage         
[42949374.200000] USB Mass Storage support registered.                         
[42949374.210000] i2c /dev entries driver                                      
[42949374.220000] watchdog watchdog: heartbeat 60 sec                          
[42949374.230000] davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode             
[42949374.240000] davinci_mmc davinci_mmc.1: Using DMA, 4-bit mode             
[42949374.260000] Advanced Linux Sound Architecture Driver Version 1.0.18a.    
[42949374.270000] No device for DAI tlv320aic3x                                
[42949374.280000] No device for DAI davinci-i2s                                
[42949374.290000] AIC3X Audio Codec 0.2                                        
[42949374.290000] asoc: tlv320aic3x <-> davinci-i2s mapping ok                 
[42949374.330000] ALSA device list:                                            
[42949374.330000]   #0: Leopard Board (tlv320aic3x)                            
[42949374.340000] TCP cubic registered                                         
[42949374.340000] NET: Registered protocol family 17                           
[42949374.350000] RPC: Registered udp transport module.                        
[42949374.350000] RPC: Registered tcp transport module.                        
[42949374.360000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)      
[42949374.920000] eth0: link down                                              
[42949375.560000] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1              
[42949375.930000] IP-Config: Complete:                                         
[42949375.930000]      device=eth0, addr=192.168.1.50, mask=255.255.255.0, gw=2,
[42949375.940000]      host=192.168.1.50, domain=, nis-domain=(none),          
[42949375.940000]      bootserver=255.255.255.255, rootserver=10.17.8.125, root=
[42949375.950000] Looking up port of RPC 100003/2 on 10.17.8.125               
[42949405.960000] rpcbind: server 10.17.8.125 not responding, timed out        
[42949405.960000] Root-NFS: Unable to get nfsd port number from server, using dt
[42949405.970000] Looking up port of RPC 100005/1 on 10.17.8.125               
[42949435.980000] rpcbind: server 10.17.8.125 not responding, timed out
[42949435.980000] Root-NFS: Unable to get mountd port number from server, using default
[42949465.990000] Root-NFS: Server returned error -5 while mounting /home/mayank/DM355SDK789311/fs/fs
[42949465.990000] VFS: Unable to mount root fs via NFS, trying floppy.
[42949466.000000] VFS: Cannot open root device "nfs" or unknown-block(2,0)
[42949466.010000] Please append a correct "root=" boot option; here are the available partitions:
[42949466.020000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)



The problem starts from the lines which are indicated in bold above.

Still i am looking for the reasons to solve the above issue.Meanwhile if any of you could understand that
why i am getting like this and the steps needed to resolve the above.


Many thanks for your reply.

Thanks and Regards,
Mayank Agarwal
  • Mayank,

    Kernel is failing to mount nfs. You need to check whether nfs server is properly setup and correspondingly bootargs and other env variables are set.

  • Hi,

     

    On giving the printenv command i got the following output:

    Leopard Board # printenv
    bootdelay=3
    baudrate=115200
    preboot=
    bootfile="uImage"
    usbtty=cdc_acm
    stdout=serial
    stdin=serial
    stderrserial
    ethaddr=00:0e:99:00:05:2e
    mtdids=nand0=nand_davinci.0
    mtdparts=mtdparts=nand_davinci.0:4096k(UBOOT),128k(UBOOT_ENV),3200k(KERNEL),20480k(FS)
    filesize=3199b0
    fileaddr=82000000
    ipaddr=10.17.8.131
    serverip=10.17.8.125
    kernelloadaddr=0x82000000
    kernelsaveaddr=0x420000
    kerneloffset=0x420000
    ksize=0x320000
    kernelmd5sum=4657143ecbae172758689c5af4ab56b3
    bootargs=console=ttyS0,115200n8 video=davincifb:osd1=0x0x8 mem=116M root=/dev/nfs nfsroot=10.17.8.125:/home/mayank/DM355SDK789311/fs/fs rw ip=192.168.1.50::)
    bootcmd=nboot KERNEL
    autostart=yes
    partition=nand0,0
    mtddevnum=0
    mtddevname=UBOOT

    Environment size: 795/131068 bytes

     

    nfs is properly set up.

    Is there any wrong in bootargs.

    Thanks and Regards,

    Mayank

     

     

  • Key will be to check env variables relating to ip addresses.

  • Your target has a static address of 192.168.100.6, your NFS server is 10.17.8.125 and the default subnet mask is 255.255.255.0. Gateway looks a bit odd as just 2. I think your target and NFS server are on different subnets. The format of the ip part of bootarg is:

    ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>

    Your bootarg might be something like this:

    bootargs=console=ttyS0,115200n8 video=davincifb:osd1=0x0x8 mem=116M root=/dev/nfs nfsroot=10.17.8.125:/home/mayank/DM355SDK789311/fs/fs rw ip=10.17.8.131:10.17.8.125::::eth0:off

    You should specify a gateway. Probably 10.17.8.1 in your case.