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.

DM355:NFS boot trouble

Hallo,

we've just bought a dm355 evaluation board and, following the Getting Started Guide we're trying to perform nfs boot.

We have a laptop running Ubuntu 9.1 (karmic koala) which acts as a dhcp server directly connected to the DVEVM.

The DHCP server is 192.168.10.1

The laptop is 192.168.10.10 (given by dhcp server)

Once we boot the DVEVM it gets a correct address: 192.168.10.11

But after the address assignement the boot sequence stops with the following message:

 

Sending DHCP requests ., OK

IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.0.10

IP-Config: Complete:

device=eth0, addr=192.168.10.11, mask=255.255.255.0, gw=192.168.10.254,

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

bootserver=192.168.10.1, rootserver=192.168.10.10, rootpath=

Looking up port of RPC 100003/2 on 192.168.10.10

eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

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

Looking up port of RPC 100005/1 on 192.168.10.10

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

RPC: error 5 connecting to server 192.168.10.10

Root-NFS: Server returned error -5 while mounting /home/ns/workdir/filesys

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

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

 

Following the printenv:

bootdelay=3

baudrate=115200

nfshost=192.168.10.1

rootpath=/home/ns/workdir/filesys

bootcmd=nboot 0x80700000 0 0x400000;bootm

bootfile="uImage"

bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.168.10.10:/home/ns/workdir/filesys,nolock mem=116m

stdin=serial

stdout=serial

stderr=serial

videostd=pal

Environment size: 361/16380 bytes

 

As reported in other threads we 've disabled iptables and ufw.

Here's also the rpcinfo -p result on the host pc:

program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  46198  status
    100024    1   tcp  33923  status
    100021    1   udp  41309  nlockmgr
    100021    3   udp  41309  nlockmgr
    100021    4   udp  41309  nlockmgr
    100021    1   tcp  52500  nlockmgr
    100021    3   tcp  52500  nlockmgr
    100021    4   tcp  52500  nlockmgr
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100005    1   udp  52661  mountd
    100005    1   tcp  50620  mountd
    100005    2   udp  52661  mountd
    100005    2   tcp  50620  mountd
    100005    3   udp  52661  mountd
    100005    3   tcp  50620  mountd

 

Once the DVEVM has an ip address we can ping it from the laptop.

Hope someone has suggestions...

