Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi not working on Radxa Zero 3 with new Ubuntu 22.04 image #852

Closed
RSchwan opened this issue May 31, 2024 · 7 comments
Closed

Wifi not working on Radxa Zero 3 with new Ubuntu 22.04 image #852

RSchwan opened this issue May 31, 2024 · 7 comments
Assignees
Labels
bug Something isn't working Ubuntu 22.04 Affects Ubuntu 22.04

Comments

@RSchwan
Copy link

RSchwan commented May 31, 2024

Hi Joshua,

I've been using the "old" Ubuntu 22.04 image on my Radxa Zero 3 and I got everything working using cloud-init. I now flashed the "new" Ubuntu 22.04 image on the same Radxa Zero 3 using exactly the same network-config, but wifi is not correctly configured anymore, i.e., it doesn't connect with the access point. I've tried a bunch of things without much luck, and since I don't have internet access, I also can't install any additional networking/tooling packages. Ideally, I would like to use the newest image, and I'm also willing to help to fix this issue, but I'm not entirely sure where to start. :)

@Joshua-Riek
Copy link
Owner

I recently packaged a dkms package for aic8800, you can try to enter the below commands:

sudo apt update
sudo apt install -y dkms aic8800-sdio-dkms```

@RSchwan
Copy link
Author

RSchwan commented Jun 2, 2024

If I run the commands, I get Unable to locate package aic8800-sdio-dkms. I assume this is due to not having an internet connection. In a sense, it's a chicken-and-egg problem, since I'm kind of locked into the system without an internet connection.

Is there a way to build an image which already includes this driver?

@RSchwan
Copy link
Author

RSchwan commented Jun 2, 2024

I should maybe also mention that I'm running the ubuntu-22.04(.3)-preinstalled-server-arm64-radxa-zero3 images. More specifically, wifi is working with v1.33 and stopped working with v2.1.0.

@Joshua-Riek
Copy link
Owner

Hmmm i will look at it, i've been hyper-focusing on Radxa kernel stuff today, I'm sure the DKMS will fix the issue, i just need to double check if there will be any drivers clashing as aic8800 is already enabled in the kernel. If there is no clashing, this should be a very easy fix.

@Joshua-Riek
Copy link
Owner

Joshua-Riek commented Jun 2, 2024

Ok, i looked into this and blacklisted the aic8800 kernel driver and replaced it by the dkms package which works perfectly. When the nightly GitHub build starts (linked below), this problem should be fixed for both Ubuntu 22.04 an 24.04.

https://github.com/Joshua-Riek/ubuntu-rockchip/actions/workflows/nightly.yml

@RSchwan
Copy link
Author

RSchwan commented Jun 3, 2024

Ok, after playing round a bit more I managed to get the wifi working.

Looking at the journalctl logs, I got the following errors:
IMG_7971
which I fixed by installing the wpasupplicant package. It seems to me this is a required package, since netplan configures for it.

Then I ran into some driver issues:
IMG_7972
Revering your changes and using the old aic8800 kernel drivers fixed this issue and the wifi finally connected to the access point.

Here the changes I made to the build script. I'm not sure what's the issue with the new drivers, but they didn't work for me.

@Joshua-Riek
Copy link
Owner

I updated the ubuntu-rockchip meta package to include wpasupplicant, i confirmed that the latest nightly build has this issue resolved.

https://github.com/Joshua-Riek/ubuntu-rockchip-meta/releases/tag/22.04.2
https://github.com/Joshua-Riek/ubuntu-rockchip-meta/releases/tag/24.04.5

@Joshua-Riek Joshua-Riek self-assigned this Jun 4, 2024
@Joshua-Riek Joshua-Riek added bug Something isn't working Ubuntu 22.04 Affects Ubuntu 22.04 labels Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Ubuntu 22.04 Affects Ubuntu 22.04
Projects
None yet
Development

No branches or pull requests

2 participants