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.

AM335x : 2xRGMII ethernet phy issue

Other Parts Discussed in Thread: AM3352

U-Boot SPL 2013.01.01-svn77 (Jul 15 2013 - 05:09:51)
 configure_module_pin_mux: idx(0) val(0x60) offset(0x988)
 configure_module_pin_mux: idx(1) val(0x60) offset(0x98c)
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0 
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0 
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0


U-Boot 2013.01.01-svn77 (Jul 15 2013 - 05:09:51)

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
board.c 926:  -------> board_init Func ........ 
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0 
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0 
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
Net:   cpsw, usb_ether
board.c 1012:  ciel_board_init..

Hit any key to stop autoboot:  0 
Booting from nand ...

NAND read: device 0 offset 0x2e0000, size 0x500000
 5242880 bytes read: OK
## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   Linux-3.2.0-svn77
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3048664 Bytes = 2.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.2.0-svn77 (user@ubuntu) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #18 Tue Jul 16 02:34:04 PDT 2013
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: am335xevm
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES2.0 (neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=4,2048 rootfstype=ubifs rootwait=1
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 253492k/253492k available, 8652k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc056b000   (5516 kB)
[    0.000000]       .init : 0xc056b000 - 0xc05a4000   ( 228 kB)
[    0.000000]       .data : 0xc05a4000 - 0xc060a160   ( 409 kB)
[    0.000000]        .bss : 0xc060a184 - 0xc0636fe4   ( 180 kB)
[    0.000000] NR_IRQS:396
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[    0.000000] Console: colour dummy device 80x30
[    0.000152] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[    0.058929] pid_max: default: 32768 minimum: 301
[    0.059082] Security Framework initialized
[    0.059173] Mount-cache hash table entries: 512
[    0.059539] CPU: Testing write buffer coherency: ok
[    0.079986] omap_hwmod: gfx: failed to hardreset
[    0.096252] omap_hwmod: pruss: failed to hardreset
[    0.097351] print_constraints: dummy: 
[    0.097686] NET: Registered protocol family 16
[    0.099853] OMAP GPIO hardware version 0.1
[    0.102172] omap_mux_init: Add partition: #1: core, flags: 0
[    0.103912]  omap_i2c.1: alias fck already exists
[    0.104095]  -----> arch/arm/mach-omap2/board-am335xevm.c 3113:  am335x_evm_noi2c_init..
[    0.104125]  -----> arch/arm/mach-omap2/board-am335xevm.c 2819:  am335x_ciel_setup..
[    0.104125]  -----> arch/arm/mach-omap2/board-am335xevm.c 2762:  setup_cielkit...
[    0.104156] The board is a AM335x CIEL Kit.
[    0.104156]  -----> arch/arm/mach-omap2/board-am335xevm.c 969:  _configure_device: evm_id(4) profile(-1) daughter_brd_detected(0)
[    0.104187]  -----> arch/arm/mach-omap2/board-am335xevm.c 2427:  am335x_rtc_init: evm_id(4) profile(0xffffffff)
[    0.104461]  -----> arch/arm/mach-omap2/board-am335xevm.c 2496:  clkout2_enable: evm_id(4) profile(0xffffffff)
[    0.104522]  -----> arch/arm/mach-omap2/board-am335xevm.c 2204:  mmc0_init: evm_id(4) profile(0xffffffff)
[    0.104644]  omap_hsmmc.0: alias fck already exists
[    0.104858]  -----> arch/arm/mach-omap2/board-am335xevm.c 1378:  ciel_gpio_init: evm_id(4) profile(0xffffffff)
[    0.105133]  -----> arch/arm/mach-omap2/board-am335xevm.c 1342:  phy_pwr_enable: eth_pw_en1 set...
[    0.105163] Configure eth power Enable(1) pin...
[    0.105194]  -----> arch/arm/mach-omap2/board-am335xevm.c 1352:  phy_pwr_enable: eth_pw_en2 set...
[    0.105194] Configure eth power Enable(2) pin...
[    0.205047]  -----> arch/arm/mach-omap2/board-am335xevm.c 1265:  rgmii1_init: evm_id(4) profile(0xffffffff)
[    0.205169]  -----> arch/arm/mach-omap2/board-am335xevm.c 1272:  rgmii2_init: evm_id(4) profile(0xffffffff)
[    0.205322]  -----> arch/arm/mach-omap2/board-am335xevm.c 1291:  usb0_init: evm_id(4) profile(0xffffffff)
[    0.205322]  -----> arch/arm/mach-omap2/board-am335xevm.c 1298:  usb1_init: evm_id(4) profile(0xffffffff)
[    0.205352]  -----> arch/arm/mach-omap2/board-am335xevm.c 1612:  evm_nand_init: evm_id(4) profile(0xffffffff)
[    0.206115]  -----> arch/arm/mach-omap2/board-am335xevm.c 2513:  uart1_modem_init: evm_id(4) profile(0xffffffff)
[    0.206146]  -----> arch/arm/mach-omap2/board-am335xevm.c 2087:  wl12xx_ciel_init: evm_id(4) profile(0xffffffff)
[    0.206207]  -----> arch/arm/mach-omap2/board-am335xevm.c 1324:  gpio_ddr_vtt_enb_init: evm_id(4) profile(0xffffffff)
[    0.206237]  -----> arch/arm/mach-omap2/devices.c 1598:  am33xx_cpsw_init: phy_id0((null)) phy_id1((null))
[    0.207397]  omap2_mcspi.1: alias fck already exists
[    0.207611]  omap2_mcspi.2: alias fck already exists
[    0.208557]  edma.0: alias fck already exists
[    0.208557]  edma.0: alias fck already exists
[    0.208587]  edma.0: alias fck already exists
[    0.234741] bio: create slab <bio-0> at 0
[    0.236785] SCSI subsystem initialized
[    0.238372] usbcore: registered new interface driver usbfs
[    0.238708] usbcore: registered new interface driver hub
[    0.238891] usbcore: registered new device driver usb
[    0.239074] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[    0.239379] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[    0.259033] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[    0.260101] tps65910 1-002d: JTAGREVNUM 0x0
[    0.262512] print_constraints: VRTC: 
[    0.263946] print_constraints: VIO: at 1500 mV 
[    0.266265] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal 
[    0.268554] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal 
[    0.269561] print_constraints: VDD3: 5000 mV 
[    0.270965] print_constraints: VDIG1: at 1800 mV 
[    0.272399] print_constraints: VDIG2: at 1800 mV 
[    0.273834] print_constraints: VPLL: at 1800 mV 
[    0.275238] print_constraints: VDAC: at 1800 mV 
[    0.276672] print_constraints: VAUX1: at 1800 mV 
[    0.278076] print_constraints: VAUX2: at 3300 mV 
[    0.279510] print_constraints: VAUX33: at 3300 mV 
[    0.280944] print_constraints: VMMC: at 3300 mV 
[    0.281433] tps65910 1-002d: No interrupt support, no core IRQ
[    0.283538] Switching to clocksource gp timer
[    0.298919] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    0.299072] musb-hdrc musb-hdrc.0: dma type: pio
[    0.299377] MUSB0 controller's USBSS revision = 4ea20800
[    0.299407] musb0: Enabled SW babble control
[    0.300018] musb-hdrc musb-hdrc.0: USB OTG mode controller at d083c000 using PIO, IRQ 18
[    0.300170] musb-hdrc musb-hdrc.1: dma type: pio
[    0.300445] MUSB1 controller's USBSS revision = 4ea20800
[    0.300476] musb1: Enabled SW babble control
[    0.300628] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    0.300720] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    0.300903] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.300933] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.300933] usb usb1: Product: MUSB HDRC host driver
[    0.300933] usb usb1: Manufacturer: Linux 3.2.0-svn77 musb-hcd
[    0.300964] usb usb1: SerialNumber: musb-hdrc.1
[    0.301788] hub 1-0:1.0: USB hub found
[    0.301818] hub 1-0:1.0: 1 port detected
[    0.302459] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using PIO, IRQ 19
[    0.302886] NET: Registered protocol family 2
[    0.303070] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.303344] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.303497] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.303680] TCP: Hash tables configured (established 8192 bind 8192)
[    0.303680] TCP reno registered
[    0.303710] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.303710] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.303894] NET: Registered protocol family 1
[    0.304199] RPC: Registered named UNIX socket transport module.
[    0.304199] RPC: Registered udp transport module.
[    0.304199] RPC: Registered tcp transport module.
[    0.304229] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.304473] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.304687] omap-gpmc omap-gpmc: GPMC revision 6.0
[    0.304687] GPMC CS0: base(0x8000000) size(0x10000000)
[    0.304718] GPMC CS0: start(0x8000000) end(0x17ffffff)
[    0.304718] GPMC CS1: base(0x18000000) size(0x1000000)
[    0.304718] GPMC CS1: start(0x18000000) end(0x18ffffff)
[    0.304748] Registering NAND on CS0
[    0.304779] GPMC CS0: cs_on     :   0 ticks,   0 ns (was   0 ticks)   0 ns
[    0.304779] GPMC CS0: cs_rd_off :   5 ticks,  50 ns (was  30 ticks)  50 ns
[    0.304809] GPMC CS0: cs_wr_off :   5 ticks,  50 ns (was  30 ticks)  50 ns
[    0.304809] GPMC CS0: adv_on    :   1 ticks,  10 ns (was   0 ticks)  10 ns
[    0.304840] GPMC CS0: adv_rd_off:   4 ticks,  40 ns (was  30 ticks)  40 ns
[    0.304840] GPMC CS0: adv_wr_off:   5 ticks,  50 ns (was  30 ticks)  50 ns
[    0.304870] GPMC CS0: oe_on     :   1 ticks,  10 ns (was   7 ticks)  10 ns
[    0.304870] GPMC CS0: oe_off    :   6 ticks,  60 ns (was  24 ticks)  60 ns
[    0.304901] GPMC CS0: we_on     :   1 ticks,  10 ns (was   5 ticks)  10 ns
[    0.304901] GPMC CS0: we_off    :   4 ticks,  40 ns (was  22 ticks)  40 ns
[    0.304931] GPMC CS0: rd_cycle  :   9 ticks,  90 ns (was  30 ticks)  90 ns
[    0.304931] GPMC CS0: wr_cycle  :   9 ticks,  90 ns (was  30 ticks)  90 ns
[    0.304962] GPMC CS0: access    :   7 ticks,  70 ns (was  21 ticks)  70 ns
[    0.304962] GPMC CS0: page_burst_access:   0 ticks,   0 ns (was   0 ticks)   0 ns
[    0.304992] GPMC CS0: wr_data_mux_bus:   0 ticks,   0 ns (was   0 ticks)   0 ns
[    0.304992] GPMC CS0: wr_access :   4 ticks,  40 ns (was  22 ticks)  40 ns
[    0.316314] VFS: Disk quotas dquot_6.5.2
[    0.316375] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.316925] msgmni has been set to 495
[    0.320098] alg: No test for stdrng (krng)
[    0.320770] io scheduler noop registered
[    0.320770] io scheduler deadline registered
[    0.320831] io scheduler cfq registered (default)
[    0.322021] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    1.299194] console [ttyO0] enabled
[    1.303497] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    1.311370] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    1.319152] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    1.326934] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    1.334716] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    1.342956] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[    1.359252] brd: module loaded
[    1.367279] loop: module loaded
[    1.370727] i2c-core: driver [tsl2550] using legacy suspend method
[    1.377197] i2c-core: driver [tsl2550] using legacy resume method
[    1.385345] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.392608] omap2-nand driver initializing
[    1.397216] ONFI flash detected
[    1.400634] ONFI param page 0 valid
[    1.404266] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
[    1.412841] Creating 12 MTD partitions on "omap2-nand.0":
[    1.418518] 0x000000000000-0x000000080000 : "SPL"
[    1.425048] 0x000000080000-0x000000260000 : "U-Boot"
[    1.432189] 0x000000260000-0x0000002e0000 : "U-Boot Env"
[    1.439178] 0x0000002e0000-0x0000007e0000 : "Kernel0"
[    1.447814] 0x0000007e0000-0x0000067e0000 : "FileSystem0"
[    1.494476] 0x0000067e0000-0x000006ce0000 : "Kernel1"
[    1.502929] 0x000006ce0000-0x00000cce0000 : "FileSystem1"
[    1.549560] 0x00000cce0000-0x00000fc00000 : "reserved"
[    1.575622] 0x00000fc00000-0x00000fd00000 : "CurConfig"
[    1.582672] 0x00000fd00000-0x00000fe00000 : "DefConfig"
[    1.589782] 0x00000fe00000-0x00000ff00000 : "FactoryInfo"
[    1.597106] 0x00000ff00000-0x000010000000 : "CommonEnv"
[    1.604400] OneNAND driver initializing
[    1.609130] UBI: attaching mtd4 to ubi0
[    1.613159] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    1.619720] UBI: logical eraseblock size:    126976 bytes
[    1.625366] UBI: smallest flash I/O unit:    2048
[    1.630249] UBI: VID header offset:          2048 (aligned 2048)
[    1.636535] UBI: data offset:                4096
[    2.459899] UBI: max. sequence number:       313
[    2.478363] UBI: attached mtd4 to ubi0
[    2.482269] UBI: MTD device name:            "FileSystem0"
[    2.488037] UBI: MTD device size:            96 MiB
[    2.493103] UBI: number of good PEBs:        768
[    2.497924] UBI: number of bad PEBs:         0
[    2.502563] UBI: number of corrupted PEBs:   0
[    2.507202] UBI: max. allowed volumes:       128
[    2.512023] UBI: wear-leveling threshold:    4096
[    2.516906] UBI: number of internal volumes: 1
[    2.521545] UBI: number of user volumes:     1
[    2.526184] UBI: available PEBs:             0
[    2.530822] UBI: total number of reserved PEBs: 768
[    2.535919] UBI: number of PEBs reserved for bad PEB handling: 7
[    2.542175] UBI: max/mean erase counter: 2/1
[    2.546630] UBI: image sequence number:  680623224
[    2.551727] UBI: background thread "ubi_bgt0d" started, PID 591
[    2.558502] CAN device driver interface
[    2.562500] CAN bus driver for Bosch D_CAN controller 1.0
[    2.614288] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[    2.620727] davinci_mdio davinci_mdio.0: detected phy mask fffffffc
[    2.628448] davinci_mdio.0: probed
[    2.632019] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
[    2.639373] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[    2.647064] usbcore: registered new interface driver zd1201
[    2.653045] usbcore: registered new interface driver cdc_ether
[    2.659301] usbcore: registered new interface driver cdc_eem
[    2.665374] usbcore: registered new interface driver dm9601
[    2.671234] cdc_ncm: 04-Aug-2011
[    2.674774] usbcore: registered new interface driver cdc_ncm
[    2.680847] usbcore: registered new interface driver cdc_acm
[    2.686767] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.695098] Initializing USB Mass Storage driver...
[    2.700408] usbcore: registered new interface driver usb-storage
[    2.706695] USB Mass Storage support registered.
[    2.711853] usbcore: registered new interface driver usbserial
[    2.718078] USB Serial support registered for generic
[    2.723480] usbcore: registered new interface driver usbserial_generic
[    2.730316] usbserial: USB Serial Driver core
[    2.734985] USB Serial support registered for debug
[    2.740234] usbcore: registered new interface driver debug
[    2.746093] USB Serial support registered for FTDI USB Serial Device
[    2.752990] usbcore: registered new interface driver ftdi_sio
[    2.759002] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
[    2.765228] USB Serial support registered for pl2303
[    2.770568] usbcore: registered new interface driver pl2303
[    2.776397] pl2303: Prolific PL2303 USB to serial adaptor driver
[    2.782745]  gadget: using random self ethernet address
[    2.788208]  gadget: using random host ethernet address
[    2.794281] usb0: MAC 2a:de:8f:01:fe:f7
[    2.798278] usb0: HOST MAC 06:e3:b4:81:14:9f
[    2.802825]  gadget: Ethernet Gadget, version: Memorial Day 2008
[    2.809112]  gadget: g_ether ready
[    2.812683] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[    2.818267] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
[    2.826141] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.833221] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.840759] usb usb2: Product: MUSB HDRC host driver
[    2.845947] usb usb2: Manufacturer: Linux 3.2.0-svn77 musb-hcd
[    2.852020] usb usb2: SerialNumber: musb-hdrc.0
[    2.857666] hub 2-0:1.0: USB hub found
[    2.861572] hub 2-0:1.0: 1 port detected
[    2.866577] LeArc_NetDriver: 2013-05-31-1026
[    2.871246] usbcore: registered new interface driver GobiNet
[    2.877624] mousedev: PS/2 mouse device common for all mice
[    2.884185] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[    2.891448] i2c /dev entries driver
[    2.895507] Linux video capture interface: v2.00
[    2.900634] usbcore: registered new interface driver uvcvideo
[    2.906646] USB Video Class driver (1.1.1)
[    2.913024] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    2.924072] cpuidle: using governor ladder
[    2.928833] cpuidle: using governor menu
[    3.074829] omap4_aes_mod_init: loading AM33X AES driver
[    3.080505] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[    3.087036] omap4_aes_probe: probe() done
[    3.091400] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[    3.097564] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[    3.108856] omap4_sham_probe: probe() done
[    3.115386] usbcore: registered new interface driver usbhid
[    3.121215] usbhid: USB HID core driver
[    3.125457] oprofile: hardware counters not available
[    3.130798] oprofile: using timer interrupt.
[    3.135284] nf_conntrack version 0.5.0 (3960 buckets, 15840 max)
[    3.142028] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.147735] TCP cubic registered
[    3.151092] NET: Registered protocol family 17
[    3.155792] can: controller area network core (rev 20090105 abi 8)
[    3.162322] NET: Registered protocol family 29
[    3.166992] can: raw protocol (rev 20090105)
[    3.171478] can: broadcast manager protocol (rev 20090105 t)
[    3.177429] Registering the dns_resolver key type
[    3.182434] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    3.190460] ThumbEE CPU extension supported.
[    3.195007] mux: Failed to setup hwmod io irq -22
[    3.200531] Power Management for AM33XX family
[    3.205413] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[    3.212097] Copied the M3 firmware to UMEM
[    3.216491] Cortex M3 Firmware Version = 0x18
[    3.221588] sr_init: platform driver register failed
[    3.229980] clock: disabling unused clocks to save power
[    3.251678] Detected MACID=1c:ba:8c:a8:1f:78
[    3.257171] cpsw: Detected MACID = 1c:ba:8c:a8:1f:7a
[    3.263244] USB Serial support registered for GSM modem (1-port)
[    3.269897] usbcore: registered new interface driver option
[    3.275756] option: v0.7.2:USB Driver for GSM modems
[    3.281005] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    3.355133] UBIFS: recovery needed
[    3.538208] UBIFS: recovery completed
[    3.542053] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    3.548370] UBIFS: file system size:   94597120 bytes (92380 KiB, 90 MiB, 745 LEBs)
[    3.556396] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[    3.564025] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    3.570129] UBIFS: default compressor: lzo
[    3.574432] UBIFS: reserved for root:  0 bytes (0 KiB)
[    3.580963] VFS: Mounted root (ubifs filesystem) on device 0:13.
[    3.587585] Freeing init memory: 228K
INIT: version 2.88 booting
Error opening /dev/fb0: No such device or address
Starting udev
NetCfg Initialize Boot mode [normal]
initializing done...
Fri Apr  5 12:16:00 UTC 2013
INIT: Entering runlevel: 5
stunnel: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/lib/libssl.so.1.0.0)

  __    ___  _____   __  __  __  
 / /   / __\ \_   \ /__\/ /  \ \ 