Simone

 

 

 

 

  • try adding serverip to your u-boot bootargs

       > setenv serverip 192.168.10.10

    and see if that helps.  Optionally, you can try using a router (buy al local electronics store) in between your Host and EVM to connect (if you suspect a dhcp server issue).  Or even use static IPs (no dhcp server needed) to boot.

    Normally, if you can ping, you have firewall on host disabled (iptables) and you have exported (/etc/exports per GSG) the directory you are trying to NFS mount, you should be good to go.

  • Hi Juan,

    No way.

    I've tried what you suggested setting serverip to 192.168.10.10, stopping dhcp service on the host pc,assigning static ip address (but I don't know if bootarg syntax is correct).

    printenv result is:

     

    bootdelay=3

    baudrate=115200

    nfshost=192.168.10.1

    rootpath=/home/ns/workdir/filesys

    bootcmd=nboot 0x80700000 0 0x400000;bootm

    bootfile="uImage"

    serverip=192.168.10.10

    ipaddr=192.168.10.11

    bootargs=console=ttyS0,115200n8 noinitrd rw ip=192.168.10.11 root=/dev/nfs nfsroot=192.168.10.10:/home/ns/workdir/filesys,nolock mem=116m

    stdin=serial

    stdout=serial

    stderr=serial

    videostd=pal

     

    Unfortunately booting the board I saw:

     

    IP-Config: Guessing netmask 255.255.255.0

    IP-Config: Complete:

    device=eth0, addr=192.168.10.11, mask=255.255.255.0, gw=255.255.255.255,

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

    bootserver=255.255.255.255, rootserver=192.168.10.10, rootpath=

    Looking up port of RPC 100003/2 on 192.168.10.10

    eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

    portmap: server 192.168.10.10 not responding, timed out

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

    Looking up port of RPC 100005/1 on 192.168.10.10

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

    RPC: error 5 connecting to server 192.168.10.10

    Root-NFS: Server returned error -5 while mounting /home/ns/workdir/filesys

    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

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

     

    gw and bootserver look strange to me but I really don't know...

    Thx, Simone

     

     

  • I should have been more specific, I did not meant you should first try to set serverip; only if this did not fix the problem consider the other two options (off-the-shelf router or static-ips).

    If you want to try the static ip option, see http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=spraaq0

    have you made sure your host firewall is disabled and /etc/exports is set per Getting Started Guide.

  • Hello Juan,

    now I'm in this situation:

    Host has a static IP (192.168.10.10)

    DVEVM has a static IP (192.168.10.11)

    connected directly with a cross-cable(also tried a a straight cable)

    I've set the env var follwinf the pdf you suggested.

    printenv output is:

    bootdelay=3
    baudrate=115200
    192.168.10.1nfshost=192.168.10.1      /*error typing, I'm not able to remove it with setenv*/
    bootcmd=nboot 0x80700000 0 0x400000;bootm
    bootfile=uImage
    rootpath=/home/ns/workdir/filesys
    bootsrgs =console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.168.10.10:/home/ns/workdir/filesys,nolock,tcp mem=116M  /*error typing, I'm not able to remove it with setenv*/
    serverip=192.168.10.10
    ipaddr=192.168.10.11
    gateway=192.168.10.10
    netmask=255.255.255.0
    bootargs=console=ttyS0,115200n8 noinitrd rw ip=192.168.10.11:192.168.10.10:192.168.10.10:255.255.255.0:::off root=/dev/nfs nfsroot=192.168.10.10:/home/ns/workdir/filesys,nolock mem=120M
    stdin=serial
    stdout=serial
    stderr=serial
    videostd=pal

    Re-booting I have the same problems as yesterday.

    UFW is disabled so no firewall is running.

    I've lauched Wireshark and I got the following log:

     

    No.     Time        Source                Destination           Protocol Info
          1 0.000000    192.168.10.10         224.0.0.22            IGMP     V3 Membership Report / Join group 224.0.0.251 for any sources
          2 0.092783    192.168.10.10         224.0.0.251           MDNS     Standard query PTR _pgpkey-hkp._tcp.local, "QM" question
          3 0.243727    192.168.10.10         224.0.0.251           MDNS     Standard query ANY c.0.a.7.4.0.e.f.f.f.6.b.0.5.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa, "QM" question ANY ns04.local, "QM" question ANY 10.10.168.192.in-addr.arpa, "QM" question ANY ns04 [00:50:b6:04:7a:0c]._workstation._tcp.local, "QM" question
          4 0.293364    192.168.10.10         224.0.0.251           MDNS     Standard query response PTR _workstation._tcp.local PTR ns04 [00:50:b6:04:7a:0c]._workstation._tcp.local
          5 0.494570    192.168.10.10         224.0.0.251           MDNS     Standard query ANY c.0.a.7.4.0.e.f.f.f.6.b.0.5.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa, "QM" question ANY ns04.local, "QM" question ANY 10.10.168.192.in-addr.arpa, "QM" question ANY ns04 [00:50:b6:04:7a:0c]._workstation._tcp.local, "QM" question
          6 0.644414    Spectrum_02:c2:c2     Broadcast             ARP      Who has 192.168.10.10?  Tell 192.168.10.11
          7 0.644470    GoodWayI_04:7a:0c     Spectrum_02:c2:c2     ARP      192.168.10.10 is at 00:50:b6:04:7a:0c
          8 0.644771    192.168.10.11         192.168.10.10         Portmap  V2 GETPORT Call (Reply In 9) NFS(100003) V:2 UDP
          9 0.645596    192.168.10.10         192.168.10.11         Portmap  V2 GETPORT Reply (Call In 8) PROGRAM_NOT_AVAILABLE
         10 0.657660    192.168.10.11         192.168.10.10         Portmap  V2 GETPORT Call (Reply In 11) MOUNT(100005) V:1 UDP
         11 0.658184    192.168.10.10         192.168.10.11         Portmap  V2 GETPORT Reply (Call In 10) PROGRAM_NOT_AVAILABLE
         12 0.665912    192.168.10.11         192.168.10.10         MOUNT    V1 MNT Call /home/ns/workdir/filesys
         13 0.665965    192.168.10.10         192.168.10.11         ICMP     Destination unreachable (Port unreachable)
         14 0.724659    fe80::20e:99ff:fe02:c2c2 ff02::2               ICMPv6   Router solicitation
         15 0.755689    192.168.10.10         224.0.0.251           MDNS     Standard query ANY c.0.a.7.4.0.e.f.f.f.6.b.0.5.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa, "QM" question ANY ns04.local, "QM" question ANY 10.10.168.192.in-addr.arpa, "QM" question ANY ns04 [00:50:b6:04:7a:0c]._workstation._tcp.local, "QM" question
         16 0.946167    192.168.10.10         224.0.0.251           MDNS     Standard query response PTR, cache flush ns04.local A, cache flush 192.168.10.10 PTR, cache flush ns04.local HINFO, cache flush I686 LINUX SRV, cache flush 0 0 9 ns04.local TXT, cache flush AAAA, cache flush fe80::250:b6ff:fe04:7a0c
         17 1.097355    192.168.10.10         224.0.0.251           MDNS     Standard query PTR _pgpkey-hkp._tcp.local, "QM" question
         18 1.494502    192.168.10.10         224.0.0.251           MDNS     Standard query response PTR _workstation._tcp.local PTR ns04 [00:50:b6:04:7a:0c]._workstation._tcp.local TXT, cache flush SRV, cache flush 0 0 9 ns04.local AAAA, cache flush fe80::250:b6ff:fe04:7a0c A, cache flush 192.168.10.10
         19 2.146211    192.168.10.10         224.0.0.251           MDNS     Standard query response PTR, cache flush ns04.local PTR, cache flush ns04.local HINFO, cache flush I686 LINUX SRV, cache flush 0 0 9 ns04.local A, cache flush 192.168.10.10 TXT, cache flush AAAA, cache flush fe80::250:b6ff:fe04:7a0c
         20 2.588001    192.168.10.10         224.0.0.22            IGMP     V3 Membership Report / Join group 224.0.0.251 for any sources
         21 3.097904    192.168.10.10         224.0.0.251           MDNS     Standard query PTR _pgpkey-hkp._tcp.local, "QM" question
         22 3.695125    192.168.10.10         224.0.0.251           MDNS     Standard query response PTR _workstation._tcp.local PTR ns04 [00:50:b6:04:7a:0c]._workstation._tcp.local TXT, cache flush SRV, cache flush 0 0 9 ns04.local AAAA, cache flush fe80::250:b6ff:fe04:7a0c A, cache flush 192.168.10.10
         23 4.346943    192.168.10.10         224.0.0.251           MDNS     Standard query response PTR, cache flush ns04.local A, cache flush 192.168.10.10 PTR, cache flush ns04.local HINFO, cache flush I686 LINUX SRV, cache flush 0 0 9 ns04.local TXT, cache flush AAAA, cache flush fe80::250:b6ff:fe04:7a0c
         24 4.725078    fe80::20e:99ff:fe02:c2c2 ff02::2               ICMPv6   Router solicitation
         25 5.643970    GoodWayI_04:7a:0c     Spectrum_02:c2:c2     ARP      Who has 192.168.10.11?  Tell 192.168.10.10
         26 5.644314    Spectrum_02:c2:c2     GoodWayI_04:7a:0c     ARP      192.168.10.11 is at 00:0e:99:02:c2:c2
         27 5.665333    192.168.10.11         192.168.10.10         MOUNT    [RPC retransmission of #12]V1 MNT Call /home/ns/workdir/filesys
         28 5.665397    192.168.10.10         192.168.10.11         ICMP     Destination unreachable (Port unreachable)
         29 7.100643    192.168.10.10         224.0.0.251           MDNS     Standard query PTR _pgpkey-hkp._tcp.local, "QM" question
         30 8.725090    fe80::20e:99ff:fe02:c2c2 ff02::2               ICMPv6   Router solicitation
         31 15.103695   192.168.10.10         224.0.0.251           MDNS     Standard query PTR _pgpkey-hkp._tcp.local, "QM" question
         32 15.665225   192.168.10.11         192.168.10.10         MOUNT    [RPC retransmission of #12]V1 MNT Call /home/ns/workdir/filesys
         33 15.665276   192.168.10.10         192.168.10.11         ICMP     Destination unreachable (Port unreachable)
         34 31.118290   192.168.10.10         224.0.0.251           MDNS     Standard query PTR _pgpkey-hkp._tcp.local, "QM" question
         35 63.130508   192.168.10.10         224.0.0.251           MDNS     Standard query PTR _pgpkey-hkp._tcp.local, "QM" question
         36 127.131926  192.168.10.10         224.0.0.251           MDNS     Standard query PTR _pgpkey-hkp._tcp.local, "QM" question
         37 255.156106  192.168.10.10         224.0.0.251           MDNS     Standard query PTR _pgpkey-hkp._tcp.local, "QM" question

     

    Actually don't know what to do now. I'm wasting a lot of time and up to now I can't even switch on or off a led....really disappointing.

    Thanks for your help,

    Simone

     

  • This may be an obvious statement, but do you have the NFS server running on your laptop which is running ubuntu as well as the target filesystem directory exported via the /etc/exports file?

    In the discussion above, there was mention of shutting down the firewall, which you indicated you have.  DHCP is clearly running because you were able to get the proper IP address.

    I would look to make sure the NFS server is operational.

  • Finally I got it.

    Following BrandonAzbell suggestion I just did not consider the 'Getting started guide'  and searched on Ubuntu forums.

    This link https://help.ubuntu.com/community/NFSv4Howto solved my problems.

    Now I've some other troubles (actually too much for an evaluation product!) but I'll post them in another thread.

    Thanks everybody,

    s.