From a75fe99487a1387abea287f900345ee3d778b33c Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 10 Jan 2011 11:52:19 -0600 Subject: [PATCH] add --earlyprintk option for debugging Signed-off-by: Robert Nelson --- mk_mmc.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mk_mmc.sh b/mk_mmc.sh index 985dedf..56bfb12 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -27,6 +27,7 @@ unset FIRMWARE unset SERIAL_MODE unset BETA unset USB_ROOTFS +unset PRINTK BOOT_LABEL=boot PARTITION_PREFIX="" @@ -79,6 +80,10 @@ DIST=squeeze sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/serial-normal-squeeze.cmd fi + if [ "$PRINTK" ];then + sed -i 's/bootargs/bootargs earlyprintk/g' ${DIR}/scripts/serial*.cmd + fi + } function dl_xload_uboot { @@ -688,6 +693,10 @@ function reset_scripts { sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/serial-normal-squeeze.cmd fi + if [ "$PRINTK" ];then + sed -i 's/bootargs earlyprintk/bootargs/g' ${DIR}/scripts/serial*.cmd + fi + } function check_mmc { @@ -869,6 +878,9 @@ while [ ! -z "$1" ]; do --usb-rootfs) USB_ROOTFS=1 ;; + --earlyprintk) + PRINTK=1 + ;; esac shift done