/ /   / /     / /\//_\ / /    \ \
\ \  / /___/\/ /_ //__/ /___  / /
 \_\ \____/\____/ \__/\____/ /_/ 

am335x-evm login: stunnel: LOG7[1045:1076396032]: Clients allowed=500
stunnel: LOG5[1045:1076396032]: stunnel 4.56 on arm-arago-linux-gnueabi platform
stunnel: LOG5[1045:1076396032]: Compiled/running with OpenSSL 1.0.1e 11 Feb 2013
stunnel: LOG5[1045:1076396032]: Threading:PTHREAD Sockets:POLL,IPv6 SSL:ENGINE,OCSP
stunnel: LOG5[1045:1076396032]: Reading configuration from file /etc/stunnel.conf
stunnel: LOG7[1045:1076396032]: Compression not enabled
stunnel: LOG7[1045:1076396032]: PRNG seeded successfully
stunnel: LOG6[1045:1076396032]: Initializing service [https]
stunnel: LOG4[1045:1076396032]: Insecure file permissions on /etc/stunnel.pem
stunnel: LOG7[1045:1076396032]: Certificate: /etc/stunnel.pem
stunnel: LOG7[1045:1076396032]: Certificate loaded
stunnel: LOG7[1045:1076396032]: Key file: /etc/stunnel.pem
stunnel: LOG7[1045:1076396032]: Private key loaded
stunnel: LOG7[1045:1076396032]: Could not load DH parameters from /etc/stunnel.pem
stunnel: LOG7[1045:1076396032]: Using hardcoded DH parameters
stunnel: LOG7[1045:1076396032]: DH initialized with 2048-bit key
stunnel: LOG7[1045:1076396032]: ECDH initialized with curve prime256v1
stunnel: LOG7[1045:1076396032]: SSL options set: 0x01000004
stunnel: LOG5[1045:1076396032]: Configuration successful
stunnel: LOG7[1045:1076396032]: Service [https] (FD=6) bound to 0.0.0.0:443
stunnel: LOG7[1081:1076396032]: Created pid file /var/run/stunnel.pid
root
login[1079]: root login on 'ttyO0'
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 1C:BA:8C:A7:EE:BA  
          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)

