balena-os / balena-radxa

https://www.balena.io/os/
Apache License 2.0
13 stars 14 forks source link

Need AP6212 WiFi/BT support included for Radxa Zero #171

Open alanb128 opened 2 years ago

alanb128 commented 2 years ago

The 512MB and 1GB version of the board use the AP6212 but it looks like only the AP6256 is supported by the OS.

floion commented 2 years ago

Hi, did this come through a support ticket?

alanb128 commented 2 years ago

No @floion we tried to use these boards for the IAQ project since Pis are in short supply.

wjlove commented 2 years ago

As an additional note, I found that some Radxa Zeros may contain a CM256SM instead of the AP6256. (see: https://forum.radxa.com/t/my-zero-wifi-is-not-working/10127) I think it would be best if all three drivers were just included in the OS image. So these devices: AP6212, AP6256 and CM256SM.

wjlove commented 2 years ago

Per our recent call: I currently have one board with a AP6212 and one board with a AP6256. When the other five arrive I will check them to see if there is one with the CM256SM.

alanb128 commented 2 years ago

I have the following Radxa Zero boards, and a testbot I can connect them to: (may need help with that)

Model D0: 512MB RAM, WIFI4/BLE4, no eMMC, GPIO header, onboard antenna, AP6212 Model D1: 1GB RAM, WIFI4/BLE4, no eMMC, GPIO header, onboard antenna, AP6212 Model D4E16: 4GB RAM, WIFI5/BT5, 16GB eMMC, GPIO header, onboard antenna, AP6256

wjlove commented 2 years ago

Update: All of the four devices I received have the AP6212.

floion commented 2 years ago

@wjlove @alanb128 can you share the dmesg from a device that has the AP6212 chipset?

ensq commented 2 years ago

@floion This is what I'm getting on the D0, which as far as I understand should be equipped with AP6212:

dmesg.txt

wjlove commented 2 years ago

@floion Here is a copy of my dmesg output which has a AP6212 module installed. It is also the same device I have been using for other testing.

dmesg.txt

wjlove commented 2 years ago

@alanb128 - After @floion indicated that support for the AP6212 was added I tested a Radxa Zero D1 with wifi only and was sucessful. I also tested a Radxa Zero D0 with the same sucess. Both of these tests were done in staging.

alanb128 commented 2 years ago

Thanks @wjlove that's great news! I will start testing as well.

wjlove commented 1 year ago

@alanb128 Let me know when you get some time to do testing. I am having stability issues with my devices. They connect to my wifi network and work fine for "a while" and then disconnect. The amount of time before disconnect appears to be variable and the device that @floion tested with (on my network) does not have this problem. All devceis are running the same code.

wjlove commented 1 year ago

@alanb128 Follow up- I have tried several radxa zero device models (D0 and D1) and both have stability issues. I tried both with and without wifi (USB ethernet device) and have the same issues. I connected my devices to a keyboard/monitor and found that the devices actually lock-up and are frozen to input and output. No response from keyboard, and when running the top unitlity the screen stops updating. Oddly tho, @florin your device has been running fine since you worked on it. I tried adding a device to the fleet your device is in and have the same results in that at a random time my devices freeze. (I checked the boards for revision numbers and they are all at v1.5)

I further explored this isssue by installing Ubuntu 20.04 and had the same results. However, when I installed Debian Buster that worked fine for at least 4 hours.