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.

Ethernet (CPSW) stops working after a short while in DM385 with MII KSZ8001L and kernel 2.6.37 and NFSv2: NETDEV WATCHDOG: eth0 (cpsw): transmit queue 0 timed out

Other Parts Discussed in Thread: DM388, DM385

Hi,

We are developing a board based on Appro DM388 IPNC, but with an MII PHY component: KSZ8001L because the original could not be ordered. U-Boot works well in downloading files from the ethernet. The kernel, 2.6.37, however, starts up well and connects with NFS to the PC, but very soon stops working randomly and after a while we see:

nfs: server 10.X.X.X not responding, still trying
nfs: server 10.X.X.X not responding, still trying

WARNING: at net/sched/sch_generic.c:258 dev_watchdog+0x144/0x22c()
NETDEV WATCHDOG: eth0 (cpsw): transmit queue 0 timed out
Modules linked in:
Backtrace:
[<c004c274>] (dump_backtrace+0x0/0x110) from [<c03cf0e4>] (dump_stack+0x18/0x1c)

r6:c04dfc45 r5:00000102 r4:c0511e10 r3:c052b5b4
[<c03cf0cc>] (dump_stack+0x0/0x1c) from [<c00706d8>] (warn_slowpath_common+0x54/
0x6c)
[<c0070684>] (warn_slowpath_common+0x0/0x6c) from [<c0070794>] (warn_slowpath_fm
t+0x38/0x40)
r8:c0574f0c r7:c0574d0c r6:00000000 r5:c058ef00 r4:cc962000
r3:00000009
[<c007075c>] (warn_slowpath_fmt+0x0/0x40) from [<c0338cac>] (dev_watchdog+0x144/
0x22c)
r3:cc962000 r2:c04dfc5d
[<c0338b68>] (dev_watchdog+0x0/0x22c) from [<c007ae20>] (run_timer_softirq+0x148
/0x1e8)
r6:00000100 r5:c0510000 r4:c0574500
[<c007acd8>] (run_timer_softirq+0x0/0x1e8) from [<c00756d4>] (__do_softirq+0x7c/
0x10c)
[<c0075658>] (__do_softirq+0x0/0x10c) from [<c00757ac>] (irq_exit+0x48/0x94)
[<c0075764>] (irq_exit+0x0/0x94) from [<c003e07c>] (asm_do_IRQ+0x7c/0x9c)
[<c003e000>] (asm_do_IRQ+0x0/0x9c) from [<c03d10f4>] (__irq_svc+0x34/0xa0)
Exception stack(0xc0511f40 to 0xc0511f88)
1f40: fe500000 fe600000 40000013 c0553244 00000814 c002de88 bfffffff c0514074
1f60: 80000000 413fc082 0000001f c0511f9c c0511f88 c0511f88 c00590b4 c00590c0
1f80: a0000013 ffffffff
r5:fa200000 r4:ffffffff
[<c0059044>] (ti81xx_idle+0x0/0x90) from [<c0049c74>] (cpu_idle+0x50/0x90)
r4:c0510000 r3:c0059044
[<c0049c24>] (cpu_idle+0x0/0x90) from [<c03ca1d0>] (rest_init+0x60/0x78)
r4:c057747c r3:00000000
[<c03ca170>] (rest_init+0x0/0x78) from [<c0008ca0>] (start_kernel+0x260/0x2b4)
[<c0008a40>] (start_kernel+0x0/0x2b4) from [<80008048>] (0x80008048)
r6:c002de84 r5:c0552fdc r4:10c53c7d
---[ end trace fa192148c3610391 ]---
nfs: server 10.X.X.X not responding, still trying

