From 82197781bd1bd73feb082217ef3af8acede8152f Mon Sep 17 00:00:00 2001 From: ficus Date: Thu, 22 Nov 2012 02:16:55 +0100 Subject: horrible uap kernel module hack (dreamplug) --- config/hooks/uap-driver.sh.chroot | 13 +++++++++++++ config/includes.chroot/etc/modprobe.d/dreamplug.conf | 5 +++++ config/includes.chroot/lib/firmware/mrvl/README | 4 ++++ config/includes.chroot/lib/firmware/mrvl/helper_sd.bin | Bin 0 -> 2616 bytes config/includes.chroot/lib/firmware/mrvl/sd8688.bin | Bin 0 -> 297284 bytes config/includes.chroot/lib/firmware/mrvl/sd8688_ap.bin | Bin 0 -> 222572 bytes .../lib/firmware/mrvl/sd8688_helper.bin | Bin 0 -> 2616 bytes config/includes.chroot/tmp/uap8xxx.ko-3.2.0-4-kirkwood | Bin 0 -> 63372 bytes 8 files changed, 22 insertions(+) create mode 100755 config/hooks/uap-driver.sh.chroot create mode 100644 config/includes.chroot/etc/modprobe.d/dreamplug.conf create mode 100644 config/includes.chroot/lib/firmware/mrvl/README create mode 100755 config/includes.chroot/lib/firmware/mrvl/helper_sd.bin create mode 100755 config/includes.chroot/lib/firmware/mrvl/sd8688.bin create mode 100755 config/includes.chroot/lib/firmware/mrvl/sd8688_ap.bin create mode 100644 config/includes.chroot/lib/firmware/mrvl/sd8688_helper.bin create mode 100644 config/includes.chroot/tmp/uap8xxx.ko-3.2.0-4-kirkwood diff --git a/config/hooks/uap-driver.sh.chroot b/config/hooks/uap-driver.sh.chroot new file mode 100755 index 0000000..dc2e379 --- /dev/null +++ b/config/hooks/uap-driver.sh.chroot @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +echo "Determining kernel version..." +cd /boot +KERNELVERSION=`ls vmlinuz-* | sed "s/vmlinuz-//g"` +echo $KERNELVERSION + +echo "Installing uap8xxx.ko Marvell WiFi kernel module..." +mkdir -p /lib/modules/$KERNELVERSION/kernel/drivers/net/wireless/libertas_uap +mv /tmp/uap8xxx.ko-$KERNELVERSION /lib/modules/$KERNELVERSION/kernel/drivers/net/wireless/libertas_uap/uap8xxx.ko +depmod -a diff --git a/config/includes.chroot/etc/modprobe.d/dreamplug.conf b/config/includes.chroot/etc/modprobe.d/dreamplug.conf new file mode 100644 index 0000000..ca41938 --- /dev/null +++ b/config/includes.chroot/etc/modprobe.d/dreamplug.conf @@ -0,0 +1,5 @@ +# blacklist competing modules for the same hardware +# used by libertas_uap master-mode wifi driver (uap8xxx.ko) +blacklist libertas_sdio +blacklist libertas + diff --git a/config/includes.chroot/lib/firmware/mrvl/README b/config/includes.chroot/lib/firmware/mrvl/README new file mode 100644 index 0000000..41b4db9 --- /dev/null +++ b/config/includes.chroot/lib/firmware/mrvl/README @@ -0,0 +1,4 @@ +These drivers have unknown progeny and licensing (extracted from a DreamPlug's +default filesystem). + +Not the same as: http://packages.debian.org/squeeze/libertas-firmware diff --git a/config/includes.chroot/lib/firmware/mrvl/helper_sd.bin b/config/includes.chroot/lib/firmware/mrvl/helper_sd.bin new file mode 100755 index 0000000..746ae0b Binary files /dev/null and b/config/includes.chroot/lib/firmware/mrvl/helper_sd.bin differ diff --git a/config/includes.chroot/lib/firmware/mrvl/sd8688.bin b/config/includes.chroot/lib/firmware/mrvl/sd8688.bin new file mode 100755 index 0000000..507b9c1 Binary files /dev/null and b/config/includes.chroot/lib/firmware/mrvl/sd8688.bin differ diff --git a/config/includes.chroot/lib/firmware/mrvl/sd8688_ap.bin b/config/includes.chroot/lib/firmware/mrvl/sd8688_ap.bin new file mode 100755 index 0000000..d3b042b Binary files /dev/null and b/config/includes.chroot/lib/firmware/mrvl/sd8688_ap.bin differ diff --git a/config/includes.chroot/lib/firmware/mrvl/sd8688_helper.bin b/config/includes.chroot/lib/firmware/mrvl/sd8688_helper.bin new file mode 100644 index 0000000..746ae0b Binary files /dev/null and b/config/includes.chroot/lib/firmware/mrvl/sd8688_helper.bin differ diff --git a/config/includes.chroot/tmp/uap8xxx.ko-3.2.0-4-kirkwood b/config/includes.chroot/tmp/uap8xxx.ko-3.2.0-4-kirkwood new file mode 100644 index 0000000..0c0c544 Binary files /dev/null and b/config/includes.chroot/tmp/uap8xxx.ko-3.2.0-4-kirkwood differ -- cgit v1.2.3