From: Jan Kiszka <[email protected]>

The v2 has a different driver than the v1, which apparently had
regulatory reasons. The big downside is that the driver is not yet
mainline. Pick up the fork that Avnet generated for the Ultra96-v2 for
now. This should be clean up later by moving to the original downstream
version or to upstream once the wilc1000 support there is expanded.

Signed-off-by: Jan Kiszka <[email protected]>
---
 recipes-kernel/wilc/files/debian/wilc.install |  1 +
 recipes-kernel/wilc/wilc_15.2-avnet.bb        | 33 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 recipes-kernel/wilc/files/debian/wilc.install
 create mode 100644 recipes-kernel/wilc/wilc_15.2-avnet.bb

diff --git a/recipes-kernel/wilc/files/debian/wilc.install 
b/recipes-kernel/wilc/files/debian/wilc.install
new file mode 100644
index 0000000..4a5b92e
--- /dev/null
+++ b/recipes-kernel/wilc/files/debian/wilc.install
@@ -0,0 +1 @@
+../../*.bin /lib/firmware/mchp/
diff --git a/recipes-kernel/wilc/wilc_15.2-avnet.bb 
b/recipes-kernel/wilc/wilc_15.2-avnet.bb
new file mode 100644
index 0000000..1a1d680
--- /dev/null
+++ b/recipes-kernel/wilc/wilc_15.2-avnet.bb
@@ -0,0 +1,33 @@
+#
+# Jailhouse, a Linux-based partitioning hypervisor
+#
+# Copyright (c) Siemens AG, 2020
+#
+# Authors:
+#  Jan Kiszka <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+require recipes-kernel/linux-module/module.inc
+
+FIRMWARE_REV = "a67c351f9028c7a559330365c649a07721965cd4"
+
+SRC_URI += " \
+    git://github.com/Avnet/u96v2-wilc-driver;protocol=https;branch=v15_2 \
+    
https://github.com/linux4wilc/firmware/raw/${FIRMWARE_REV}/wilc3000_wifi_firmware.bin;name=firmware
 \
+    file://debian/wilc.install"
+SRCREV = "01ab7484e0e6b2191c69d7ec7c6e89da5ca51f0f"
+SRC_URI[firmware.sha256sum] = 
"8cc0328e80d8e0e96b295777b58e7f48fea25d29808df6dd0fabd3ea283b3da1"
+
+S = "${WORKDIR}/git/wilc"
+
+AUTOLOAD = "wilc-sdio"
+
+do_prepare_build_append() {
+    mv ${S}/debian/wilc.install ${S}/debian/wilc-${KERNEL_NAME}.install
+}
+
+dpkg_runbuild_prepend() {
+    export CONFIG_WILC_SDIO=m
+}
-- 
2.26.2

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/b293faaff3a3d2f6969d7b48013a091212a0ffc1.1601958694.git.jan.kiszka%40siemens.com.

Reply via email to