add --earlyprintk option for debugging

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent 521fc39d01
commit a75fe99487

@ -27,6 +27,7 @@ unset FIRMWARE
unset SERIAL_MODE unset SERIAL_MODE
unset BETA unset BETA
unset USB_ROOTFS unset USB_ROOTFS
unset PRINTK
BOOT_LABEL=boot BOOT_LABEL=boot
PARTITION_PREFIX="" PARTITION_PREFIX=""
@ -79,6 +80,10 @@ DIST=squeeze
sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/serial-normal-squeeze.cmd sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/serial-normal-squeeze.cmd
fi fi
if [ "$PRINTK" ];then
sed -i 's/bootargs/bootargs earlyprintk/g' ${DIR}/scripts/serial*.cmd
fi
} }
function dl_xload_uboot { function dl_xload_uboot {
@ -688,6 +693,10 @@ function reset_scripts {
sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/serial-normal-squeeze.cmd sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/serial-normal-squeeze.cmd
fi fi
if [ "$PRINTK" ];then
sed -i 's/bootargs earlyprintk/bootargs/g' ${DIR}/scripts/serial*.cmd
fi
} }
function check_mmc { function check_mmc {
@ -869,6 +878,9 @@ while [ ! -z "$1" ]; do
--usb-rootfs) --usb-rootfs)
USB_ROOTFS=1 USB_ROOTFS=1
;; ;;
--earlyprintk)
PRINTK=1
;;
esac esac
shift shift
done done

Loading…
Cancel
Save