Driver for Atheros?

Hy,

Somobody can say to me where I can found driver for Atheros AR8328?

Do I need create a specific image with the builder to integrate them?

Isn't it already included? The model is mentioned here
https://openwrt.org/docs/techref/hardware/switch

And it means to be a part of this router
https://openwrt.org/toh/tp-link/tl-wdr4900?s[]=ar8328

1 Like

Thanks for your answer.

I'm a beginner in OpenWrt...

If my chipset is included, I should see all interfaces in ifconfig / Luci or not ?
I have to set the switch enable manualy in /etc/config/network ?
I need to install swconfig ?

After install swconfig, I try this :

        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd50:a51f:3ae1::/48'

config interface 'wan'
        option ifname 'eth0'
        option proto 'dhcp'

config switch 'eth1'
   option enable      '1'
   option enable_vlan '1'
   option reset       '1'

config 'switch_vlan'
   option vlan       '0'
   option device     'eth1'
   option ports      '0 1 2 3 4 5 6'

config interface 'lan'
    option ifname 'eth1.0'
    option proto 'static'
    option ipaddr '192.168.10.254'
    option netmask '255.255.255.0'
    option defaultroute '0'
    option peerdns '0'
    option nat    '1'

I restart network an I have the following response :

Failed to connect to the switch. Use the "list" command to see which switches are available.

What device are you using? And which version of the software? Release? Snapshot? Custom build?

1 Like

device : NETASQ U30S (with Atheros AR8328 chpiset)
Software : openwrt-19.07.1-x86-64-combined-ext4

It's an x86 platform. How is the switch chip connected to it?

1 Like

I don't know :flushed:

How in can know it?

:face_with_raised_eyebrow:

Ummm...because it's your x86 machine.

PCI, miniPCI, USB...?

the chipset is integrated on the motherboard.

this is a picture of my router :

is it what you want to know ?

1 Like

I can't seem to find any Web page that has that driver. I imagine this could only mean it has been with the kernel ages ago.

You could look at the log to see what happens when you start the router.

A last resort would be installing a different (preferably bigger) linux distro if your hardware sorts that and see if the switch will be recognized.

What is happen at the start of the server :

dmesg
[    0.000000] Linux version 4.14.167 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r10911-c155900f66)) #0 SMP Wed Jan 29 16:05:35 2020
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz root=PARTUUID=94b0173e-02 rootfstype=ext4 rootwait console=tty0 console=ttyS0,115200n8 noinitrd
[    0.000000] x86/fpu: x87 FPU will use FXSAVE
[    0.000000] e820: BIOS-provided physical RAM map:

[...]

