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.

TDA2SX: How to use GMAC_3W as ethernet switch

Part Number: TDA2SX

Hi,

I am currently using tds2sx for development, and the VSDK version is 03-06-00-00. I want to realize the Ethernet switch function of GMAC_SW module in Linux. The schematic diagram of Ethernet hardware connection is shown in the figure.

 I tried the following:

1)In devicetree, I discribe the mac like this:

	&mac {
	status = "okay";
	  slaves = <2>;
	  active_slave = <0>;
	  pinctrl-names = "default", "sleep";
		pinctrl-0 = <&rgmii1_default>;
		pinctrl-1 = <&rgmii1_sleep>;
		dual_emac; 
	};

	&cpsw_emac0 {
		phy_id = <&davinci_mdio>, <0>;
		phy-mode = "rgmii";
		dual_emac_res_vlan = <1>;
		fixed-link {
		      speed = <100>;
		      full-duplex;
		};
	};

	&cpsw_emac1 {
		phy_id = <&davinci_mdio>, <2>;
		phy-mode = "rgmii";
		dual_emac_res_vlan = <1>;

	  fixed-link {
		      speed = <100>;
		      full-duplex;
		};
	};

	&davinci_mdio {
		status = "okay";

		bcm89811: ethernet-phy@0 {
			reg = <0>;
			br_master;
		};

		ksz9031: ethernet-phy@1 {
			reg = <1>;
		};
	};

2) Select the relevant option in the driver

	CONFIG_TI_KEYSTONE_NETCP=y
	CONFIG_TI_KEYSTONE_NETCP_ETHSS=y
	CONFIG_TI_KEYSTONE_NETCP_PA_CORE=y
	CONFIG_TI_KEYSTONE_NETCP_PA=y
	CONFIG_TI_KEYSTONE_NETCP_PA2=y
	CONFIG_TI_DAVINCI_EMAC=y
	CONFIG_TI_DAVINCI_MDIO=y
	CONFIG_TI_DAVINCI_CPDMA=y
	CONFIG_TI_CPSW_PHY_SEL=y
	CONFIG_TI_CPSW_ALE=y
	CONFIG_TI_CPSW=y
	CONFIG_TI_CPTS=y

	CONFIG_TI_CPSW_PHY_SEL=y
	CONFIG_TI_CPSW_ALE=y
	CONFIG_TI_CPSW=y
	CONFIG_TI_CPTS=y

3)LINUX starts normally, and the startup log is as follows

U-Boot 2016.05-g01ac8ce (Oct 24 2019 - 19:07:10 +0800)

CPU  : DRA752-GP ES2.0
Model: TI DRA742 YIHANG U-BOOT
Board: DRA74x EVM REV 
DRAM:  4 GiB
MMC:   i2c_write: error waiting for data ACK (status=0x116)
pcf8575_i2c_write_le16 i2c write failed to addr 21
OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment

Warning: fastboot.board_rev: unknown board revision
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
ERROR: cannot find partition: 'userdata'