I suspect this needs some software fix in the kernel, but what can that be?

  • Hi Gadi,

    Gadi Bergman said:
    We are developing a board based on Appro DM388 IPNC, but with an MII PHY component: KSZ8001L because the original could not be ordered.

    For porting custom ethernet PHY in u-boot/linux kernel, make sure you are aligned with the below wiki page:

    Gadi Bergman said:
    U-Boot works well in downloading files from the ethernet.

    Can you provide full boot up log of the u-boot? Can you also try command in u-boot, commands like "dhcp", "ping", "tftpboot", "bootp", are these commands work fine?

    Gadi Bergman said:

    The kernel, 2.6.37, however, starts up well and connects with NFS to the PC, but very soon stops working randomly and after a while we see:

    nfs: server 10.X.X.X not responding, still trying
    nfs: server 10.X.X.X not responding, still trying

    Can you provide us the whole linux kernel boot up log, not only the last part of it?


    Regards,
    Pavel

  • Also, the below e2e thread looks similar to your issue:

    e2e.ti.com/.../353786

    BR
    Pavel
  • Hi Pavel,

    Thank you for the porting guide link. I have added the Micrel Phy driver and it seemed to have some effect, at least on the kernel logs, but it did not solve the issue, but I think I can redefine the issue as - ethernet stops working after a period of about 15-20 seconds of inactivity, at least it seems so now with the current configuration. I don't see the NETDEV WATCHDOG any more though.

    U-Boot

    U-Boot 2010.06-svn302 (Jan 10 2016 - 13:55:06) DM385_PMRS_0.00.00

    DM385-GP rev 1.1

    ARM clk: 600MHz

    DDR clk: 533MHz

    L3 clk:  200MHz

    IVA clk: 450MHz

    ISS clk: 400MHz

    DSP Default OFF

    DSS Default OFF

    DRAM:  1 GiB

    DCACHE:  Off

    NAND:  HW ECC BCH8 Selected

    256 MiB

    Using default environment

    The 2nd stage U-Boot will now be auto-loaded

    Please do not interrupt the countdown till DM385_IPNC prompt if 2nd stage is already flashed

    Hit any key to stop autoboot:  0

    NAND read: device 0 offset 0x100000, size 0x40000

    262144 bytes read: OK

    ## Starting application at 0x80800000 ...

    U-Boot 2010.06-svn302 (Feb 15 2016 - 18:47:36) DM385_PMRS_0.00.00

    DM385-GP rev 1.1

    ARM clk: 600MHz

    DDR clk: 533MHz

    L3 clk:  200MHz

    IVA clk: 450MHz

    ISS clk: 400MHz

    DSP Default OFF

    DSS Default OFF

    I2C:   ready

    DRAM:  1 GiB

    DCACHE:  On

    NAND:  HW ECC BCH8 Selected

    256 MiB

    MMC:   OMAP SD/MMC: 0, ON-BOARD SDIO: 1

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    @@                                                               @@

    @@                                                               @@

    @@                                                               @@

    @@                                                               @@

    @@      @@@        @.   @.         @@@@    @@@@  G@@@@@@         @@

    @@      @@@@@     L@@  @@@        @@@@@@  @@@@@i @@@@@@          @@

    @@      @@ @@@.   @@@  @@@            @@  @,  @@ :@@             @@

    @@      @@   @@   @@@  @@@          @@@@  @@;@@: C@@@@@.         @@

    @@      @@    @@  @@@.l@L@         G@@@   ,@@@@  @@@  @@         @@

    @@      @@    @@ l@ @@@@ @.          l@@  @@ L@@  @   G@         @@

    @@      @@    @@ @@ @@@@ @@           @@ C@   @@      @@         @@

    @@      @@   ,@C @@ @@@  @@       @i  @@ C@   @@ @@   @@         @@

    @@      @@@@@@@  @@  @@  @@       @@@@@l  @@@@@@ L@@@@@          @@

    @@       @@@@@   @   @    @        L@@     @@@,   ,@@G           @@

    @@                                                               @@

    @@                                                               @@

    @@                                                               @@

    @@                                                               @@

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Net:   Ethernet clocking: 0x52

    Detected MACID:64:34:3a:66:35:3a

    cpsw

    Hit any key to stop autoboot:  3 2 1 0

    NAND read: device 0 offset 0x400000, size 0x400000

    4194304 bytes read: OK

    ## Booting kernel from Legacy Image at 81000000 ...

      Image Name:   Linux-2.6.37_DM388_IPNC_3.80.00-

      Image Type:   ARM Linux Kernel Image (uncompressed)

      Data Size:    2655528 Bytes = 2.5 MiB

      Load Address: 80008000

      Entry Point:  80008000

      Verifying Checksum ... OK

      Loading Kernel Image ... OK

    OK

    Starting kernel ...

    Kernel

    Linux version 2.6.37_DM388_IPNC_3.80.00-svn307 (gadi@debian-g41) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #17 Fri Feb 19 10:16:46 IST 2016
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: pmrs1000
    vram size = 52428800 at 0x0
    ti81xx_reserve: ### Reserved DDR region @8ff00000
    reserved size = 52428800 at 0x0
    FB: Reserving 52428800 bytes SDRAM for VRAM
    Memory policy: ECC disabled, Data cache writeback
    OMAP chip is DM385 1.0
    SRAM: Mapped pa 0x402f1000 to va 0xfe400000 size: 0xf000
    Built 1 zonelists in Zone order, mobility grouping on. Total pages: 51968
    Kernel command line: console=ttyO0,115200n8 mem=256M notifyk.vpssm3_sva=0xBF900000 vram=50M lpj=4997120 ip=10.0.4.24 root=/dev/nfs nfsroot=10.30.40.50:/cygdrive/f/svn_root/rfs1000/rootfs,nolock,nfsvers=2
    PID hash table entries: 1024 (order: 0, 4096 bytes)
    Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Memory: 204MB 1MB = 205MB total
    Memory: 201908k/201908k available, 60236k reserved, 0K highmem
    Virtual kernel memory layout:
    vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
    vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
    lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
    pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    .init : 0xc0008000 - 0xc003e000 ( 216 kB)
    .text : 0xc003e000 - 0xc0510000 (4936 kB)
    .data : 0xc0510000 - 0xc05530c0 ( 269 kB)
    SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:375
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    GPMC revision 6.0
    Trying to install interrupt handler for IRQ368
    Trying to install interrupt handler for IRQ369
    Trying to install interrupt handler for IRQ370
    Trying to install interrupt handler for IRQ371
    Trying to install interrupt handler for IRQ372
    Trying to install interrupt handler for IRQ373
    Trying to install interrupt handler for IRQ374
    Trying to install type control for IRQ375
    Trying to set irq flags for IRQ375
    OMAP clockevent source: GPTIMER1 at 20000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop (skipped) preset value.. 999.42 BogoMIPS (lpj=4997120)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    devtmpfs: initialized
    TI81XX: Map 0x8ff00000 to 0xfe500000 for dram barrier
    TI81XX: Map 0x40300000 to 0xfe600000 for sram barrier
    omap_voltage_early_init: voltage driver support not added
    NET: Registered protocol family 16
    omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
    omap_voltage_add_dev: VDD specified does not exist!
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    omap_mux_init: Add partition: #1: core, flags: 4
    ti81xx_register_mcasp: platform not supported
    Cannot clk_get ck_32
    Debugfs: Only enabling/disabling deep sleep and wakeup timer is supported now
    registered ti81xx_vpss device
    registered ti81xx on-chip HDMI device
    registered ti81xx_fb device
    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
    USBSS revision 4ea2080b
    registerd cppi-dma Intr @ IRQ 17
    Cppi41 Init Done
    omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Switching to clocksource gp timer
    musb-hdrc: version 6.0, otg (peripheral+host), debug=0
    musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    MUSB controller-0 revision 4ea20800
    usb2phy: computed values rxcalib(15)DACs(37 14 15)
    usb2phy: override computed values rxcalib(15)DACs(37 14 15)
    usb2phy_config: musb(0) rxcalib done, rxcalib read value 6f72dd7e
    musb-hdrc musb-hdrc.0: USB OTG mode controller at d081e000 using DMA, IRQ 18
    musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    MUSB controller-1 revision 4ea20800
    usb2phy: computed values rxcalib(15)DACs(37 15 15)
    usb2phy: override computed values rxcalib(15)DACs(37 15 15)
    usb2phy_config: musb(1) rxcalib done, rxcalib read value 6f72df7e
    musb-hdrc musb-hdrc.1: USB OTG mode controller at d0828800 using DMA, IRQ 19
    NET: Registered protocol family 2
    IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 8192 bind 8192)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    NetWinder Floating Point Emulator V0.97 (double precision)
    PMU: registered new PMU device of type 0
    omap-iommu omap-iommu.0: ducati registered
    omap-iommu omap-iommu.1: sys registered
    JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    msgmni has been set to 394
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
    console [ttyO0] enabled
    omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    brd: module loaded
    loop: module loaded
    omap2-nand driver initializing
    ONFI param page 0 valid
    ONFI flash detected
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bit)
    omap2-nand: detected x16 NAND flash
    Creating 7 MTD partitions on "omap2-nand.0":
    0x000000000000-0x000000200000 : "U-Boot"
    0x000000400000-0x000002000000 : "Kernel"
    0x000002000000-0x000004000000 : "ubifs"
    0x000004000000-0x000008000000 : "cramfs"
    0x000008000000-0x00000ff80000 : "ex4"
    0x000000000000-0x00000ff80000 : "flash"
    0x000000300000-0x000000400000 : "uboot-env"
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    davinci_mdio davinci_mdio.0: detected phy mask fffffffc
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver Micrel KS8001 or KS8721
    davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver Micrel KS8001 or KS8721
    usbcore: registered new interface driver cdc_acm
    cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
    usbcore: registered new interface driver uas
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    mice: PS/2 mouse device common for all mice
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    i2c /dev entries driver
    Linux video capture interface: v2.00
    OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    notify_shm_drv: no DSP present (MULTIPROC_INVALIDID)
    notify_init : notify drivercreated for remote proc id 1 at physical Address 0xbf900000
    cm: Module associated with clock hdmi_i2s_fck didn't enable in 100000 tries
    ALSA device list:
    No soundcards found.
    nf_conntrack version 0.5.0 (3154 buckets, 12616 max)
    ip_tables: (C) 2000-2006 Netfilter Core Team
    TCP cubic registered
    NET: Registered protocol family 17
    Bridge firewalling registered
    lib80211: common routines for IEEE802.11 drivers
    Registering the dns_resolver key type
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    omap_voltage_late_init: Voltage driver support not added
    Power Management for TI81XX.
    Detected MACID=d4:f5:13:94:e1:ac
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)

    CPSW phy found : id is : 0x221613

    CPSW phy found : id is : 0x221613
    IP-Config: Guessing netmask 255.0.0.0
    IP-Config: Complete:
    device=eth0, addr=10.0.4.24, mask=255.0.0.0, gw=255.255.255.255,
    host=10.0.4.24, domain=, nis-domain=(none),
    bootserver=255.255.255.255, rootserver=10.30.40.50, rootpath=
    PHY: 0:01 - Link is Up - 0/Half
    Link is up. Setting carrier on.
    Link is up. Waking up queue.
    PHY: 0:01 - Link is Down
    Link is down. Setting carrier off and stopping queue!
    PHY: 0:00 - Link is Up - 100/Full
    Link is up. Setting carrier on.
    Link is up. Waking up queue.
    PHY: 0:01 - Link is Up - 100/Full
    VFS: Mounted root (nfs filesystem) on device 0:14.
    devtmpfs: mounted
    Freeing init memory: 216K
    INIT: version 2.86 booting
    Please wait: booting...
    set reboot on kernel panic
    starting mdev
    mdev done.
    Activating swap
    Root filesystem already rw, not remounting
    Mounting local filesystems...
    root: mount: mounting usbfs on /proc/bus/usb failed: No such file or directory
    root: mount: mounting /dev/mtdblock4 on /big_part failed: Invalid argument
    Populating volatile Filesystems.
    Setting up IP spoofing protection: rp_filter.
    Configuring network interfaces... done.
    System time was Sat Jan 1 00:00:11 UTC 2000.
    Setting the System Clock using the Hardware Clock as reference...
    System Clock set. System local time is now Sat Jan 1 00:00:11 UTC 2000.
    INIT: Entering runlevel: 5
    RTNETLINK answers: File exists
    /
    Starting syslogd/klogd: RTNETLINK answers: File exists
    done
    Starting TFTP server: tftpd.
    udpsvd: listening on 0.0.0.0:69, starting
    Starting davici app/usr/infodraw/bin/davinci.sh: line 10: can't create /proc/asound/card0/pcm0c/xrun_debug: nonexistent directory
    /usr/infodraw/bin/davinci.sh: line 11: can't create /proc/asound/card0/pcm0p/xrun_debug: nonexistent directory
    loading gadget modules.
    gadgetfs: USB Gadget filesystem, version 24 Aug 2004
    Mounting gadgetfs
    musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    usb usb1: default language 0x0409
    usb usb1: udev 1, busnum 1, minor = 0
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: MUSB HDRC host driver
    usb usb1: Manufacturer: Linux 2.6.37_DM388_IPNC_3.80.00-svn307 musb-hcd
    usb usb1: SerialNumber: musb-hdrc.0
    usb usb1: usb_probe_device
    usb usb1: configuration #1 chosen from 1 choice
    usb usb1: adding 1-0:1.0 (config #1, interface 0)
    hub 1-0:1.0: usb_probe_interface
    hub 1-0:1.0: usb_probe_interface - got id
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    hub 1-0:1.0: standalone hub
    hub 1-0:1.0: individual port power switching
    hub 1-0:1.0: no over-current protection
    hub 1-0:1.0: power on to power good time: 10ms
    hub 1-0:1.0: local power source is good
    hub 1-0:1.0: enabling power on all ports
    /usr/infodraw/bin
    hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
    Media Relay System 5.4.1.0 Copyright (c) Infodraw Ltd. 2016
    Hardware version: 10
    Time (2000/01/01 00:00:12) is not sane. Is your battery connected?
    No specific USB role.
    Failed to open /dev/dm365mmap: (2) No such file or directory
    Cannot open /dev/video0: 2 No such file or directory.
    Successfully loaded parameters.
    Failed to select factory space from MTD device /dev/mtd0: (25) Inappropriate ioctl for device
    Device ID=100 Name="MRS Device 100"
    CMEM Error: init: Failed to gadgetfs: bound to musb-hdrc driver
    open /dev/cmem: musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    'No such file ormusb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    directory'
    USB usb usb2: default language 0x0409
    Gadget Vendor=0xusb usb2: udev 1, busnum 2, minor = 128
    8392 Product=0x8usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    789
    VICP Error:usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    init: Failed tousb usb2: Product: MUSB HDRC host driver
    open /dev/irqk:usb usb2: Manufacturer: Linux 2.6.37_DM388_IPNC_3.80.00-svn307 musb-hcd
    'No such file ousb usb2: SerialNumber: musb-hdrc.0
    r directory'
    VICP Error: init: Failed to open /dev/irqk: 'No such file or directory'
    init_device: m_bHighSpeed setting ep buffer to 512 bytes
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or direusb usb2: usb_probe_device
    ctory'
    CMEM initusb usb2: configuration #1 chosen from 1 choice
    ialization faileusb usb2: adding 2-0:1.0 (config #1, interface 0)
    d: -1
    CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
    CMEM Error: CMEM file descriptor -1 (failed 'open()'), ensure CMEMK kernel module cmemk.ko has been installed with 'insmod'MEMTCM Protocol Registration Failed: 3
    SDK initializahub 2-0:1.0: usb_probe_interface
    tion: 2 failureshub 2-0:1.0: usb_probe_interface - got id
    !
    Reading alarmhub 2-0:1.0: USB hub found
    status.
    Alarm hub 2-0:1.0: 1 port detected
    is disabled and hub 2-0:1.0: standalone hub
    not pending.
    Inhub 2-0:1.0: individual port power switching
    itializing Audiohub 2-0:1.0: no over-current protection
    .
    Creating sounhub 2-0:1.0: power on to power good time: 10ms
    d device with 1 hub 2-0:1.0: local power source is good
    channels and 160hub 2-0:1.0: enabling power on all ports
    00 samples per second
    /dev/gadget/musb-hdrc ep0 configured
    musb-hdrc musb-hdrc.0: not queuing rh status urb
    hub 2-0:1.0: activate --> -22
    hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
    ALSA lib pcm_hw.c:1433:(_snd_pcm_hw_open) err 0 Invalid value for card
    Error in Sound_Object* ASoundCreate(Sound_Attrs*): Failed to open ALSA sound device for input plughw:0,0 (No such file or directory)
    Error in bool CDavinciSound::EnableSound(): Failed to create sound device with 1 channels and 16000 samples per second.
    Initializing Media Writer.
    Initializing Streams.
    Buffers Table Allocation (Video Write): 3x691200
    @0x000bdbb5:[T:0x400ec000] OM -
    Memory_alloc> params->seg [0] is greater than the largest CMEM block number [%]. Returning NULL

    Failed to allocate memory.
    @0x000bdc94:[T:0x400ec000] ti.sdo.dmai -
    [BufTab] Failed to allocate buffer 0 for BufTab

    Error in bool CVideoWrite::Initialize(int, int, CMediaWriter*, CMessagingProtocolManagement*): Failed to initialize buffer table
    Failed to attach mixer on hw:0 (No such file or directory)
    Failed to attach mixer on hw:0 (No such file or directory)
    00:00:12 IP Address for network interface eth0 is 10.0.4.24
    No host by name "pmrs".
    00:00:12 Failed to read USB devices list !!!
    Could not open bluetooth host control interface socket (-1): 97 (Address family not supported by protocol)
    Failed to find accelerometer in path: /sys/bus/i2c/devices/1-0019
    Failed to find magnetometer in path: /sys/bus/i2c/devices/1-000e
    00:00:12 Connecting to server Source Address="10.0.4.24" Target Address="212.143.39.227"
    Time: 2000/01/01 00:00:12 ; Battery: Unknown
    [Main Thread Loop]
    12:14:46 Time Set
    Connection established from 10.0.4.24

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

    Arago Project http://arago-project.org pmrs ttyO0

    Arago 2009.11 pmrs ttyO0

    pmrs login: Active connections count = 1
    Failed to create directory /media/mmcblk0p1/mrs/Recordings/: (20) Not a directory
    Failed to create directory /media/mmcblk0p1/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/sda1/mrs/Recordings: (20) Not a directory
    Failed to create directory /big_part/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0p1/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/sda1/mrs/Recordings: (20) Not a directory
    Failed to create directory /big_part/mrs/Recordings: (20) Not a directory
    gadgetfs: connected
    gadgetfs: disconnected
    USB Gadget Disconnection.
    gadgetfs: connected
    USB Gadget Connection high speed
    gadgetfs: configuration #1
    musb-hdrc periph: enabled ep1out for bulk OUT, dma, maxpacket 512
    musb-hdrc periph: enabled ep2in for bulk IN, dma, maxpacket 512
    Failed to create directory /media/mmcblk0p1/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/sda1/mrs/Recordings: (20) Not a directory
    Failed to create directory /big_part/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0p1/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/sda1/mrs/Recordings: (20) Not a directory
    Failed to create directory /big_part/mrs/Recordings: (20) Not a directory

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

    Arago Project http://arago-project.org pmrs ttyO0

    Arago 2009.11 pmrs ttyO0

    pmrs login: root
    root@pmrs:~# Failed to create directory /media/mmcblk0p1/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/sda1/mrs/Recordings: (20) Not a directory
    Failed to create directory /big_part/mrs/Recordings: (20) Not a directory

    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~# Failed to create directory /media/mmcblk0p1/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/sda1/mrs/Recordings: (20) Not a directory
    Failed to create directory /big_part/mrs/Recordings: (20) Not a directory

    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~# Failed to create directory /media/mmcblk0p1/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/sda1/mrs/Recordings: (20) Not a directory
    Failed to create directory /big_part/mrs/Recordings: (20) Not a directory

    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~# Failed to create directory /media/mmcblk0p1/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/sda1/mrs/Recordings: (20) Not a directory
    Failed to create directory /big_part/mrs/Recordings: (20) Not a directory

    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~#
    root@pmrs:~# ls
    root@pmrs:~#
    root@pmrs:~# Failed to create directory /media/mmcblk0p1/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/sda1/mrs/Recordings: (20) Not a directory
    Failed to create directory /big_part/mrs/Recordings: (20) Not a directory

    Failed to create directory /media/mmcblk0p1/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/mmcblk0/mrs/Recordings: (20) Not a directory
    Failed to create directory /media/sda1/mrs/Recordings: (20) Not a directory
    Failed to create directory /big_part/mrs/Recordings: (20) Not a directory
    nfs: server 10.30.40.50 not responding, still trying

    DHCP, PING, TFTPBOOT, BOOTP all OK

    DM385_PMRS>dhcp
    phy info reg 0x1e addr 0 val 0
    phy info reg 0x1e addr 0 val 0
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 10.0.0.21
    Using cpsw device
    TFTP from server 10.30.40.50; our IP address is 10.0.0.21
    Filename 'uImage_1000.gadi'.
    Load address: 0x81000000
    Loading: *#################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    ################################################################
    done
    Bytes transferred = 2655592 (288568 hex)
    DM385_PMRS>ping 10.30.40.50
    phy info reg 0x1e addr 0 val 0
    phy info reg 0x1e addr 0 val 0
    link up on port 0, speed 100, full duplex
    Using cpsw device
    host 10.30.40.50 is alive
    DM385_PMRS>tftpboot
    phy info reg 0x1e addr 0 val 0
    phy info reg 0x1e addr 0 val 0
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 10.30.40.50; our IP address is 10.0.0.21
    Filename 'uImage_1000.gadi'.
    Load address: 0x81000000
    Loading: *#################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    ################################################################
    done
    Bytes transferred = 2655592 (288568 hex)
    DM385_PMRS>bootp
    phy info reg 0x1e addr 0 val 0
    phy info reg 0x1e addr 0 val 0
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 10.0.0.21
    Using cpsw device
    TFTP from server 10.30.40.50; our IP address is 10.0.0.21
    Filename 'uImage_1000.gadi'.
    Load address: 0x81000000
    Loading: *#################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    ################################################################
    done
    Bytes transferred = 2655592 (288568 hex)
    DM385_PMRS>

  • Gadi,

    Gadi Bergman said:
    Kernel command line: console=ttyO0,115200n8 mem=256M notifyk.vpssm3_sva=0xBF900000 vram=50M lpj=4997120 ip=10.0.4.24 root=/dev/nfs nfsroot=10.30.40.50:/cygdrive/f/svn_root/rfs1000/rootfs,nolock,nfsvers=2

    From your cmd line I see you are using static ip instead of dhcp. Can you interrupt the u-boot countdown, enter into the u-boot and print the u-boot environments, I want to check if your u-boot environments are correct for static ip configuration.

    u-boot#printenv

    Can you also try to pass ip 10.30.40.21 instead of 10.0.4.24 in the boot args, is there any deference?

    See the below wiki pages for the correct configuration regarding static ip usage:

    Regards,
    Pavel

  • Hi Pavel,

    uboot printenv

    bootcmd=nand read 0x81000000 0x00400000 0x400000; bootm 0x81000000
    bootdelay=3
    baudrate=115200
    verify=yes
    ramdisk_file=ramdisk.gz
    loadaddr=0x81000000
    kernel_addr=0x00400000
    kernel_assumed_size=0x400000
    ip=ip=off
    otherargs=console=ttyO0,115200n8 mem=256M notifyk.vpssm3_sva=0xBF900000 vram=50M lpj=4997120
    rootpath=/cygdrive/f/svn_root/rfs1000/rootfs
    nfsargs=setenv bootargs ${otherargs} ip=${ipaddr} root=/dev/nfs nfsroot=${serverip}:${rootpath},nolock,nfsvers=2
    cramfsargs=setenv bootargs ${otherargs} root=/dev/mtdblock3 ro rootfstype=cramfs ${ip}
    bootcmd_flash=nand read ${loadaddr} ${kernel_addr} ${kernel_assumed_size};bootm ${kernel_load_addr}
    erase_params=echo erase uboot parameters;nand erase 0x300000 0x100000
    flash_ubl=tftp ${fileaddr} ${serverip}:uboot_pmrs_dm385_min.bin && nand erase 0 0x100000 && nand write ${fileaddr} 0 ${filesize}
    flash_uboot=tftp ${fileaddr} ${serverip}:uboot_pmrs_dm385_min.bin && nand erase 0 0x100000 && nand write ${fileaddr} 0 ${filesize} && tftp ${fileaddr} ${serverip}:uboot_pmrs_dm385.bin && nand erase 0x100000 0x100000 && nand write ${fileaddr} 0x100000 ${filesize} && run erase_params && reset
    update_kernel=echo updating kernel;tftp ${fileaddr} ${kernel} && nand erase ${kernel_addr} ${filesize} && nand write ${fileaddr} ${kernel_addr} ${filesize} && imi ${fileaddr} && echo OK
    cramfs_addr=0x04000000
    cramfs_size=0x04000000
    filesys_cramfs=rootfs1000.cramfs
    update_fs=tftp ${fileaddr} ${filesys} && nand erase ${start_addr} ${fs_size} && nand write ${fileaddr} ${start_addr} ${filesize} && echo OK
    update_cramfs=echo updating cramfs; set filesys ${filesys_cramfs}; set start_addr ${cramfs_addr};set fs_size ${cramfs_size};run update_fs
    ethaddr=64:34:3a:66:35:3a
    ethact=cpsw
    kernel=uImage_1000.gadi
    filesize=28828C
    fileaddr=88000000
    ipaddr=10.0.4.24
    serverip=10.30.40.50
    bootargs=console=ttyO0,115200n8 mem=256M notifyk.vpssm3_sva=0xBF900000 vram=50M lpj=4997120 ip=10.0.4.24 root=/dev/nfs nfsroot=10.30.40.50:/cygdrive/f/svn_root/rfs1000/rootfs,nolock,nfsvers=2
    bootfile=uImage_1000.gadi
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 2010.06-svn302 (Feb 15 2016 - 18:47:36) DM385_PMRS_0.00.00

    Environment size: 2147/131068 bytes


    Changing the IP address to 10.30.40.21

    setenv bootargs console=ttyO0,115200n8 mem=256M notifyk.vpssm3_sva=0xBF900000 vram=50M lpj=4997120 ip=10.30.40.21 root=/dev/nfs nfsroot=10.30.40.50:/cygdrive/f/svn_root/rfs1000/rootfs,nolock,nfsvers=2

    DM385_PMRS>print bootargs
    bootargs=console=ttyO0,115200n8 mem=256M notifyk.vpssm3_sva=0xBF900000 vram=50M lpj=4997120 ip=10.30.40.21 root=/dev/nfs nfsroot=10.30.40.50:/cygdrive/f/svn_root/rfs1000/rootfs,nolock,nfsvers=2
    DM385_PMRS>saveenv

    ...

    nfs: server 10.30.40.50 not responding, still trying
    nfs: server 10.30.40.50 not responding, still trying
    nfs: server 10.30.40.50 not responding, still trying
    nfs: server 10.30.40.50 not responding, still trying

     

    No, there was no difference.

  • Gadi Bergman said:
    nfs: server 10.30.40.50 not responding, still trying

    This might be error in your host machine (i.e. desktop PC) NFS server configuration. Can you try to establish stable ethernet connection between your host machine and any TI EVM (DM38x, DM814x, DM816x)? Note that in DM814x EZSDK we have a special script setup-targetfs-nfs.sh to install and configure properly the NFS server to the host machine. You can install the latest DM814x EZSDK and have a look.

    Check also if connecting your custom board to the host machine directly (without router/switch/hub between) will resolve. Check also if there will be any improvement if you switch to 100Mbps and/or 10Mbps mode, remove gigabit 1Gbps support from the CPSW driver (gigabit_en=0).

    Ensure that both u-boot & uImage is set to follow same network parameters (static or dhcp,  MAC address, IP address, gateways, netmaks, etc...).

    See also the below e2e threads:

    Regards,
    Pavel

  • I tried what you said and also looked at the other forums but the problem remains unsolved.