eth1      Link encap:Ethernet  HWaddr 1C:BA:8C:A7:EE:BC  
          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)

lo        Link encap:Local Loopback  
          LOOPBACK  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)

usb0      Link encap:Ethernet  HWaddr C6:06:00:87:68:6E  
          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)

root@am335x-evm:~#  
root@am335x-evm:~# 
root@am335x-evm:~# ifconfig eth0 192.168.1.100 up
[   38.036773] net eth0: CPSW phy found : id is : 0x4dd072
root@am335x-evm:~# [   40.036468] PHY: 0:00 - Link is Up - 100/Full
 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# ping 192.168.1.61
PING 192.168.1.61 (192.168.1.61): 56 data bytes
64 bytes from 192.168.1.61: seq=0 ttl=128 time=7.660 ms
64 bytes from 192.168.1.61: seq=1 ttl=128 time=0.549 ms
64 bytes from 192.168.1.61: seq=2 ttl=128 time=0.610 ms
64 bytes from 192.168.1.61: seq=3 ttl=128 time=0.488 ms
64 bytes from 192.168.1.61: seq=4 ttl=128 time=0.641 ms
64 bytes from 192.168.1.61: seq=5 ttl=128 time=0.671 ms
64 bytes from 192.168.1.61: seq=6 ttl=128 time=0.641 ms
64 bytes from 192.168.1.61: seq=7 ttl=128 time=0.702 ms
64 bytes from 192.168.1.61: seq=8 ttl=128 time=0.733 ms
64 bytes from 192.168.1.61: seq=9 ttl=128 time=0.641 ms