at arch/arm/cpu/armv7/omap-common/utils.c:199/mmc_get_part_size()
Warning: fastboot.userdata_size: unable to calc
SCSI:  SATA link 0 timeout.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst 
scanning bus for devices...
Found 0 device(s).
Net:   
Warning: ethernet@48484000 using MAC address from ROM
eth0: ethernet@48484000
Hit any key to stop autoboot:  0 
## Error: "board_findfdt" not defined
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
163 bytes read in 2 ms (79.1 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
3413792 bytes read in 25 ms (130.2 MiB/s)
106024 bytes read in 11 ms (9.2 MiB/s)
Booting from mmc1 ...
Kernel image @ 0x82000000 [ 0x000000 - 0x341720 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffe3000, end 8ffffe27 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.84-00058-g0cdd0b5-dirty (buaawkp@buaawkp-computer) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #9 9
[    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] Machine model: TI DRA742 YIHANG3
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000040300000, size 3 MiB
[    0.000000] Reserved memory: initialized node cmem@40300000, compatible id shared-dma-pool
[    0.000000] Reserved memory: regions without no-map are not yet supported
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 80 MiB
[    0.000000] Reserved memory: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x000000009e000000, size 32 MiB
[    0.000000] Reserved memory: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: regions without no-map are not yet supported
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000a1000000, size 32 MiB
[    0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000a3000000, size 32 MiB
[    0.000000] Reserved memory: initialized node dsp2_cma@9f000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: regions without no-map are not yet supported
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a9000000, size 32 MiB
[    0.000000] Reserved memory: initialized node cmem@A9000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: regions without no-map are not yet supported
[    0.000000] Reserved memory: regions without no-map are not yet supported
[    0.000000] cma: Reserved 64 MiB at 0x00000000fb000000
[    0.000000] Forcing write-allocate cache policy for SMP
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] OMAP4: Map 0x000000027fe00000 to fe600000 for dram barrier
[    0.000000] DRA752 ES2.0
[    0.000000] PERCPU: Embedded 11 pages/cpu @eb71f000 s14912 r8192 d21952 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1033791
[    0.000000] Kernel command line: console=ttyO0,115200n8 vram=16M root=PARTUUID=ef220fd9-02 rw rootwait ip=none cma=64M
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 3127768K/4142076K available (6359K kernel code, 301K rwdata, 2240K rodata, 328K init, 286K bss, 768548K reserved, 24576)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc086dffc   (8600 kB)
[    0.000000]       .init : 0xc086e000 - 0xc08c0000   ( 328 kB)
[    0.000000]       .data : 0xc08c0000 - 0xc090b6a0   ( 302 kB)
[    0.000000]        .bss : 0xc090d000 - 0xc0954b88   ( 287 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] ti_dt_clocks_register: failed to lookup clock node gmac_gmii_ref_clk_div
[    0.000000] OMAP clockevent source: timer1 at 32786 Hz
[    0.000000] Architected cp15 timer(s) running at 6.14MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
[    0.000004] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
[    0.000015] Switching to timer-based delay loop, resolution 162ns
[    0.000320] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[    0.000328] OMAP clocksource: 32k_counter at 32768 Hz
[    0.000766] Console: colour dummy device 80x30
[    0.000782] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000788] This ensures that you still see kernel messages. Please
[    0.000793] update your kernel commandline.
[    0.000807] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
[    0.000820] pid_max: default: 32768 minimum: 301
[    0.000918] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000928] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001472] Initializing cgroup subsys io
[    0.001489] Initializing cgroup subsys memory
[    0.001514] Initializing cgroup subsys devices
[    0.001527] Initializing cgroup subsys freezer
[    0.001538] Initializing cgroup subsys perf_event
[    0.001549] Initializing cgroup subsys pids
[    0.001575] CPU: Testing write buffer coherency: ok
[    0.001776] /cpus/cpu@0 missing clock-frequency property
[    0.001791] /cpus/cpu@1 missing clock-frequency property
[    0.001801] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001835] Setting up static identity map for 0x80008380 - 0x800083e0
[    0.080085] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.080154] Brought up 2 CPUs
[    0.080168] SMP: Total of 2 processors activated (24.59 BogoMIPS).
[    0.080174] CPU: All CPU(s) started in HYP mode.
[    0.080179] CPU: Virtualization extensions available.
[    0.080554] devtmpfs: initialized
[    0.108854] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.109670] omap_hwmod: l3_main_2 using broken dt data from ocp
[    0.296239] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.296262] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.302101] pinctrl core: initialized pinctrl subsystem
[    0.302961] NET: Registered protocol family 16
[    0.303884] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.330225] cpuidle: using governor ladder
[    0.360246] cpuidle: using governor menu
[    0.368031] OMAP GPIO hardware version 0.1
[    0.374421] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
[    0.394257] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.394268] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.394672] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.394681] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.395241] OMAP DMA hardware revision 0.0
[    0.441227] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[    0.442286] edma 43300000.edma: memcpy is disabled
[    0.446957] edma 43300000.edma: TI EDMA DMA engine driver
[    0.451068] omap-iommu 40d01000.mmu: 40d01000.mmu registered
[    0.451243] omap-iommu 40d02000.mmu: 40d02000.mmu registered
[    0.451395] omap-iommu 58882000.mmu: 58882000.mmu registered
[    0.451557] omap-iommu 55082000.mmu: 55082000.mmu registered
[    0.451826] omap-iommu 41501000.mmu: 41501000.mmu registered
[    0.452005] omap-iommu 41502000.mmu: 41502000.mmu registered
[    0.454489] palmas 0-0058: IRQ missing: skipping irq request
[    0.470688] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
[    0.532207] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[    0.532384] media: Linux media interface: v0.10
[    0.532436] Linux video capture interface: v2.00
[    0.532476] pps_core: LinuxPPS API ver. 1 registered
[    0.532483] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.532508] PTP clock support registered
[    0.532557] EDAC MC: Ver: 3.0.0
[    0.533297] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
[    0.533584] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
[    0.534662] clocksource: Switched to clocksource arch_sys_counter
[    0.544936] NET: Registered protocol family 2
[    0.545427] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.545491] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.545615] TCP: Hash tables configured (established 8192 bind 8192)
[    0.545664] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.545695] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.545908] NET: Registered protocol family 1
[    0.546173] RPC: Registered named UNIX socket transport module.
[    0.546183] RPC: Registered udp transport module.
[    0.546190] RPC: Registered tcp transport module.
[    0.546196] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.547110] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.557080] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.557725] NFS: Registering the id_resolver key type
[    0.557750] Key type id_resolver registered
[    0.557758] Key type id_legacy registered
[    0.557820] ntfs: driver 2.1.32 [Flags: R/O].
[    0.559102] bounce: pool size: 64 pages
[    0.559250] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.559267] io scheduler noop registered
[    0.559281] io scheduler deadline registered
[    0.559315] io scheduler cfq registered (default)
[    0.563984] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
[    0.623639] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    0.626973] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 299, base_baud = 3000000) is a 8250
[    1.530647] console [ttyS0] enabled
[    1.535243] [drm] Initialized drm 1.1.0 20060810
[    1.540740] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.547426] [drm] No driver support for vblank timestamp query.
[    1.553553] [drm] Initialized vdrm 1.0.0 20110917 on minor 0
[    1.565251] loop: module loaded
[    1.568722] vmemexp device MAJOR num = 245
[    1.572847] vmemexp class registered
[    1.576580] /dev/vmemexp device registered
[    1.580696] ioctl DBUFIOC_EXPORT_VIRTMEM = -1072899120
[    1.588550] libphy: Fixed MDIO Bus: probed
[    1.634700] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
[    1.640826] libphy: 48485000.mdio: probed
[    1.649067] davinci_mdio 48485000.mdio: phy[0]: device 48485000.mdio:00, driver Broadcom BCM89811
[    1.658000] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
[    1.668599] cpsw 48484000.ethernet: Detected MACID = 6c:c3:74:2b:63:91
[    1.675283] cpsw 48484000.ethernet: cpts: overflow check period 800
[    1.682253] cpsw 48484000.ethernet: cpsw: Detected MACID = 6c:c3:74:2b:63:91
[    1.690849] mousedev: PS/2 mouse device common for all mice
[    1.696891] i2c /dev entries driver
[    1.705269] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
[    1.711654] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
[    1.718273] evm_3v3_sw: supplied by sysen1
[    1.759850] NET: Registered protocol family 10
[    1.765305] sit: IPv6 over IPv4 tunneling driver
[    1.770583] NET: Registered protocol family 17
[    1.775192] 8021q: 802.1Q VLAN Support v1.8
[    1.782633] Key type dns_resolver registered
[    1.787065] omap_voltage_late_init: Voltage driver support not added
[    1.793927] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
[    1.800155] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
[    1.806903] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
[    1.813142] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
[    1.820555] Power Management for TI OMAP4+ devices.
[    1.825699] Registering SWP/SWPB emulation handler
[    1.831566] mmc0: MAN_BKOPS_EN bit is not set
[    1.836249] dmm 4e000000.dmm: workaround for errata i878 in use
[    1.841846] mmc0: new HS200 MMC card at address 0001
[    1.848824] dmm 4e000000.dmm: initialized all PAT entries
[    1.852386] mmcblk0: mmc0:0001 8GUF4R 7.28 GiB 
[    1.859812] [drm] Initialized omapdrm 1.0.0 20110917 on minor 1
[    1.862692] mmcblk0boot0: mmc0:0001 8GUF4R partition 1 31.9 MiB
[    1.872964] mmcblk0boot1: mmc0:0001 8GUF4R partition 2 31.9 MiB
[    1.879570]  mmcblk0: p1 p2
[    1.884632] hctosys: unable to open rtc device (rtc0)
[    1.901738] evm_1v8: disabling
[    1.904863] aic_dvdd: disabling
[    1.908018] vmmcwl_fixed: disabling
[    1.911713] ldousb: disabling
[    1.915012] pbias_mmc_omap5: disabling
[    1.920344] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.928814] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.951313] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.959515] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.967382] devtmpfs: mounted
[    1.970578] Freeing unused kernel memory: 328K
[    1.975101] This architecture does not have kernel memory protection.
[    2.028805] systemd[1]: System time before build time, advancing clock.
[    2.050765] random: systemd: uninitialized urandom read (16 bytes read, 13 bits of entropy available)
[    2.062595] random: systemd: uninitialized urandom read (16 bytes read, 13 bits of entropy available)
[    2.074283] systemd[1]: systemd 229 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCR)
[    2.092792] systemd[1]: Detected architecture arm.

