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