Hi,
I dont know if this is the right forum for this.
I am looking for a document or guide on how to integrate a working wifi driver for the phone to a simple rootfs that is not based on any distro.
I am trying some trial and error referring to a PMOS rooots dump. But it would be nice to understand the method in detail.
I am using the pinephone as a device to know more about low level working for a linux device.
Thanks in advance.
In that gentoo link, once you get past the introduction into the bits about editing /etc/conf.d/net that's OpenRC's network configuration format, so won't be directly applicable. It was more about showing the tools available. I'm not familiar with how buildroot does things, or whether it depends on which init you pick. It seems odd that the wireless tools aren't recognising the device. It's possible there's a step I'm not aware of because the OS versions I've tried are all doing it in the background.
The driver should try to load the required file from a path under /lib/firmware. In pmOS I have /lib/firmware/rtlwifi/ and /lib/firmware/rtl_bt/ containing a number of firmware files, supplied by packages linux-firmware-rtlwifi and linux-firmware-rtl_bt respectively. I don't know exactly which ones are used by this driver, or whether there's an interaction between the wifi and bluetooth drivers. You may need to check the distro bug trackers to see if there were any fixes for wifi problems in case there's something unusual they have to do to make it work reliably.
How precisely are you trying to connect to the WPA2 secured network?
Ok got it to work now.
The problem was with the wpa_supplicant utility. I was trying to use the wext driver which had some compatibility issues with the kernel module cfg80211.
Now I rebuilt the wpa_supplicant with the nl80211 driver support and able to connect to the wifi AP.
Learnt a lot about udev/wpa_supplicant/wext/init.d and buildroot in general.
Thanks for the support and direction.
Glad to hear you've sorted it. Perhaps you could add some details of what you've done to the wiki in case anyone else wants to try buildroot.