Jump to content

Orange Pi Zero ----- xr819 on-board wifi chip nolonger works with kernel 5.18


Recommended Posts

Posted

hello armbian developers

recently i have tried to built my own kernel from linus' kernel tree(5.18.1).

the build config i use cames from armbian 22.05 bullseye(5.15.43-sunxi) /boot/config-5.15.43-sunxi ,without any changes.

the kernel was ok to boot,so i plan to add xr819 support for it,but after days of work,it seems not as easy as i thought.

 

the driver ive tried is from here(https://github.com/karabek/xradio),but it cant detect chip's hardware revision:

[   13.036884] xradio: XR819 device discovered
[   13.038054] xradio_wlan mmc1:0001:1: no mac address provided, using random
[   13.064445] xradio ERR: FWIO: Unknown hardware: -1.
[   13.064547] xradio ERR: BH: bh thread exiting
[   13.064893] xradio PM-DEV: xradio_pm_release

but the stock armbian image works well(5.15.43-sunxi).

so i have added a printk to make config reg value visible:

	ret = xradio_reg_read_32(hw_priv, HIF_CONFIG_REG_ID, &val32);
	printk(KERN_WARNING "xradio_wlan: read config reg value: 0x%x\n",val32);
	if (ret < 0) {
		xr_printk(XRADIO_DBG_WARN, "FWIO: can't read config register, err=%d.\n", ret);
		return ret;
	}

on 5.15.43: 

[   11.737046] xradio: XR819 device discovered
[   11.737725] xradio_wlan mmc1:0001:1: no mac address provided, using random
[   11.739304] xradio_wlan: read config reg value: 0x4005600
[   11.920160] xradio: hardware vers. 7.9
[   11.920199] xradio: firmware vers. 8 (WSM), build 5258, api 1060, cap 0x0003
[   11.920217] xradio: Config USE_EXTENSIONS

on 5.18.1: 

[   13.036884] xradio: XR819 device discovered
[   13.038054] xradio_wlan mmc1:0001:1: no mac address provided, using random
[   13.039290] xradio_wlan: read config reg value: 0x4
[   13.064445] xradio ERR: FWIO: Unknown hardware: -1.
[   13.064547] xradio ERR: BH: bh thread exiting
[   13.064893] xradio PM-DEV: xradio_pm_release

it seems xradio_reg_read_32 will call xradio_reg_read , and it calls __xradio_read ... last call sdio_memcpy_fromio , so maybe upstream have changed some implementation of sdio?

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines