Manually Install WiFi package or firmware file?

I was able to install DietPi on top of Orange Pi’s recently released (May 9, 2022) Debian image for the OPi Zero 2. Everything, including ethernet, works great except for wifi. It fails to scan in dietpi-config and when I enter my SSID and its password manually, it also fails. I am attempting to use DHCP. I also tried static with no success. If I were to guess, I would say the driver/firmware for the AW859A wireless/BT chip is missing. I have Orange Pi’s Github firmware repository cloned. The firmware files include firmware for the wireless chip. However, I don’t know if that is actually the problem and I thought I would check here to see if there was better option for enabling and using wifi generally for any board. Please let me know what additional information that you might need from me and thank you very much for your time.

Welcome to our community. Let’s check with our developer @MichaIng if he has an idea.

Thank you for having me! I think Dietpi is very cool. I have tried it on a couple of RPi 4’s and a one of my Radxa Zero’s. This is my first time using dietpi-installer to install it on top of a version of Debian.

My gut tells me it is the firmware for the network chip on the card, but I don’t know how to install firmware for devices in dietpi.

I thought maybe it was a password issue and I used wpa_passphrase “MySSID” “MyPasskey” and then pasting the resulting network information and encrypted key to wpa_supplicant.conf and then running iwconfig. I am assuming that didn’t work work because it is all managed through dierpi-config.

I ran lshw -short. I also have an HTML file saved with the full output. I didn’t see an option to upload. Probably wise. Let me know if you need the full output too. In any event, the wifi adapter isn’t listed. I am still looking for the actual driver. At the moment, all I have been able to find is the ini file at GitHub - orangepi-xunlong/firmware: Orange Pi specific firmware

H/W path  Device  Class      Description
========================================
                  system     OrangePi Zero2
/0                bus        Motherboard
/0/0              processor  cpu
/0/1              processor  cpu
/0/2              processor  cpu
/0/3              processor  cpu
/0/4              memory     984MiB System memory
/1        usb1    bus        EHCI Host Controller
/2        usb2    bus        EHCI Host Controller
/2/1              bus        USB2.0 HUB
/2/1/1            input      Macally RFKeyboard
/3        usb3    bus        EHCI Host Controller
/4        usb4    bus        EHCI Host Controller
/5        usb5    bus        Generic Platform OHCI controller
/6        usb6    bus        Generic Platform OHCI controller
/7        usb7    bus        Generic Platform OHCI controller
/8        usb8    bus        Generic Platform OHCI controller
/9        eth0    network    Ethernet interface
H/W path  Device  Class      Description
========================================
                  system     OrangePi Zero2
/0                bus        Motherboard
/0/0              processor  cpu
/0/1              processor  cpu
/0/2              processor  cpu
/0/3              processor  cpu
/0/4              memory     984MiB System memory
/1        usb1    bus        EHCI Host Controller
/2        usb2    bus        EHCI Host Controller
/2/1              bus        USB2.0 HUB
/2/1/1            input      Macally RFKeyboard
/3        usb3    bus        EHCI Host Controller
/4        usb4    bus        EHCI Host Controller
/5        usb5    bus        Generic Platform OHCI controller
/6        usb6    bus        Generic Platform OHCI controller
/7        usb7    bus        Generic Platform OHCI controller
/8        usb8    bus        Generic Platform OHCI controller
/9        eth0    network    Ethernet interface

Currently we don’t allow html files to be upload. All fine for now.

1 Like

Indeed I guess then the firmware is not covered by Debian’s generic WiFi firmware packages but the OrangePi image was shipped with an own one. Is there an APT repository for kernel and firmware?

ls -l /etc/apt/sources.list.d

But the WiFi interface is present already?

ip a

The Orange Pi Zero 2 has an onboard wifi adapter. It isn’t listed when using ip a.

I haven’t changed or added repositories in sources.list. With the exception of bullseye-security, the apt repositories are set to the US ftp debian mirror. I refuse to use the mirror that is included with Orange Pi’s debian image.

I think Armbian’s image is pulling the firmware for a repo they have. I am going take a look at sources.list on one of my other OPi Zero 2’s that is running the OPi Zero 2 Armbian image. I know that the repo’s it uses are deb.debian.org but I believe their firmware is pulling from an Armbian repo not debian. I will check it out and follow-up.

And thank very much for even taking a look at this thread. I know this board is not supported by Dietpi. I just wanted to give it a shot. So thank you for commenting.

The mirrors should be reset by the DietPi-Installer to deb.debian.org, which is a mirror director and should hence be a good choice in every case. bulleye-security should definitely stay as it ships short-term security updates for packages. Or do you mean that you removed the dedicated repository that was added by Orange Pi’s image? That wouldn’t be the Debian mirror, but a dedicated kernel/firmware repository which probably ships a dedicated firmware for the onboard WiFi chip.

Yes, Armbian ships with an own firmware package armbian-firmware, which is in case of using Armbian as base image also kept by the DietPi-Installer (instead of using Debian’s set of WiFi firmware packages then). I’m not 100% sure whether this includes one for the Zero 2 onboard firmware, but it should, since Armbian officially supports this SBC. However, when using it, use the official Armbian Bullseye image as basis, instead of one provided by Orange Pi: Orange Pi Zero 2 – Armbian
Or is it that one that you already used?

I didn’t need to remove the OPi repositories. Dietpi removed and replaced automatically. I wouldn’t have know that they needed to be the deb.debian.org instead of ftp.us.debian…

That is probably the issue then. I will change the apt repositories to deb.debían.org for the others when I get home from work, run the apt update and upgrades, and then report back.

Usually there shouldn’t be any difference between deb.debian.org and ftp.us.debin. The first one is just the global mirror that will redirect you to a local site.

No, neither DietPi not DietPi-Installer do remove custom repositories in /etc/apt/sources.list.d for generic devices, aside of a small number of known ones. But it does replace the main Debian repository mirror in /etc/apt/sources.list only, with deb.debian.org, which however does not affect the available packages, only how fast packages are downloaded, how much the global Internet grid is used (distance). So if there is no OPi repository now, there was none before.

Which image did you use now, one provided by OrangePi or the one provided by Armbian? I suggest to use the latter, so you are sure the intended firmware is installed as APT package and there is some level of quality. The manufacturer’s images are usually not well composed, something with loose files not attached to packages, which may then be overwritten by package installs. E.g. we had this issue with Radxa Zero, where the Debian firmware packages were able to overwrite the onboard WiFi driver. Something similar may have occurred in your case, which is ruled out when using the Armbian image.