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.

DRA628 udhcpc IP address not assigned J5 ECO EVM RevG

Other Parts Discussed in Thread: TPS65910

J5 ECO EVM Rev G board boots up without IP address. Kernel log shows the following

ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc (v1.13.2) started
Sending discover...
PHY: 0:01 - Link is Up - 0/Half
PHY: 0:01 - Link is Down
Sending discover...
PHY: 0:00 - Link is Up - 1000/Full
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sending discover...
No lease, forking to background
done.

root@c6a811x-evm:~# ifconfig
eth0      Link encap:Ethernet  HWaddr EC:24:B8:68:2F:22  
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:567 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:331458 (323.6 KiB)
          Interrupt:40

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@c6a811x-evm:~# udhcpc -i eth0 -n
udhcpc (v1.13.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing

Followed suggestions from the following URL: http://processors.wiki.ti.com/index.php/TI811X_PSP_User_Guide#Updating_the_DHCP_Script . Did not help. Please give me some suggestions.

Thanks

  • Hi,
    Able to assign the IP address manually and able to ping ?

    root@c6a811x-evm:~# ifconfig eth0 10.100.1.10 up

    Are you using pre-built images for the EVM board or using your own built images ?
  • ifconfig eth0 192.168.10.200 up

    Succeeds.

    ifconfig shows the ip assigned there after.

    Fails to ping any other machine in the same subnet. Other machines cannot ping to this IP.

    uImage was built using the ti811x_evm_defconfig config. No additional changes done. RFS is the same that was received in the ezsdk tar file.

  • Shrikant,

    Shrikant Acharya said:
    J5 ECO EVM Rev G board boots up without IP address

    In order to get valid IP address during kernel boot up, you should set this in the boot args from the u-boot stage.

    For dynamic ip:

    TI811X_EVM# setenv bootargs 'console=ttyO2,115200n8 root=....      ip=dhcp'

    For static ip:

    TI811X_EVM# setenv bootargs 'console=ttyO2,115200n8 root=.... ip=${ipaddr}:${nfsserver}:${gatewayip}:${netmask}:${hostname}:eth0:off'

    See also the below wikis:



    processors.wiki.ti.com/.../TI811X_PSP_04.07.00.02_Feature_Performance_Guide




    BR

    Pavel

  • Hi,

    ifconfig eth0 192.168.10.200 up

    Succeeds.

    ifconfig shows the ip assigned there after.

    Fails to ping any other machine in the same subnet. Other machines cannot ping to this IP.
    uImage was built using the ti811x_evm_defconfig config. No additional changes done. RFS is the same that was received in the ezsdk tar file.


    Can you try the pre-built images from SDK ?

    Could you attach the complete linux boot log to investigate further.

    Also, tell us your SDK version.

    I hope, Pavel can support you further since he has good knowledge on DM81x.
    1. Tried with prebuilt uImage binary - No difference.
    2. ezsdk_c6a811x-evm_5_05_01_10
    3. Run level 5: Removed load-hd-firmware.sh. Error loading this file.

    root@c6a811x-evm:~# ls -l /etc/rc5.d/

    lrwxrwxrwx    1 root     root           29 Nov 27 16:19 K01load-hd-firmware.sh -> ../init.d/load-hd-firmware.sh
    lrwxrwxrwx    1 root     root           16 Jan  1  2000 S02dbus-1 -> ../init.d/dbus-1
    lrwxrwxrwx    1 root     root           17 Nov 27 16:18 S10telnetd -> ../init.d/telnetd
    lrwxrwxrwx    1 root     root           16 Nov 27 16:19 S20syslog -> ../init.d/syslog
    lrwxrwxrwx    1 root     root           16 Nov 27 16:18 S20thttpd -> ../init.d/thttpd
    lrwxrwxrwx    1 root     root           18 Nov 27 16:19 S30pvr-init -> ../init.d/pvr-init
    lrwxrwxrwx    1 root     root           22 Nov 27 16:18 S99gplv3-notice -> ../init.d/gplv3-notice
    lrwxrwxrwx    1 root     root           22 Nov 27 16:19 S99matrix-gui-e -> ../init.d/matrix-gui-e
    lrwxrwxrwx    1 root     root           19 Nov 27 16:18 S99rmnologin -> ../init.d/rmnologin

    Attached below the bootup log.

     

    U-Boot 2010.06 (Aug 12 2015 - 16:37:01)

    TI811X-GP rev 2.1

    ARM clk: 600MHz
    DDR clk: 400MHz

    I2C:   ready
    DRAM:  1 GiB
    MMC:   OMAP SD/MMC: 0
    Using default environment

    Info: Detected board revison G.
    The 2nd stage U-Boot will now be auto-loaded
    Please do not interrupt the countdown till TI811X_EVM prompt if 2nd stage is already flashed
    Hit any key to stop autoboot:  0
    reading u-boot.bin

    186360 bytes read
    ## Starting application at 0x80800000 ...


    U-Boot 2010.06 (Aug 12 2015 - 16:38:42)

    TI811X-GP rev 2.1

    ARM clk: 600MHz
    DDR clk: 400MHz

    I2C:   ready
    DRAM:  1 GiB
    NAND:  HW ECC BCH8 Selected
    No NAND device found!!!
    0 MiB
    MMC:   OMAP SD/MMC: 0
    *** Warning - bad CRC or MMC, using default environment

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@                                                               @@
    @@                                                               @@
    @@                                                               @@
    @@                                                               @@
    @@                                                               @@
    @@     88888888888 8888888 .d8888b.   d888    d888               @@
    @@         888       888  d88P  Y88b d8888   d8888               @@
    @@         888       888  Y88b. d88P   888     888               @@
    @@         888       888    Y88888     888     888    888  888   @@
    @@         888       888  .d8P88Y8b.   888     888      Y8 8P    @@
    @@         888       888  888    888   888     888       88      @@
    @@         888       888  Y88b  d88P   888     888     .d8 8b.   @@
    @@         888     8888888  Y8888P  8888888  8888888   888 888   @@
    @@                                                               @@
    @@                                                               @@
    @@                                                               @@
    @@                                                               @@
    @@                                                               @@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Net:   Ethernet clocking: 0x0
    <ethaddr> not set. Reading from E-fuse
    Detected MACID:ec:24:b8:68:2f:22
    cpsw
    Hit any key to stop autoboot:  0
    reading boot.scr

    231 bytes read
    Running bootscript from MMC/SD to set the ENV...
    ## Executing script at 80900000
    reading uImage

    2742008 bytes read
    ## Booting kernel from Legacy Image at 82000000 ...
       Image Name:   Arago/2.6.37-psp04.07.00.02/c6a8
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2741944 Bytes = 2.6 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Linux version 2.6.37 (x0029463@swubn01) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 Tue Nov 27 16:28:14 IST 2012
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti811xevm
    bootconsole [earlycon0] enabled
    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 TI811X 1.0
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 51968
    Kernel command line: console=ttyO0,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprintk ip=off noinitrd
    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: 201744k/201744k available, 60400k 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 - 0xc0041000   ( 228 kB)
          .text : 0xc0041000 - 0xc0535000   (5072 kB)
          .data : 0xc0536000 - 0xc05822c0   ( 305 kB)
    SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:407
    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 IRQ400
    Trying to install interrupt handler for IRQ401
    Trying to install interrupt handler for IRQ402
    Trying to install interrupt handler for IRQ403
    Trying to install interrupt handler for IRQ404
    Trying to install interrupt handler for IRQ405
    Trying to install interrupt handler for IRQ406
    Trying to install type control for IRQ407
    Trying to set irq flags for IRQ407
    OMAP clockevent source: GPTIMER1 at 20000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 598.01 BogoMIPS (lpj=2990080)
    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
    regulator: core version 0.5
    regulator: dummy:
    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 GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    omap_mux_init: Add partition: #1: core, flags: 4
    _omap_mux_init_gpio: Could not set gpio38
    _omap_mux_init_gpio: Could not set gpio35
    NOR: Can't request GPMC CS
    registered ti81xx_vpss device
    registered ti81xx_vidout device
    registered ti81xx on-chip HDMI device
    registered ti81xx_fb device
    registered ti81xx_vin device
    ti81xx_pcie: Invoking PCI BIOS...
    ti81xx_pcie: Setting up Host Controller...
    ti81xx_pcie: Register base mapped @0xd0830000
    ti81xx_pcie: forcing link width - x1
    ti81xx_pcie: Starting PCI scan...
    PCI: bus0: Fast back to back transfers enabled
    ti81xx_pcie: PCI scan done.
    bio: create slab <bio-0> at 0
    vgaarb: loaded
    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
    omap_i2c omap_i2c.1: controller timed out
    pcf857x: probe of 1-0020 failed with error -110
    omap_i2c omap_i2c.1: controller timed out
    tps65910 1-002d: read from reg 3f failed
    omap_i2c omap_i2c.1: controller timed out
    tps65910 1-002d: read from reg 1e failed
    set_machine_constraints: failed to enable VRTC
    tps65910 1-002d: failed to register tps65910-pmic regulator
    tps65910-pmic: probe of tps65910-pmic failed with error -110
    tps65910 1-002d: No interrupt support, no core IRQ
    omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Switching to clocksource gp timer
    musb-hdrc: version 6.0, host, debug=0
    musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    MUSB controller-0 revision 4ea20800
    usb2phy: computed values rxcalib(15)DACs(31 15 14)
    usb2phy: override computed values rxcalib(15)DACs(31 15 14)
    usb2phy_config: musb(0) rxcalib done, rxcalib read value 6f6fdf76
    musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    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 musb-hcd
    usb usb1: SerialNumber: musb-hdrc.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.0: USB Host mode controller at d082e000 using DMA, IRQ 18
    musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    MUSB controller-1 revision 4ea20800
    usb2phy: computed values rxcalib(15)DACs(34 14 13)
    usb2phy: override computed values rxcalib(15)DACs(34 14 13)
    usb2phy_config: musb(1) rxcalib done, rxcalib read value 6f715d6e
    musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: MUSB HDRC host driver
    usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
    usb usb2: SerialNumber: musb-hdrc.1
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.1: USB Host mode controller at d0836800 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, bootconsole disabled
    console [ttyO0] enabled, bootconsole disabled
    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
    omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    brd: module loaded
    loop: module loaded
    m25p80 spi1.0: found w25q32, expected w25x32
    m25p80 spi1.0: w25q32 (4096 Kbytes)
    Creating 5 MTD partitions on "spi_flash":
    0x000000000000-0x000000020000 : "U-Boot-min"
    0x000000020000-0x000000060000 : "U-Boot"
    0x000000060000-0x000000062000 : "U-Boot Env"
    0x000000062000-0x0000002e2000 : "Kernel"
    0x0000002e2000-0x000000400000 : "File System"
    omap2-nand driver initializing
    No NAND device found.
    No NAND device found.
    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 unknown
    davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
    CAN device driver interface
    CAN bus driver for Bosch D_CAN controller 1.0
    d_can d_can: d_can device registered (irq=52, irq_obj=53)
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver dm9601
    usbcore: registered new interface driver cdc_acm
    cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
    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
    hub 2-0:1.0: over-current change on port 1
    omap_i2c omap_i2c.1: controller timed out
    qt602240_ts 1-004a: __qt602240_read_reg: i2c transfer failed
    qt602240_ts: probe of 1-004a failed with error -5
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    omap_rtc: already running
    i2c /dev entries driver
    Linux video capture interface: v2.00
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v1.0.0)
    OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    usbcore: registered new interface driver snd-usb-audio
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
    ALSA device list:
      #0: TI81XX EVM
    TCP cubic registered
    NET: Registered protocol family 17
    can: controller area network core (rev 20090105 abi 8)
    NET: Registered protocol family 29
    can: raw protocol (rev 20090105)
    can: broadcast manager protocol (rev 20090105 t)
    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=ec:24:b8:68:2f:22
    omap_rtc omap_rtc: setting system clock to 2012-11-27 22:47:28 UTC (1354056448)
    Waiting for root device /dev/mmcblk0p2...
    mmc0: new high speed SDHC card at address 1234
    mmcblk0: mmc0:1234 SA16G 14.8 GiB
     mmcblk0: p1 p2
    EXT3-fs: barriers not enabled
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): recovery complete
    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    devtmpfs: mounted
    Freeing init memory: 228K
    INIT: version 2.86 booting
    Please wait: booting...
    Error opening /dev/fb0: No such file or directory
    Starting udev
    udevd (77): /proc/77/oom_adj is deprecated, please use /proc/77/oom_score_adj instead.
    Remounting root file system...
    Caching udev devnodes
    NET: Registered protocol family 10
    ALSA: Restoring mixer settings...
    Configuring network interfaces...
    CPSW phy found : id is : 0x4dd074

    CPSW phy found : id is : 0x4dd074
    ADDRCONF(NETDEV_UP): eth0: link is not ready
    udhcpc (v1.13.2) started
    Sending discover...
    PHY: 0:01 - Link is Up - 0/Half
    PHY: 0:01 - Link is Down
    Sending discover...
    PHY: 0:00 - Link is Up - 1000/Full
    ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Sending discover...
    No lease, forking to background
    done.
    Setting up IP spoofing protection: rp_filter.
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting Matrix GUI application.

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

    Arago Project http://arago-project.org c6a811x-evm ttyO0

    Arago 2011.09 c6a811x-evm ttyO0

    c6a811x-evm login:

  • SW10(2) was set in "Expansion GPMC mode". Once that was set to "On board ethernet mode". Ethernet became functional and obtained IP address.

    SW10(1-2) Name ON OFF
    -----------------------------------------------------------------------
    1 USB0_ID USB A plug mode USB B plug mode*
    2 GPMC_EMAC_SW_SEL Expansion GPMC mode On board ethernet mode*

    Ref: support.spectrumdigital.com/.../evm811x_SystemSummary.html
  • Hi,
    Sounds good.
    Thanks for your update.