[    0.000000] NR_IRQS: 4352, nr_irqs: 256, preallocated irqs: 16
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [tty0] enabled
[    0.000000] console [ttyS0] enabled
[    0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484882848 ns
[    0.000000] hpet clockevent registered
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.010000] tsc: Detected 800.044 MHz processor
[    0.020000] Calibrating delay loop (skipped), value calculated using timer frequency.. 1600.08 BogoMIPS (lpj=8000440)
[    0.030011] pid_max: default: 32768 minimum: 301
[    0.034697] ACPI: Core revision 20170728
[    0.060804] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.067334] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.070022] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.080564] mce: CPU supports 0 MCE banks
[    0.084656] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.090012] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[    0.095992] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.100014] Spectre V2 : Mitigation: Full generic retpoline
[    0.110008] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.118346] Speculative Store Bypass: Vulnerable
[    0.120011] MDS: Vulnerable: Clear CPU buffers attempted, no microcode
[    0.192634] Freeing SMP alternatives memory: 32K
[    0.210270] smpboot: Max logical packages: 1
[    0.220756] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.447924] smpboot: CPU0: Centaur VIA Nano U3400@800MHz (family: 0x6, model: 0xf, stepping: 0xa)
[    0.450000] Performance Events: no PMU driver, software events only.
[    0.450140] Hierarchical SRCU implementation.
[    0.460359] smp: Bringing up secondary CPUs ...
[    0.464953] smp: Brought up 1 node, 1 CPU
[    0.469025] smpboot: Total of 1 processors activated (1600.08 BogoMIPS)
[    0.472276] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.480022] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.490072] pinctrl core: initialized pinctrl subsystem
[    0.500575] NET: Registered protocol family 16
[    0.506100] cpuidle: using governor ladder
[    0.510375] ACPI: bus type PCI registered
[    0.514440] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.520211] PCI: Using configuration type 1 for base access
[    0.563366] ACPI: Added _OSI(Module Device)
[    0.567615] ACPI: Added _OSI(Processor Device)
[    0.570040] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.574805] ACPI: Added _OSI(Processor Aggregator Device)
[    0.580516] ACPI: Executed 1 blocks of module-level executable AML code
[    0.605813] ACPI: Interpreter enabled
[    0.609565] ACPI: (supports S0 S5)
[    0.610009] ACPI: Using IOAPIC for interrupt routing
[    0.615173] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.621385] ACPI: Enabled 6 GPEs in block 00 to 0F
[    0.626254] ACPI: Enabled 1 GPEs in block 10 to 1F
[    0.678065] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    0.680023] acpi PNP0A08:00: _OSC: OS supports [Segments MSI]
[    0.690027] acpi PNP0A08:00: _OSC failed (AE_NOT_FOUND)
[    0.696867] PCI host bridge to bus 0000:00
[    0.700016] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    0.706866] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    0.710012] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[    0.720011] pci_bus 0000:00: root bus resource [mem 0x000d0000-0x000dffff window]
[    0.730011] pci_bus 0000:00: root bus resource [mem 0x3f800000-0xdfffffff window]
[    0.737570] pci_bus 0000:00: root bus resource [mem 0xf0000000-0xfebfffff window]
[    0.740012] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.750031] pci 0000:00:00.0: [1106:0410] type 00 class 0x060000
[    0.750494] pci 0000:00:00.1: [1106:1410] type 00 class 0x060000
[    0.750961] pci 0000:00:00.2: [1106:2410] type 00 class 0x060000
[    0.751418] pci 0000:00:00.3: [1106:3410] type 00 class 0x060000
[    0.751874] pci 0000:00:00.4: [1106:4410] type 00 class 0x060000
[    0.752330] pci 0000:00:00.5: [1106:5410] type 00 class 0x060000
[    0.752786] pci 0000:00:00.6: [1106:6410] type 00 class 0x060000
[    0.753238] pci 0000:00:00.7: [1106:7410] type 00 class 0x060000
[    0.753690] pci 0000:00:01.0: [1106:7122] type 00 class 0x030000
[    0.753722] pci 0000:00:01.0: reg 0x10: [mem 0xfd000000-0xfdffffff]
[    0.753739] pci 0000:00:01.0: reg 0x14: [mem 0xfc000000-0xfcffffff]
[    0.753755] pci 0000:00:01.0: reg 0x18: [mem 0xfb800000-0xfbffffff pref]
[    0.753793] pci 0000:00:01.0: reg 0x30: [mem 0xfe9f0000-0xfe9fffff pref]
[    0.753847] pci 0000:00:01.0: supports D1 D2
[    0.754239] pci 0000:00:03.0: [1106:a410] type 01 class 0x060400
[    0.754358] pci 0000:00:03.0: PME# supported from D0 D3hot D3cold
[    0.754800] pci 0000:00:03.1: [1106:b410] type 01 class 0x060400
[    0.754917] pci 0000:00:03.1: PME# supported from D0 D3hot D3cold
[    0.755349] pci 0000:00:03.2: [1106:c410] type 01 class 0x060400
[    0.755472] pci 0000:00:03.2: PME# supported from D0 D3hot D3cold
[    0.755904] pci 0000:00:03.3: [1106:d410] type 01 class 0x060400
[    0.756028] pci 0000:00:03.3: PME# supported from D0 D3hot D3cold
[    0.756452] pci 0000:00:03.4: [1106:e410] type 00 class 0x060000
[    0.756909] pci 0000:00:0b.0: [1106:a409] type 00 class 0x028000
[    0.756943] pci 0000:00:0b.0: reg 0x10: [mem 0xfe9ef800-0xfe9effff]
[    0.757048] pci 0000:00:0b.0: supports D1 D2
[    0.757056] pci 0000:00:0b.0: PME# supported from D0 D1 D2 D3hot
[    0.757444] pci 0000:00:0c.0: [1106:95d0] type 00 class 0x080501
[    0.757477] pci 0000:00:0c.0: reg 0x10: [mem 0xfe9ef400-0xfe9ef4ff]
[    0.757494] pci 0000:00:0c.0: reg 0x14: [io  0xcc00-0xcc07]
[    0.757589] pci 0000:00:0c.0: supports D1 D2
[    0.757597] pci 0000:00:0c.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.757994] pci 0000:00:0f.0: [1106:9001] type 00 class 0x01018f
[    0.758027] pci 0000:00:0f.0: reg 0x10: [io  0xc880-0xc887]
[    0.758045] pci 0000:00:0f.0: reg 0x14: [io  0xc800-0xc803]
[    0.758062] pci 0000:00:0f.0: reg 0x18: [io  0xc480-0xc487]
[    0.758080] pci 0000:00:0f.0: reg 0x1c: [io  0xc400-0xc403]
[    0.758097] pci 0000:00:0f.0: reg 0x20: [io  0xc080-0xc08f]
[    0.758545] pci 0000:00:10.0: [1106:3038] type 00 class 0x0c0300
[    0.758613] pci 0000:00:10.0: reg 0x20: [io  0xc000-0xc01f]
[    0.758681] pci 0000:00:10.0: supports D1 D2
[    0.758689] pci 0000:00:10.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.759105] pci 0000:00:10.1: [1106:3038] type 00 class 0x0c0300
[    0.759173] pci 0000:00:10.1: reg 0x20: [io  0xbc00-0xbc1f]
[    0.759241] pci 0000:00:10.1: supports D1 D2
[    0.759249] pci 0000:00:10.1: PME# supported from D0 D1 D2 D3hot D3cold
[    0.760369] pci 0000:00:10.2: [1106:3038] type 00 class 0x0c0300
[    0.760438] pci 0000:00:10.2: reg 0x20: [io  0xb880-0xb89f]
[    0.760508] pci 0000:00:10.2: supports D1 D2
[    0.760516] pci 0000:00:10.2: PME# supported from D0 D1 D2 D3hot D3cold
[    0.760926] pci 0000:00:10.3: [1106:3038] type 00 class 0x0c0300
[    0.760995] pci 0000:00:10.3: reg 0x20: [io  0xb800-0xb81f]
[    0.761064] pci 0000:00:10.3: supports D1 D2
[    0.761071] pci 0000:00:10.3: PME# supported from D0 D1 D2 D3hot D3cold
[    0.761483] pci 0000:00:10.4: [1106:3104] type 00 class 0x0c0320
[    0.761517] pci 0000:00:10.4: reg 0x10: [mem 0xfe9ef000-0xfe9ef0ff]
[    0.761627] pci 0000:00:10.4: supports D1 D2
[    0.761635] pci 0000:00:10.4: PME# supported from D0 D1 D2 D3hot D3cold
[    0.762058] pci 0000:00:11.0: [1106:8410] type 00 class 0x060100
[    0.762601] pci 0000:00:11.7: [1106:a353] type 00 class 0x060000
[    0.763050] pci 0000:00:13.0: [1106:b353] type 01 class 0x060401
[    0.763679] pci 0000:00:03.0: PCI bridge to [bus 01]
[    0.768858] pci 0000:00:03.1: PCI bridge to [bus 02]
[    0.770197] pci 0000:03:00.0: [8086:10d3] type 00 class 0x020000
[    0.770243] pci 0000:03:00.0: reg 0x10: [mem 0xfeae0000-0xfeafffff]
[    0.770285] pci 0000:03:00.0: reg 0x18: [io  0xdc00-0xdc1f]
[    0.770311] pci 0000:03:00.0: reg 0x1c: [mem 0xfeadc000-0xfeadffff]
[    0.770493] pci 0000:03:00.0: PME# supported from D0 D3hot
[    0.770708] pci 0000:00:03.2: PCI bridge to [bus 03]
[    0.775739] pci 0000:00:03.2:   bridge window [io  0xd000-0xdfff]
[    0.775750] pci 0000:00:03.2:   bridge window [mem 0xfea00000-0xfeafffff]
[    0.775939] pci 0000:04:00.0: [8086:10d3] type 00 class 0x020000
[    0.775984] pci 0000:04:00.0: reg 0x10: [mem 0xfebe0000-0xfebfffff]
[    0.776027] pci 0000:04:00.0: reg 0x18: [io  0xec00-0xec1f]
[    0.776052] pci 0000:04:00.0: reg 0x1c: [mem 0xfebdc000-0xfebdffff]
[    0.780133] pci 0000:04:00.0: PME# supported from D0 D3hot
[    0.780351] pci 0000:00:03.3: PCI bridge to [bus 04]
[    0.785382] pci 0000:00:03.3:   bridge window [io  0xe000-0xefff]
[    0.785393] pci 0000:00:03.3:   bridge window [mem 0xfeb00000-0xfebfffff]
[    0.785728] pci 0000:00:13.0: PCI bridge to [bus 05] (subtractive decode)
[    0.790024] pci 0000:00:13.0:   bridge window [io  0x0000-0x0cf7 window] (subtractive decode)
[    0.790033] pci 0000:00:13.0:   bridge window [io  0x0d00-0xffff window] (subtractive decode)
[    0.790042] pci 0000:00:13.0:   bridge window [mem 0x000a0000-0x000bffff window] (subtractive decode)
[    0.790050] pci 0000:00:13.0:   bridge window [mem 0x000d0000-0x000dffff window] (subtractive decode)
[    0.790059] pci 0000:00:13.0:   bridge window [mem 0x3f800000-0xdfffffff window] (subtractive decode)
[    0.790067] pci 0000:00:13.0:   bridge window [mem 0xf0000000-0xfebfffff window] (subtractive decode)
[    0.790115] pci_bus 0000:00: on NUMA node 0
[    0.793592] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 6 7 10 11 14 15)
[    0.800289] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 *11 14 15)
[    0.810282] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 11 14 *15)
[    0.817425] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 *7 10 11 14 15)
[    0.820282] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 14 15) *0, disabled.
[    0.830281] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11 14 15) *0, disabled.
[    0.840279] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 10 11 14 15) *0, disabled.
[    0.848566] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 *10 11 14 15)
[    0.850904] SCSI subsystem initialized
[    0.875655] libata version 3.00 loaded.
[    0.875681] ACPI: bus type USB registered
[    0.879857] usbcore: registered new interface driver usbfs
[    0.880088] usbcore: registered new interface driver hub
[    0.890048] usbcore: registered new device driver usb
[    0.895416] PCI: Using ACPI for IRQ routing
[    0.900012] PCI: pci_cache_line_size set to 64 bytes
[    0.900146] e820: reserve RAM buffer [mem 0x0009f000-0x0009ffff]
[    0.900153] e820: reserve RAM buffer [mem 0x3f7b0000-0x3fffffff]
[    0.902972] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
[    0.910037] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.914986] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.923039] clocksource: Switched to clocksource hpet
[    0.928356] pnp: PnP ACPI init
[    0.928887] system 00:00: [mem 0xe0000000-0xefffffff] has been reserved
[    0.935600] system 00:00: Plug and Play ACPI device, IDs PNP0c01 (active)
[    0.936262] pnp 00:01: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.937474] pnp 00:02: [dma 0 disabled]
[    0.937758] pnp 00:02: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.938743] pnp 00:03: [dma 0 disabled]
[    0.939132] pnp 00:03: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.939779] system 00:04: [io  0x0a00-0x0a0f] has been reserved
[    0.945785] system 00:04: [io  0x0a10-0x0a1f] has been reserved
[    0.951795] system 00:04: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.952506] system 00:05: [io  0x04d0-0x04d1] has been reserved
[    0.958487] system 00:05: [io  0x0800-0x087f] has been reserved
[    0.964483] system 00:05: [io  0x0400-0x041f] has been reserved
[    0.970475] system 00:05: [mem 0xfed01000-0xfed013ff] has been reserved
[    0.977523] system 00:05: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.978089] system 00:06: [mem 0xfec00000-0xfec00fff] could not be reserved
[    0.985131] system 00:06: [mem 0xfee00000-0xfee00fff] has been reserved
[    0.991836] system 00:06: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.992526] system 00:07: [mem 0xe0000000-0xefffffff] has been reserved
[    0.999218] system 00:07: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.999737] system 00:08: Plug and Play ACPI device, IDs PNP0c01 (active)
[    1.000432] pnp: PnP ACPI: found 9 devices
[    1.013402] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    1.022423] pci 0000:00:03.2: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 03] add_size 200000 add_align 100000
[    1.022482] pci 0000:00:03.2: BAR 9: assigned [mem 0x3f800000-0x3f9fffff 64bit pref]
[    1.030327] pci 0000:00:03.0: PCI bridge to [bus 01]
[    1.035369] pci 0000:00:03.1: PCI bridge to [bus 02]
[    1.040416] pci 0000:00:03.2: PCI bridge to [bus 03]
[    1.045443] pci 0000:00:03.2:   bridge window [io  0xd000-0xdfff]
[    1.051612] pci 0000:00:03.2:   bridge window [mem 0xfea00000-0xfeafffff]
[    1.058466] pci 0000:00:03.2:   bridge window [mem 0x3f800000-0x3f9fffff 64bit pref]
[    1.066299] pci 0000:00:03.3: PCI bridge to [bus 04]
[    1.071334] pci 0000:00:03.3:   bridge window [io  0xe000-0xefff]
[    1.077488] pci 0000:00:03.3:   bridge window [mem 0xfeb00000-0xfebfffff]
[    1.084354] pci 0000:00:13.0: PCI bridge to [bus 05]
[    1.089388] pci_bus 0000:00: resource 4 [io  0x0000-0x0cf7 window]
[    1.089397] pci_bus 0000:00: resource 5 [io  0x0d00-0xffff window]
[    1.089406] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[    1.089414] pci_bus 0000:00: resource 7 [mem 0x000d0000-0x000dffff window]
[    1.089423] pci_bus 0000:00: resource 8 [mem 0x3f800000-0xdfffffff window]
[    1.089431] pci_bus 0000:00: resource 9 [mem 0xf0000000-0xfebfffff window]
[    1.089441] pci_bus 0000:03: resource 0 [io  0xd000-0xdfff]
[    1.089449] pci_bus 0000:03: resource 1 [mem 0xfea00000-0xfeafffff]
[    1.089458] pci_bus 0000:03: resource 2 [mem 0x3f800000-0x3f9fffff 64bit pref]
[    1.089466] pci_bus 0000:04: resource 0 [io  0xe000-0xefff]
[    1.089474] pci_bus 0000:04: resource 1 [mem 0xfeb00000-0xfebfffff]
[    1.089484] pci_bus 0000:05: resource 4 [io  0x0000-0x0cf7 window]
[    1.089493] pci_bus 0000:05: resource 5 [io  0x0d00-0xffff window]
[    1.089501] pci_bus 0000:05: resource 6 [mem 0x000a0000-0x000bffff window]
[    1.089509] pci_bus 0000:05: resource 7 [mem 0x000d0000-0x000dffff window]
[    1.089518] pci_bus 0000:05: resource 8 [mem 0x3f800000-0xdfffffff window]
[    1.089526] pci_bus 0000:05: resource 9 [mem 0xf0000000-0xfebfffff window]
[    1.089910] NET: Registered protocol family 2
[    1.094921] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.102104] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    1.109326] TCP: Hash tables configured (established 8192 bind 8192)
[    1.115868] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.121878] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.128411] NET: Registered protocol family 1
[    1.132928] pci 0000:00:01.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[    1.141367] pci 0000:00:03.0: disabling DAC on VIA PCI bridge
[    1.150189] PCI: CLS 32 bytes, default 64
[    1.161536] workingset: timestamp_bits=62 max_order=18 bucket_order=0
[    1.173204] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.188233] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.195769] io scheduler noop registered
[    1.199750] io scheduler deadline registered (default)
[    1.205369] gpio_it87: no device
[    1.210681] hv_vmbus: registering driver hv_pci
[    1.215306] hv_vmbus: registering driver hyperv_fb
[    1.220603] ACPI: AC Adapter [ACDP] (on-line)
[    1.225317] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0
[    1.233798] ACPI: Sleep Button [SLPB]
[    1.237697] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
[    1.246168] ACPI: Power Button [PWRB]
[    1.250084] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[    1.260323] ACPI: Power Button [PWRF]
[    1.264443] ACPI: Video Device [VUMA] (multi-head: yes  rom: no  post: no)
[    1.272095] acpi device:08: registered as cooling_device0
[    1.277778] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input3
[    1.289828] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.302521] thermal LNXTHERM:00: registered as thermal_zone0
[    1.308243] ACPI: Thermal Zone [CPUT] (28 C)
[    1.313504] thermal LNXTHERM:01: registered as thermal_zone1
[    1.319224] ACPI: Thermal Zone [SYST] (28 C)
[    1.323974] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.350997] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    1.379048] 00:03: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    1.389235] Non-volatile memory driver v1.3
[    1.393849] VIA RNG detected
[    1.396831] Linux agpgart interface v0.103
[    1.408977] loop: module loaded
[    1.412385] Guest personality initialized and is inactive
[    1.417904] VMCI host device registered (name=vmci, major=10, minor=63)
[    1.424588] Initialized host personality
[    1.428865] VMware PVSCSI driver - version 1.0.7.0-k
[    1.433973] hv_vmbus: registering driver hv_storvsc
[    1.439388] pata_via 0000:00:0f.0: version 0.3.4
[    1.444657] scsi host0: pata_via
[    1.448474] scsi host1: pata_via
[    1.451990] ata1: PATA max UDMA/133 cmd 0xc880 ctl 0xc800 bmdma 0xc080 irq 21
[    1.459182] ata2: DUMMY
[    1.462018] VMware vmxnet3 virtual NIC driver - version 1.4.a.0-k-NAPI
[    1.468653] hv_vmbus: registering driver hv_netvsc
[    1.473518] Fusion MPT base driver 3.04.20
[    1.477670] Copyright (c) 1999-2008 LSI Corporation
[    1.482627] Fusion MPT SPI Host driver 3.04.20
[    1.487186] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.493779] ehci-pci: EHCI PCI platform driver
[    1.498801] ehci-pci 0000:00:10.4: EHCI Host Controller
[    1.504130] ehci-pci 0000:00:10.4: new USB bus registered, assigned bus number 1
[    1.511632] ehci-pci 0000:00:10.4: debug port 1
[    1.516298] ehci-pci 0000:00:10.4: irq 23, io mem 0xfe9ef000
[    1.550041] ehci-pci 0000:00:10.4: USB 2.0 started, EHCI 1.00
[    1.556430] hub 1-0:1.0: USB hub found
[    1.560429] hub 1-0:1.0: 8 ports detected
[    1.565245] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.571523] ohci-pci: OHCI PCI platform driver
[    1.576083] ohci-platform: OHCI generic platform driver
[    1.581419] uhci_hcd: USB Universal Host Controller Interface driver
[    1.588249] uhci_hcd 0000:00:10.0: UHCI Host Controller
[    1.593574] uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
[    1.601124] uhci_hcd 0000:00:10.0: irq 20, io base 0x0000c000
[    1.607963] hub 2-0:1.0: USB hub found
[    1.611954] hub 2-0:1.0: 2 ports detected
[    1.616781] uhci_hcd 0000:00:10.1: UHCI Host Controller
[    1.622131] uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
[    1.629662] uhci_hcd 0000:00:10.1: irq 22, io base 0x0000bc00
[    1.636321] hub 3-0:1.0: USB hub found
[    1.640334] hub 3-0:1.0: 2 ports detected
[    1.645116] uhci_hcd 0000:00:10.2: UHCI Host Controller
[    1.650463] uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
[    1.657977] uhci_hcd 0000:00:10.2: irq 21, io base 0x0000b880
[    1.664626] hub 4-0:1.0: USB hub found
[    1.668578] hub 4-0:1.0: 2 ports detected
[    1.673551] uhci_hcd 0000:00:10.3: UHCI Host Controller
[    1.678857] uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
[    1.686405] uhci_hcd 0000:00:10.3: irq 23, io base 0x0000b800
[    1.704209] hub 5-0:1.0: USB hub found
[    1.708406] ata1.01: ATA-8: 2GB SATA Flash Drive, SFDDA01C, max UDMA/133
[    1.715200] ata1.01: 3928176 sectors, multi 1: LBA48 NCQ (depth 0/32)
[    1.721723] ata1.01: limited to UDMA/33 due to 40-wire cable
[    1.727768] hub 5-0:1.0: 2 ports detected
[    1.732621] usbcore: registered new interface driver usb-storage
[    1.738822] i8042: PNP: No PS/2 controller found.
[    1.743621] i8042: Probing ports directly.
[    1.749378] serio: i8042 KBD port at 0x60,0x64 irq 1
[    1.754444] serio: i8042 AUX port at 0x60,0x64 irq 12
[    1.759602] hv_vmbus: registering driver hyperv_keyboard
[    1.765092] rtc_cmos 00:01: RTC can wake from S4
[    1.770063] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[    1.776262] rtc_cmos 00:01: alarms up to one year, y3k, 114 bytes nvram, hpet irqs
[    1.784683] via_cputemp via_cputemp.0: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.798337] ata1.01: configured for UDMA/33
[    1.802995] scsi 0:0:1:0: Direct-Access     ATA      2GB SATA Flash D A01C PQ: 0 ANSI: 5
[    1.813456] sd 0:0:1:0: [sda] 3928176 512-byte logical blocks: (2.01 GB/1.87 GiB)
[    1.821392] sd 0:0:1:0: [sda] Write Protect is off
[    1.826271] sd 0:0:1:0: [sda] Mode Sense: 00 3a 00 00
[    1.826670] sd 0:0:1:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.837219] sdhci: Secure Digital Host Controller Interface driver
[    1.843523] sdhci: Copyright(c) Pierre Ossman
[    1.848003] sdhci-pci 0000:00:0c.0: SDHCI controller found [1106:95d0] (rev 10)
[    1.855792] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[    1.863423]  sda: sda1 sda2
[    1.867683] sd 0:0:1:0: [sda] Attached SCSI disk
[    1.872947] mmc0: SDHCI controller on PCI [0000:00:0c.0] using DMA
[    1.880417] hidraw: raw HID events driver (C) Jiri Kosina
[    1.885935] hv_vmbus: registering driver hid_hyperv
[    1.890962] usbcore: registered new interface driver usbhid
[    1.896592] usbhid: USB HID core driver
[    1.900535] hv_utils: Registering HyperV Utility Driver
[    1.905813] hv_vmbus: registering driver hv_util
[    1.910497] hv_vmbus: registering driver hv_balloon
[    1.916128] NET: Registered protocol family 10
[    1.924305] Segment Routing with IPv6
[    1.928115] NET: Registered protocol family 17
[    1.932700] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.945761] 8021q: 802.1Q VLAN Support v1.8
[    1.950133] NET: Registered protocol family 40
[    1.955475] sched_clock: Marking stable (1950008774, 0)->(2341424427, -391415653)
[    1.963376] registered taskstats version 1
[    1.969051] rtc_cmos 00:01: setting system clock to 2020-02-19 08:28:42 UTC (1582100922)
[    1.977470] acpi_cpufreq: acpi_cpufreq: failed to register hotplug callbacks
[    2.003400] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    2.010561] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    2.021618] Freeing unused kernel memory: 1084K
[    2.040468] Write protecting the kernel read-only data: 14336k
[    2.048978] Freeing unused kernel memory: 2016K
[    2.059917] Freeing unused kernel memory: 396K
[    2.092112] init: Console is alive
[    2.135902] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.145523] pps_core: LinuxPPS API ver. 1 registered
[    2.150946] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.160333] tsc: Refined TSC clocksource calibration: 800.028 MHz
[    2.166501] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0xb882ceab0e, max_idle_ns: 440795221701 ns
[    2.177600] PTP clock support registered
[    2.182552] Button Hotplug driver version 0.4.1
[    2.187406] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.197509] init: - preinit -
[    2.270065] usb 3-1: new full-speed USB device number 2 using uhci_hcd
[    2.289328] random: jshn: uninitialized urandom read (4 bytes read)
[    2.314081] random: jshn: uninitialized urandom read (4 bytes read)
[    2.328308] random: jshn: uninitialized urandom read (4 bytes read)
[    2.494679] hub 3-1:1.0: USB hub found
[    2.499549] hub 3-1:1.0: 4 ports detected
[    2.820024] usb 3-1.1: new low-speed USB device number 3 using uhci_hcd
[    3.016199] input: G15 Gaming Keyboard as /devices/pci0000:00/0000:00:10.1/usb3/3-1/3-1.1/3-1.1:1.0/0003:046D:C226.0001/input/input8
[    3.090142] hid-generic 0003:046D:C226.0001: input,hidraw0: USB HID v1.10 Keyboard [G15 Gaming Keyboard] on usb-0000:00:10.1-1.1/input0
[    3.122944] input: G15 Gaming Keyboard as /devices/pci0000:00/0000:00:10.1/usb3/3-1/3-1.1/3-1.1:1.1/0003:046D:C226.0002/input/input9
[    3.180105] clocksource: Switched to clocksource tsc
[    3.200249] hid-generic 0003:046D:C226.0002: input,hiddev96,hidraw1: USB HID v1.10 Device [G15 Gaming Keyboard] on usb-0000:00:10.1-1.1/input1
[    3.310022] usb 3-1.4: new full-speed USB device number 4 using uhci_hcd
[    3.514819] input: G15 GamePanel LCD as /devices/pci0000:00/0000:00:10.1/usb3/3-1/3-1.4/3-1.4:1.0/0003:046D:C227.0003/input/input10
[    3.590219] hid-generic 0003:046D:C227.0003: input,hiddev97,hidraw2: USB HID v1.11 Keypad [G15 GamePanel LCD] on usb-0000:00:10.1-1.4/input0
[    5.452017] mount_root: mounting /dev/root
[    5.456572] EXT4-fs (sda2): warning: mounting unchecked fs, running e2fsck is recommended
[    5.465906] EXT4-fs (sda2): re-mounted. Opts: (null)
[    5.510375] EXT4-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
[    5.519745] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[    5.530559] urandom-seed: Seeding with /etc/urandom.seed
[    5.547321] procd: - early -
[    6.145576] procd: - ubus -
[    6.153036] urandom_read: 4 callbacks suppressed
[    6.153042] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.198981] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.205642] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.212877] procd: - init -
[    6.389065] kmodloader: loading kernel modules from /etc/modules.d/*
[    6.400192] urngd: v1.0.2 started.
[    6.412737] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    6.419851] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    6.443066] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    6.450140] igb: Copyright (c) 2007-2014 Intel Corporation.
[    6.465192] random: crng init done
[    6.473165] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    6.491652] i2c /dev entries driver
[    6.511039] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    6.516936] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    6.523276] e1000e 0000:03:00.0: PCI: Disallowing DAC for device
[    6.529466] e1000e 0000:03:00.0: Interrupt Throttling Rate (ints/sec) set to simplified (2000-8000 ints) mode
[    6.539472] e1000e 0000:03:00.0: Interrupt Mode set to 1
[    6.662353] e1000e 0000:03:00.0 0000:03:00.0 (uninitialized): registered PHC clock
[    6.746357] e1000e 0000:03:00.0 eth0: (PCI Express:2.5GT/s:Width x1) 00:0d:b4:0d:f9:02
[    6.754374] e1000e 0000:03:00.0 eth0: Intel(R) PRO/1000 Network Connection
[    6.761387] e1000e 0000:03:00.0 eth0: MAC: 3, PHY: 8, PBA No: A40120-001
[    6.768431] e1000e 0000:04:00.0: PCI: Disallowing DAC for device
[    6.774623] e1000e 0000:04:00.0: Interrupt Throttling Rate (ints/sec) set to simplified (2000-8000 ints) mode
[    6.865286] e1000e 0000:04:00.0 0000:04:00.0 (uninitialized): registered PHC clock
[    6.947469] e1000e 0000:04:00.0 eth1: (PCI Express:2.5GT/s:Width x1) 00:0d:b4:0d:f9:03
[    6.955485] e1000e 0000:04:00.0 eth1: Intel(R) PRO/1000 Network Connection
[    6.962497] e1000e 0000:04:00.0 eth1: MAC: 3, PHY: 8, PBA No: A40120-001
[    6.996651] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.014429] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[    7.049627] xt_time: kernel timezone is -0000
[    7.059582] PPP generic driver version 2.4.2
[    7.065517] NET: Registered protocol family 24
[    7.072266] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.090791] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.096700] 8021q: adding VLAN 0 to HW filter on device eth0
[   10.210995] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   10.216898] 8021q: adding VLAN 0 to HW filter on device eth1
[   12.341011] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[   12.349023] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

(first lines are deleted)

I'm not able to boot on other system via USB

Can you get a boot log with the stock firmware?

I see two e1000e chips being set up. (You don't need e1000 or igb if the chips are e1000e.)

Usually a switch is controlled by a mdio bus from the Ethernet chip, but since the e1000e has internal PHY it may not even have an external mdio bus. In that case the switch chip could be controlled by something completely off and out of band.

swconfig list will find if any switches were detected.

When you do get to the point of configuring the switch, VLAN 0 is not valid. Start numbering VLANs at 1.

no :frowning:

the command return nothing

can I force other ?

I Installed Debian and no switch reconized. Only two e1000e chips have been set up

AR8328 datasheet
Check what are MDC and MDIO pins (129 and 128) connected to. They are blocked by your finger in that pic so I can't see them

The AR8xxx switch driver, while present in OpenWrt (swconfig API) and Linux upstream (qca8k DSA), is not enabled on OpenWrt x86 by default.

You'll have to rebuild OpenWrt with the following options enabled: (make kernel_menuconfig, or edit target/linux/x86/config-4.19)

CONFIG_AR8216_PHY=y
CONFIG_MDIO=y
CONFIG_MDIO_BOARDINFO=y
CONFIG_PHYLIB=y
CONFIG_SWCONFIG=y

According to https://elinux.org/images/8/88/Belloni-Switchdev-Slides-ELC2018.pdf, you may also have to write an MFD driver to register the switch driver.