diff --git a/mk_mmc.sh b/mk_mmc.sh index d2620ec..985dedf 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -26,6 +26,7 @@ unset MMC unset FIRMWARE unset SERIAL_MODE unset BETA +unset USB_ROOTFS BOOT_LABEL=boot PARTITION_PREFIX="" @@ -68,6 +69,16 @@ DIST=squeeze KERNEL_PATCH=9 fi + if [ "$USB_ROOTFS" ];then + sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/dvi-normal-lucid.cmd + sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/dvi-normal-maverick.cmd + sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/dvi-normal-squeeze.cmd + + sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/serial-normal-lucid.cmd + sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/serial-normal-maverick.cmd + sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/serial-normal-squeeze.cmd + fi + } function dl_xload_uboot { @@ -667,6 +678,16 @@ function reset_scripts { sed -i 's/ttyO2/ttyS2/g' ${DIR}/scripts/serial-normal-squeeze.cmd fi + if [ "$USB_ROOTFS" ];then + sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/dvi-normal-lucid.cmd + sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/dvi-normal-maverick.cmd + sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/dvi-normal-squeeze.cmd + + sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/serial-normal-lucid.cmd + sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/serial-normal-maverick.cmd + sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/serial-normal-squeeze.cmd + fi + } function check_mmc { @@ -790,6 +811,9 @@ Optional: --serial-mode +--usb-rootfs + + Additional/Optional options: -h --help this help @@ -842,6 +866,9 @@ while [ ! -z "$1" ]; do --beta) BETA=1 ;; + --usb-rootfs) + USB_ROOTFS=1 + ;; esac shift done