aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2017-09-15 13:25:08 +0300
committerRiku Voipio <riku.voipio@linaro.org>2017-09-15 13:25:08 +0300
commita494298e753d0df27a1b0afe54a4d147b001a41d (patch)
treeb8c41583bb59379d70210abf388ba4153c08235e
parent0caa6bb0b8964782dd7a65989722fc0e18849372 (diff)
downloadfai-a494298e753d0df27a1b0afe54a4d147b001a41d.tar.gz
DB410C customization
-rw-r--r--class/DB410C.var4
-rw-r--r--package_config/QCOM6
-rw-r--r--scripts/DB410C/10-customize30
3 files changed, 40 insertions, 0 deletions
diff --git a/class/DB410C.var b/class/DB410C.var
new file mode 100644
index 0000000..8d486c6
--- /dev/null
+++ b/class/DB410C.var
@@ -0,0 +1,4 @@
+QCOM_FIRMWARE='http://builds.96boards.org/releases/dragonboard410c/qualcomm/firmware/linux-board-support-package-r1032.1.zip'
+QCOM_FIRMWARE_MD5='e1c7e8957b8f37a91cadc18c1aef5c04'
+QCOM_FIRMWARE_LICENSE_MD5='4d087ee0965cb059f1b2f9429e166f64'
+
diff --git a/package_config/QCOM b/package_config/QCOM
new file mode 100644
index 0000000..3d4ed32
--- /dev/null
+++ b/package_config/QCOM
@@ -0,0 +1,6 @@
+PACKAGES install
+linux-image-4.9.47-lt-qcom
+linux-headers-4.9.47-lt-qcom
+firmware-linux
+wcnss-start
+
diff --git a/scripts/DB410C/10-customize b/scripts/DB410C/10-customize
new file mode 100644
index 0000000..5015a5f
--- /dev/null
+++ b/scripts/DB410C/10-customize
@@ -0,0 +1,30 @@
+#!/bin/sh
+# Download license file and firmware
+if [ -n "${QCOM_FIRMWARE}" ]; then
+ rm -rf qcom_firmware && mkdir qcom_firmware && cd qcom_firmware
+ wget -q ${QCOM_FIRMWARE}
+ echo "${QCOM_FIRMWARE_MD5} $(basename ${QCOM_FIRMWARE})" > MD5
+ md5sum -c MD5
+ unzip $(basename ${QCOM_FIRMWARE})
+ # check LICENSE file (for Linux BSP)
+ echo "${QCOM_FIRMWARE_LICENSE_MD5} " linux-board-support-package-*/LICENSE > MD5
+ md5sum -c MD5
+ cd -
+ MTOOLS_SKIP_CHECK=1 mcopy -i qcom_firmware/linux-board-support-package-*/bootloaders-linux/NON-HLOS.bin \
+ ::image/modem.* ::image/mba.mbn ::image/wcnss.* qcom_firmware/linux-board-support-package-*/proprietary-linux
+ cp -f qcom_firmware/linux-board-support-package-*/LICENSE $target/etc/QCOM-LINUX-BOARD-SUPPORT-LICENSE
+ cp -a qcom_firmware/linux-board-support-package-*/proprietary-linux/* $target/lib/firmware
+
+fi
+
+if [ -f $target/etc/NetworkManager/NetworkManager.conf ]; then
+ cat << EOF | tee -a $target/etc/NetworkManager/NetworkManager.conf
+[device]
+wifi.scan-rand-mac-address=no
+EOF
+fi
+
+
+
+
+