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 fails in mounting- Arago Demo image/OMAP L138

Other Parts Discussed in Thread: OMAP-L138, DA8XX, PMP

Hi

 

Currently iam using the Hawk board OMAP L138. I downloaded Arago demo fs TAR from TI site.Iam finding below error messages

 

davinci_emac_probe: using random MAC addr: b6:5e:3a:43:ad:95
emac-mii: probed
ata1: SATA link down (SStatus 0 SControl 300)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:07, id=7c0f1)
Sending DHCP requests .
PHY: 1:07 - Link is Up - 100/Full
., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.3
IP-Config: Complete:
     device=eth0, addr=192.168.1.3, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.3, domain=, nis-domain=(none),
     bootserver=0.0.0.0, rootserver=192.168.1.2, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.2
rpcbind: server 192.168.1.2 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.1.2
rpcbind: server 192.168.1.2 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /home/OMAP35x/filesys2
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:
1f00             128 mtdblock0 (driver?)
1f01             128 mtdblock1 (driver?)
1f02             512 mtdblock2 (driver?)
1f03            2048 mtdblock3 (driver?)
1f04          126976 mtdblock4 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

 

My u-boot settings are below

 

bootdelay=3
baudrate=115200
bootfile="uImage"
ethaddr=0a:c1:a8:12:fa:c0
bootcmd=nand read.e 0xc1180000 0x400000 0x800000;nand read.e 0xc0700000 0x200000 0x200000;bootm 0xc0700000
ipaddr=192.168.1.3
serverip=192.168.1.2
bootargs=mem=128M console=ttyS2,115200n8 root=/dev/nfs nfsroot=192.168.1.2:/home/OMAP35x/filesys2 ip=dhcp
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.01 (Dec 22 2009 - 10:04:02)

 

I downloaded the PSP also from the ti site "DaVinci-PSP-SDK-03.20.00.11"... I tried to use the kernel image in it... But it is not booting.so

i used the kernel in the nand flash by issuing command

nand read.e 0xc0700000 0x200000 0x200000

then boot from there using below command

bootm 0xc0700000

Regarding the exports,KIndly have a look after cat /etc/exports

# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)

/export 192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async)
/export/fs 192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async,no_root_squash)
/export/kernel 192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async)

/home/OMAP35x/filesys 192.168.1.0/24(rw,no_root_squash,async)

/home/OMAP35x/filesys2 192.168.1.0/24(rw,no_root_squash,async) -> This is the nfs fs to be mounted..

i followed as per below link

http://processors.wiki.ti.com/index.php/GSG:_Setting_up_OMAP-L1_Target_File_System#Exporting_a_Shared_File_System_for_Target_Access

Still confused where is the problem..KIndly help me

