From ad124c7a9e39a98862b33ef152019e4e0366528d Mon Sep 17 00:00:00 2001 From: Michel Wohlert Date: Fri, 22 Mar 2019 10:20:57 +0100 Subject: [PATCH 1/2] xradio.bb: Add xradio driver Add xradio driver for XR819 Wifi chipsets Changelog-entry: Add xradio out-of-tree kernel module --- .../recipes-kernel/xradio/xradio.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 layers/meta-resin-allwinner/recipes-kernel/xradio/xradio.bb diff --git a/layers/meta-resin-allwinner/recipes-kernel/xradio/xradio.bb b/layers/meta-resin-allwinner/recipes-kernel/xradio/xradio.bb new file mode 100644 index 0000000..532857f --- /dev/null +++ b/layers/meta-resin-allwinner/recipes-kernel/xradio/xradio.bb @@ -0,0 +1,16 @@ +SUMMARY = "Xradio WiFi driver for orangepi-zero" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a23a74b3f4caf9616230789d94217acb" + +inherit module + +SRCREV = "b7789c274091344eeff47cf34a48e0b225de852b" + +SRC_URI = "git://github.com/fifteenhex/xradio.git;protocol=https \ + " + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE += "-C ${STAGING_KERNEL_DIR} M=${S}" + +KERNEL_MODULE_AUTOLOAD += "xradio_wlan" \ No newline at end of file From 5fd7b1467e3588a87fb78518c6fef5b1b3703cc5 Mon Sep 17 00:00:00 2001 From: Michel Wohlert Date: Fri, 22 Mar 2019 10:22:03 +0100 Subject: [PATCH 2/2] xradio-firmware.bb: Add xradio firmware Add xradio firmware blobs for XR819 Changelog-entry: Add xradio firmware for XR819 Chipset --- .../xradio-firmware/xradio-firmware.bb | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 layers/meta-resin-allwinner/recipes-kernel/xradio-firmware/xradio-firmware.bb diff --git a/layers/meta-resin-allwinner/recipes-kernel/xradio-firmware/xradio-firmware.bb b/layers/meta-resin-allwinner/recipes-kernel/xradio-firmware/xradio-firmware.bb new file mode 100644 index 0000000..5ca1077 --- /dev/null +++ b/layers/meta-resin-allwinner/recipes-kernel/xradio-firmware/xradio-firmware.bb @@ -0,0 +1,22 @@ +SUMMARY = "Xradio xr819 WiFi firmware" +LICENSE = "CC0-1.0" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE};md5=0ceb3372c9595f0a8067e55da801e4a1" + +SRCREV = "bddd21b7f895be9f0c37e435f0a7ac84405c6091" + +SRC_URI = "git://github.com/armbian/firmware.git;protocol=https" + +S = "${WORKDIR}/git" + +do_compile () { + exit 0 +} + +do_install() { + install -d ${D}${base_libdir}/firmware/xr819 + install -m 0644 ${S}/xr819/boot_xr819.bin ${D}${base_libdir}/firmware/xr819/ + install -m 0644 ${S}/xr819/sdd_xr819.bin ${D}${base_libdir}/firmware/xr819/ + install -m 0644 ${S}/xr819/fw_xr819.bin ${D}${base_libdir}/firmware/xr819/ +} + +FILES_${PN} = "${base_libdir}/*"