Welcome to Arago 2016.12!

[    2.115211] systemd[1]: Set hostname to <dra7xx-evm>.
[    2.168659] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 14 bits of entropy available)
[    2.178887] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 14 bits of entropy available)
[    2.19528] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 14 bits of entropy available)
[    2.217480] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 15 bits of entropy available)
[    2.233933] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 16 bits of entropy available)
[    2.259124] random: systemd: uninitialized urandom read (16 bytes read, 18 bits of entropy available)
[    2.268651] random: systemd: uninitialized urandom read (16 bytes read, 18 bits of entropy available)
[    2.278572] random: systemd: uninitialized urandom read (16 bytes read, 18 bits of entropy available)
[    2.387451] systemd[1]: Configuration file /etc/systemd/system/multi-user.target.wants/vsdk.service is marked executable. Please remove exe.
[    2.403850] systemd[1]: Configuration file /etc/systemd/system/multi-user.target.wants/vsdk.service is marked world-writable. Please remove.
[    2.421445] systemd[1]: [/etc/systemd/system/multi-user.target.wants/vsdk.service:3] Failed to add dependency on rc.pvr, ignoring: Invalid t
[    2.482398] systemd[1]: sysinit.target: Found ordering cycle on sysinit.target/start
[    2.490240] systemd[1]: sysinit.target: Found dependency on alignment.service/start
[    2.497963] systemd[1]: sysinit.target: Found dependency on basic.target/start
[    2.505262] systemd[1]: sysinit.target: Found dependency on sockets.target/start
[    2.512695] systemd[1]: sysinit.target: Found dependency on dbus.socket/start
[    2.519883] systemd[1]: sysinit.target: Found dependency on sysinit.target/start
[    2.527354] systemd[1]: sysinit.target: Breaking ordering cycle by deleting job alignment.service/start
[    2.536814] systemd[1]: alignment.service: Job alignment.service/start deleted to break ordering cycle starting with sysinit.target/start
[ SKIP ] Ordering cycle found, skipping alignment.service
[    2.577169] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    2.606353] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    2.635004] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    2.665011] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    2.695765] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    2.725632] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    2.755541] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    2.785040] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    2.855174] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st... nodes for the current kernel...
[    2.897378] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    2.927278] systemd[1]: Starting Setup Virtual Console...
         Starting Setup Virtual Console...
[    2.942246] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    2.967367] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    2.998336] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    3.035157] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    3.064941] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    3.084975] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    3.154896] systemd[1]: Mounting Temporary Directory...
         Mounting Temporary Directory...
[    3.185158] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[    3.215178] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    3.235097] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    3.264868] systemd[1]: Reached target Paths.
[  OK  ] Reached target Paths.
[    3.284871] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    3.344927] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[    3.377316] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[    3.392977] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.412316] systemd[1]: Mounted Debug File System.
[  OK  ] Mounted Debug File System.
[    3.435011] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[    3.464901] systemd[1]: Mounted Temporary Directory.
[  OK  ] Mounted Temporary Directory.
[    3.495158] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[  OK  ] Started Setup Virtual Console.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting udev Coldplug all Devices...
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create Static Device Nodes in /dev.
[    4.221464] systemd-journald[109]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
         Mounting /media/ram...
[  OK  ] Mounted /var/volatile.
[  OK  ] Mounted /media/ram.
[  OK  ] Started udev Kernel Device Manager.
[    4.629438] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000
[    4.699944]  remoteproc0: 58820000.ipu is available
[    4.708550]  remoteproc0: Note: remoteproc is still under development and considered experimental.
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.[    4.732517]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn.

[    4.761687]  remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
[    4.798448] omap-rproc 55020000.ipu: assigned reserved memory node ipu2_cma@95800000
[    4.809059]  remoteproc0: failed to load dra7-ipu1-fw.xem4
[    4.835789]  remoteproc1: 55020000.ipu is available
         Starting Create Volatile Files and Directories...
