Joshua-Riek / ubuntu-rockchip

Ubuntu for Rockchip RK35XX Devices
https://joshua-riek.github.io/ubuntu-rockchip-download/
GNU General Public License v3.0
2.15k stars 236 forks source link

Bug Report: orange pi 5 official wifi module ap6275p not getting loaded #968

Open moo-the-cow opened 1 month ago

moo-the-cow commented 1 month ago

What happened?

U_BOOT_FDT_OVERLAYS="device-tree/rockchip/overlay/orangepi-5-ap6275p.dtbo" does not detect the module, it worked with the original orange pi 5 ubuntu version by the distributor

Kernel version

6.1.0-1021-rockchip

SBC model

Orange Pi 5

What operating system are you seeing this problem on?

Ubuntu 24.04 LTS (Noble Nombat)

Relevant logs

[   19.564741] [BT_RFKILL]: Enter rfkill_rk_init
[   19.564749] [WLAN_RFKILL]: Enter rfkill_wlan_init
[   19.564935] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[   19.564949] [WLAN_RFKILL]: can't find rockchip,grf property
[   19.564954] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ap6275p
[   19.564959] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[   19.564964] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[   19.564991] [WLAN_RFKILL]: wlan_platdata_parse_dt: WIFI,poweren_gpio = 24 flags = 0.
[   19.565004] [WLAN_RFKILL]: wlan_platdata_parse_dt: WIFI,host_wake_irq = 0, flags = 0.
[   19.565010] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[   19.565016] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[   19.565020] [WLAN_RFKILL]: rfkill_set_wifi_bt_power: 1
[   19.565025] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[   19.565191] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 122.
[   19.565203] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,reset_gpio = 102.
[   19.565211] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_gpio = 22.
[   19.565280] [BT_RFKILL]: bt_default device registered.
moo-the-cow commented 1 month ago

I found this, but the question is: was it ever working? https://github.com/Joshua-Riek/ubuntu-rockchip/issues/315

moo-the-cow commented 4 weeks ago

updated to 6.1.0-1023-rockchip

mali-g610-firmware IS installed

cat /etc/default/u-boot

## /etc/default/u-boot - configuration file for u-boot-update(8)

#U_BOOT_UPDATE="true"

#U_BOOT_ALTERNATIVES="default recovery"
#U_BOOT_DEFAULT="l0"
#U_BOOT_PROMPT="1"
#U_BOOT_ENTRIES="all"
#U_BOOT_MENU_LABEL="Debian GNU/Linux"
#U_BOOT_PARAMETERS="ro earlycon"
#U_BOOT_ROOT=""
#U_BOOT_TIMEOUT="50"
U_BOOT_FDT="device-tree/rockchip/rk3588s-orangepi-5.dtb"
#U_BOOT_FDT_DIR="/lib/firmware/"
#U_BOOT_FDT_OVERLAYS=""
U_BOOT_FDT_OVERLAYS="device-tree/rockchip/overlay/orangepi-5-ap6275p.dtbo device-tree/rockchip/overlay/orangepi-5-sata.dtbo device-tree/rockchip/overlay/orangepi-5-disable-led.dtbo"
#U_BOOT_FDT_OVERLAYS_DIR="/lib/firmware/"
#U_BOOT_SYNC_DTBS="false"

maybe some more logs from syslog:

