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.

NFS Boot Problems

Other Parts Discussed in Thread: PCF8574A, THS7303, THS7353, TVP7002

Hi,


i'm trying use the new dvsdk 3_10_00_19 on Ubuntu 10.04 for my dm6467 EVM. Everything apparently worked fine until the NFS mounting of directories. Here are the outputed problems:

/***********************************/

 

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

eth0: attached PHY driver [ET1011C] (mii_bus:phy_addr=1:01, id=282f013)

Sending DHCP requests ..

PHY: 1:01 - Link is Up - 1000/Full

., OK

IP-Config: Got DHCP answer from 10.0.0.1, my address is 10.0.0.25

IP-Config: Complete:

     device=eth0, addr=10.0.0.25, mask=255.255.255.0, gw=10.0.0.1,

     host=10.0.0.25, domain=, nis-domain=(none),

     bootserver=10.0.0.1, rootserver=10.0.0.1, rootpath=

Looking up port of RPC 100003/2 on 10.0.0.1

rpcbind: server 10.0.0.1 not responding, timed out

Root-NFS: Unable to get nfsd port number from server, using default

Looking up port of RPC 100005/1 on 10.0.0.1

rpcbind: server 10.0.0.1 not responding, timed out

Root-NFS: Unable to get mountd port number from server, using default

Root-NFS: Server returned error -5 while mounting /tftpboot/10.0.0.25

VFS: Unable to mount root fs via NFS, trying floppy.

VFS: Cannot open root device "nfs" or unknown-block(2,0)

Please append a correct "root=" boot option; here are the available partitions:

0300        39070080 hda driver: ide-gd

  0301        35158221 hda1

  0302         3911827 hda2

1f00             128 mtdblock0 (driver?)

1f01            1280 mtdblock1 (driver?)

1f02            4096 mtdblock2 (driver?)

1f03          125568 mtdblock3 (driver?)

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

Backtrace: 

[<c00307d0>] (dump_backtrace+0x0/0x114) from [<c0310d7c>] (dump_stack+0x18/0x1c)

 r7:00008000 r6:c5012000 r5:c0026808 r4:c0426c10

[<c0310d64>] (dump_stack+0x0/0x1c) from [<c0310dd4>] (panic+0x54/0x124)

[<c0310d80>] (panic+0x0/0x124) from [<c0008fbc>] (mount_block_root+0x1e0/0x220)

 r3:00000001 r2:c5025e98 r1:c5025f60 r0:c039c58d

[<c0008ddc>] (mount_block_root+0x0/0x220) from [<c00090c0>] (mount_root+0xc4/0xfc)

 r8:00000000 r7:00000000 r6:00000000 r5:00000000 r4:00200000

[<c0008ffc>] (mount_root+0x0/0xfc) from [<c0009268>] (prepare_namespace+0x170/0x1c8)

 r5:c0026808 r4:c0426700

[<c00090f8>] (prepare_namespace+0x0/0x1c8) from [<c00084bc>] (kernel_init+0xe4/0x118)

 r5:00000000 r4:c04264c0

[<c00083d8>] (kernel_init+0x0/0x118) from [<c0045964>] (do_exit+0x0/0x684)

 r5:00000000 r4:00000000

/***********************************/
Also, following the steps at http://processors.wiki.ti.com/index.php/DM6467_platform_in_DVSDK_3.10 i couldn't install uImage-dm6467-evm.bin neither u-boot-dm6467-evm.bin files because i got some "Syntax errors" when executing them at my bash terminal. I'm not sure if the problem with nfs is connected with the no installation of both *.bin files.
Does anyone can help?
Tanks.
Regards,