REgards
Vijayabharathi C


  • It all looks good until the target (192.168.1.3) tries to connect to the NFS server (192.168.1.2). I notice a lot of other entries in your exports file. Doe that mean the NFS server has worked for other targets?

     

  • Now iam getting below error. KIndly help me in solving this issue.Iam using the same image of filesystem provided in TI downloads area..

     

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/sdk/omap_l138/1_00/latest/index_FDS.html

    Please suggest some working file system for hawk board OMAP L138

     

    ## Booting kernel from Legacy Image at c0700000 ...
       Image Name:   Linux-2.6.32-rc6
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1933936 Bytes =  1.8 MB
       Load Address: c0008000
       Entry Point:  c0008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Linux version 2.6.32-rc6 (root@vijayabharathi-laptop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 PREEMPT Fri Apr 22 21:17:31 IST 2011
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    CPU: VIVT data cache, VIVT instruction cache
    Machine: OMAPL 138 Hawkboard.org
    Memory policy: ECC disabled, Data cache writeback
    DaVinci da850/omap-l138 variant 0x0
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
    Kernel command line: mem=128M console=ttyS2,115200n8 root=/dev/nfs nfsroot=10.0.6.106:/root/filesys4 ip=dhcp
    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: 128MB = 128MB total
    Memory: 125652KB available (3684K code, 272K data, 148K 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... 149.50 BogoMIPS (lpj=747520)
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    DaVinci: 144 gpio irqs
    regulator: core version 0.5
    NET: Registered protocol family 16
    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
    Switching to clocksource timer0_1
    musb_hdrc: version 6.0, cppi4.1-dma, (host+peripheral), debug=0
    Waiting for USB PHY clock good...
    musb_hdrc: USB OTG mode controller at fee00000 using DMA, IRQ 58
    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 245
    io scheduler noop registered
    io scheduler anticipatory registered (default)
    da8xx_lcdc da8xx_lcdc.0: GLCD: Found VGA_Monitor panel
    Console: switching to colour frame buffer device 80x30
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A
    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A
    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A
    console [ttyS2] enabled
    brd: module loaded
    ahci ahci: forcing PORTS_IMPL to 0x1
    ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci
    ata1: SATA max UDMA/133 irq 67
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xa1 (Micron NAND 128MiB 1,8V 8-bit)
    Bad block table not found for chip 0
    Bad block table not found for chip 0
    Scanning device for bad blocks
    Creating 5 MTD partitions on "davinci_nand.1":
    0x000000000000-0x000000020000 : "u-boot env"
    0x000000020000-0x000000040000 : "UBL"
    0x000000040000-0x0000000c0000 : "u-boot"
    0x000000200000-0x000000400000 : "kernel"
    0x000000400000-0x000008000000 : "filesystem"
    davinci_nand davinci_nand.1: controller rev. 2.5
    console [netcon0] enabled
    netconsole: network logging started
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    ohci ohci.0: DA8xx OHCI
    ohci ohci.0: new USB bus registered, assigned bus number 2
    ohci ohci.0: irq 59, io mem 0x01e25000
    usb usb2: configuration #1 chosen from 1 choice
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    g_ether gadget: using random self ethernet address
    g_ether gadget: using random host ethernet address
    usb0: MAC 9e:a5:08:5a:f9:d4
    usb0: HOST MAC 3e:98:c9:03:7e:c1
    g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
    g_ether gadget: g_ether ready
    mice: PS/2 mouse device common for all mice
    i2c /dev entries driver
    watchdog watchdog: heartbeat 60 sec
    cpuidle: using governor ladder
    cpuidle: using governor menu
    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    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
    ALSA device list:
      #0: DA850/OMAP-L138 EVM (tlv320aic3x)
    TCP cubic registered
    NET: Registered protocol family 17
    Clocks: disable unused emac
    Clocks: disable unused spi1
    davinci_emac_probe: using random MAC addr: 9a:1f:b9:25:3f:9c
    emac-mii: probed
    ata1: SATA link down (SStatus 0 SControl 300)
    eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:07, id=7c0f1)
    Sending DHCP requests .
    PHY: 1:07 - Link is Up - 100/Full
    DHCP/BOOTP: Reply not for us, op[2] xid[27d70c51]
    ., OK
    IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.7.203
    IP-Config: Complete:
         device=eth0, addr=10.0.7.203, mask=255.255.248.0, gw=10.0.0.14,
         host=10.0.7.203, domain=in.megatrends.com, nis-domain=(none),
         bootserver=0.0.0.0, rootserver=10.0.6.106, rootpath=
    Looking up port of RPC 100003/2 on 10.0.6.106
    Looking up port of RPC 100005/1 on 10.0.6.106
    VFS: Mounted root (nfs filesystem) on device 0:12.
    Freeing init memory: 148K
    INIT: version 2.86 booting
    Please wait: booting...
    Starting udev
    udev: starting version 141
    udevd[453]: inotify_add_watch(3, (null), 10) failed: Bad address

    Remounting root file system...
    NET: Registered protocol family 10
    root: mount: mounting rootfs on / failed: No such file or directory
    root: mount: mounting usbfs on /proc/bus/usb failed: No such file or directory
    Setting up IP spoofing protection: rp_filter.
    Configuring network interfaces... udhcpc (v1.13.2) started
    Sending discover...
    Sending select for 10.0.7.203...
    Lease of 10.0.7.203 obtained, lease time 1299660
    adding dns 10.0.0.31
    adding dns 10.0.0.32
    done.
    INIT: Entering runlevel: 5
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.

     _____                    _____           _         _  
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_| 
                  |___|                    |___|           

    Arago Project http://arago-project.org da850-omapl138-evm ttyS2

    Arago 2009.11 da850-omapl138-evm ttyS2

    da850-omapl138-evm login: Internal error: Oops - undefined instruction: 0 [#1] PREEMPT
    last sysfs file: /sys/kernel/uevent_seqnum
    Modules linked in: minix ipv6
    CPU: 0    Not tainted  (2.6.32-rc6 #1)
    PC is at ip_route_input+0x714/0x1024
    LR is at ip_route_input+0x6f4/0x1024
    pc : [<c0288410>]    lr : [<c02883f0>]    psr: a0000013
    sp : c03c7cb8  ip : 00000000  fp : c03c7d5c
    r10: 1a06000a  r9 : c7adc600  r8 : 1906000a
    r7 : c7863000  r6 : c03c7cd8  r5 : 00000000  r4 : 00000003
    r3 : 00000000  r2 : fffffffc  r1 : 00000000  r0 : c03c7d14
    Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
    Control: 0005317f  Table: c79f8000  DAC: 00000017
    Process swapper (pid: 0, stack limit = 0xc03c6270)
    Stack: (0xc03c7cb8 to 0xc03c8000)
    7ca0:                                                       c0098d7c c00976b0
    7cc0: c79b3800 00000013 00000000 c7abb900 c03c7d04 c03c7ce0 00000000 00000003
    7ce0: 00000000 1a06000a 1906000a 00000000 00000000 00000000 00000000 00000000
    7d00: 00000000 00000000 00000000 00000000 00000000 c03c7d20 c02644e4 c7abb180
    7d20: c03c7dbc c7adc600 c03c7d4c 00000000 c0263ca4 c79b1842 00000001 c79b1830
    7d40: c7863000 c7adc600 c79b1838 c79b1838 c03c7dec c03c7d60 c02af3fc c0287d0c
    7d60: c7863000 00000000 c03c865c c03c86dc c03c7dbc c7abb900 c0099f68 c00989fc
    7d80: c0099f68 c0265728 ffffffff c780037c 00000000 00000000 a0000093 00000020
    7da0: 00000800 c0265728 c000003c 00000000 c03c7dec c7adc600 1a06000a 1906000a
    7dc0: c03c86dc c7abb900 c7abb900 c7863000 c7863000 00000000 c000003c c04040a8
    7de0: c03c7e1c c03c7df0 c02af9b4 c02af1e0 fee21ec0 c7863000 c03c7e24 c03c7e08
    7e00: c0033ce8 c7abb900 c0404088 00000608 c03c7e4c c03c7e20 c026bba8 c02af8a4
    7e20: c03c7e4c c03c7e30 0000003c c7afb080 c78632c0 c7abb900 c03c6000 80000013
    7e40: c03c7eac c03c7e50 c01f4178 c026b82c 00922670 00000000 00000040 c78632cc
    7e60: c7863000 c78631f8 00000001 00000000 c7abb900 c79b1822 0000003c c79eb840
    7e80: 00000000 c78632cc c03c6000 00000040 00000001 00000003 0000012c 00000000
    7ea0: c03c7ee4 c03c7eb0 c026c410 c01f3d70 00000000 ffff9479 c03c7efc 00000103
    7ec0: c03c6000 0000000c 00000001 00000003 0000000a c03ef440 c03c7f1c c03c7ee8
    7ee0: c0048b78 c026c36c c03d0a0c c03c6000 00000022 00000022 00000000 00000004
    7f00: 00000002 00000001 c03c6000 c0025004 c03c7f2c c03c7f20 c0048c50 c0048b04
    7f20: c03c7f44 c03c7f30 c002d074 c0048c14 ffffffff febfd000 c03c7f9c c03c7f48
    7f40: c002daec c002d010 00000000 0005317f 0005217f 60000013 c03c6000 c03ea5dc
    7f60: c0026e14 c03ca3c8 c0025038 41069265 c0025004 c03c7f9c 600000d3 c03c7f90
    7f80: c002f060 c002f06c 60000013 ffffffff c03c7fb4 c03c7fa0 c002f5b0 c002f048
    7fa0: c03c6000 c03ea5dc c03c7fcc c03c7fb8 c02eb578 c002f548 c03f1f9c c03ea5dc
    7fc0: c03c7ff4 c03c7fd0 c00089b8 c02eb510 c00084f0 00000000 00000000 c0026e18
    7fe0: 00053175 c03ea684 00000000 c03c7ff8 c0008034 c000875c 00000000 00000000
    Backtrace:
    [<c0287cfc>] (ip_route_input+0x0/0x1024) from [<c02af3fc>] (arp_process+0x22c/0x6b0)
    [<c02af1d0>] (arp_process+0x0/0x6b0) from [<c02af9b4>] (arp_rcv+0x120/0x140)
    [<c02af894>] (arp_rcv+0x0/0x140) from [<c026bba8>] (netif_receive_skb+0x38c/0x3ec)
     r6:00000608 r5:c0404088 r4:c7abb900
    [<c026b81c>] (netif_receive_skb+0x0/0x3ec) from [<c01f4178>] (emac_poll+0x418/0x66c)
    [<c01f3d60>] (emac_poll+0x0/0x66c) from [<c026c410>] (net_rx_action+0xb4/0x230)
    [<c026c35c>] (net_rx_action+0x0/0x230) from [<c0048b78>] (__do_softirq+0x84/0x110)
    [<c0048af4>] (__do_softirq+0x0/0x110) from [<c0048c50>] (irq_exit+0x4c/0xb0)
    [<c0048c04>] (irq_exit+0x0/0xb0) from [<c002d074>] (asm_do_IRQ+0x74/0x8c)
    [<c002d000>] (asm_do_IRQ+0x0/0x8c) from [<c002daec>] (__irq_svc+0x4c/0x9c)
    Exception stack(0xc03c7f48 to 0xc03c7f90)
    7f40:                   00000000 0005317f 0005217f 60000013 c03c6000 c03ea5dc
    7f60: c0026e14 c03ca3c8 c0025038 41069265 c0025004 c03c7f9c 600000d3 c03c7f90
    7f80: c002f060 c002f06c 60000013 ffffffff
     r5:febfd000 r4:ffffffff
    [<c002f038>] (default_idle+0x0/0x38) from [<c002f5b0>] (cpu_idle+0x78/0xec)
    [<c002f538>] (cpu_idle+0x0/0xec) from [<c02eb578>] (rest_init+0x78/0x8c)
     r5:c03ea5dc r4:c03c6000
    [<c02eb500>] (rest_init+0x0/0x8c) from [<c00089b8>] (start_kernel+0x26c/0x2c4)
     r5:c03ea5dc r4:c03f1f9c
    [<c000874c>] (start_kernel+0x0/0x2c4) from [<c0008034>] (__enable_mmu+0x0/0x2c)
    Code: e50b4080 e50b507c e50ba078 e50b8074 (e54b3070)
    ---[ end trace 0eabe60207f0bcbe ]---
    Kernel panic - not syncing: Fatal exception in interrupt

     

    REgards

    Vijayabharathi C

     

  • Can anybody help me to solve this issue


  • Hi

    After changing some settings related to DDR registers, i found considerable improvement in mounting of NFS file system to hawk board.
    Now TI's nfs image(Arago demo) is working. I tried Ubuntu image also.. its too working.. I didnt change anything related to filesystem,but changed just DDR settings in u-boot. DDR speed is still 150Mhz.. This results makes to suspect that DDR layout in hawk board may be problem..

    I changed below registers

    SDCR                 (SDRAM Configuration Register) -- 0x174632  --- For DDR2, weak drive strength.
    DRPYC1R                 DDR PHY Control Register 1  -- 0x45      --- Receivers powered down when idle.

    Regards
    Vijayabharathi C

     

  • The Hawkboard has known issues with DDR. See here:

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/89852.aspx

    Looks like you found a work-around. Amazing.