Open warpme opened 1 month ago
From what I see module is already build with debug enabled which means there should be some output when loaded. Looks like module is not loaded then and probe function not called. Try with such simple dts node:
smartchip_wifi_driver {
compatible = "smartchip,s9083s";
status = "okay";
};
You could also revert this and load module manualy (modprobe ....) https://github.com/CoreELEC/smartchip/commit/f7137a9cb1aec83365f64532ba413d5d9d0f6da1
Peter, Many thx.
With simplified dt driver loads. wlan0 appeared.
I launched connmann then issued enable wifi.
connmann shows:
connmand[5647]: Connection Manager version 1.43
connmand[5647]: Online check mode "one-shot"
connmand[5647]: Online check IPv4 URL "http://ipv4.connman.net/online/status.html"
connmand[5647]: Online check IPv6 URL "http://ipv6.connman.net/online/status.html"
connmand[5647]: Online check interval style "geometric"
connmand[5647]: Online check interval range [1, 12]
connmand[5647]: Cannot create /var/run/connman/resolv.conf falling back to /etc/resolv.conf
connmand[5647]: lo {newlink} index 1 address 00:00:00:00:00:00 mtu 65536
connmand[5647]: lo {newlink} index 1 operstate 0 <UNKNOWN>
connmand[5647]: wlan0 {create} index 2 type 1 <ETHER>
connmand[5647]: wlan0 {update} flags 4098 <DOWN>
connmand[5647]: wlan0 {newlink} index 2 address C8:2E:47:03:C3:1E mtu 1500
connmand[5647]: wlan0 {newlink} index 2 operstate 2 <DOWN>
connmand[5647]: wlan0 runs an unsupported 802.11 driver
connmand[5647]: Adding interface wlan0 [ wifi ]
connmand[5647]: eth0 {create} index 3 type 1 <ETHER>
connmand[5647]: eth0 {RX} 3670 packets 3623175 bytes
connmand[5647]: eth0 {TX} 1672 packets 256816 bytes
connmand[5647]: eth0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
connmand[5647]: eth0 {newlink} index 3 address 74:DA:38:4A:06:02 mtu 1500
connmand[5647]: eth0 {newlink} index 3 operstate 6 <UP>
connmand[5647]: eth0 {add} address 192.168.1.151/24 label eth0 family 2
connmand[5647]: The name net.connman.vpn was not provided by any .service files
connmand[5647]: wlan0 {update} flags 36867 <UP>
connmand[5647]: wlan0 {newlink} index 2 address C8:2E:47:03:C3:1E mtu 1500
connmand[5647]: wlan0 {newlink} index 2 operstate 2 <DOWN>
connmand[5647]: wlan0 {newlink} index 2 address C8:2E:47:03:C3:1E mtu 1500
connmand[5647]: wlan0 {newlink} index 2 operstate 2 <DOWN>
but i got kernel oops like this:
root@myth-frontend-74da384a0602:~ # dmesg
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.10.12 (piotro@minimyth2-aarch64-next) (aarch64-minimyth-linux-gnu-gcc (GCC) 14.2.0, GNU ld (GNU Binutils) 2.43) #1 SMP PREEMPT Tue Oct 1 09:52:06 CEST 2024
[ 0.000000] Machine model: Tanix TX1
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: 0x0000000040000000..0x000000004007ffff (512 KiB) nomap non-reusable secmon@40000000
[ 0.000000] earlycon: uart0 at MMIO32 0x0000000005000000 (options '115200n8')
[ 0.000000] printk: legacy bootconsole [uart0] enabled
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000004007ffff]
[ 0.000000] node 0: [mem 0x0000000040080000-0x00000000bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] cma: Reserved 64 MiB at 0x00000000b9800000 on node -1
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.4
[ 0.000000] No bootconfig data provided, so skipping bootconfig
[ 0.000000] percpu: Embedded 33 pages/cpu s95208 r8192 d31768 u135168
[ 0.000000] pcpu-alloc: s95208 r8192 d31768 u135168 alloc=33*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: root=/dev/mmcblk2p2 rw rootwait earlycon console=ttyS0,115200n8 debug ram=1024M
[ 0.000000] Unknown kernel command line parameters "ram=1024M", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 524288
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 2MB
[ 0.000000] software IO TLB: area num 4.
[ 0.000000] software IO TLB: mapped [mem 0x00000000b9600000-0x00000000b9800000] (2MB)
[ 0.000000] Memory: 1957796K/2097152K available (16320K kernel code, 3742K rwdata, 7048K rodata, 2688K init, 587K bss, 73820K reserved, 65536K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-1, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 55789 entries in 218 pages
[ 0.000000] ftrace: allocated 218 pages with 5 groups
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.000000] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.000000] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.009513] Console: colour dummy device 80x25
[ 0.014044] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[ 0.025325] pid_max: default: 32768 minimum: 301
[ 0.030612] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.038750] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.048522] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.057016] rcu: Hierarchical SRCU implementation.
[ 0.061883] rcu: Max phase no-delay instances is 1000.
[ 0.070229] EFI services will not be available.
[ 0.075926] smp: Bringing up secondary CPUs ...
[ 0.081754] Detected VIPT I-cache on CPU1
[ 0.081888] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.082927] Detected VIPT I-cache on CPU2
[ 0.083055] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.084216] Detected VIPT I-cache on CPU3
[ 0.084351] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.084553] smp: Brought up 1 node, 4 CPUs
[ 0.122881] SMP: Total of 4 processors activated.
[ 0.127934] CPU: All CPU(s) started at EL2
[ 0.132443] CPU features: detected: 32-bit EL0 Support
[ 0.138028] CPU features: detected: 32-bit EL1 Support
[ 0.143664] CPU features: detected: CRC32 instructions
[ 0.148962] alternatives: applying system-wide alternatives
[ 0.157620] devtmpfs: initialized
[ 0.170769] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[ 0.181500] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.193078] 25120 pages in range for non-PLT usage
[ 0.193106] 516640 pages in range for PLT usage
[ 0.198490] pinctrl core: initialized pinctrl subsystem
[ 0.209929] DMI not present or invalid.
[ 0.214913] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.223611] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.231234] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.239722] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.248385] audit: initializing netlink subsys (disabled)
[ 0.254727] audit: type=2000 audit(0.133:1): state=initialized audit_enabled=0 res=1
[ 0.256208] thermal_sys: Registered thermal governor 'fair_share'
[ 0.263222] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.269337] thermal_sys: Registered thermal governor 'step_wise'
[ 0.275880] thermal_sys: Registered thermal governor 'user_space'
[ 0.282492] cpuidle: using governor ladder
[ 0.293458] cpuidle: using governor menu
[ 0.297855] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.305283] ASID allocator initialised with 65536 entries
[ 0.311596] Serial: AMBA PL011 UART driver
[ 0.324591] platform 6000000.hdmi: Fixed dependency cycle(s) with /soc/tcon-top@6510000
[ 0.334069] platform 6000000.hdmi: Fixed dependency cycle(s) with /soc/tcon-top@6510000
[ 0.342261] platform 6510000.tcon-top: Fixed dependency cycle(s) with /soc/hdmi@6000000
[ 0.351049] platform 6510000.tcon-top: Fixed dependency cycle(s) with /soc/lcd-controller@6515000
[ 0.360749] platform 6510000.tcon-top: Fixed dependency cycle(s) with /soc/bus@1000000/mixer@100000
[ 0.370979] platform 6510000.tcon-top: Fixed dependency cycle(s) with /soc/lcd-controller@6515000
[ 0.380834] platform 6515000.lcd-controller: Fixed dependency cycle(s) with /soc/tcon-top@6510000
[ 0.395727] platform 6000000.hdmi: Fixed dependency cycle(s) with /connector
[ 0.403608] platform connector: Fixed dependency cycle(s) with /soc/hdmi@6000000
[ 0.415290] cryptd: max_cpu_qlen set to 1000
[ 0.420781] ACPI: Interpreter disabled.
[ 0.425441] iommu: Default domain type: Translated
[ 0.430713] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.444214] SCSI subsystem initialized
[ 0.448413] libata version 3.00 loaded.
[ 0.452571] usbcore: registered new interface driver usbfs
[ 0.458468] usbcore: registered new interface driver hub
[ 0.464048] usbcore: registered new device driver usb
[ 0.470184] pps_core: LinuxPPS API ver. 1 registered
[ 0.475649] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.485497] PTP clock support registered
[ 0.490063] scmi_core: SCMI protocol bus registered
[ 0.496028] Advanced Linux Sound Architecture Driver Initialized.
[ 0.504033] clocksource: Switched to clocksource arch_sys_counter
[ 1.380464] pnp: PnP ACPI: disabled
[ 1.396512] NET: Registered PF_INET protocol family
[ 1.401762] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 1.412036] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 1.421552] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 1.430092] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 1.438158] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 1.446078] TCP: Hash tables configured (established 16384 bind 16384)
[ 1.452933] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 1.459757] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 1.467440] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 1.474495] RPC: Registered named UNIX socket transport module.
[ 1.481052] RPC: Registered udp transport module.
[ 1.486221] RPC: Registered tcp transport module.
[ 1.491388] RPC: Registered tcp-with-tls transport module.
[ 1.497443] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.504526] NET: Registered PF_XDP protocol family
[ 1.509810] PCI: CLS 0 bytes, default 64
[ 1.521128] kvm [1]: nv: 477 coarse grained trap handlers
[ 1.527695] kvm [1]: IPA Size Limit: 40 bits
[ 1.534473] kvm [1]: vgic interrupt IRQ9
[ 1.538481] kvm [1]: Hyp nVHE mode initialized successfully
[ 1.547001] Initialise system trusted keyrings
[ 1.551916] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 1.559753] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.566752] NFS: Registering the id_resolver key type
[ 1.572418] Key type id_resolver registered
[ 1.577017] Key type id_legacy registered
[ 1.581466] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.588197] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 1.664481] NET: Registered PF_ALG protocol family
[ 1.669785] Key type asymmetric registered
[ 1.673906] Asymmetric key parser 'x509' registered
[ 1.679257] Asymmetric key parser 'pkcs8' registered
[ 1.684243] Key type pkcs7_test registered
[ 1.688861] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 1.697271] io scheduler mq-deadline registered
[ 1.702271] io scheduler kyber registered
[ 1.706713] io scheduler bfq registered
[ 1.744929] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.756251] Serial: AMBA driver
[ 1.781656] usbcore: registered new interface driver uas
[ 1.787585] usbcore: registered new interface driver usb-storage
[ 1.795533] mousedev: PS/2 mouse device common for all mice
[ 1.803251] sun6i-rtc 7000000.rtc: registered as rtc0
[ 1.808867] sun6i-rtc 7000000.rtc: setting system clock to 2024-10-01T09:28:33 UTC (1727774913)
[ 1.823208] sdhci: Secure Digital Host Controller Interface driver
[ 1.830049] sdhci: Copyright(c) Pierre Ossman
[ 1.834801] Synopsys Designware Multimedia Card Interface Driver
[ 1.843213] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.851401] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.859286] SMCCC: SOC_ID: ID = jep106:091e:1823 Revision = 0x00000000
[ 1.869239] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 1.878998] watchdog: Delayed init of the lockup detector failed: -19
[ 1.886309] watchdog: Hard watchdog permanently disabled
[ 1.904280] NET: Registered PF_PACKET protocol family
[ 1.910221] Key type dns_resolver registered
[ 1.929533] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[ 1.938752] registered taskstats version 1
[ 1.943700] Loading compiled-in X.509 certificates
[ 1.958625] zswap: loaded using pool zstd/zsmalloc
[ 1.986102] sun8i-mixer 1100000.mixer: Adding to iommu group 0
[ 1.995428] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 2.017006] sun50i-h616-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
[ 2.028138] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-ph not found, using dummy regulator
[ 2.038808] printk: legacy console [ttyS0] disabled
[ 2.044785] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 286, base_baud = 1500000) is a 16550A
[ 2.054384] printk: legacy console [ttyS0] enabled
[ 2.064470] printk: legacy bootconsole [uart0] disabled
[ 2.091859] ehci-platform 5101000.usb: EHCI Host Controller
[ 2.093038] ohci-platform 5101400.usb: Generic Platform OHCI controller
[ 2.093149] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests (id=vbus)
[ 2.094250] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
[ 2.094285] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 1
[ 2.094578] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.10
[ 2.094589] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.094599] usb usb1: Product: MUSB HDRC host driver
[ 2.094606] usb usb1: Manufacturer: Linux 6.10.12 musb-hcd
[ 2.094612] usb usb1: SerialNumber: musb-hdrc.2.auto
[ 2.095544] hub 1-0:1.0: USB hub found
[ 2.095591] hub 1-0:1.0: 1 port detected
[ 2.097544] ehci-platform 5101000.usb: new USB bus registered, assigned bus number 2
[ 2.104199] ohci-platform 5101400.usb: new USB bus registered, assigned bus number 3
[ 2.105959] mv64xxx_i2c 7081400.i2c: can't get pinctrl, bus recovery not supported
[ 2.106913] axp20x-i2c 0-0036: AXP20x variant AXP313a found
[ 2.107743] axp20x-i2c 0-0036: AXP20X driver loaded
[ 2.111135] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pg not found, using dummy regulator
[ 2.115259] ehci-platform 5101000.usb: irq 287, io mem 0x05101000
[ 2.115656] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pc not found, using dummy regulator
[ 2.120003] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 2.120379] ohci-platform 5101400.usb: irq 288, io mem 0x05101400
[ 2.120842] sun50i-h616-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
[ 2.122204] sun4i-drm display-engine: Adding to iommu group 0
[ 2.138699] sun4i-drm display-engine: bound 1100000.mixer (ops sun8i_mixer_ops)
[ 2.143493] ehci-platform 5101000.usb: USB 2.0 started, EHCI 1.00
[ 2.145597] vdd-dram: Bringing 1100000uV into 1200000-1200000uV
[ 2.148828] sun4i-drm display-engine: bound 6510000.tcon-top (ops sun8i_tcon_top_ops)
[ 2.154341] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.10
[ 2.159655] sun4i-drm display-engine: bound 6515000.lcd-controller (ops sun4i_tcon_ops)
[ 2.162771] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.162781] usb usb2: Product: EHCI Host Controller
[ 2.162789] usb usb2: Manufacturer: Linux 6.10.12 ehci_hcd
[ 2.162796] usb usb2: SerialNumber: 5101000.usb
[ 2.163692] hub 2-0:1.0: USB hub found
[ 2.167420] sun8i-dw-hdmi 6000000.hdmi: Detected HDMI TX controller v2.12a with HDCP (DWC HDMI 2.0 TX PHY)
[ 2.174586] hub 2-0:1.0: 1 port detected
[ 2.183131] sun8i-dw-hdmi 6000000.hdmi: registered DesignWare HDMI I2C bus driver
[ 2.343490] sun4i-drm display-engine: bound 6000000.hdmi (ops sun8i_dw_hdmi_ops)
[ 2.352005] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 2.359935] sun4i-drm display-engine: [drm] Cannot find any crtc or sizes
[ 2.366885] sun4i-drm display-engine: [drm] Cannot find any crtc or sizes
[ 2.374589] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.10
[ 2.374840] cpu cpu0: opp_parse_microvolt: opp-microvolt missing although OPP managing regulators
[ 2.382983] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.391876] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -22
[ 2.399016] usb usb3: Product: Generic Platform OHCI controller
[ 2.405216] cpu cpu0: OPP table can't be empty
[ 2.411099] usb usb3: Manufacturer: Linux 6.10.12 ohci_hcd
[ 2.420336] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[ 2.421041] usb usb3: SerialNumber: 5101400.usb
[ 2.421874] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pc not found, using dummy regulator
[ 2.426696] clk: Disabling unused clocks
[ 2.431721] hub 3-0:1.0: USB hub found
[ 2.439781] PM: genpd: Disabling unused power domains
[ 2.443577] hub 3-0:1.0: 1 port detected
[ 2.447304] ALSA device list:
[ 2.449950] sunxi-mmc 4022000.mmc: initialized, max. request size: 2048 KB, uses new timings mode
[ 2.449949] sunxi-mmc 4021000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[ 2.469202] mmc1: new high speed SDIO card at address 0001
[ 2.477077] No soundcards found.
[ 2.486482] Waiting for root device /dev/mmcblk2p2...
[ 2.539170] mmc2: new DDR MMC card at address 0001
[ 2.545294] mmcblk2: mmc2:0001 Q313MB 14.6 GiB
[ 2.552626] mmcblk2: p1 p2 p3
[ 2.557217] mmcblk2boot0: mmc2:0001 Q313MB 4.00 MiB
[ 2.565006] mmcblk2boot1: mmc2:0001 Q313MB 4.00 MiB
[ 2.620741] usb 2-1: new high-speed USB device number 2 using ehci-platform
[ 2.775402] usb 2-1: New USB device found, idVendor=14cd, idProduct=8601, bcdDevice= 0.00
[ 2.783681] usb 2-1: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 2.790852] usb 2-1: Product: USB 2.0 Hub
[ 2.795927] usb 2-1: Manufacturer: USB Device
[ 2.801519] hub 2-1:1.0: USB hub found
[ 2.805529] hub 2-1:1.0: 4 ports detected
[ 2.934588] EXT4-fs (mmcblk2p2): 58 orphan inodes deleted
[ 2.940095] EXT4-fs (mmcblk2p2): recovery complete
[ 2.961798] EXT4-fs (mmcblk2p2): mounted filesystem 038e3391-bf27-4ae9-affd-931f60649f07 r/w with ordered data mode. Quota mode: disabled.
[ 2.974443] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.981474] devtmpfs: mounted
[ 2.991930] Freeing unused kernel memory: 2688K
[ 2.996862] Run /sbin/init as init process
[ 3.001012] with arguments:
[ 3.003982] /sbin/init
[ 3.006712] with environment:
[ 3.009891] HOME=/
[ 3.012262] TERM=linux
[ 3.014981] ram=1024M
[ 3.090768] usb 2-1.1: new high-speed USB device number 3 using ehci-platform
[ 3.211061] usb 2-1.1: New USB device found, idVendor=0b95, idProduct=1790, bcdDevice= 1.00
[ 3.219472] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.226807] usb 2-1.1: Product: AX88179
[ 3.230668] usb 2-1.1: Manufacturer: ASIX Elec. Corp.
[ 3.235803] usb 2-1.1: SerialNumber: 000000000004B2
[ 3.535662] udevd[140]: starting version 3.2.10
[ 5.160707] random: crng init done
[ 5.183647] udevd[141]: starting eudev-3.2.10
[ 5.319252] s9083s: loading out-of-tree module taints kernel.
[ 5.335140] mc: Linux media interface: v0.10
[ 5.339317] panfrost 1800000.gpu: clock rate = 432000000
[ 5.344890] panfrost 1800000.gpu: bus_clock rate = 200000000
[ 5.357421] [D]
[ 5.357448]
[ 5.357448]
[ 5.357448] <SCI WIFI DRV INSMOD>
[ 5.357448]
[ 5.368191]
[ 5.370072] [D]
[ 5.370083] ************HIF INIT*************
[ 5.372383]
[ 5.378793] [I]
[ 5.378810] Driver Ver:[svn]
[ 5.381040]
[ 5.381507] panfrost 1800000.gpu: mali-g31 id 0x7093 major 0x0 minor 0x0 status 0x0
[ 5.384157] [I]
[ 5.388234] panfrost 1800000.gpu: features: 00000000,000027f7, issues: 00000000,00000400
[ 5.392854] videodev: Linux video capture interface: v2.00
[ 5.393627] Kernel_version: 6.10.12
[ 5.402565] panfrost 1800000.gpu: Features: L2:0x07100206 Shader:0x00000000 Tiler:0x00000209 Mem:0x1 MMU:0x00002821 AS:0xff JS:0x7
[ 5.404209]
[ 5.408017] sunxi-wdt 30090a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 5.409622] panfrost 1800000.gpu: shader_present=0x1 l2_present=0x1
[ 5.412086] [drm] Initialized panfrost 1.2.0 20180908 for 1800000.gpu on minor 1
[ 5.427442] [D]
[ 5.448745] prase richv100 firmware! /lib/firmware/s9083s/ram-fw-908x-old-r1549.bin
[ 5.451092]
[ 5.459968] aicbsp_init
[ 5.466379] [D]
[ 5.466401] FW0 Ver: 0.0.0.0, size:132328Bytes
[ 5.468730] RELEASE_DATE:2024_0327_3561b08f
[ 5.468845]
[ 5.473272] aicbsp_resv_mem_init
[ 5.487667] [I]
[ 5.487699] sdio_init !!!
[ 5.489917]
[ 5.501904] sunxi_cedrus: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.506343] [I]
[ 5.511968] Class=7
[ 5.514235]
[ 5.518788] [I]
[ 5.518815] Vendor ID:2e7
[ 5.521104]
[ 5.524273] ahub_dam-snd-soc-dummy-dai: substream ahub_dam-snd-soc-dummy-dai has no playback, no capture
[ 5.525453] cedrus 1c0e000.video-codec: Adding to iommu group 0
[ 5.525837] [I]
[ 5.527779] sunxi-snd-mach soc:ahub_dam_mach: ASoC: can't create pcm ahub_dam-snd-soc-dummy-dai :-22
[ 5.528642] cedrus 1c0e000.video-codec: Device registered as /dev/video0
[ 5.537546] Device ID:9086
[ 5.561543]
[ 5.564413] sunxi-snd-mach soc:ahub_dam_mach: probe with driver sunxi-snd-mach failed with error -22
[ 5.566242] [I]
[ 5.575405] Function#:1
[ 5.577658]
[ 5.582179] [I]
[ 5.582200] func_num:1, vender:0x2e7, device:0x9086, max_blksize:512, cur_blksize:512, state:1
[ 5.584468]
[ 5.596730] [I]
[ 5.596757] [sdio_ctl_init]
[ 5.600981]
[ 5.611269] [I]
[ 5.611296] 00000000e2d73331
[ 5.613509]
[ 5.618462] [I]
[ 5.618479] wf_sdio_init start
[ 5.620747]
[ 5.625931] [I]
[ 5.625952] sdio_id=0
[ 5.630523]
[ 5.632743] [I]
[ 5.632767] func_num:1, vender:0x2e7, device:0x9086, max_blksize:512, cur_blksize:512, state:1
[ 5.635046]
[ 5.644139] Registered IR keymap rc-beelink-gs1
[ 5.647572] [I]
[ 5.650220] wf_sdio_init end
[ 5.652870]
[ 5.664239] [D]
[ 5.664267] ************HIF DEV INSERT*************
[ 5.666389]
[ 5.674342] IR NEC protocol handler initialized
[ 5.680790] [D]
[ 5.680818] << Power on >>
[ 5.682940]
[ 5.690919] [D]
[ 5.690942] Normal mode....
[ 5.693064]
[ 5.702718] [D]
[ 5.702743] pwr_seq_cmd_prasing: PWR_CMD_WRITE
[ 5.709718]
[ 5.711076] rc rc0: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0
[ 5.719549] [D]
[ 5.719576] pwr_seq_cmd_prasing: PWR_CMD_POLLING
[ 5.721847] rc rc0: lirc_dev: driver sunxi-ir registered at minor = 0, raw IR receiver, no transmitter
[ 5.727673] input: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0/input0
[ 5.736275]
[ 5.745390] [D]
[ 5.745416] pwr_seq_cmd_prasing: PWR_CMD_WRITE
[ 5.752299]
[ 5.753517] sunxi-ir 7040000.ir: initialized sunXi IR driver
[ 5.756257] [D]
[ 5.760176] pwr_seq_cmd_prasing: PWR_CMD_WRITE
[ 5.767050]
[ 5.769381] [D]
[ 5.769408] pwr_seq_cmd_prasing: PWR_CMD_POLLING
[ 5.776454]
[ 5.780392] [D]
[ 5.780425] pwr_seq_cmd_prasing: PWR_CMD_WRITE
[ 5.787700]
[ 5.792216] [D]
[ 5.792248] pwr_seq_cmd_prasing: PWR_CMD_WRITE
[ 5.801861]
[ 5.804589] [D]
[ 5.804620] pwr_seq_cmd_prasing: PWR_CMD_WRITE
[ 5.811320]
[ 5.817570] [D]
[ 5.817602] pwr_seq_cmd_prasing: PWR_CMD_POLLING
[ 5.827788]
[ 5.832831] [D]
[ 5.832858] pwr_seq_cmd_prasing: PWR_CMD_WRITE
[ 5.839636]
[ 5.841781] [D]
[ 5.841809] pwr_seq_cmd_prasing: PWR_CMD_END
[ 5.848303]
[ 5.850381] [I]
[ 5.850404] [power_on,417] write REG_CR_9086X:0x63f
[ 5.852720]
[ 5.859872] [I]
[ 5.859900] value32:0x2063f
[ 5.862221]
[ 5.867090] [I]
[ 5.867115] [power_on] value32:0x2063f
[ 5.869413]
[ 5.875125] [I]
[ 5.875138] wait finish[0]
[ 5.877419]
[ 5.882203] [D]
[ 5.882222] [power_on,480] 0x1B8
[ 5.886135]
[ 5.892111] [D]
[ 5.892135] value32(0x1B8):0x12345678
[ 5.894617]
[ 5.900365] [I]
[ 5.900380] power check ok, check_index:0
[ 5.902753]
[ 5.909019] [I]
[ 5.909040] clk value32:0x35001a97
[ 5.911302]
[ 5.916760] [I]
[ 5.916777] clk value32:0x350016ef
[ 5.918993]
[ 5.924332] [D]
[ 5.924338] wf_power_on success
[ 5.926438]
[ 5.931573] [D]
[ 5.931582] [wf_proc_init] start
[ 5.936926]
[ 5.938829] [D]
[ 5.938833] << create hif tx/rx queue >>
[ 5.940942]
[ 5.947101] [D]
[ 5.947112] [wf_hif_queue_enable] begin
[ 5.949239]
[ 5.954930] [D]
[ 5.954934] [wf_hif_queue_enable] end
[ 5.957049]
[ 5.962551] [D]
[ 5.962554] << add nic to hif_node >>
[ 5.964661]
[ 5.970161] [D]
[ 5.970164] node_id :0
[ 5.972348]
[ 5.977078] [D]
[ 5.977082] hif_type :2 [1:usb 2:sdio]
[ 5.979193]
[ 5.985405] [D]
[ 5.985409] << ndev register 0>>
[ 5.987518]
[ 5.992621] [I]
[ 5.992626] tx_info init
[ 5.994822]
[ 5.999400] [I]
[ 5.999406] rx_init init
[ 6.001606]
[ 6.006702] [I]
[ 6.006706] start
[ 6.008906]
[ 6.013089] [I]
[ 6.013093] fw downloading.....
[ 6.015307]
[ 9.629382] [I]
[ 9.629406] fw go sucess!
[ 9.634251]
[ 9.638662] [I]
[ 9.638669] end
[ 9.640872]
[ 10.205360] [I]
[ 10.205377] ChannelPlan ID: 0x0c, NUM: 13
[ 10.211601]
[ 10.216207] [I]
[ 10.216213] [wf_mcu_init_hardware1] BcnCtrlVal:16
[ 10.218423]
[ 10.225064] [I]
[ 10.225068] [wf_mcu_init_hardware1] TxPause:0
[ 10.227254]
[ 10.233538] [I]
[ 10.233541] [wf_mcu_init_hardware1] FwHwTxQCtrl:49
[ 10.235739]
[ 10.242470] [I]
[ 10.242473] [wf_mcu_init_hardware1] TbttR:0
[ 10.244670]
[ 10.250788] [I]
[ 10.250792] [wf_mcu_init_hardware1] CR_1:6
[ 10.252977]
[ 12.463422] [I]
[ 12.463445] <RXDMA_CTL>0x10c:0xf5b4
[ 12.465669]
[ 12.471091] [I]
[ 12.471096] <RXDMA_AGG_PG_TH>0x280:0x20000508
[ 12.473283]
[ 12.479524] [I]
[ 12.479528] <RXDMA_CONFIG>0x290:0x0e
[ 12.481731]
[ 12.487148] [I]
[ 12.487152] P2P[wf_p2p_init:403][0]start
[ 12.489352]
[ 12.495215] [I]
[ 12.495219] [wf_wlan_mgmt_init:1170]ndev_id:0
[ 12.497419]
[ 12.504278] [I]
[ 12.504291] [ndev_init:67]efuse_macaddr:c8:2e:47:03:c3:1e
[ 12.506488]
[ 12.513736] [I]
[ 12.513740] [ndev_init:70][0] macaddr:c8:2e:47:03:c3:1e
[ 12.515950]
[ 12.524563] [I]
[ 12.524586] ppg_num:231,hpg_num:12,mgp_num:2,lpg_num:2,epg_num:0
[ 12.526259] ax88179_178a 2-1.1:1.0 eth0: register 'ax88179_178a' at usb-5101000.usb-1.1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 74:da:38:4a:06:02
[ 12.526791]
[ 12.526891] [I]
[ 12.535281] usbcore: registered new interface driver ax88179_178a
[ 12.545867] HIGH(fifo_1,fifo_2,fifo_4) MID(fifi_5) LOW(fifo_6)
[ 12.545879]
[ 12.545960] [I]
[ 12.563813] SdioTxOQTFreeSpace:32
[ 12.566018]
[ 12.571182] [I]
[ 12.571186] [sdio_func_probe] end
[ 12.573372]
[ 12.578535] [I]
[ 12.578539] sdio speed 50000000
[ 12.580741]
[ 15.507795] loop: module loaded
[ 17.510542] FAT-fs (mmcblk2p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 21.593548] ax88179_178a 2-1.1:1.0 eth0: ax88179 - Link status is: 1
[ 22.692583] platform sound-spdif: deferred probe pending: asoc-simple-card: parse error
[ 34.521505] zram: Added device: zram0
[ 34.762090] zram0: detected capacity change from 0 to 524288
[ 36.038654] loop0: detected capacity change from 0 to 5832
[ 38.613106] input: eventlircd as /devices/virtual/input/input1
[ 40.238027] NET: Registered PF_INET6 protocol family
[ 40.245108] Segment Routing with IPv6
[ 40.248918] In-situ OAM (IOAM) with IPv6
[ 68.106023] Adding 1572860k swap on /dev/mmcblk2p3. Priority:-2 extents:1 across:1572860k SS
[ 68.433614] zram: Added device: zram1
[ 68.611860] input: kmsvnc as /devices/virtual/input/input2
[ 68.721085] zram1: detected capacity change from 0 to 6078064
[ 68.955337] Adding 3039028k swap on /dev/zram1. Priority:15 extents:1 across:3039028k SSDsc
[ 100.779791] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 100.799836] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 100.806460] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 252.105359] s9083h mmc1:0001:1 wlan0: Current addr: c8 2e 47 03 c3 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 252.118763] s9083h mmc1:0001:1 wlan0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 252.132121] ------------[ cut here ]------------
[ 252.136771] netdevice: wlan0: Incorrect netdev->dev_addr
[ 252.142240] WARNING: CPU: 1 PID: 5647 at net/core/dev_addr_lists.c:519 dev_addr_check+0xac/0x138
[ 252.151045] Modules linked in: iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle cfg80211 rfkill des_generic libdes ip6table_filter ip6_tables iptable_filter ip_tables x_tables joydev rpcsec_gss_krb5 auth_rpcgss ipv6 zram nls_ascii nls_cp437 vfat fat uinput loop ir_nec_decoder rc_beelink_gs1 crct10dif_ce sunxi_cir snd_soc_sunxi_ahub snd_soc_sunxi_machine rc_core sunxi_cedrus(C) ax88179_178a usbnet dw_hdmi_cec videobuf2_dma_contig v4l2_mem2mem snd_soc_sunxi_ahub_dam videobuf2_memops aic8800_bsp sun50iw9_codec sun8i_thermal videobuf2_v4l2 sunxi_wdt videodev videobuf2_common panfrost mc s9083s(O) drm_shmem_helper gpu_sched overlay
[ 252.209110] CPU: 1 PID: 5647 Comm: connmand Tainted: G C O 6.10.12 #1
[ 252.216762] Hardware name: Tanix TX1 (DT)
[ 252.220770] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 252.227729] pc : dev_addr_check+0xac/0x138
[ 252.231824] lr : dev_addr_check+0xac/0x138
[ 252.235918] sp : ffff800082e0bb80
[ 252.239230] x29: ffff800082e0bb80 x28: ffff000017230000 x27: ffff000005344800
[ 252.246368] x26: 0000000000009003 x25: ffff0000028b4000 x24: 00000000ffff8001
[ 252.253506] x23: ffff0000028b4344 x22: 0000000000001002 x21: ffff800079e934a0
[ 252.260643] x20: ffff0000028b4128 x19: ffff0000028b4000 x18: ffffffffffffffff
[ 252.267781] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000006
[ 252.274918] x14: 0000000000000000 x13: 726464615f766564 x12: 3e2d76656474656e
[ 252.282055] x11: ffff8000819c21f8 x10: 0000000000000237 x9 : ffff800080125d68
[ 252.289193] x8 : 000000000002ffe8 x7 : 00000000ffffe000 x6 : ffff800081a721f8
[ 252.296328] x5 : 80000000ffffe000 x4 : 0000000000000000 x3 : 0000000000000000
[ 252.303465] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000017230000
[ 252.310603] Call trace:
[ 252.313049] dev_addr_check+0xac/0x138
[ 252.316797] __dev_open+0x48/0x210
[ 252.320204] __dev_change_flags+0x1b0/0x230
[ 252.324391] dev_change_flags+0x28/0x80
[ 252.328229] devinet_ioctl+0x2ac/0x690
[ 252.331983] inet_ioctl+0x1d4/0x1f8
[ 252.335467] sock_ioctl+0x210/0x3e0
[ 252.338961] __arm64_sys_ioctl+0xb8/0xf0
[ 252.342885] do_el0_svc+0x70/0x100
[ 252.346295] el0_svc+0x38/0x140
[ 252.349441] el0t_64_sync_handler+0x118/0x128
[ 252.353797] el0t_64_sync+0x190/0x198
[ 252.357461] ---[ end trace 0000000000000000 ]---
[ 252.362216] [I]
[ 252.362232] [NIC] nic_enable :c8:2e:47:03:c3:1e
[ 252.364447]
[ 252.384436] [W]
[ 252.384462] [wf_mlme_conn_abort:1805][0]no connection abort
[ 252.386879]
[ 252.486170] [I]
[ 252.486199] [mlme_core_thrd:1243][0]scanning...
[ 252.488415]
[ 252.494909] [I]
[ 252.494921] [core_scan_thrd:183][0]scan...
[ 252.497184]
[ 252.510619] [I]
[ 252.510636] [scan_setting:179][0]Disbale BSSID Filter
[ 252.512855]
[ 252.524893] [I]
[ 252.524907] [wf_scan_thrd:578][0]scanning...
[ 252.527133]
[ 255.176017] [I]
[ 255.176042] [wf_scan_thrd:737][0]scan done pass time: 2644ms
[ 255.178248]
[ 255.186055] [I]
[ 255.186085] [rx_frame_handle:691]scan queue refresh
[ 255.188374]
[ 255.201466] [I]
[ 255.201482] [scan_setting_recover:249][0]Enable BSSID Filter
[ 255.203702]
[ 255.239417] [I]
[ 255.239444] [mlme_core_thrd:1243][0]scanning...
[ 255.241649]
[ 255.248089] [I]
[ 255.248101] [core_scan_thrd:183][0]scan...
[ 255.250325]
[ 255.263765] [I]
[ 255.263783] [scan_setting:179][0]Disbale BSSID Filter
[ 255.266004]
[ 255.278014] [I]
[ 255.278024] [wf_scan_thrd:578][0]scanning...
[ 255.280240]
[ 257.929341] [I]
[ 257.929365] [wf_scan_thrd:737][0]scan done pass time: 2644ms
[ 257.931574]
[ 257.942686] [I]
[ 257.942704] [rx_frame_handle:691]scan queue refresh
[ 257.944905]
[ 257.950114] [I]
[ 257.951640] [scan_setting_recover:249][0]Enable BSSID Filter
[ 257.953861]
[ 264.249406] [I]
[ 264.249433] [mlme_core_thrd:1243][0]scanning...
[ 264.251644]
[ 264.258125] [I]
[ 264.258138] [core_scan_thrd:183][0]scan...
[ 264.260388]
[ 264.273847] [I]
[ 264.273865] [scan_setting:179][0]Disbale BSSID Filter
[ 264.276092]
[ 264.288116] [I]
[ 264.288128] [wf_scan_thrd:578][0]scanning...
[ 264.290348]
[ 266.929340] [I]
[ 266.929366] [wf_scan_thrd:737][0]scan done pass time: 2634ms
[ 266.931575]
[ 266.942685] [I]
[ 266.942704] [rx_frame_handle:691]scan queue refresh
[ 266.944905]
[ 266.950122] [I]
[ 266.951637] [scan_setting_recover:249][0]Enable BSSID Filter
[ 266.953857]
root@myth-frontend-74da384a0602:~ #
my s9083s driver changes are: https://github.com/warpme/minimyth2/blob/master/script/kernel/sci9083h/files/fix-compile.patch
dts i'm using: https://gist.github.com/warpme/acb59355bbfeaea1c0cdc198640049e9
firmware: https://github.com/CoreELEC/smartchip/blob/master/trunk_driver/fw/ram-fw-908x-old-r1549.bin wifi.cfg: https://github.com/CoreELEC/smartchip/blob/master/trunk_driver/wifi.cfg
maybe you have any hint here?
Maybe something like this? https://gist.github.com/vpeter4/d9e01ab34580c6aa3c18461f3896e316
Instead of ether_addr_copy
maybe should be used eth_hw_addr_set
.
thx. patch fais to compile so i edited it a bit:
[piotro@minimyth2-aarch64-next files]$ cat 03-fix-netdev-addr.patch
diff --speed-large-files --no-dereference --minimal -Naur smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/nic/p2p/p2p_frame_mgt.c smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/nic/p2p/p2p_frame_mgt.c
--- smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/nic/p2p/p2p_frame_mgt.c 2022-03-21 09:42:51.000000000 +0100
+++ smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/nic/p2p/p2p_frame_mgt.c 2024-10-01 15:46:51.600465637 +0200
@@ -1631,7 +1631,11 @@
P2P_ATTR_DEVICE_INFO, pattr_content,
(wf_u32 *) & attr_contentlen);
- wf_memcpy(pwdn_info->dev_addr, pattr_content, WF_ETH_ALEN);
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,16,0))
+ ether_addr_copy(pwdn_info->dev_addr, pattr_content);
+ #else
+ wf_memcpy(pwdn_info->dev_addr, pattr_content, WF_ETH_ALEN);
+ #endif
pattr_content += WF_ETH_ALEN;
diff --speed-large-files --no-dereference --minimal -Naur smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/os/linux/netdev/ndev_linux.c smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/os/linux/netdev/ndev_linux.c
--- smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/os/linux/netdev/ndev_linux.c 2022-03-21 09:42:51.000000000 +0100
+++ smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/os/linux/netdev/ndev_linux.c 2024-10-01 15:45:26.353796691 +0200
@@ -65,7 +65,11 @@
}
NDEV_INFO("efuse_macaddr:"WF_MAC_FMT, WF_MAC_ARG(hw_info->macAddr));
- memcpy(ndev->dev_addr, hw_info->macAddr, WF_ETH_ALEN);
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,16,0))
+ ether_addr_copy(ndev->dev_addr, hw_info->macAddr);
+ #else
+ memcpy(ndev->dev_addr, hw_info->macAddr, WF_ETH_ALEN);
+ #endif
NDEV_INFO("[%d] macaddr:"WF_MAC_FMT, ndev_priv->nic->ndev_id, WF_MAC_ARG(hw_info->macAddr));
}
@@ -562,7 +566,11 @@
return -1;
}
wf_memcpy(nic_to_local_addr(pnic_info), sock_addr->sa_data, MAC_ADDR_LEN);
- wf_memcpy(pnetdev->dev_addr, sock_addr->sa_data, WF_ETH_ALEN);
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,16,0))
+ ether_addr_copy(pnetdev->dev_addr, sock_addr->sa_data);
+ #else
+ wf_memcpy(pnetdev->dev_addr, sock_addr->sa_data, WF_ETH_ALEN);
+ #endif
wf_mcu_set_macaddr(pnic_info, pnetdev->dev_addr);
return 0;
with applied kernel oops is a bit different:
[ 11.619643] [sdio_func_probe] end
[ 11.621963]
[ 11.621978] [I]
[ 11.621983] sdio speed 50000000
[ 11.624221]
[ 15.392512] loop: module loaded
[ 17.524510] FAT-fs (mmcblk2p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 21.422703] ax88179_178a 1-1.1:1.0 eth0: ax88179 - Link status is: 1
[ 21.812409] platform sound-spdif: deferred probe pending: asoc-simple-card: parse error
[ 35.014793] zram: Added device: zram0
[ 35.209124] zram0: detected capacity change from 0 to 524288
[ 36.507671] loop0: detected capacity change from 0 to 5832
[ 39.170970] input: eventlircd as /devices/virtual/input/input1
[ 41.242736] NET: Registered PF_INET6 protocol family
[ 41.244953] Segment Routing with IPv6
[ 41.245023] In-situ OAM (IOAM) with IPv6
[ 45.663428] dw_hdmi_cec_hardirq: stat=11 LOW_DRIVE
[ 45.821011] cec-dw_hdmi: low drive counter: 1 (seq 11: 40 8f)
[ 46.047784] dw_hdmi_cec_hardirq: stat=11 LOW_DRIVE
[ 46.207640] cec-dw_hdmi: low drive counter: 1 (seq 13: 40 04)
[ 46.429691] dw_hdmi_cec_hardirq: stat=11 LOW_DRIVE
[ 46.534241] dw_hdmi_cec_hardirq: stat=11 LOW_DRIVE
[ 46.641267] dw_hdmi_cec_hardirq: stat=11 LOW_DRIVE
[ 46.801041] cec-dw_hdmi: low drive counter: 3 (seq 16: 40 04)
[ 46.881283] dw_hdmi_cec_hardirq: stat=11 LOW_DRIVE
[ 46.988497] dw_hdmi_cec_hardirq: stat=11 LOW_DRIVE
[ 47.196498] cec-dw_hdmi: low drive counter: 2 (seq 18: 4f 82 10 00)
[ 47.300298] dw_hdmi_cec_hardirq: stat=11 LOW_DRIVE
[ 47.404293] dw_hdmi_cec_hardirq: stat=11 LOW_DRIVE
[ 47.710982] cec-dw_hdmi: low drive counter: 2 (seq 20: 40 47 4d 79 74 68 54 56)
[ 69.592431] Adding 1572860k swap on /dev/mmcblk2p3. Priority:-2 extents:1 across:1572860k SS
[ 70.121488] zram: Added device: zram1
[ 70.151369] zram1: detected capacity change from 0 to 6078064
[ 70.429106] Adding 3039028k swap on /dev/zram1. Priority:15 extents:1 across:3039028k SSDsc
[ 70.536476] input: kmsvnc as /devices/virtual/input/input2
[ 230.408832] s9083h mmc1:0001:1 wlan0: Current addr: c8 2e 47 03 c3 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 230.408868] s9083h mmc1:0001:1 wlan0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 230.408880] ------------[ cut here ]------------
[ 230.408885] netdevice: wlan0: Incorrect netdev->dev_addr
[ 230.408984] WARNING: CPU: 1 PID: 5693 at net/core/dev_addr_lists.c:519 dev_addr_check+0xac/0x138
[ 230.409012] Modules linked in: iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle ip6table_filter ip6_tables iptable_filter ip_tables x_tables joydev rpcsec_gss_krb5 auth_rpcgss ipv6 zram nls_ascii nls_cp437 vfat fat uinput loop ir_nec_decoder crct10dif_ce rc_beelink_gs1 ax88179_178a sunxi_cir sunxi_cedrus(C) usbnet rc_core snd_soc_sunxi_machine snd_soc_sunxi_ahub dw_hdmi_cec videobuf2_dma_contig v4l2_mem2mem videobuf2_memops videobuf2_v4l2 sun50iw9_codec aic8800_bsp sun8i_thermal sunxi_wdt snd_soc_sunxi_ahub_dam videodev panfrost videobuf2_common drm_shmem_helper gpu_sched mc s9083s(O) overlay
[ 230.409240] CPU: 1 PID: 5693 Comm: connmand Tainted: G C O 6.10.12 #1
[ 230.409252] Hardware name: Tanix TX1 (DT)
[ 230.409259] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 230.409271] pc : dev_addr_check+0xac/0x138
[ 230.409280] lr : dev_addr_check+0xac/0x138
[ 230.409289] sp : ffff800085a73b80
[ 230.409294] x29: ffff800085a73b80 x28: ffff000026f2e000 x27: ffff000003a71600
[ 230.409313] x26: 0000000000009003 x25: ffff0000052c6000 x24: 00000000ffff8001
[ 230.409331] x23: ffff0000052c6344 x22: 0000000000001002 x21: ffff800079e694a0
[ 230.409349] x20: ffff0000052c6128 x19: ffff0000052c6000 x18: 0000000000000000
[ 230.409366] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 230.409383] x14: ffff800085a737d8 x13: 726464615f766564 x12: 3e2d76656474656e
[ 230.409401] x11: ffff8000819c21f8 x10: 000000000000023d x9 : ffff800080125d34
[ 230.409419] x8 : 000000000002ffe8 x7 : 00000000ffffe000 x6 : ffff800081a721f8
[ 230.409437] x5 : 80000000ffffe000 x4 : 0000000000000000 x3 : 0000000000000027
[ 230.409454] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000026f2e000
[ 230.409472] Call trace:
[ 230.409478] dev_addr_check+0xac/0x138
[ 230.409488] __dev_open+0x48/0x210
[ 230.409502] __dev_change_flags+0x1b0/0x230
[ 230.409516] dev_change_flags+0x28/0x80
[ 230.409528] devinet_ioctl+0x2ac/0x690
[ 230.409542] inet_ioctl+0x1d4/0x1f8
[ 230.409556] sock_ioctl+0x210/0x3e0
[ 230.409570] __arm64_sys_ioctl+0xb8/0xf0
[ 230.409581] do_el0_svc+0x70/0x100
[ 230.409597] el0_svc+0x38/0x140
[ 230.409610] el0t_64_sync_handler+0x118/0x128
[ 230.409620] el0t_64_sync+0x190/0x198
[ 230.409632] ---[ end trace 0000000000000000 ]---
[ 230.409662] [I]
[ 230.409668] [NIC] nic_enable :c8:2e:47:03:c3:1e
[ 230.411936]
[ 230.482090] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 230.494304] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 230.495183] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 230.500847] [W]
[ 230.500878] [wf_mlme_conn_abort:1805][0]no connection abort
[ 230.503090]
[ 230.610352] [I]
[ 230.610378] [mlme_core_thrd:1243][0]scanning...
Error is still the same.
I think instead of ether_addr_copy
must be used eth_hw_addr_set
. This saves mac address differently in kernel. Try that.
Ok - with patch below no more oops :-)
diff --speed-large-files --no-dereference --minimal -Naur smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/os/linux/netdev/ndev_linux.c smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/os/linux/netdev/ndev_linux.c
--- smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/os/linux/netdev/ndev_linux.c 2022-03-21 09:42:51.000000000 +0100
+++ smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/os/linux/netdev/ndev_linux.c 2024-10-01 15:45:26.353796691 +0200
@@ -65,7 +65,11 @@
}
NDEV_INFO("efuse_macaddr:"WF_MAC_FMT, WF_MAC_ARG(hw_info->macAddr));
- memcpy(ndev->dev_addr, hw_info->macAddr, WF_ETH_ALEN);
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,16,0))
+ eth_hw_addr_set(ndev, hw_info->macAddr);
+ #else
+ memcpy(ndev->dev_addr, hw_info->macAddr, WF_ETH_ALEN);
+ #endif
NDEV_INFO("[%d] macaddr:"WF_MAC_FMT, ndev_priv->nic->ndev_id, WF_MAC_ARG(hw_info->macAddr));
}
@@ -562,7 +566,11 @@
return -1;
}
wf_memcpy(nic_to_local_addr(pnic_info), sock_addr->sa_data, MAC_ADDR_LEN);
- wf_memcpy(pnetdev->dev_addr, sock_addr->sa_data, WF_ETH_ALEN);
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,16,0))
+ eth_hw_addr_set(pnetdev, sock_addr->sa_data);
+ #else
+ wf_memcpy(pnetdev->dev_addr, sock_addr->sa_data, WF_ETH_ALEN);
+ #endif
wf_mcu_set_macaddr(pnic_info, pnetdev->dev_addr);
return 0;
diff --speed-large-files --no-dereference --minimal -Naur smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/nic/p2p/p2p_frame_mgt.c smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/nic/p2p/p2p_frame_mgt.c
--- smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/nic/p2p/p2p_frame_mgt.c 2022-03-21 09:42:51.000000000 +0100
+++ smartchip-5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/nic/p2p/p2p_frame_mgt.c 2024-10-01 15:46:51.600465637 +0200
@@ -1631,7 +1631,11 @@
P2P_ATTR_DEVICE_INFO, pattr_content,
(wf_u32 *) & attr_contentlen);
- wf_memcpy(pwdn_info->dev_addr, pattr_content, WF_ETH_ALEN);
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,16,0))
+ ether_addr_copy(pwdn_info->dev_addr, pattr_content);
+ #else
+ wf_memcpy(pwdn_info->dev_addr, pattr_content, WF_ETH_ALEN);
+ #endif
pattr_content += WF_ETH_ALEN;
unfortunately wifi scan gives in wpa_supplicant:
root@myth-frontend-74da384a0602:~ # wpa_supplicant -u -O /run/wpa_supplicant
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
rfkill: Cannot get wiphy information
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance
kernel dmesg seems clean : https://gist.github.com/warpme/b880ec90c8e87842c4e065fd30c69f52 beside
[ 129.195817] [W]
[ 129.195842] [wf_mlme_conn_abort:1805][0]no connection abort
Do you have also ConnMan command-line network manager maybe? I always used that one. But seems there are some more issues with this driver and newer Linux.
Or maybe like this? https://askubuntu.com/questions/522842/ubuntu-14-04-connect-to-a-wifi-network-using-command-line
ah yes, Here what wireless_tools are saying:
root@myth-frontend-74da384a0602:~ # iwconfig
lo no wireless extensions.
wlan0 unassociated Nickname:"<WIFI@SCICS>"
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=255/100 Signal level=-1 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
root@myth-frontend-74da384a0602:~ # iwlist wlan0 scan
wlan0 No scan results
after scan in dmesg is see:
[ 47.453644] cec-dw_hdmi: low drive counter: 1 (seq 16: 40 04)
[ 70.437820] Adding 1572860k swap on /dev/mmcblk2p3. Priority:-2 extents:1 across:1572860k SS
[ 70.991607] zram: Added device: zram1
[ 71.016803] zram1: detected capacity change from 0 to 6078064
[ 71.324950] Adding 3039028k swap on /dev/zram1. Priority:15 extents:1 across:3039028k SSDsc
[ 71.459929] input: kmsvnc as /devices/virtual/input/input2
[ 171.548111] [W]
[ 171.548135] [wf_mlme_scan_start:1568][0]ndev is down
[ 171.550341]
Well, from now on I can only do guessing :(
What you get by command rfkill list
?
Btw: we are also using this kernel module but I don't know if needed for this wifi driver too: https://github.com/CoreELEC/CoreELEC/blob/5d4dfff76884f3afd3df9a241074fb6b10d371a2/projects/Amlogic-ce/packages/linux-drivers/amlogic/wifi_dummy-aml/sources/wifi_dummy.c
well - rfkill says (after modprobe rfkill):
rfkill list
im trying to build wifi_dummy but getting errors like this :-(
make[1]: Entering directory '/home/piotro/minimyth2-aarch64-next/script/kernel/linux-6.10/work/main.d/linux-6.10.12'
CC [M] /home/piotro/minimyth2-aarch64-next/script/kernel/wifi_dummy/work/main.d/wifi_dummy.o
MODPOST /home/piotro/minimyth2-aarch64-next/script/kernel/wifi_dummy/work/main.d/Module.symvers
ERROR: modpost: "extern_wifi_set_enable" [/home/piotro/minimyth2-aarch64-next/script/kernel/wifi_dummy/work/main.d/wifi_dummy.ko] undefined!
ERROR: modpost: "pci_remove" [/home/piotro/minimyth2-aarch64-next/script/kernel/wifi_dummy/work/main.d/wifi_dummy.ko] undefined!
ERROR: modpost: "set_usb_wifi_power" [/home/piotro/minimyth2-aarch64-next/script/kernel/wifi_dummy/work/main.d/wifi_dummy.ko] undefined!
ERROR: modpost: "pci_reinit" [/home/piotro/minimyth2-aarch64-next/script/kernel/wifi_dummy/work/main.d/wifi_dummy.ko] undefined!
ERROR: modpost: "sdio_reinit" [/home/piotro/minimyth2-aarch64-next/script/kernel/wifi_dummy/work/main.d/wifi_dummy.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:145: /home/piotro/minimyth2-aarch64-next/script/kernel/wifi_dummy/work/main.d/Module.symvers] Error 1
make[2]: *** [/home/piotro/minimyth2-aarch64-next/script/kernel/linux-6.10/work/main.d/linux-6.10.12/Makefile:1886: modpost] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/home/piotro/minimyth2-aarch64-next/script/kernel/linux-6.10/work/main.d/linux-6.10.12'
make: *** [Makefile:29: build-custom] Error 2
This wifi_dummy
driver is related only to Amlogic kernel (ignore it).
Looks like adapter is down for some reason: https://github.com/CoreELEC/smartchip/blob/5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/nic/mlme.c#L1566-L1570
But in dmesg I see this line which means it is up: https://github.com/CoreELEC/smartchip/blob/5d41ac040ecd2072498da88100305c1b444c12c7/trunk_driver/nic/nic.c#L389
[ 129.103929] [NIC] nic_enable :c8:2e:47:03:c3:1e
Hi, I have some tx1 users (h313 tvbox; sc9082 wifi) of my distros ( https://github.com/warpme/minimyth2?tab=readme-ov-file#minimyth2 ). I got compiling this driver on mainline 6.10.11 kernel (with some patches). I'm using wifi related dts fragments like this: https://github.com/warpme/minimyth2/blob/a8fd873ad5ade5a833e2a4ef8c73601c854f8c65/script/kernel/linux-6.10/files/0650-arm64-dts-allwinner-h313-Tanix-TX1-TVbox.patch#L89
Unfortunately loading module gives me only:
[ 622.994146] s9083s: loading out-of-tree module taints kernel.
and nothing more.... Maybe you have idea what might be missing?