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.

Dm8168 Ethernet port Issue (Eth0 Port)

Dear All,

Out of two Ethernet ports on our board, we are having issues with getting one of the ports working. Please go through the scenario and guide us with some pointers towards debugging this issue.

Set-up Details:
Processor: Dm8168 2.1 version
Two Ethernet Ports: ETH0 (Not working) and ETH1(Working fine)

Measured the respective Clocks (TX_CLK,RX_CLK,GTX_CLK)and seems to be ok.

The below links we refered.
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/350579.aspx


In our customized board Eth0 is not working, but link establishment with 100 and 1000 is happening fine.
Issue :In Eth0 ping is not working, please find the below log.
--------------------Log----------------------------------------
ping 192.168.0.58
PING 192.168.0.58 (192.168.0.58): 56 data bytes

--- 192.168.0.58 ping statistics ---
734 packets transmitted, 0 packets received, 100% packet loss
--------------------End----------------------------------------
 
But Eth1 is pinging successfully.

What may be the Issue ?

Please let us know your suggestions on the above mentioned queries
 
Any input from the forum members would be highly appreciated.
   
Thanks  
Narthan S

  • Hi Narthan,

    From what I understand, you are using DM816x custom board, not DM816x EVM?

    Do you have the same ethernet PHY for eth0 and eth1? Are you using eth0 and eth1 in the same mode (i.e. GMII)?

    Regards,
    Pavel

  • Dear Pavel,

    Yes, we are using Dm8168 custom board.

    Both Eth0 and Eth1 Phy(L-ET1011C2-CI-D) are same and both the Phy's are in GMII mode.

    Thanks,

    Narthan S 

  • Could you let me the log of your system boot up?

    When in the uboot stage, is the eth0 working fine?

  • Hi Eason Wang,

    In Uboot stage also Eth0 is not working 

    please find the log of u-boot and kernel

    U-Boot 2010.06 (Sep 25 2014 - 19:21:13)
    
    DRAM:  64 MiB
    MMC:   OMAP SD/MMC: 0
    Using default environment
    
    Hit any key to stop autoboot:  0 
    raise: Signal # 8 caught
    reading u-boot.bin
    
    212260 bytes read
    ## Starting application at 0x80800000 ...
    
    
    U-Boot 2010.06 (Sep 25 2014 - 19:23:10)
    
    TI8168-GP rev 2.1
    
    ARM clk: 987MHz
    DDR clk: 796MHz
    
    I2C:   ready
    DRAM:  64 MiB
    NAND:  1=1810 :: 2=1e1e00 :: 3=1e1e00 :: 4=16051807 :: 5=151e1e :: 6=16000f80 :: 7=48
    HW ECC BCH8 Selected
    BCH16--Initilizing Nand Realted Functions--
    No NAND device found!!!
    0 MiB
    MMC:   OMAP SD/MMC: 0
    *** Warning - bad CRC or NAND, using default environment
    
    :,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:
    ;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:
    ;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;
    ;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;
    
    
    
    
    
    
    r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,
    ;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii
    r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi
    r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS   @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs
    r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5
    rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi
    ;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi
    ;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;
    r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:
    ;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,
    ;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::
    :,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,
    ;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:
    :.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,
    :.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:
    ,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,
    : ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:
    ,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,
    
    Net:   <ethaddr> not set. Reading from E-fuse
    Detected MACID:7c:66:9d:6d:1f:6
    Ethernet PHY: GENERIC @ 0x01
    DaVinci EMAC
    Hit any key to stop autoboot:  0 
    CABS_AVRM#setenv ipaddr 192.168.0.199
    CABS_AVRM#pri
    bootcmd=if mmc rescan 0; then if run loadbootscript; then run bootscript; else echo In case ENV on MMC/SD is required; echo Please put a valid script named boot.scr on the cardi
    bootdelay=3
    baudrate=115200
    autoload=no
    verify=yes
    bootfile=uImage
    ramdisk_file=ramdisk.gz
    loadaddr=0x81000000
    script_addr=0x80900000
    loadbootscript=fatload mmc 0 ${script_addr} boot.scr
    bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
    ethaddr=7c:66:9d:6d:1f:06
    ethact=DaVinci EMAC
    ver=U-Boot 2010.06 (Sep 25 2014 - 19:23:10)
    ipaddr=192.168.0.199
    
    Environment size: 763/8188 bytes
    CABS_AVRM#ping 192.168.0.58
    Using DaVinci EMAC device
    WARN: emac_send_packet: No link
    ping failed; host 192.168.0.58 is not alive
    CABS_AVRM#
    
    
     

    CABS_AVRM#mmc rescan 0;fatload mmc 0 0x81000000 uImage 0x2F3060;setenv bootargs 'console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=64M@0x80000000';bootm 0x81000000;
    raise: Signal # 8 caught
    reading uImage
    
    2566508 bytes read
    ## Booting kernel from Legacy Image at 81000000 ...
       Image Name:   Linux-2.6.37
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2566444 Bytes = 2.4 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 (root@narthan-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #16 Wed Oct 22 16:54:14 IST 2014
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8168evm
    reserved size = 52428800 at 0x0
    FB: Reserving 52428800 bytes SDRAM for VRAM
    Memory policy: ECC disabled, Data cache writeback
    OMAP chip is TI8168 2.0
    Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 3456
    Kernel command line: console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=64M@0x80000000
    PID hash table entries: 64 (order: -4, 256 bytes)
    Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
    Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
    Memory: 14MB = 14MB total
    Memory: 8276k/8276k available, 57260k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
        vmalloc : 0xc4800000 - 0xf8000000   ( 824 MB)
        lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .init : 0xc0008000 - 0xc003c000   ( 208 kB)
          .text : 0xc003c000 - 0xc04da000   (4728 kB)
          .data : 0xc04da000 - 0xc0523700   ( 294 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 27000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    devtmpfs: initialized
    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_mux_init: Add partition: #1: core, flags: 0
    _omap_mux_get_by_name: Could not find signal i2c2_scl.i2c2_scl
    _omap_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
    NOR: Can't request GPMC CS
    registered ti816x_gpio_vr device
    registered ti816x_sr device
    pm_dbg_init: only OMAP3 supported
    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 @0xc4820000
    ti81xx_pcie: Starting PCI scan...
    PCI: bus0: Fast back to back transfers enabled
    bio: create slab <bio-0> at 0
    regulator: VFB: 800 <--> 1025 mV at 1010 mV 
    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 4ea20809
    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.2: bus 2 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
    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 c481e000 using DMA, IRQ 18
    musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    MUSB controller-1 revision 4ea20800
    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 c4826800 using DMA, IRQ 19
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 512 (order: 0, 4096 bytes)
    TCP bind hash table entries: 512 (order: -1, 2048 bytes)
    TCP: Hash tables configured (established 512 bind 512)
    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 16
    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
    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
    console [ttyO2] enabled
    brd: module loaded
    loop: module loaded
    ahci ahci.0: forcing PORTS_IMPL to 0x3
    ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
    ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc 
    scsi0 : ahci_platform
    scsi1 : ahci_platform
    ata1: SATA max UDMA/133 irq_stat 0x00400040, connection status changed irq 16
    ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
    m25p80 spi1.0: found s25fl064k, expected m25p80
    m25p80 spi1.0: s25fl064k (8192 Kbytes)
    Creating 4 MTD partitions on "spi_flash":
    0x000000000000-0x000000040000 : "U-Boot"
    0x000000040000-0x000000042000 : "U-Boot Env"
    0x000000042000-0x0000002c2000 : "Kernel"
    0x0000002c2000-0x000000800000 : "File System"
    omap2-nand driver initializing
    _____NAND_INIT______
    No NAND device found.
    No NAND device found.
    1-----------mdio_in = eb6be3d
    2-----------div = f5
    3-----------div = f5
    4-----------set enable and clock divider  = 410000f5
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    detected phy mask 6
    detected phy mask fffffff9
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
    davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver unknown
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver dm9601
    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
    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
    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.
    smartreflex smartreflex: Driver initialized
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    ata2: SATA link down (SStatus 0 SControl 300)
    mmc0: new high speed SDHC card at address e624
    mmcblk0: mmc0:e624 SU04G 3.69 GiB 
     mmcblk0: p1 p2
    ata1: link is slow to respond, please be patient (ready=0)
    ata1: softreset failed (device not ready)
    ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    ata1.00: ATA-8: SQF-SMSM4-32G-S8E, S8FM06A7, max UDMA/133
    ata1.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 31/32)
    ata1.00: configured for UDMA/133
    scsi 0:0:0:0: Direct-Access     ATA      SQF-SMSM4-32G-S8 S8FM PQ: 0 ANSI: 5
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
     sda: sda1
    sd 0:0:0:0: [sda] Attached SCSI disk
    EXT3-fs: barriers not enabled
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
    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: 208K
    INIT: version 2.86 booting
    INIT: Entering runlevel: 5
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org (none) ttyO2
    
    Arago 2011.09 (none) ttyO2
    
    (none) login: root
    root@(none):~# 
    root@(none):~# 
    root@(none):~# 
    root@(none):~# ifconfig eth0 192.168.0.111 up
    davinci_mdio davinci_mdio.0: resetting idled controller
    1-----------mdio_in = eb6be3d
    2-----------div = f5
    3-----------div = f5
    4-----------set enable and clock divider  = 410000f5
    net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=282f014)
    root@(none):~# 
    root@(none):~# 
    root@(none):~# 
    root@(none):~# 
    root@(none):~# 
    root@(none):~# PHY: 0:01 - Link is Up - 1000/Full
    
    root@(none):~# 
    root@(none):~# 
    root@(none):~# ping 192.168.0.154
    PING 192.168.0.154 (192.168.0.154): 56 data bytes
    
    --- 192.168.0.154 ping statistics ---
    10 packets transmitted, 0 packets received, 100% packet loss
    
    

    Thanks,

    Narthan S

  • Hi Eason Wang,

    Please ignore previous Uboot_log.txt file.

    For your reference please find the updated uboot log

    U-Boot 2010.06 (Sep 25 2014 - 19:21:13)
    
    DRAM:  64 MiB
    MMC:   OMAP SD/MMC: 0
    Using default environment
    
    Hit any key to stop autoboot:  0 
    raise: Signal # 8 caught
    reading u-boot.bin
    
    212260 bytes read
    ## Starting application at 0x80800000 ...
    
    
    U-Boot 2010.06 (Sep 25 2014 - 19:23:10)
    
    TI8168-GP rev 2.1
    
    ARM clk: 987MHz
    DDR clk: 796MHz
    
    I2C:   ready
    DRAM:  64 MiB
    NAND:  1=1810 :: 2=1e1e00 :: 3=1e1e00 :: 4=16051807 :: 5=151e1e :: 6=16000f80 :: 7=48
    HW ECC BCH8 Selected
    BCH16--Initilizing Nand Realted Functions--
    No NAND device found!!!
    0 MiB
    MMC:   OMAP SD/MMC: 0
    *** Warning - bad CRC or NAND, using default environment
    
    :,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:
    ;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:
    ;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;
    ;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;
    ;;;;;r;rr2iisiih393HB#B#AA99i22irrrX3X52AGsisss2Xii2299HBMA&X2S5S5iSiisSsi:,;;:
    r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,
    ;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii
    r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi
    r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS   @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs
    r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5
    rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi
    ;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi
    ;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;
    r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:
    ;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,
    ;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::
    :,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,
    ;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:
    :.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,
    :.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:
    ,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,
    : ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:
    ,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,
    
    Net:   <ethaddr> not set. Reading from E-fuse
    Detected MACID:7c:66:9d:6d:1f:6
    Ethernet PHY: GENERIC @ 0x01
    DaVinci EMAC
    Hit any key to stop autoboot:  0 
    CABS_AVRM#
    CABS_AVRM#
    CABS_AVRM#
    CABS_AVRM#
    CABS_AVRM#
    CABS_AVRM#setenv ipaddr 192.168.0.199
    CABS_AVRM#pri
    bootcmd=if mmc rescan 0; then if run loadbootscript; then run bootscript; else echo In case ENV on MMC/SD is required; echo Please put a valid script named boot.scr on the cardi
    bootdelay=3
    baudrate=115200
    autoload=no
    verify=yes
    bootfile=uImage
    ramdisk_file=ramdisk.gz
    loadaddr=0x81000000
    script_addr=0x80900000
    loadbootscript=fatload mmc 0 ${script_addr} boot.scr
    bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
    ethaddr=7c:66:9d:6d:1f:06
    ethact=DaVinci EMAC
    ver=U-Boot 2010.06 (Sep 25 2014 - 19:23:10)
    ipaddr=192.168.0.199
    
    Environment size: 763/8188 bytes
    CABS_AVRM#ping 192.168.0.154
    Using DaVinci EMAC device
    ping failed; host 192.168.0.154 is not alive
    CABS_AVRM#
    
    

     

    Thanks,

    Narthan S

  • Hi ,

    Would you have a look at the PHY ID, or PHY Address of your phy chip on EMAC0 ?  

    EMAC0 is enabled by default,  the PHY ID should match the ID in your code.

    From your log, it is said   ,   is the PHY w/ phy id = 0x01 is the Phy of EMAC1?

    Net: <ethaddr> not set. Reading from E-fuse
    Detected MACID:7c:66:9d:6d:1f:6
    Ethernet PHY: GENERIC @ 0x01
    DaVinci EMAC

    BR,

    Eason

  • Hi Eason Wang,

    We cross verified phy address on board once again (PHY0=00001 & PHY1=00010) seems to be ok.

    while loading kernel image both the Phy's are detected has shown below.

    -------------------------------------Log--------------------------------------- 

    1-----------mdio_in = eb6be3d
    2-----------div = f5
    3-----------div = f5
    4-----------set enable and clock divider = 410000f5
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    detected phy mask 6
    detected phy mask fffffff9
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
    davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver unknown

    -------------------------------------------------------------------------------------------------------------------------

    For your reference please find the below log for Phy address and MAC Id for respective phy's. 

    (none) login: root
    root@(none):~#
    root@(none):~# ifconfig eth0 192.168.0.111 up
    davinci_mdio davinci_mdio.0: resetting idled controller
    1-----------mdio_in = eb6be3d
    2-----------div = f5
    3-----------div = f5
    4-----------set enable and clock divider = 410000f5
    net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=282f014)
    root@(none):~#
    root@(none):~#
    root@(none):~#
    root@(none):~#
    root@(none):~#
    root@(none):~# ifconfig eth1 192.168.0.199 up
    net eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:02, id=282f014)
    root@(none):~# ifconfig
    eth0 Link encap:Ethernet HWaddr 7C:66:9D:6D:1F:06
    inet addr:192.168.0.111 Bcast:192.168.0.255 Mask:255.255.255.0
    UP BROADCAST MULTICAST MTU:1500 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:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:40 Base address:0x8000

    eth1 Link encap:Ethernet HWaddr 7C:66:9D:6D:1F:07
    inet addr:192.168.0.199 Bcast:192.168.0.255 Mask:255.255.255.0
    UP BROADCAST MULTICAST MTU:1500 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:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:44

    Kindly let us know your inputs /Suggestions.

    Thanks,

    Narthan S   

    root@(none):~#