Add xradio wireless driver
cover Add xradio wireless driver
Hi all,
This small series adds xradio wireless driver for XR819 SDIO chip and includes this driver to orange-pi-zero board images.
Note that this series does not include firmware since I have certain doubts regarding firmware packaging. IIUC normally xr819 firmware is extracted from vendor's SDK. Extracted firmware can be obtained from various places on the web, e.g. from Armbian project.
Would it be alright to point at Armbian github in firmware package ?
Regards,
Sergey
PATCH 1/2 xr819-xradio: new package
This patch adds xradio wireless driver for SDIO WiFi chip XR819. The out-of-tree driver is sourced from fifteenhex's work on github https://github.com/fifteenhex/xradio
--- package/Config.in | 1 + package/xr819-xradio/Config.in | 10 ++++++++++ package/xr819-xradio/xr819-xradio.hash | 2 ++ package/xr819-xradio/xr819-xradio.mk | 13 +++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 package/xr819-xradio/Config.in create mode 100644 package/xr819-xradio/xr819-xradio.hash create mode 100644 package/xr819-xradio/xr819-xradio.mk
package/Config.in +1 -0
@@ -504,6 +504,7 @@ endmenu source "package/wf111/Config.in" source "package/wipe/Config.in" source "package/xorriso/Config.in" + source "package/xr819-xradio/Config.in" endmenu menu "Interpreter languages and scripting"
package/xr819-xradio/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +comment "xradio wireless driver needs a Linux kernel to be built" + depends on !BR2_LINUX_KERNEL + +config BR2_PACKAGE_XR819_XRADIO + bool "xr819-xradio" + depends on BR2_LINUX_KERNEL + help + Wireless driver for SDIO WiFi chip XR819 + + https://github.com/fifteenhex/xradio
package/xr819-xradio/xr819-xradio.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed +sha256 5e9f59942b3880768b4812ab6db395bd1fa6d423cae9c09504baa416f064a10d xr819-xradio-014dfdd203102c5fd2370a73ec4ae3e6dd4e9ded.tar.gz
package/xr819-xradio/xr819-xradio.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# xr819-xradio +# +################################################################################ + +XR819_XRADIO_VERSION = 014dfdd203102c5fd2370a73ec4ae3e6dd4e9ded +XR819_XRADIO_SITE = $(call github,fifteenhex,xradio,$(XR819_XRADIO_VERSION)) +XR819_XRADIO_LICENSE = GPL-2.0 +XR819_XRADIO_LICENSE_FILES = LICENSE + +$(eval $(kernel-module)) +$(eval $(generic-package))
Signature · 1 line
2.11.0
PATCH 1/2 xr819-xradio: new package
Hello,
Quoted 5 lines · Sergey Matyukevich
This patch adds xradio wireless driver for SDIO WiFi chip XR819. The out-of-tree driver is sourced from fifteenhex's work on github https://github.com/fifteenhex/xradio
Signed-off-by Sergey Matyukevich <[email protected]>
Thanks for your contribution. I've applied, after some minor changes, see below.
Quoted 9 lines
--- package/Config.in | 1 + package/xr819-xradio/Config.in | 10 ++++++++++ package/xr819-xradio/xr819-xradio.hash | 2 ++ package/xr819-xradio/xr819-xradio.mk | 13 +++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 package/xr819-xradio/Config.in create mode 100644 package/xr819-xradio/xr819-xradio.hash create mode 100644 package/xr819-xradio/xr819-xradio.mk
You forgot to add an entry to the DEVELOPERS file, so I've added one.
package/xr819-xradio/Config.in line 1
Quoted 7 lines
package/xr819-xradio/Config.in new file +1
-0@@ -0,0 +1,10 @@ +comment "xradio wireless driver needs a Linux kernel to be built"
The comment should mention the package name as-is, i.e:
comment "xr819-xradio needs a Linux kernel to be built.
I've fixed both issues and applied. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/2 xr819-xradio: new package
Quoted 7 lines
Quoted 1 line
+comment "xradio wireless driver needs a Linux kernel to be built"
The comment should mention the package name as-is, i.e:
comment "xr819-xradio needs a Linux kernel to be built.
I've fixed both issues and applied. Thanks!
Hello Thomas,
Thanks for taking care and fixing those patch issues !
Could you please also comment on the question regarding firmware binaries from the cover email to this patch series. For convenience
I repeat it here:
This series does not include firmware since I have certain doubts regarding firmware packaging. IIUC normally xr819 firmware is extracted from vendor's SDK. Extracted firmware can be obtained from various places on the web, e.g. from Armbian project.
Would it be alright to point at Armbian github in firmware package ?
Regards,
Sergey
PATCH 1/2 xr819-xradio: new package
Hello,
Quoted 5 lines · Sergey Matyukevich
Thanks for taking care and fixing those patch issues !
Could you please also comment on the question regarding firmware binaries from the cover email to this patch series. For convenience
I repeat it here:
Thanks for repeating these here, because I missed them. Patchwork only lists the patches, not the cover letter, so I tend to miss the cover letter details, sorry about that :/
Quoted 6 lines
This series does not include firmware since I have certain doubts regarding firmware packaging. IIUC normally xr819 firmware is extracted from vendor's SDK. Extracted firmware can be obtained from various places on the web, e.g. from Armbian project.
Would it be alright to point at Armbian github in firmware package ?
Yes, it's fine to point to the Armbian github. The only gotcha is how to do this without downloading the entire Github repository. I guess you will have to do something like this:
XR819_FIRMWARE_VERSION = 8b4a4ed16f7f9d12e59ff2f9ceba3cc335374dbeXR819_FIRMWARE_SITE = https://github.com/armbian/build/tree/$(XR819_FIRMWARE_VERSION)/bin/firmware-overlay/xr819XR819_FIRMWARE_SOURCE = fw_xr819.binXR819_FIRMWARE_EXTRA_DOWNLOADS = boot_xr819.bin sdd_xr819.bin
and of course, add hashes for those files in the .hash file.
However, the bigger question is: what is the license of those firmware files? Are users at least allowed to redistribute them?
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/2 xr819-xradio: new package
Quoted 9 lines
Yes, it's fine to point to the Armbian github. The only gotcha is how to do this without downloading the entire Github repository. I guess you will have to do something like this:
XR819_FIRMWARE_VERSION=8b4a4ed16f7f9d12e59ff2f9ceba3cc335374dbeXR819_FIRMWARE_SITE= https://github.com/armbian/build/tree/$(XR819_FIRMWARE_VERSION)/bin/firmware-overlay/xr819XR819_FIRMWARE_SOURCE= fw_xr819.binXR819_FIRMWARE_EXTRA_DOWNLOADS= boot_xr819.bin sdd_xr819.bin
Quoted 4 lines
and of course, add hashes for those files in the .hash file.
However, the bigger question is: what is the license of those firmware files? Are users at least allowed to redistribute them?
Thanks for the answers. I will check the licensing. If it is not clear enough about redistribution, then I will not add xr819 firmware package. In this case I will just add a note to board/orangepi/orangepi-zero/readme.txt explaining manual firmware installation procedure.
Regards,
Sergey
PATCH 1/2 xr819-xradio: new package
In reply to Thomas PetazzoniQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Quoted 9 lines
Yes, it's fine to point to the Armbian github. The only gotcha is how to do this without downloading the entire Github repository. I guess you will have to do something like this:
XR819_FIRMWARE_VERSION=8b4a4ed16f7f9d12e59ff2f9ceba3cc335374dbeXR819_FIRMWARE_SITE=
https://github.com/armbian/build/tree/$(XR819_FIRMWARE_VERSION)/bin/firmware-overlay/xr819XR819_FIRMWARE_SOURCE= fw_xr819.binXR819_FIRMWARE_EXTRA_DOWNLOADS= boot_xr819.bin sdd_xr819.bin
The only problem is that these file names are not versioned, so it is difficult to ever change them in the future.
But as they are from a vendor dump, that it perhaps not likely to ever happen.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/2 xr819-xradio: new package
Hello,
Quoted 4 lines · Peter Korsgaard
Quoted 3 lines
Yes, it's fine to point to the Armbian github. The only gotcha is how to do this without downloading the entire Github repository. I guess you will have to do something like this:
Quoted 8 lines
Quoted 5 lines
XR819_FIRMWARE_VERSION=8b4a4ed16f7f9d12e59ff2f9ceba3cc335374dbeXR819_FIRMWARE_SITE=
https://github.com/armbian/build/tree/$(XR819_FIRMWARE_VERSION)/bin/firmware-overlay/xr819XR819_FIRMWARE_SOURCE= fw_xr819.binXR819_FIRMWARE_EXTRA_DOWNLOADS= boot_xr819.bin sdd_xr819.binThe only problem is that these file names are not versioned, so it is difficult to ever change them in the future.
If the files are changed, we will change the hashes. Our download infra will notice that the files in the dl folder have a hash that doesn't match the one in the .hash file, and we re-download them.
So it seems to work alright, no?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/2 xr819-xradio: new package
Quoted 10 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
The only problem is that these file names are not versioned, so it is difficult to ever change them in the future.
If the files are changed, we will change the hashes. Our download infra will notice that the files in the dl folder have a hash that doesn't match the one in the .hash file, and we re-download them.
So it seems to work alright, no?
Yes, except for sources.b.o, there we have to keep either the old or the new variants.
But ok, the github repo will probably stick around.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/2 orangepi_zero_defconfig: add xradio wireless driver
In reply to Sergey MatyukevichAdd xradio driver to enable on-board SDIO WiFi chip XR819.
--- configs/orangepi_zero_defconfig | 3 +++ 1 file changed, 3 insertions(+)
configs/orangepi_zero_defconfig +3 -0
@@ -30,6 +30,9 @@ BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_MTOOLS=y BR2_PACKAGE_HOST_UBOOT_TOOLS=y +# wireless driver +BR2_PACKAGE_XR819_XRADIO=y + # wireless support BR2_PACKAGE_IW=y BR2_PACKAGE_WIRELESS_TOOLS=y
Signature · 1 line
2.11.0
Thomas Petazzoni
AppliedPATCH 2/2 orangepi_zero_defconfig: add xradio wireless driver
Hello,
Quoted 6 lines · Sergey Matyukevich
Add xradio driver to enable on-board SDIO WiFi chip XR819.
Signed-off-by Sergey Matyukevich <[email protected]>--- configs/orangepi_zero_defconfig | 3 +++ 1 file changed, 3 insertions(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com