aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2015-10-08 23:08:19 +0100
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2015-10-12 20:11:07 +0100
commit6172b3989193cadc0bb5c7125e4b0a93f7c2453d (patch)
tree18b8a7412d82d5500064bbbce935ad820374a933 /recipes-kernel
parentdb98920fe2f5cdb378bdeec6d5b4ac9f825cada8 (diff)
downloadmeta-qcom-6172b3989193cadc0bb5c7125e4b0a93f7c2453d.tar.gz
meta-qcom-6172b3989193cadc0bb5c7125e4b0a93f7c2453d.tar.bz2
meta-qcom-6172b3989193cadc0bb5c7125e4b0a93f7c2453d.zip
linux-qcom-bootimg: create a boot image for IFC6410
To ease the deployment on the target, build a valid boot image that can be booted with 'fastboot boot <image>', or flashed into the eMMC with 'fastboot flash boot <image>'. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-qcom-bootimg.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-qcom-bootimg.inc b/recipes-kernel/linux/linux-qcom-bootimg.inc
index faf16ed..7319951 100644
--- a/recipes-kernel/linux/linux-qcom-bootimg.inc
+++ b/recipes-kernel/linux/linux-qcom-bootimg.inc
@@ -35,3 +35,26 @@ do_deploy_append_dragonboard-410c() {
ln -sf ${BOOT_IMG_NAME}.img boot-${MACHINE}.img
cd -
}
+
+do_deploy_append_ifc6410 () {
+
+ tmp="${SERIAL_CONSOLES}"
+ baudrate=`echo $tmp | sed 's/\;.*//'`
+ ttydev=`echo $tmp | sed -e 's/^[0-9]*\;//' -e 's/\s.*//' -e 's/\;.*//'`
+
+ # mkbootimg requires an initrd file, make fake one that will be ignored
+ # during boot
+ echo "This is not an initrd" > ${B}/initrd.img
+
+ mkbootimg --kernel ${B}/arch/${ARCH}/boot/zImage \
+ --ramdisk ${B}/initrd.img \
+ --output ${DEPLOYDIR}/${BOOT_IMG_NAME}.img \
+ --pagesize 2048 \
+ --base 0x80200000 \
+ --cmdline \
+ "root=/dev/${QCOM_BOOTIMG_ROOTFS} rw rootwait console=${ttydev},${baudrate}n8"
+
+ cd ${DEPLOYDIR}
+ ln -sf ${BOOT_IMG_NAME}.img boot-${MACHINE}.img
+ cd -
+}