Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.