[    4.864481]  remoteproc1: Note: remoteproc is still under development and considered experimental.
[  OK  ] Started udev Coldplug all Devices.[    4.882572]  remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn.

[  OK  ] Started Load/Save Random Seed.[    4.911165] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000

[  OK  ] Started Create Volatile Files and Directories.[    4.937422]  remoteproc2: 40800000.dsp is available

[    4.974405]  remoteproc2: Note: remoteproc is still under development and considered experimental.
[    5.030252]  remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[    5.058409] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
[  OK  ] Found device /dev/ttyS0.
[    5.094096] omap_rng 48090000.rng: OMAP Random Number Generator ver. 20
[    5.112020] omap-rproc 41000000.dsp: assigned reserved memory node dsp2_cma@9f000000
[    5.124167]  remoteproc3: 41000000.dsp is available
[    5.137477]  remoteproc3: Note: remoteproc is still under development and considered experimental.
[    5.164734]  remoteproc3: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[    5.187332]  remoteproc1: registered virtio0 (type 7)
[    5.261057]  remoteproc2: registered virtio1 (type 7)
[    5.307381] omap_rtc 48838000.rtc: rtc core: registered 48838000.rtc as rtc0
[    5.393368]  remoteproc3: registered virtio2 (type 7)
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[    5.488157] SCSI subsystem initialized
[  OK  ] Started Network Time Synchronization.
[    5.598126] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
[    5.629063] ahci 4a140000.sata: Enable 32-bit DMA instead of 64-bit.
[    5.677031] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    5.734854] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst 
[    5.776177] CAN device driver interface
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[    5.820485] scsi host0: ahci
[    5.824396] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 332
[    5.867048] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
[    5.990344] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
[  OK  ] Reached target System Time Synchronized.
         Starting Synchronize System and HW clocks...
[    6.056427] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
[    6.063837] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=341)
[  OK  ] Started Synchronize System and HW clocks.
[    6.123493] [drm] Initialized pvr 1.14.3699939 20110701 on minor 2
[    6.214760] ata1: SATA link down (SStatus 0 SControl 300)
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Listening on dropbear.socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting rc.pvr.service...
[  OK  ] Started D-Bus System Message Bus.
[    6.636992] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
         Starting Network Service...
         Starting Permit User Sessions...
[    6.765274] net eth1: initializing cpsw version 1.15 (0)
[    6.779330]  remoteproc1: powering up 55020000.ipu
[    6.788402] net eth0: initialized cpsw ale version 1.4
[  OK  ] Started System Logging Service.
[    6.808257] net eth0: ALE Table size 1024
[  OK  ] Started Launching Vision SDK App.
[    6.821847] net eth1: phy found : id is : 0x0
[    6.841802] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[    6.861520]  remoteproc1: Booting fw image dra7-ipu2-fw.xem4,size 10843320
[    6.864383] 8021q: adding VLAN 0 to HW filter on device eth1
[    6.870170] net eth0: initializing cpsw version 1.15 (0)
[    6.870250] net eth0: phy found : id is : 0x0
[    6.877998] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    6.878002] 8021q: adding VLAN 0 to HW filter on device eth0
[  OK  ] Started Kernel Logging Service.
[    6.904562] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
         Starting Login Service...
[    6.947177] DMA: Module install successful, device major num = 242 
[  OK  ] Started Network Service.[    6.967046] DRV: Module install successful

[  OK  ] Started rc.pvr.service.
[    6.998936]  remoteproc1: remote processor 55020000.ipu is now up
[    7.013327] virtio_rpmsg_bus virtio0: rpmsg host is online
[  OK  ] Started Permit User Sessions.[    7.023374]  remoteproc2: powering up 40800000.dsp

