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.
Dear All:
my platform AM3352, SW SDK6.0, my borad have on PHY, EVM have two THY
so am33xx_cpsw_init(AM33XX_CPSW_MODE_RGMII, NULL, PHY1_ID);
modify linux-3.2.0-psp04.06.00.11/arch/arm/mach-omap2/device.c
static struct cpsw_platform_data am33xx_cpsw_pdata = {
.ss_reg_ofs = 0x1200,
.channels = 8,
.cpdma_reg_ofs = 0x800,
.slaves = 1,//2,
am33xx_cpsw_init() function, can't read TI81XX_CONTROL_MAC_ID0_LO(ID0) info
only read TI81XX_CONTROL_MAC_ID1_XX
but go to OS ,
ls /sys/class/net/
eth0 eth1 lo
I want to have one PHY, eth0 OK, who give me some idea!
You are probably referring to the AM335X Starter Kit. Try looking at the AM335X GP EVM - it has only one PHY.
Hi,
Thannk you, I close the MACRO :CONFIG_TI_CPSW_DUAL_EMAC
modify .slave = 1
ls /sys/class/net , have one PHY: eth0, but:
ifconfig eth0 up : OK
udhcpc -i eth0: can't get IP, then set static IP , ping PC ,can't ping OK
Hi Biser,
Hardware use RGMII2 pin, so Software use:
am33xx_cpsw_init(AM33XX_CPSW_MODE_RGMII, NULL, "PHY_ID1");
device.c am33xx_cpsw_init() function, I read mac address
omap_ctrl_readl(TI81XX_CONTROL_MAC_ID1_LO), read TI81XX_CONTROL_MAC_ID1_XX
go to linux OS , eth0 & eth1 may see, but eth0 can't use, eth1 function is OK
ifconfig eth1 up , get IP is OK!
Now, Modify code device.c:
static struct cpsw_slave_data am33xx_cpsw_slaves[] = {
{
.slave_reg_ofs = 0x300,
.sliver_reg_ofs = 0xdc0,
.phy_id = "0:01",
.dual_emac_reserved_vlan = CPSW_PORT_VLAN_SLAVE_0,
},
#if 0
{
.slave_reg_ofs = 0x200,
.sliver_reg_ofs = 0xd80,
.phy_id = "0:00",
.dual_emac_reserved_vlan = CPSW_PORT_VLAN_SLAVE_0,
},
#endif
};
static struct cpsw_platform_data am33xx_cpsw_pdata = {
.ss_reg_ofs = 0x1200,
.channels = 8,
.cpdma_reg_ofs = 0x800,
.slaves = 1,//2,
.slave_data = am33xx_cpsw_slaves,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
read mac address, read TI81XX_CONTROL_MAC_ID1_XX
make menuconfig , close CONFIG_TI_CPSW_DUAL_EMAC
go to linux OS:
root@am335x-adv:~# ls /sys/class/net/
can0 can1 eth0 lo
root@am335x-adv:~# ifconfig eth0 up
[ 51.906850] net eth0: CPSW phy found : id is : 0x4dd074
root@am335x-adv:~# [ 53.901477] PHY: 0:01 - Link is Up - 100/Full
root@am335x-adv:~# udhcpc -i eth0
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover..
root@am335x-adv:~# dmesg
[ 0.000000] Linux version 3.2.0 (root@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #21 Fri Aug 22 09:17:56 CST 2014
[ 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] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c063ff80, node_mem_map c067c000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 130048 pages, LIFO batch:31
[ 0.000000] AM335X ES2.1 (neon )
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext3 rootwait ip=none
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 512MB = 512MB total
[ 0.000000] Memory: 513108k/513108k available, 11180k 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 : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05a4000 (5744 kB)
[ 0.000000] .init : 0xc05a4000 - 0xc05df000 ( 236 kB)
[ 0.000000] .data : 0xc05e0000 - 0xc0649a08 ( 423 kB)
[ 0.000000] .bss : 0xc0649a2c - 0xc067b7ac ( 200 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 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000157] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.089338] pid_max: default: 32768 minimum: 301
[ 0.089438] Security Framework initialized
[ 0.089515] Mount-cache hash table entries: 512
[ 0.089823] CPU: Testing write buffer coherency: ok
[ 0.109041] omap_hwmod: gfx: failed to hardreset
[ 0.124817] omap_hwmod: pruss: failed to hardreset
[ 0.125707] print_constraints: dummy:
[ 0.125990] NET: Registered protocol family 16
[ 0.127609] OMAP GPIO hardware version 0.1
[ 0.129609] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.130830] omap_i2c.1: alias fck already exists
[ 0.131500] omap2_mcspi.1: alias fck already exists
[ 0.132194] edma.0: alias fck already exists
[ 0.132210] edma.0: alias fck already exists
[ 0.132223] edma.0: alias fck already exists
[ 0.152209] bio: create slab <bio-0> at 0
[ 0.153999] SCSI subsystem initialized
[ 0.155021] usbcore: registered new interface driver usbfs
[ 0.155250] usbcore: registered new interface driver hub
[ 0.155394] usbcore: registered new device driver usb
[ 0.155626] registerd cppi-dma Intr @ IRQ 17
[ 0.155637] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
[ 0.155644] Cppi41 Init Done
[ 0.155666] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.155892] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.156738] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.159609] print_constraints: VRTC:
[ 0.161048] print_constraints: VIO: at 1500 mV
[ 0.163353] print_constraints: VDD1: 600 <--> 1500 mV at 1325 mV normal
[ 0.165638] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
[ 0.166599] print_constraints: VDD3: 5000 mV
[ 0.167992] print_constraints: VDIG1: at 1800 mV
[ 0.169396] print_constraints: VDIG2: at 1800 mV
[ 0.170787] print_constraints: VPLL: at 1800 mV
[ 0.172190] print_constraints: VDAC: at 1800 mV
[ 0.173583] print_constraints: VAUX1: at 1800 mV
[ 0.174989] print_constraints: VAUX2: at 3300 mV
[ 0.176379] print_constraints: VAUX33: at 3300 mV
[ 0.177772] print_constraints: VMMC: at 3300 mV
[ 0.178469] tps65910 1-002d: No interrupt support, no core IRQ
[ 0.180162] pca953x 1-0022: interrupt support not compiled in
[ 0.188439] i2c i2c-1: Invalid 7-bit I2C address 0x00
[ 0.188450] i2c i2c-1: Can't create device at 0x00
[ 0.189648] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.190503] Switching to clocksource gp timer
[ 0.201804] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.201950] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.202201] MUSB0 controller's USBSS revision = 4ea20800
[ 0.202219] TxFifo Empty intr disabled
[ 0.202227] musb0: Enabled SW babble control
[ 0.202454] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.202469] musb-hdrc: MHDRC RTL version 2.0
[ 0.202477] musb-hdrc: setup fifo_mode 4
[ 0.202499] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.202510] musb-hdrc.0: bulk split disabled
[ 0.202517] musb-hdrc.0: bulk combine disabled
[ 0.202943] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
[ 0.203073] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.203313] MUSB1 controller's USBSS revision = 4ea20800
[ 0.203328] TxFifo Empty intr disabled
[ 0.203335] musb1: Enabled SW babble control
[ 0.203549] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.203563] musb-hdrc: MHDRC RTL version 2.0
[ 0.203570] musb-hdrc: setup fifo_mode 4
[ 0.203590] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.203599] musb-hdrc.1: bulk split disabled
[ 0.203606] musb-hdrc.1: bulk combine disabled
[ 0.203662] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.203732] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.203832] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.203843] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.203853] usb usb1: Product: MUSB HDRC host driver
[ 0.203860] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.203868] usb usb1: SerialNumber: musb-hdrc.1
[ 0.204478] hub 1-0:1.0: USB hub found
[ 0.204502] hub 1-0:1.0: 1 port detected
[ 0.204921] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
[ 0.205251] NET: Registered protocol family 2
[ 0.205404] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.205647] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.205862] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.205989] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.205998] TCP reno registered
[ 0.206007] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.206024] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.206175] NET: Registered protocol family 1
[ 0.206374] RPC: Registered named UNIX socket transport module.
[ 0.206384] RPC: Registered udp transport module.
[ 0.206390] RPC: Registered tcp transport module.
[ 0.206397] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.206592] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.223152] VFS: Disk quotas dquot_6.5.2
[ 0.223205] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.223607] msgmni has been set to 1002
[ 0.226084] alg: No test for stdrng (krng)
[ 0.226634] io scheduler noop registered
[ 0.226644] io scheduler deadline registered
[ 0.226692] io scheduler cfq registered (default)
[ 0.227718] ch7055_init
[ 0.228983] i2c-core: driver [ch7055] using legacy suspend method
[ 0.228994] i2c-core: driver [ch7055] using legacy resume method
[ 0.229435] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.910048] console [ttyO0] enabled
[ 0.914204] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.921975] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.929660] omap_uart.3: ttyO3 at MMIO 0x481a8000 (irq = 45) is a OMAP UART3
[ 0.937365] omap_uart.4: ttyO4 at MMIO 0x481aa000 (irq = 46) is a OMAP UART4
[ 0.945705] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 0.959582] brd: module loaded
[ 0.966429] loop: module loaded
[ 0.969852] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.976348] i2c-core: driver [tsl2550] using legacy resume method
[ 0.982777] at24 1-0057: 4096 byte 24c32 EEPROM, writable, 64 bytes/write
[ 0.989874] Board name: A33515BB
[ 0.993252] Board version: 1.5A
[ 0.996530] SKU: SKU#01
[ 0.999080] The board is general purpose EVM with DDR3 in profile 0
[ 1.006047] da8xx_lcdc.0: alias fck already exists
[ 1.011546] da8xx_lcdc da8xx_lcdc.0: GLCD: Found INNOLUX_G150XGE_L04 panel
[ 1.040544] Console: switching to colour frame buffer device 128x48
[ 1.058667] omap_hsmmc.0: alias fck already exists
[ 1.064238] omap_hsmmc.1: alias fck already exists
[ 1.069656] run mmc1_emmc_init done,
[ 1.073512] davinci-mcasp.0: alias fck already exists
[ 1.079829] d_can.0: alias fck already exists
[ 1.084754] d_can.1: alias fck already exists
[ 1.091837] registered am33xx_sr device
[ 1.097319] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.104264] m25p80 spi1.0: w25q32 (4096 Kbytes)
[ 1.109182] Creating 5 MTD partitions on "spi_flash":
[ 1.114491] 0x000000000000-0x000000020000 : "SPL"
[ 1.120554] 0x000000020000-0x00000007f000 : "U-Boot"
[ 1.126684] 0x00000007f000-0x000000080000 : "U-Boot Env"
[ 1.133173] 0x000000080000-0x0000003e2000 : "Kernel"
[ 1.139277] 0x0000003e2000-0x000000400000 : "File System"
[ 1.146201] omap2-nand driver initializing
[ 1.150651] OneNAND driver initializing
[ 1.155698] CAN device driver interface
[ 1.159706] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.166040] d_can d_can.0: device registered (irq=52, irq_obj=53)
[ 1.172967] d_can d_can.1: device registered (irq=55, irq_obj=56)
[ 1.220593] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.227056] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
[ 1.234431] davinci_mdio.0: probed
[ 1.237989] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[ 1.245642] usbcore: registered new interface driver zd1201
[ 1.251631] usbcore: registered new interface driver cdc_ether
[ 1.257844] usbcore: registered new interface driver cdc_eem
[ 1.263891] usbcore: registered new interface driver dm9601
[ 1.269750] cdc_ncm: 04-Aug-2011
[ 1.273260] usbcore: registered new interface driver cdc_ncm
[ 1.279181] Initializing USB Mass Storage driver...
[ 1.284455] usbcore: registered new interface driver usb-storage
[ 1.290746] USB Mass Storage support registered.
[ 1.295927] mousedev: PS/2 mouse device common for all mice
[ 1.306182] rtc-s35390a 1-0030: rtc core: registered rtc-s35390a as rtc0
[ 1.313370] i2c /dev entries driver
[ 1.317330] Linux video capture interface: v2.00
[ 1.322449] usbcore: registered new interface driver uvcvideo
[ 1.328457] USB Video Class driver (1.1.1)
[ 1.471329] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.479717] cpuidle: using governor ladder
[ 1.484398] cpuidle: using governor menu
[ 1.491942] omap4_aes_mod_init: loading AM33X AES driver
[ 1.497573] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 1.504211] omap4_aes_probe: probe() done
[ 1.508606] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 1.514735] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 1.531543] omap4_sham_probe: probe() done
[ 1.537715] usbcore: registered new interface driver usbhid
[ 1.543567] usbhid: USB HID core driver
[ 1.548215] usbcore: registered new interface driver snd-usb-audio
[ 1.556407] _regulator_get: 1-001b supply IOVDD not found, using dummy regulator
[ 1.564242] _regulator_get: 1-001b supply DVDD not found, using dummy regulator
[ 1.571918] _regulator_get: 1-001b supply AVDD not found, using dummy regulator
[ 1.579585] _regulator_get: 1-001b supply DRVDD not found, using dummy regulator
[ 1.589473] asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
[ 1.596936] ALSA device list:
[ 1.600049] #0: AM335X EVM
[ 1.603079] oprofile: hardware counters not available
[ 1.608355] oprofile: using timer interrupt.
[ 1.612839] pktgen: Packet Generator for packet performance testing. Version: 2.74
[ 1.620936] nf_conntrack version 0.5.0 (8017 buckets, 32068 max)
[ 1.627673] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.633355] TCP cubic registered
[ 1.636731] NET: Registered protocol family 17
[ 1.641395] can: controller area network core (rev 20090105 abi 8)
[ 1.647925] NET: Registered protocol family 29
[ 1.652610] can: raw protocol (rev 20090105)
[ 1.657070] can: broadcast manager protocol (rev 20090105 t)
[ 1.663018] Registering the dns_resolver key type
[ 1.667996] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.676019] ThumbEE CPU extension supported.
[ 1.680548] mux: Failed to setup hwmod io irq -22
[ 1.686016] Power Management for AM33XX family
[ 1.690861] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 1.697538] Copied the M3 firmware to UMEM
[ 1.701907] Cortex M3 Firmware Version = 0x181
[ 1.706626] DIEID: 13009011 01638526 00000000 76920002
[ 1.706634] EFUSE SMA register val = 00013c2f
[ 1.706652] Compensating OPP0: Orig nvalue:0x99b7a5 New nvalue:0x99b7a5
[ 1.706663] Compensating OPP1: Orig nvalue:0x9a86f2 New nvalue:0x9a86f2
[ 1.708189] Compensating OPP0: Orig nvalue:0x99aea2 New nvalue:0x99aea2
[ 1.708203] Compensating OPP1: Orig nvalue:0x999385 New nvalue:0x999385
[ 1.708213] Compensating OPP2: Orig nvalue:0xaae5d0 New nvalue:0xaae5d0
[ 1.708223] Compensating OPP3: Orig nvalue:0xaacab7 New nvalue:0xaacab7
[ 1.708233] Compensating OPP4: Orig nvalue:0xaacab7 New nvalue:0xaa9a8e
[ 1.708293] create_regulator: VDD1: Failed to create debugfs directory
[ 1.716700] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
[ 1.727762] mmc0: new high speed SD card at address 0007
[ 1.736737] clock: disabling unused clocks to save power
[ 1.743112] mmcblk0: mmc0:0007 SD02G 1.86 GiB
[ 1.749778] mmcblk0: p1 p2
[ 1.761587] Detected MACID=1c:ba:8c:ef:7a:6b
[ 1.767930] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 1.776579] rtc-s35390a 1-0030: setting system clock to 2014-08-21 07:33:34 UTC (1408606414)
[ 1.794546] kjournald starting. Commit interval 5 seconds
[ 1.800358] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 1.807602] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[ 1.814996] Freeing init memory: 236K
[ 1.853306] mmc1: unrecognised EXT_CSD revision 7
[ 1.858245] force to use eMMC 5.0! ...
[ 1.864436] mmc1: new high speed MMC card at address 0001
[ 1.871404] mmcblk1: mmc1:0001 4FEACB 3.64 GiB
[ 1.877470] mmcblk1boot0: mmc1:0001 4FEACB partition 1 4.00 MiB
[ 1.884260] mmcblk1boot1: mmc1:0001 4FEACB partition 2 4.00 MiB
[ 1.891986] mmcblk1: unknown partition table
[ 1.898356] mmcblk1boot1: unknown partition table
[ 1.905398] mmcblk1boot0: unknown partition table
[ 5.591775] EXT3-fs (mmcblk0p2): using internal journal
[ 6.411510] Disabling lock debugging due to kernel taint
[ 8.008057] gadget: Mass Storage Function, version: 2009/09/11
[ 8.014339] gadget: Number of LUNs=1
[ 8.018178] lun0: LUN: removable file: /dev/mmcblk0p1
[ 8.023594] gadget: Mass Storage Gadget, version: 2009/09/11
[ 8.029603] gadget: userspace failed to provide iSerialNumber
[ 8.035726] gadget: g_mass_storage ready
[ 8.039926] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 8.045551] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
[ 8.053381] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 8.060481] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 8.068043] usb usb2: Product: MUSB HDRC host driver
[ 8.073237] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[ 8.078786] usb usb2: SerialNumber: musb-hdrc.0
[ 8.083940] hub 2-0:1.0: USB hub found
[ 8.087869] hub 2-0:1.0: 1 port detected
[ 8.402925] gadget: high-speed config #1: Linux File-Backed Storage
[ 51.906850] net eth0: CPSW phy found : id is : 0x4dd074
[ 53.901477] PHY: 0:01 - Link is Up - 100/Full
root@am335x-adv:~#
What PHY are you using? From what I see the MDIO driver finds a PHY at address 1 but does not register a driver for it.
the log is afther modify device code!
am33xx_cpsw_init(AM33XX_CPSW_MODE_RGMII, NULL, "PHY_ID1");
before modify eth0 & eth1 device node can see, but eth1 is OK, I only set PHI_ID1, Hardwafe use RGMII 2 pin
after modify, only can see one phy, eth0, but functuon is not OK, can't get IP!
so i don't known modify code, give me some ider?
Hi, Biser
Could you give some advice?
I've been in GP EVM entry version of the validation.
On GP EVM Borad, go to linux system,
ls /sys/calss/net
eth0 & eth1, only use eth0, because the GP EVM use RGMII 1.
Now I need to have a PHY HardWare appears eth0 under Linux system.
I am sorry, I cannot help. From your posts I do not understand what you are doing. Please provide a clear explanation.
Hi, Biser
I am very sorry, I did not enough clear.
My demand is:
My platform have one phy, Hardware design reference is TMDSSK3358 Board, PHY is retained RGMII2, RGMII1 pin for other function. For customers ,your platform have one phy, go to Linux OS only have eth0(/sys/class/net).
The AM335X GP EVM board have one phy, but the phy is retauibed RGMII1, and go to Linux OS can see two intface eth0 & eth1(/sys/calss/net), so I feel the GP EVM entry reference is not very enough.
According to the need, do you give me some advice.
Biser,
The request from Ryan is below.
Currently they are using RGMII 2 for AM3352, RGMII 1 interface is configured as other perpherial, in this condition, they want just regist 1 RGMII in kernel as eth0.
In TI solution, if you are using RGMM1, and just regist RGMII 1 in kenel, you will found it works fine with eth0;
But if you are using RGMM 2, and just regist RGMM 2 in kernel, the eth0 can not ping sucessfully.
So the way that how to just configure 1 RGMII 2 in kernel, and the dev name is eth0 in dev path.
thanks in advance.
LEON
OK, I think I understand now. You have a PHY connected only to RGMII2 and you want it to register as eth0. Is this correct?
This has been forwarded to the factory team. They should respond on this thread. Response time depends on their schedule/priorities.
Hi,
I'm wondering what was your solution as I'm also trying to use MII2 and have it be enumerated as eth0.
For example, I currently need to do:
am33xx_cpsw_init(AM33XX_CPSW_MODE_MII, NULL, "0:07");
in order to access the phy at MII2. But this results in eth0 and eth1 being enumerated, with eth0 being a dummy, while eth1 is the working eth device.
Thanks!