Permalink
Browse files

[FIX] IoT : V2

  • Loading branch information...
qle-odoo committed Feb 7, 2019
1 parent 35ba36b commit aac2fad92773204ab9e2ba48662f23ef01d7861f
@@ -120,16 +120,10 @@ qemu-system-arm "${QEMU_OPTS[@]}"
mount "${LOOP_MAPPER_PATH}" "${MOUNT_POINT}"
cp -av "${OVERWRITE_FILES_AFTER_INIT_DIR}"/* "${MOUNT_POINT}"

echo "Patching..."
echo "${MOUNT_POINT}"/usr
find "${MOUNT_POINT}"/usr -type f -name "*.iotpatch"|while read iotpatch; do
echo "${iotpatch}"
DIR=$(dirname "${iotpatch}")
echo "${DIR}"
BASE=$(basename "${iotpatch%.*}")
echo "${BASE}"
find "${DIR}" -type f -name "${BASE}.*" ! -name "*.iotpatch"|while read file; do
echo "${file}"
BASE=$(basename "${iotpatch%.iotpatch}")
find "${DIR}" -type f -name "${BASE}" ! -name "*.iotpatch"|while read file; do
patch -f "${file}" < "${iotpatch}"
done
done
@@ -1,8 +1,7 @@
#!/bin/sh

wget 'http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-06-29/2018-06-27-raspbian-stretch-lite.zip' -O raspbian.img.zip
wget 'http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-11-15/2018-11-13-raspbian-stretch-lite.zip' -O raspbian.img.zip
unzip raspbian.img.zip
wget 'https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/kernel-qemu-4.9.59-stretch' -O kernel-qemu
wget 'https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/kernel-qemu-4.14.79-stretch' -O kernel-qemu
wget 'https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/versatile-pb.dtb'


0 comments on commit aac2fad

Please sign in to comment.