[    7.042726]  remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 8233332
[    7.070121] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[    7.076022] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[    7.081969] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[    7.198426]  remoteproc2: remote processor 40800000.dsp is now up
[    7.220327] virtio_rpmsg_bus virtio1: rpmsg host is online
[    7.240442]  remoteproc3: powering up 41000000.dsp
[    7.268204]  remoteproc3: Booting fw image dra7-dsp2-fw.xe66, size 8233332
[    7.297301] omap_hwmod: mmu0_dsp2: _wait_target_disable failed
[    7.303205] omap-iommu 41501000.mmu: 41501000.mmu: version 3.0
[    7.309158] omap-iommu 41502000.mmu: 41502000.mmu: version 3.0
[    7.384848] can: controller area network core (rev 20120528 abi 9)
[    7.397926]  remoteproc3: remote processor 41000000.dsp is now up
[    7.404949] NET: Registered protocol family 29
[    7.413101] can: raw protocol (rev 20120528)
[    7.418437] virtio_rpmsg_bus virtio2: rpmsg host is online
[    7.449030] net can0: c_can_hw_raminit_wait_syscon: time out
[    7.455001] c_can_platform 4ae3c000.can can0: setting BTR=0504 BRPE=0000
[    7.479692] virtio_rpmsg_bus virtio0: creating channel rpmsg-proto addr 0x50
[    7.489908] virtio_rpmsg_bus virtio1: creating channel rpmsg-proto addr 0x50
[    7.514758] virtio_rpmsg_bus virtio2: creating channel rpmsg-proto addr 0x50
[    7.528338] NET: Registered protocol family 41
[  OK  ] Started Serial Getty on ttyS0.
[    7.923084] omap_l3_noc 44000000.ocp: L3 application error: target 3 mod:2 (unclearable)
[    7.931257] omap_l3_noc 44000000.ocp: L3 debug error: target 3 mod:2 (unclearable)
[  OK  ] Started Getty on tty1.
         Starting weston.service...
[  OK  ] Reached target Network.
         Starting Network Name Resolution...
[  OK  ] Started weston.service.
[  OK  ] Started Network Name Resolution.
[  OK  ] Started Login Service.
         Starting telnetd.service...
         Starting tiipclad-daemon.service...
[  OK  ] Started telnetd.service.
[  OK  ] Started tiipclad-daemon.service.
[    8.814707] cpsw 48484000.ethernet eth1: Link is Up - 100Mbps/Full - flow control off
[    8.826219] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[    8.864717] cpsw 48484000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
[    8.872611] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

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

Arago Project http://arago-project.org dra7xx-evm ttyS0

Arago 2016.12 dra7xx-evm ttyS0

dra7xx-evm login:

4.I set ip for eth0 and eth1 manually

 

  eth0      Link encap:Ethernet  HWaddr 6C:C3:74:2B:63:91  
          inet addr:169.254.188.1  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::6ec3:74ff:fe2b:6391%132400/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:399 errors:0 dropped:0 overruns:0 frame:0
          TX packets:143 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:79087 (77.2 KiB)  TX bytes:28938 (28.2 KiB)
          Interrupt:82 

eth1      Link encap:Ethernet  HWaddr 6C:C3:74:2B:63:91  
          inet addr:169.254.188.2  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::6ec3:74ff:fe2b:6391%132400/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:262 errors:0 dropped:0 overruns:0 frame:0
          TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:43161 (42.1 KiB)  TX bytes:27412 (26.7 KiB)

5. Set the ip1 address of pc1 to 169.254.188.9, and the IP address of PC2 to 169.254.188.10
The ping test on PC1 shows that both 169.254.188.1 and 169.254.188.2 can be connected
On PC2, the ping test showed that 169.254.188.1 and 169.254.188.2 could not be connected
PC1 and PC2 cannot be connected

6, So, If I want PC1 and PC2 to connect, how do I modify my device tree and driver?

Thanks!

  • Hi

    The driver supports two modes of operation.

    1. standalone mac mode of operation, where we emulate two independent Ethernet ports(no forwarding between the ports)

    2. Ethernet switch mode, with address learning, forwarding between ports in HW

    The selection is through the device tree parameter - "dual-emac" property in the DT will set it up in standalone MAC mode. You can drop this parameter if you want to use the other mode.

    Also, your device tree configuration seem to indicate fixed link, MAC-MAC direct connection. Please review and confirm if this is what you intended