Hello,
I am trying to configure Keystone TI Common Platform Ethernet Switch (CPSW). I am using EVMK2E Development Board with the default kernel - device tree.
Following instructions found at https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW.html i managed to build a new kernel with enabled TI CPSW SWITCH SUPPORT and 802.1Q VLAN Support.
Load address: 0x88000000 Loading: ###### done Bytes transferred = 27071 (69bf hex) ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Ramdisk to 8fff0000, end 8ffffe48 ... OK Loading Device Tree to 8ffe6000, end 8ffef9be ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.19.94+ (ide@tmssrv) (gcc version 8.4.0 (Buildroot 2020.11.1)) #1 S MP PREEMPT Mon Dec 5 16:34:44 EET 2022 [ 0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Texas Instruments Keystone 2 Edison EVM [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] Switching physical address space to 0x800000000 [ 0.000000] Reserved memory: created CMA memory pool at 0x000000081f800000, size 8 MiB [ 0.000000] OF: reserved mem: initialized node dsp-common-memory@81f800000, compatible id shar ed-dma-pool [ 0.000000] cma: Reserved 16 MiB at 0x000000087ec00000 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: Using PSCI v0.1 Function IDs from DT [ 0.000000] random: get_random_bytes called from start_kernel+0xa4/0x4a0 with crng_init=0 [ 0.000000] percpu: Embedded 15 pages/cpu s32588 r8192 d20660 u61440 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 982016 [ 0.000000] Kernel command line: console=ttyS0,115200n8 rootwait=1 mtdparts=spi0.0:1m(u-boot-s pl)ro,-(misc) rootfstype=nfs root=/dev/nfs rw nfsroot=/srv/nfsCCM,v3,tcp,rsize=4096,wsize=4096 ip =10.10.10.171:10.10.10.196:10.10.10.1:255.255.255.0:k2e-evm-2:eth0:off:10.10.10.1 nfsrootdebug [ 0.000000] log_buf_len individual max cpu contribution: 4096 bytes [ 0.000000] log_buf_len total cpu_extra contributions: 12288 bytes [ 0.000000] log_buf_len min size: 16384 bytes [ 0.000000] log_buf_len: 32768 bytes [ 0.000000] early log buf free: 14268(87%) [ 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: 3860992K/3932160K available (8192K kernel code, 448K rwdata, 2348K rodata, 2048K init, 197K bss, 46592K reserved, 24576K cma-reserved, 3391488K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 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 : 0x(ptrval) - 0x(ptrval) (10208 kB) [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (2048 kB) [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 449 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 198 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] arch_timer: cp15 timer(s) running at 233.33MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x6ba0ac50b7, ma x_idle_ns: 881590427583 ns [ 0.000003] sched_clock: 56 bits at 233MHz, resolution 4ns, wraps every 4398046511102ns [ 0.000012] Switching to timer-based delay loop, resolution 4ns [ 0.000125] keystone timer clock @233333333 Hz [ 0.000248] Console: colour dummy device 80x30 [ 0.000270] Calibrating delay loop (skipped), value calculated using timer frequency.. 466.66 BogoMIPS (lpj=2333333) [ 0.000280] pid_max: default: 4096 minimum: 301 [ 0.000357] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000366] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000687] CPU: Testing write buffer coherency: ok [ 0.000707] CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable [ 0.000867] /cpus/cpu@0 missing clock-frequency property [ 0.000884] /cpus/cpu@1 missing clock-frequency property [ 0.000901] /cpus/cpu@2 missing clock-frequency property [ 0.000918] /cpus/cpu@3 missing clock-frequency property [ 0.000926] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.060025] Setting up static identity map for 0x80200000 - 0x80200138 [ 0.080025] rcu: Hierarchical SRCU implementation. [ 0.120059] smp: Bringing up secondary CPUs ... [ 0.204334] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.204340] CPU1: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable [ 0.284412] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.284417] CPU2: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable [ 0.364487] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.364492] CPU3: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable [ 0.364608] smp: Brought up 1 node, 4 CPUs [ 0.364617] SMP: Total of 4 processors activated (1866.66 BogoMIPS). [ 0.364623] CPU: All CPU(s) started in HYP mode. [ 0.364629] CPU: Virtualization extensions available. [ 0.364976] devtmpfs: initialized [ 0.368273] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0 [ 0.368531] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126 04462750000 ns [ 0.368542] futex hash table entries: 16 (order: -2, 1024 bytes) [ 0.368840] pinctrl core: initialized pinctrl subsystem [ 0.369218] NET: Registered protocol family 16 [ 0.369922] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.370938] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.370946] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.386615] vgaarb: loaded [ 0.386860] SCSI subsystem initialized [ 0.387192] usbcore: registered new interface driver usbfs [ 0.387263] usbcore: registered new interface driver hub [ 0.387345] usbcore: registered new device driver usb [ 0.389414] clocksource: Switched to clocksource arch_sys_counter [ 0.426861] NET: Registered protocol family 2 [ 0.427196] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes) [ 0.427215] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.427242] TCP bind hash table entries: 4096 (order: 3, 32768 bytes) [ 0.427290] TCP: Hash tables configured (established 4096 bind 4096) [ 0.427343] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.427359] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.427451] NET: Registered protocol family 1 [ 0.427695] RPC: Registered named UNIX socket transport module. [ 0.427702] RPC: Registered udp transport module. [ 0.427708] RPC: Registered tcp transport module. [ 0.427714] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.427821] Unpacking initramfs... [ 0.431208] Freeing initrd memory: 64K [ 0.431419] hw perfevents: no interrupt-affinity property for /pmu, guessing. [ 0.431631] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available [ 0.432163] platform alarmtimer: set dma_pfn_offset00780000 [ 0.433360] workingset: timestamp_bits=30 max_order=20 bucket_order=0 [ 0.440516] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.440674] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.440973] jffs2: version 2.2. (NAND) ?? 2001-2006 Red Hat, Inc. [ 0.443480] NET: Registered protocol family 38 [ 0.443516] bounce: pool size: 64 pages [ 0.443578] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 0.443587] io scheduler noop registered [ 0.443593] io scheduler deadline registered [ 0.443614] io scheduler cfq registered (default) [ 0.443621] io scheduler mq-deadline registered [ 0.443627] io scheduler kyber registered [ 0.443866] keystone_irq 26202a0.keystone_irq: irqchip registered, nr_irqs 28 [ 0.445615] keystone-pcie 21020000.pcie: host bridge /soc@0/pcie@21020000 ranges: [ 0.445641] keystone-pcie 21020000.pcie: IO 0x60000000..0x600fffff -> 0x00000000 [ 0.445656] keystone-pcie 21020000.pcie: MEM 0x60100000..0x6fffffff -> 0x60100000 [ 1.439421] keystone-pcie 21020000.pcie: Phy link never came up [ 1.439540] keystone-pcie 21020000.pcie: PCI host bridge to bus 0000:00 [ 1.439551] pci_bus 0000:00: root bus resource [bus 00-ff] [ 1.439559] pci_bus 0000:00: root bus resource [io 0x0000-0xfffff] [ 1.439567] pci_bus 0000:00: root bus resource [mem 0x60100000-0x6fffffff] [ 1.440884] PCI: bus0: Fast back to back transfers disabled [ 1.442022] PCI: bus1: Fast back to back transfers enabled [ 1.442050] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 1.442975] keystone-navigator-qmss soc@0:qmss@2a40000: qmgr start queue 0, number of queues 8 192 [ 1.443080] keystone-navigator-qmss soc@0:qmss@2a40000: added qmgr start queue 0, num of queue s 8192, reg_peek (ptrval), reg_status (ptrval), reg_config (ptrval), reg_region (ptrval), reg_pus h (ptrval), reg_pop (ptrval) [ 1.443200] keystone-navigator-qmss soc@0:qmss@2a40000: firmware file ks2_qmss_pdsp_acc48.bin downloaded for PDSP [ 1.445406] keystone-navigator-dma soc@0:knav_dmas@0: DMA dma_gbe registered 149 logical chann els, flows 128, tx chans: 21, rx chans: 91 [ 1.493732] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 1.493786] platform serial8250: set dma_pfn_offset00780000 [ 1.495298] console [ttyS0] disabled [ 1.495338] 2530c00.serial: ttyS0 at MMIO 0x2530c00 (irq = 27, base_baud = 14583333) is a TI D A8xx/66AK2x [ 2.359484] console [ttyS0] enabled [ 2.363635] 2531000.serial: ttyS1 at MMIO 0x2531000 (irq = 28, base_baud = 14583333) is a TI D A8xx/66AK2x [ 2.379107] loop: module loaded [ 2.383141] at24 0-0050: 131072 byte 24c1024 EEPROM, writable, 1 bytes/write [ 2.391302] spi_davinci 21000400.spi: DMA is not supported (-19) [ 2.398034] m25p80 spi0.0: n25q128a11 (16384 Kbytes) [ 2.403031] 2 cmdlinepart partitions found on MTD device spi0.0 [ 2.408962] Creating 2 MTD partitions on "spi0.0": [ 2.413776] 0x000000000000-0x000000100000 : "u-boot-spl" [ 2.419808] 0x000000100000-0x000001000000 : "misc" [ 2.425223] spi_davinci 21000400.spi: Controller at 0x(ptrval) [ 2.431284] spi_davinci 21000600.spi: DMA is not supported (-19) [ 2.437565] spi_davinci 21000600.spi: Controller at 0x(ptrval) [ 2.443627] spi_davinci 21000800.spi: DMA is not supported (-19) [ 2.449922] spi_davinci 21000800.spi: Controller at 0x(ptrval) [ 2.455985] platform Fixed MDIO bus.0: set dma_pfn_offset00780000 [ 2.462264] libphy: Fixed MDIO Bus: probed [ 2.519426] davinci_mdio 24200f00.mdio: davinci mdio revision 1.7, bus freq 2500000 [ 2.527100] libphy: 24200f00.mdio: probed [ 2.532491] davinci_mdio 24200f00.mdio: phy[0]: device 24200f00.mdio:00, driver Marvell 88E151 0 [ 2.541226] davinci_mdio 24200f00.mdio: phy[1]: device 24200f00.mdio:01, driver Marvell 88E151 0 [ 5.562972] netcp-1.0 2620110.netcp: initialized cpsw ale version 1.4 [ 5.569438] netcp-1.0 2620110.netcp: ALE Table size 8192 [ 5.575655] netcp-1.0 2620110.netcp: module(netcp-xgbe) not used for device [ 5.582745] keystone-usbphy 2620738.usb_phy: 2620738.usb_phy supply vcc not found, using dummy regulator [ 5.592298] keystone-usbphy 2620738.usb_phy: Linked as a consumer to regulator.0 [ 5.599838] keystone-usbphy 2620750.usb_phy: 2620750.usb_phy supply vcc not found, using dummy regulator [ 5.609373] keystone-usbphy 2620750.usb_phy: Linked as a consumer to regulator.0 [ 5.617660] dwc3 2690000.dwc3: Failed to get clk 'ref': -2 [ 5.623368] platform xhci-hcd.0.auto: set dma_pfn_offset00780000 [ 5.629914] dwc3 25010000.dwc3: Failed to get clk 'ref': -2 [ 5.635527] dwc3 25010000.dwc3: Configuration mismatch. dr_mode forced to host [ 5.642865] platform xhci-hcd.1.auto: set dma_pfn_offset00780000 [ 5.649910] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 5.655535] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 [ 5.663397] xhci-hcd xhci-hcd.0.auto: hcc params 0x0298f06d hci version 0x100 quirks 0x0000000 002010010 [ 5.672833] xhci-hcd xhci-hcd.0.auto: irq 35, io mem 0x02690000 [ 5.679005] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19 [ 5.687302] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 5.694551] usb usb1: Product: xHCI Host Controller [ 5.699447] usb usb1: Manufacturer: Linux 4.19.94+ xhci-hcd [ 5.705029] usb usb1: SerialNumber: xhci-hcd.0.auto [ 5.710261] hub 1-0:1.0: USB hub found [ 5.714035] hub 1-0:1.0: 1 port detected [ 5.718227] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 5.723862] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 [ 5.731553] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed [ 5.738136] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 5.746334] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19 [ 5.754628] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 5.761876] usb usb2: Product: xHCI Host Controller [ 5.766763] usb usb2: Manufacturer: Linux 4.19.94+ xhci-hcd [ 5.772355] usb usb2: SerialNumber: xhci-hcd.0.auto [ 5.777559] hub 2-0:1.0: USB hub found [ 5.781351] hub 2-0:1.0: 1 port detected [ 5.785623] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 5.791258] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3 [ 5.799099] xhci-hcd xhci-hcd.1.auto: hcc params 0x0298f06d hci version 0x100 quirks 0x0000000 002010010 [ 5.808534] xhci-hcd xhci-hcd.1.auto: irq 69, io mem 0x25010000 [ 5.814699] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19 [ 5.823064] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 5.830315] usb usb3: Product: xHCI Host Controller [ 5.835201] usb usb3: Manufacturer: Linux 4.19.94+ xhci-hcd [ 5.840795] usb usb3: SerialNumber: xhci-hcd.1.auto [ 5.846005] hub 3-0:1.0: USB hub found [ 5.849791] hub 3-0:1.0: 1 port detected [ 5.853974] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 5.859600] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4 [ 5.867278] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed [ 5.873873] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM. [ 5.882075] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19 [ 5.890442] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 5.897680] usb usb4: Product: xHCI Host Controller [ 5.902578] usb usb4: Manufacturer: Linux 4.19.94+ xhci-hcd [ 5.908161] usb usb4: SerialNumber: xhci-hcd.1.auto [ 5.913373] hub 4-0:1.0: USB hub found [ 5.917146] hub 4-0:1.0: 1 port detected [ 5.921537] usbcore: registered new interface driver usb-storage [ 5.927711] i2c /dev entries driver [ 5.932298] davinci-wdt 22f0080.wdt: heartbeat 60 sec [ 5.938086] sdhci: Secure Digital Host Controller Interface driver [ 5.944292] sdhci: Copyright(c) Pierre Ossman [ 5.948792] sdhci-pltfm: SDHCI platform and OF driver helper [ 5.954763] ledtrig-cpu: registered to indicate activity on CPUs [ 5.961435] usbcore: registered new interface driver usbhid [ 5.967018] usbhid: USB HID core driver [ 5.971670] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac [ 5.978038] nand: Micron MT29F4G08ABBDAH4 [ 5.982066] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 5.989934] Bad block table found at page 262080, version 0x01 [ 5.996236] Bad block table found at page 262016, version 0x01 [ 6.002375] 3 fixed-partitions partitions found on MTD device 30000000.nand [ 6.009350] Creating 3 MTD partitions on "30000000.nand": [ 6.014774] 0x000000000000-0x000000100000 : "u-boot" [ 6.020399] 0x000000100000-0x000000180000 : "params" [ 6.025957] 0x000000180000-0x000020000000 : "ubifs" [ 6.034677] davinci_nand 30000000.nand: controller rev. 2.5 [ 6.040567] platform oprofile-perf.0: set dma_pfn_offset00780000 [ 6.046903] oprofile: using timer interrupt. [ 6.051809] ipip: IPv4 and MPLS over IPv4 tunneling driver [ 6.057655] gre: GRE over IPv4 demultiplexor driver [ 6.062555] ip_gre: GRE over IPv4 tunneling driver [ 6.068470] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully [ 6.074904] Initializing XFRM netlink socket [ 6.079417] (NULL net_device): Link is Down [ 6.083609] (NULL net_device): Link is Down [ 6.087797] (NULL net_device): Link is Down [ 6.091994] (NULL net_device): Link is Down [ 6.096183] (NULL net_device): Link is Down [ 6.100380] (NULL net_device): Link is Down [ 6.105112] NET: Registered protocol family 10 [ 6.110451] Segment Routing with IPv6 [ 6.114174] NET: Registered protocol family 17 [ 6.118634] NET: Registered protocol family 15 [ 6.123099] 8021q: 802.1Q VLAN Support v1.8 [ 6.127322] sctp: Hash tables configured (bind 512/512) [ 6.132886] Registering SWP/SWPB emulation handler [ 6.262006] netcp-1.0 2620110.netcp eth0: Link is Down [ 6.283144] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 6.289003] 8021q: adding VLAN 0 to HW filter on device eth0 [ 8.490471] netcp-1.0 2620110.netcp eth0: Link is Up - 100Mbps/Full - flow control rx/tx [ 8.509431] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 8.549472] IP-Config: Complete: [ 8.552707] device=eth0, hwaddr=b4:99:4c:09:60:58, ipaddr=10.10.10.171, mask=255.255.255. 0, gw=10.10.10.1 [ 8.562770] host=k2e-evm-2, domain=, nis-domain=(none) [ 8.568354] bootserver=10.10.10.196, rootserver=10.10.10.196, rootpath= [ 8.568356] nameserver0=10.10.10.1 [ 8.607514] VFS: Mounted root (nfs filesystem) on device 0:14. [ 8.614003] devtmpfs: mounted [ 8.617918] Freeing unused kernel memory: 2048K [ 8.622573] Run /sbin/init as init process [ 8.640641] random: fast init done Starting rsyslogd: OK Running sysctl: OK Populating /dev using udev: done Initializing random number generator: OK Saving random seed: OK Starting rngd: OK Starting system message bus: done Starting NetworkManager ... done. Starting dropbear sshd: OK Starting DHCP server: FAIL Starting domain name daemon: OK CCM READY!
When i try to enable interrup pacing using ethtool i get the following error:
eth0 Link encap:Ethernet HWaddr B4:99:4C:09:60:58 inet addr:10.10.10.171 Bcast:10.10.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:21241 errors:0 dropped:0 overruns:0 frame:0 TX packets:16892 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:26824035 (25.5 MiB) TX bytes:2207426 (2.1 MiB) eth125 Link encap:Ethernet HWaddr 02:18:31:7E:3E:00 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) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:58 (58.0 B) TX bytes:58 (58.0 B) root@ccm:~# ./ethtool -C eth0 rx-usecs 50 Cannot get device coalesce settings: Operation not supported
I also face a problem with the Switch Config Commands example tool.
Scanning dependencies of target cpsw-ioctl [100%] Building C object cpsw-ioctl/CMakeFiles/cpsw-ioctl.dir/src/cpsw-ioctl.c.o cpsw-ioctl/src/cpsw-ioctl.c: In function ‘main’: cpsw-ioctl/src/cpsw-ioctl.c:73:23: error: ‘SIOCSWITCHCONFIG’ undeclared (first use in this function); did you mean ‘TIOCSERCONFIG’? if (ioctl(sockfd, SIOCSWITCHCONFIG, &ifr) < 0) { ^~~~~~~~~~~~~~~~ TIOCSERCONFIG cpsw-ioctl/src/cpsw-ioctl.c:73:23: note: each undeclared identifier is reported only once for each function it appears in
- Is the enabling of TI CPSW SWITCH SUPPORT and 802.1Q VLAN Support in menuconfig enough or i need to do more in order to enable the SWITCH?
- Do i need to change the default device tree? is there any example i could use ?
- Is there any switch config commands tool that i could use ?
If you need any further information please let me know.
Yours sincerely,
Konstantinos.