--- 192.168.1.61 ping statistics ---
10 packets transmitted, 10 packets received, 0% packet loss
round-trip min/avg/max = 0.488/1.333/7.660 ms
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~#  
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# [  130.036285] PHY: 0:00 - Link is Down

root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# ifconfig eth0 down
root@am335x-evm:~#  
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 1C:BA:8C:A7:EE:BA  
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:114 errors:0 dropped:14 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10141 (9.9 KiB)  TX bytes:1100 (1.0 KiB)

eth1      Link encap:Ethernet  HWaddr 1C:BA:8C:A7:EE:BC  
          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)

lo        Link encap:Local Loopback  
          LOOPBACK  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)

usb0      Link encap:Ethernet  HWaddr C6:06:00:87:68:6E  
          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)

root@am335x-evm:~#  
root@am335x-evm:~# 
root@am335x-evm:~# ifconfig eth1 192.178.1.101 up
[  158.370147] net eth1: CPSW phy found : id is : 0x4dd072
root@am335x-evm:~# [  161.366302] PHY: 0:01 - Link is Up - 100/Full
 
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# ping 192.168.1.61
PING 192.168.1.61 (192.168.1.61): 56 data bytes
ping: sendto: Network is unreachable
root@am335x-evm:~#  
root@am335x-evm:~# 
root@am335x-evm:~# ping 192.168.1.61
PING 192.168.1.61 (192.168.1.61): 56 data bytes
ping: sendto: Network is unreachable
root@am335x-evm:~#  
root@am335x-evm:~# 
root@am335x-evm:~# ethtool eth1
Settings for eth1:
        Supported ports: [ TP AUI BNC MII FIBRE ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 1
        Transceiver: external
        Auto-negotiation: on
        Current message level: 0x00000000 (0)
                               
        Link detected: yes
root@am335x-evm:~#  
root@am335x-evm:~# 
root@am335x-evm:~# 
root@am335x-evm:~# ping 192.168.1.61
PING 192.168.1.61 (192.168.1.61): 56 data bytes
ping: sendto: Network is unreachable
root@am335x-evm:~#  
root@am335x-evm:~# 
root@am335x-evm:~# 

 

Hi,

I have a customer board with AM3352 Rev.B ZCZ package and the board has 2 ethernet phy, AR035.

The customer board is very similar to SK board so I used SK configuration when I ported U-boot & kernel.

 

When the board boots, U-boot detects eth0 successfully and so NFS is possible.

But after loading kernel, 2nd ethernet phy(eth1) doesn’t works properly. Eth0 works well.

Please see attached files.

 

<test condition>

-          AM3352 ZCZ

-          2x ethernet PHY : RGMII AR035

-          phy_id : eth0=0, eth1=1

-          EZSDK : v5.07

 

Following are modification in kernel by us.

 

static struct evm_dev_cfg evm_sk_dev_cfg[] = {

………

                {rgmii1_init,        DEV_ON_BASEBOARD, PROFILE_ALL},

                {rgmii2_init,        DEV_ON_BASEBOARD, PROFILE_ALL}, <-- pin-mux is not changed. it’s same as SK board.

 

 

static void setup_starterkit(void)

{

                pr_info("The board is a AM335x Starter Kit.\n");

 

                _configure_device(EVM_SK, evm_sk_dev_cfg, PROFILE_NONE);

 

                am33xx_cpsw_init(AM33XX_CPSW_MODE_MII, "0:00", "0:01");   <<<---------------- phy_id

                /* Atheros Tx Clk delay Phy fixup */

                phy_register_fixup_for_uid(AM335X_EVM_PHY_ID, AM335X_EVM_PHY_MASK,

                                                                   am33xx_evm_tx_clk_dly_phy_fixup);

}

 

 

 

static void am335x_evm_setup(struct memory_accessor *mem_acc, void *context)

{

                int ret;

                char tmp[10];

#if 0 /* customer board doesn’t have EEPROM */

                /* 1st get the MAC address from EEPROM */

                ret = mem_acc->read(mem_acc, (char *)&am335x_mac_addr,

                                EEPROM_MAC_ADDRESS_OFFSET, sizeof(am335x_mac_addr));

 

                if (ret != sizeof(am335x_mac_addr)) {

                                pr_warning("AM335X: EVM Config read fail: %d\n", ret);

                                return;

                }

 

                /* Fillup global mac id */

                am33xx_cpsw_macidfillup(&am335x_mac_addr[0][0],

                                                                &am335x_mac_addr[1][0]);

               

                ………………….

#else

                setup_starterkit();

#endif

Thanks and BR,

Devin