Rafael Madeira

 

 

 

  • Rafael,

     

    in order to best help you, we need more information.  Please walk us through every step that you performed while following the directions to install the software and share the corresponding output once you execute a particular command in the instructions.  Thanks.  We need to get a known good install on your system before we can start guessing as to what might be wrong.

  • Looks like your NFS server isn't configured correctly.

    John A

  • Also, can you share your bootargs so we can see how you are configuring your NFS setup?

  • Hi,

     

    Until now i was able to use the dvsdk 1.4, using the same TFTP + NFS filesystem mounting idea but using CentOS instead of Ubuntu.

    Here is a more detailed steps that a took to dvsdk 3.10:

    1. I could successfully install tftpd-hpa and load the kernel image (uImage) from a host (which we can see in the complete boot log below);

    2. I stopped the ubuntu ufw firewall:

         a. [host]$ service ufw stop

             [host]$ ufw stop/waiting

    3. I installed the nfs server (nfs-kernel-server) and:

        a. Edited the /etc/exports file and add the line: "/home/rmadeira/workdir/filesys *(rw,no_root_squash,no_all_squash,sync,no_subtree_check)"

        b. Restarted nfs server:

            [host]$ /etc/init.d/nfs-kernel-server restart

                and got de output:

               * Stopping NFS kernel daemon                                    [ OK ] 

               * Unexporting directories for NFS kernel daemon...   [ OK ] 

               * Exporting directories for NFS kernel daemon...       [ OK ] 

               * Starting NFS kernel daemon                                     [ OK ]


    4. Then i installed all the packages needed for dvsdk (dvsdk installer 3.10, codec servers, linux bin utils, etc,etc..)

    5. I successfully create uImage file (executing [host]$ make  linux) as compiled the dvsdk 3.10 package ([host]$ make  && make install ) without erros. This steps are described at http://processors.wiki.ti.com/index.php/GSG:_DVEVM_Software_Setup_for_DM6467_Platforms

    6. At the board side, my environment variables are as follow:

     

    /***********************************************************************************/

    Booting PSP Boot Loader

    Starting NAND Copy

    Booting Application @ 0x81080000

    U-Boot 1.2.0 (Jul 17 2008 - 16:55:20)

    I2C:   ready

    DRAM:  256 MB

    unknown vendor=0 Flash:  0 kB

    NAND:  128 MiB

    In:    serial

    Out:   serial

    Err:   serial

    ARM Clock :- 297MHz

    DDR Clock :- 297MHz

    Hit any key to stop autoboot:  0 

    DM6467 EVM # printenv

    baudrate=115200

    netmask=255.255.255.0

    bootdelay=3

    nfshost=10.0.0.19

    serverip=10.0.0.19

    rootpath=/home/rmadeira/workdir/filesys

    bootfile=uImage

    bootcmd=tftpboot;bootm

    ipaddr=10.0.0.49

    bootargs=mem=112M console=ttyS0,115200n8 root=/dev/nfs nfshost=10.0.0.19:/home/rmadeira/workdir/filesys,nolock ip=dhcp vpif_display.ch2_numbuffers=0 vpif_display.ch3_numbuffers=0

    stdin=serial

    stdout=serial

    stderr=serial

    ethaddr=00:0e:99:02:b4:25


    Environment size: 429/131068 bytes

    /***********************************************************************************/
    7. The rest of boot log is:
    /************************************************************************************/

    DM6467 EVM # boot

    TFTP from server 10.0.0.19; our IP address is 10.0.0.49

    Filename 'uImage'.

    Load address: 0x80700000

    Loading: #################################################################

             #################################################################

             #################################################################

             #################################################################

             #################################################################

             #################################################################

             #################

    done

    Bytes transferred = 2079752 (1fbc08 hex)

    ## Booting image at 80700000 ...

       Image Name:   Linux-2.6.32-rc2-davinci1

       Image Type:   ARM Linux Kernel Image (uncompressed)

       Data Size:    2079688 Bytes =  2 MB

       Load Address: 80008000

       Entry Point:  80008000

       Verifying Checksum ... OK

    OK


    Starting kernel ...


    Uncompressing Linux....................................................................................................................................... done, booting the kernel.

    Linux version 2.6.32-rc2-davinci1 (rmadeira@davinci) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #0 PREEMPT Tue Nov 30 15:04:16 BRST 2010

    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

    CPU: VIVT data cache, VIVT instruction cache

    Machine: DaVinci DM646x EVM

    Memory policy: ECC disabled, Data cache writeback

    DaVinci dm6467_rev1.x variant 0x0

    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 28448

    Kernel command line: mem=112M console=ttyS0,115200n8 root=/dev/nfs nfshost=10.0.0.19:/home/rmadeira/workdir/filesys,nolock ip=dhcp vpif_display.ch2_numbuffers=0 vpif_display.ch3_numbuffers=0

    PID hash table entries: 512 (order: -1, 2048 bytes)

    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

    Memory: 112MB = 112MB total

    Memory: 109112KB available (3908K code, 336K data, 144K init, 0K highmem)

    SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

    Hierarchical RCU implementation.

    NR_IRQS:245

    Console: colour dummy device 80x30

    Calibrating delay loop... 147.86 BogoMIPS (lpj=739328)

    Mount-cache hash table entries: 512

    CPU: Testing write buffer coherency: ok

    DaVinci: 43 gpio irqs

    NET: Registered protocol family 16

    MUX: Setting register STSOMUX_DISABLE

               PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000

    MUX: Setting register STSIMUX_DISABLE

               PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000

    MUX: Setting register PTSOMUX_DISABLE

               PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000

    MUX: Setting register PTSIMUX_DISABLE

               PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000

    MUX: initialized CIR_UART2

    MUX: Setting register CIR_UART2

               PINMUX1 (0x00000004) = 0x00000000 -> 0x00000020

    MUX: initialized ATAEN

    MUX: Setting register ATAEN

               PINMUX0 (0x00000000) = 0x00000000 -> 0x00000001

    bio: create slab <bio-0> at 0

    SCSI subsystem initialized

    usbcore: registered new interface driver usbfs

    usbcore: registered new interface driver hub

    usbcore: registered new device driver usb

    pcf857x 1-0038: gpios 145..152 on a pcf8574a

    pcf857x 1-0038: setup --> -38

    vpif vpif: vpif probe success

    Switching to clocksource timer0_1

    musb_hdrc: version 6.0, pio, host, debug=0

    musb_hdrc: USB Host mode controller at fec64000 using PIO, IRQ 13

    musb_hdrc musb_hdrc: MUSB HDRC host driver

    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1

    usb usb1: configuration #1 chosen from 1 choice

    hub 1-0:1.0: USB hub found

    hub 1-0:1.0: 1 port detected

    NET: Registered protocol family 2

    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

    TCP established hash table entries: 4096 (order: 3, 32768 bytes)

    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

    TCP: Hash tables configured (established 4096 bind 4096)

    TCP reno registered

    NET: Registered protocol family 1

    RPC: Registered udp transport module.

    RPC: Registered tcp transport module.

    RPC: Registered tcp NFSv4.1 backchannel transport module.

    JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.

    msgmni has been set to 213

    io scheduler noop registered

    io scheduler anticipatory registered (default)

    CIR device registered successfully                        (Major = 252,  Minor = 0)

    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled

    serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a ST16654

    console [ttyS0] enabled

    serial8250 serial8250.0: unable to register port at index 1 (IO0 MEM1c20400 IRQ41): -22

    serial8250 serial8250.0: unable to register port at index 2 (IO0 MEM1c20800 IRQ42): -22

    brd: module loaded

    loop: module loaded

    at24 1-0050: 32768 byte 24c256 EEPROM (writable)

    Read MAC addr from EEPROM: 00:0e:99:02:b4:25

    Uniform Multi-Platform E-IDE driver

    ide-gd driver 1.18

        ide0: MMIO-DMA

    hda: TOSHIBA MK4032GAX, ATA DISK drive

    hda: UDMA/66 mode selected

    ide0 at 0xfec661f0-0xfec661f7,0xfec663f6 on irq 22

    hda: max request size: 512KiB

    hda: 78140160 sectors (40007 MB), CHS=16383/255/63

    hda: cache flushes supported

     hda: hda1 hda2

    NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND 128MiB 3,3V 8-bit)

    Scanning device for bad blocks

    Creating 4 MTD partitions on "davinci_nand.0":

    0x000000000000-0x000000020000 : "params"

    0x000000020000-0x000000160000 : "bootloader"

    0x000000160000-0x000000560000 : "kernel"

    0x000000560000-0x000008000000 : "filesystem"

    davinci_nand davinci_nand.0: controller rev. 2.2

    spi_davinci spi_davinci.0: DaVinci SPI driver in EDMA mode

    Using RX channel = 17 , TX channel = 16 and event queue = 3

    at25 spi0.0: 32 KByte at25640a eeprom, pagesize 64

    spi_davinci spi_davinci.0: Controller at 0xfec66800 

    PPP generic driver version 2.4.2

    PPP Deflate Compression module registered

    tun: Universal TUN/TAP device driver, 1.6

    tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

    dm9000 Ethernet Driver, V1.31

    console [netcon0] enabled

    netconsole: network logging started

    Initializing USB Mass Storage driver...

    usbcore: registered new interface driver usb-storage

    USB Mass Storage support registered.

    usbcore: registered new interface driver usbtest

    mice: PS/2 mouse device common for all mice

    i2c /dev entries driver

    Linux video capture interface: v2.00

    adv7343 1-002a: chip found @ 0x54 (DaVinci I2C adapter)

    ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)

    ths7353 1-002e: chip found @ 0x5c (DaVinci I2C adapter)

    vpif_capture vpif_capture: registered sub device ths7353

    tvp7002 1-005d: tvp7002 1-005d decoder driver registered !!

    vpif_capture vpif_capture: registered sub device tvp7002

    vpif_capture vpif_capture: DM646x VPIF Capture driver initialized

    watchdog watchdog: heartbeat 60 sec

    usbcore: registered new interface driver usbhid

    usbhid: v2.6:USB HID core driver

    Advanced Linux Sound Architecture Driver Version 1.0.21.

    No device for DAI tlv320aic3x

    asoc: tlv320aic3x <-> davinci-i2s mapping ok

    asoc: DIT <-> davinci-dit mapping ok

    ALSA device list:

      #0: DaVinci DM6467 EVM (tlv320aic3x)

    TCP cubic registered

    NET: Registered protocol family 17

    Clocks: disable unused uart1

    Clocks: disable unused emac

    Clocks: disable unused timer1

    emac-mii: probed

    drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

    eth0: attached PHY driver [ET1011C] (mii_bus:phy_addr=1:01, id=282f013)

    Sending DHCP requests ..

    PHY: 1:01 - Link is Up - 1000/Full

    ., OK

    IP-Config: Got DHCP answer from 10.0.0.1, my address is 10.0.0.25

    IP-Config: Complete:

         device=eth0, addr=10.0.0.25, mask=255.255.255.0, gw=10.0.0.1,

         host=10.0.0.25, domain=, nis-domain=(none),

         bootserver=10.0.0.1, rootserver=10.0.0.1, rootpath=

    Looking up port of RPC 100003/2 on 10.0.0.1

    rpcbind: server 10.0.0.1 not responding, timed out

    Root-NFS: Unable to get nfsd port number from server, using default

    Looking up port of RPC 100005/1 on 10.0.0.1

    rpcbind: server 10.0.0.1 not responding, timed out

    Root-NFS: Unable to get mountd port number from server, using default

    Root-NFS: Server returned error -5 while mounting /tftpboot/10.0.0.25

    VFS: Unable to mount root fs via NFS, trying floppy.

    VFS: Cannot open root device "nfs" or unknown-block(2,0)

    Please append a correct "root=" boot option; here are the available partitions:

    0300        39070080 hda driver: ide-gd

      0301        35158221 hda1

      0302         3911827 hda2

    1f00             128 mtdblock0 (driver?)

    1f01            1280 mtdblock1 (driver?)

    1f02            4096 mtdblock2 (driver?)

    1f03          125568 mtdblock3 (driver?)

    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

    Backtrace: 

    [<c00307d0>] (dump_backtrace+0x0/0x114) from [<c0310d7c>] (dump_stack+0x18/0x1c)

     r7:00008000 r6:c5012000 r5:c0026808 r4:c0426c10

    [<c0310d64>] (dump_stack+0x0/0x1c) from [<c0310dd4>] (panic+0x54/0x124)

    [<c0310d80>] (panic+0x0/0x124) from [<c0008fbc>] (mount_block_root+0x1e0/0x220)

     r3:00000001 r2:c5025e98 r1:c5025f60 r0:c039c58d

    [<c0008ddc>] (mount_block_root+0x0/0x220) from [<c00090c0>] (mount_root+0xc4/0xfc)

     r8:00000000 r7:00000000 r6:00000000 r5:00000000 r4:00200000

    [<c0008ffc>] (mount_root+0x0/0xfc) from [<c0009268>] (prepare_namespace+0x170/0x1c8)

     r5:c0026808 r4:c0426700

    [<c00090f8>] (prepare_namespace+0x0/0x1c8) from [<c00084bc>] (kernel_init+0xe4/0x118)

     r5:00000000 r4:c04264c0

    [<c00083d8>] (kernel_init+0x0/0x118) from [<c0045964>] (do_exit+0x0/0x684)

     r5:00000000 r4:00000000

     

    /************************************************************************************/

     

    I guessed too that NFS might be not well configurated, mainly because i can't find why the nfs is trying to mount  /tftpboot/10.0.0.25 neither why it is using the gettway 10.0.0.1 (my office network router address).

    I you need more infos, please tell me.


    Tanks,


    Rafael Madeira

  • Rafael Madeira said:

    nfshost=10.0.0.19

    serverip=10.0.0.19

    rootpath=/home/rmadeira/workdir/filesys

    bootfile=uImage

    bootcmd=tftpboot;bootm

    ipaddr=10.0.0.49

    bootargs=mem=112M console=ttyS0,115200n8 root=/dev/nfs nfshost=10.0.0.19:/home/rmadeira/workdir/filesys,nolock ip=dhcp vpif_display.ch2_numbuffers=0 vpif_display.ch3_numbuffers=0

    My boot arguments use "nfsroot" not "nfshost"

    John A

  • Jonh,

    at some moment i misspell nfsroot by nfshost. I returned to the correct values, but the final output didn't change. I believe this is because 'bootargs' is correctly set.

     

    Rafael Madeira

  • Make sure you can mount the file system from a computer to ensure you have the server configured correctly.

    John A