2024-08-18T19:16:22.730446+00:00 localhost systemd[1]: Stopping ap6275p-bluetooth.service - Bluetooth AP6275P...
2024-08-18T19:16:47.809867+00:00 localhost systemd[1]: Starting ap6275p-bluetooth.service - Bluetooth AP6275P...
2024-08-18T19:16:47.811883+00:00 localhost kernel: [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ap6275p
2024-08-18T19:16:52.241866+00:00 localhost ap6275p-bluetooth.sh[1049]: /usr/lib/scripts/ap6275p-bluetooth.sh: line 3: warning: command substitution: ignored null byte in input
2024-08-18T19:16:52.245684+00:00 localhost ap6275p-bluetooth.sh[1049]: /usr/lib/scripts/ap6275p-bluetooth.sh: line 4: warning: command substitution: ignored null byte in input
2024-08-18T19:16:52.359750+00:00 localhost systemd[1]: Started ap6275p-bluetooth.service - Bluetooth AP6275P.
2024-08-18T19:16:52.385239+00:00 localhost ap6275p-bluetooth.sh[1115]: ###AMPAK FW Auto detection patch version = [v1.1 20161117]###
2024-08-18T19:16:52.385581+00:00 localhost ap6275p-bluetooth.sh[1115]: FW folder path = /lib/firmware/ap6275p
2024-08-18T19:16:52.390599+00:00 localhost ap6275p-bluetooth.sh[1115]: proc_resetchip id = BCM4362A2
2024-08-18T19:16:52.390611+00:00 localhost ap6275p-bluetooth.sh[1115]: FW path = /lib/firmware/ap6275p/BCM4362A2.hcd
2024-08-18T19:16:54.339875+00:00 localhost ap6275p-bluetooth.sh[1115]: send hci_download_minidriverproc_resetDone setting line discpline
2024-08-18T19:19:34.489533+00:00 localhost systemd[1]: Stopping ap6275p-bluetooth.service - Bluetooth AP6275P...
2024-08-18T19:19:59.332215+00:00 localhost systemd[1]: Starting ap6275p-bluetooth.service - Bluetooth AP6275P...
2024-08-18T19:19:59.334211+00:00 localhost kernel: [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ap6275p
............ SNIP ..........
2024-08-18T19:20:03.641739+00:00 localhost ap6275p-bluetooth.sh[1097]: /usr/lib/scripts/ap6275p-bluetooth.sh: line 3: warning: command substitution: ignored null byte in input
2024-08-18T19:20:03.644999+00:00 localhost ap6275p-bluetooth.sh[1097]: /usr/lib/scripts/ap6275p-bluetooth.sh: line 4: warning: command substitution: ignored null byte in input
2024-08-18T19:20:03.652108+00:00 localhost kernel: [BT_RFKILL]: ENABLE UART_RTS
2024-08-18T19:20:03.681027+00:00 localhost systemd[1]: dmesg.service: Deactivated successfully.
2024-08-18T19:20:03.755998+00:00 localhost rfkill: unblock set for all
2024-08-18T19:20:03.756791+00:00 localhost systemd[1]: Started ap6275p-bluetooth.service - Bluetooth AP6275P.
2024-08-18T19:20:03.757193+00:00 localhost systemd[1]: Reached target multi-user.target - Multi-User System.
2024-08-18T19:20:03.757244+00:00 localhost systemd[1]: Reached target graphical.target - Graphical Interface.
2024-08-18T19:20:03.758735+00:00 localhost kernel: [BT_RFKILL]: DISABLE UART_RTS
2024-08-18T19:20:03.758745+00:00 localhost kernel: [BT_RFKILL]: bt turn on power
2024-08-18T19:20:03.758747+00:00 localhost kernel: of_dma_request_slave_channel: dma-names property of node '/serial@febc0000' missing or empty
2024-08-18T19:20:03.758748+00:00 localhost kernel: dw-apb-uart febc0000.serial: failed to request DMA, use interrupt mode
2024-08-18T19:20:03.785813+00:00 localhost ap6275p-bluetooth.sh[1153]: ###AMPAK FW Auto detection patch version = [v1.1 20161117]###
2024-08-18T19:20:03.785848+00:00 localhost ap6275p-bluetooth.sh[1153]: FW folder path = /lib/firmware/ap6275p
2024-08-18T19:20:03.786576+00:00 localhost ap6275p-bluetooth.sh[1153]: proc_resetchip id = BCM4362A2
2024-08-18T19:20:03.786602+00:00 localhost ap6275p-bluetooth.sh[1153]: FW path = /lib/firmware/ap6275p/BCM4362A2.hcd
2024-08-18T19:20:03.786728+00:00 localhost systemd[1]: Starting cloud-final.service - Execute cloud user/final scripts...
2024-08-18T19:20:03.787266+00:00 localhost systemd[1]: Starting systemd-update-utmp-runlevel.service - Record Runlevel Change in UTMP...
2024-08-18T19:20:03.799434+00:00 localhost systemd[1]: systemd-update-utmp-runlevel.service: Deactivated successfully.
2024-08-18T19:20:03.799607+00:00 localhost systemd[1]: Finished systemd-update-utmp-runlevel.service - Record Runlevel Change in UTMP.
2024-08-18T19:20:04.181897+00:00 localhost cloud-init[1255]: Cloud-init v. 24.1.3-0ubuntu3.3 running 'modules:final' at Sun, 18 Aug 2024 19:20:04 +0000. Up 13.87 seconds.
2024-08-18T19:20:04.284272+00:00 localhost cloud-init[1255]: Cloud-init v. 24.1.3-0ubuntu3.3 finished at Sun, 18 Aug 2024 19:20:04 +0000. Datasource DataSourceNoCloud [seed=/dev/mmcblk1p1][dsmode=local].  Up 14.01 seconds
2024-08-18T19:20:04.391517+00:00 localhost systemd[1]: Finished cloud-final.service - Execute cloud user/final scripts.
2024-08-18T19:20:04.392763+00:00 localhost systemd[1]: Reached target cloud-init.target - Cloud-init target.
2024-08-18T19:20:04.538418+00:00 localhost systemd[1]: esm-cache.service: Deactivated successfully.
2024-08-18T19:20:04.538561+00:00 localhost systemd[1]: Finished esm-cache.service - Update the local ESM caches.
2024-08-18T19:20:04.538949+00:00 localhost systemd[1]: Startup finished in 3.586s (kernel) + 10.686s (userspace) = 14.273s.
2024-08-18T19:20:05.678825+00:00 localhost kernel: platform mtd_vendor_storage: deferred probe pending
2024-08-18T19:20:05.701871+00:00 localhost ap6275p-bluetooth.sh[1153]: send hci_download_minidriverproc_resetDone setting line discpline
2024-08-18T19:20:05.702107+00:00 localhost kernel: Bluetooth: HCI UART driver ver 2.3
2024-08-18T19:20:05.702128+00:00 localhost kernel: Bluetooth: HCI UART protocol H4 registered
2024-08-18T19:20:05.702131+00:00 localhost kernel: Bluetooth: HCI UART protocol BCSP registered
2024-08-18T19:20:05.702134+00:00 localhost kernel: Bluetooth: HCI UART protocol ATH3K registered
2024-08-18T19:20:05.702138+00:00 localhost kernel: Bluetooth: HCI UART protocol Three-wire (H5) registered
2024-08-18T19:20:05.702140+00:00 localhost kernel: Bluetooth: HCI UART protocol Intel registered
2024-08-18T19:20:05.702143+00:00 localhost kernel: Bluetooth: HCI UART protocol Broadcom registered
2024-08-18T19:20:05.702146+00:00 localhost kernel: Bluetooth: HCI UART protocol QCA registered
2024-08-18T19:20:05.702149+00:00 localhost kernel: Bluetooth: HCI UART protocol AG6XX registered
2024-08-18T19:20:05.726077+00:00 localhost systemd[1]: Starting systemd-rfkill.service - Load/Save RF Kill Switch Status...
2024-08-18T19:20:05.729552+00:00 localhost systemd[1]: Starting bluetooth.service - Bluetooth service...
2024-08-18T19:20:05.730960+00:00 localhost systemd[1]: Started systemd-rfkill.service - Load/Save RF Kill Switch Status.
2024-08-18T19:20:05.742283+00:00 localhost (uetoothd)[1551]: bluetooth.service: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)
2024-08-18T19:20:05.806073+00:00 localhost bluetoothd[1551]: Bluetooth daemon 5.72
2024-08-18T19:20:05.813388+00:00 localhost systemd[1]: Started bluetooth.service - Bluetooth service.
2024-08-18T19:20:05.813730+00:00 localhost systemd[1]: Reached target bluetooth.target - Bluetooth Support.
2024-08-18T19:20:05.817480+00:00 localhost bluetoothd[1551]: Starting SDP server
2024-08-18T19:20:05.823142+00:00 localhost bluetoothd[1551]: src/plugin.c:plugin_init() System does not support csip plugin
2024-08-18T19:20:05.823164+00:00 localhost bluetoothd[1551]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
2024-08-18T19:20:05.823176+00:00 localhost bluetoothd[1551]: src/plugin.c:plugin_init() System does not support micp plugin
2024-08-18T19:20:05.823186+00:00 localhost bluetoothd[1551]: src/plugin.c:plugin_init() System does not support vcp plugin
2024-08-18T19:20:05.823197+00:00 localhost bluetoothd[1551]: src/plugin.c:plugin_init() System does not support mcp plugin
2024-08-18T19:20:05.823207+00:00 localhost bluetoothd[1551]: src/plugin.c:plugin_init() System does not support bass plugin
2024-08-18T19:20:05.823216+00:00 localhost bluetoothd[1551]: src/plugin.c:plugin_init() System does not support bap plugin
2024-08-18T19:20:05.835539+00:00 localhost kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
2024-08-18T19:20:05.835574+00:00 localhost kernel: Bluetooth: BNEP filters: protocol multicast
2024-08-18T19:20:05.835578+00:00 localhost kernel: Bluetooth: BNEP socket layer initialized
2024-08-18T19:20:05.836107+00:00 localhost bluetoothd[1551]: Bluetooth management interface 1.22 initialized
2024-08-18T19:20:05.836383+00:00 localhost bluetoothd[1551]: Battery Provider Manager created
2024-08-18T19:20:05.838166+00:00 localhost bluetoothd[1551]: profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
2024-08-18T19:20:05.838185+00:00 localhost bluetoothd[1551]: sap-server: Operation not permitted (1)
2024-08-18T19:20:05.838741+00:00 localhost kernel: Bluetooth: MGMT ver 1.22
2024-08-18T19:20:09.574438+00:00 localhost systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
2024-08-18T19:20:10.737226+00:00 localhost systemd[1]: systemd-rfkill.service: Deactivated successfully
AdimasBarelang commented 3 weeks ago

Hello, I am facing the same problem. Have you solved the problem? After upgrade it into newest kernel my wifi is gone.

moo-the-cow commented 2 weeks ago

Hello, I am facing the same problem. Have you solved the problem? After upgrade it into newest kernel my wifi is gone.

No, I was using the overlay "device-tree/rockchip/overlay/orangepi-5-ap6275p.dtbo" this worked back then with the original opi5 ubuntu version 22.04, so I guess something must have changed. I'm not an expert though, so all I can do is post logs.

tuftsanti commented 1 hour ago

Guess I can't use this image until the wifi/bluetooth card is made available again