smaeul / sun20i_d1_spl

Mainline-friendly SPL for D1
33 stars 21 forks source link

[D1 Linux] Integration of the XR829 into Yocto Project #6

Open Cezarus27 opened 2 years ago

Cezarus27 commented 2 years ago

Hi, at first I know this repository isn't a place to describe a problem with the kernel driver, but I don't know how to contact you in another way. I'm trying to integrate the XR829 kernel driver into meta-nezha yocto meta layer. For now, the compilation of the driver fails when using bitbake so I tried to compile it manually using Linux kernel in version 5.16.0 from Fedora. Logs from the compilation can be found here.

The source of the XR829 driver is taken from the Tina Linux SDK.

Best regards.

smaeul commented 2 years ago

I know this repository isn't a place to describe a problem with the kernel driver, but I don't know how to contact you in another way

Here is okay (or my Linux repo would work too). For reference, my e-mail address is in my GitHub profile, or you can also find me on #riscv on Libera or #linux-sunxi on OFTC.

For now, the compilation of the driver fails when using bitbake so I tried to compile it manually using Linux kernel in version 5.16.0 from Fedora. Logs from the compilation can be found here.

Yes, I suspect there will be problems, both because of the differences between Allwinner's BSP and mainline, and because of the changes made upstream between v5.4 and now. I haven't looked into this driver myself; I can only point you to a couple of resources: 1) There is a project to port the xr819 driver to mainline: https://github.com/fifteenhex/xradio. You can probably pull some fixes from there. 2) There is a driver in mainline Linux for similar hardware/firmware: drivers/net/wireless/st/cw1200. You can look at the commits there to see what has changed in the driver API since v5.4.