|
|
@ -10,6 +10,7 @@ KERNEL_PATCH=13
|
|
|
|
unset MMC
|
|
|
|
unset MMC
|
|
|
|
unset FIRMWARE
|
|
|
|
unset FIRMWARE
|
|
|
|
unset SERIAL_MODE
|
|
|
|
unset SERIAL_MODE
|
|
|
|
|
|
|
|
unset IS_BETA
|
|
|
|
|
|
|
|
|
|
|
|
BOOT_LABEL=boot
|
|
|
|
BOOT_LABEL=boot
|
|
|
|
PARTITION_PREFIX=""
|
|
|
|
PARTITION_PREFIX=""
|
|
|
@ -51,10 +52,27 @@ function dl_xload_uboot {
|
|
|
|
wget -c --directory-prefix=${DIR}/dl/ http://ftp.debian.org/debian/dists/${DIST}/main/installer-armel/current/images/versatile/netboot/initrd.gz
|
|
|
|
wget -c --directory-prefix=${DIR}/dl/ http://ftp.debian.org/debian/dists/${DIST}/main/installer-armel/current/images/versatile/netboot/initrd.gz
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${IS_BETA}" ] ; then
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KERNEL_REL=2.6.34-rc7
|
|
|
|
|
|
|
|
KERNEL_PATCH=0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "-$DIST-" = "-lucid-"
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
KERNEL=${KERNEL_REL}-dl${KERNEL_PATCH}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
KERNEL=${KERNEL_REL}-d${KERNEL_PATCH}
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}${DIST}/v${KERNEL}/linux-image-${KERNEL}_1.0${DIST}_armel.deb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
|
|
wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}kernel/beagle/${DIST}/v${KERNEL}/linux-image-${KERNEL}_1.0${DIST}_armel.deb
|
|
|
|
wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}kernel/beagle/${DIST}/v${KERNEL}/linux-image-${KERNEL}_1.0${DIST}_armel.deb
|
|
|
|
#wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}${DIST}/v${KERNEL}/linux-image-${KERNEL}_1.0${DIST}_armel.deb
|
|
|
|
|
|
|
|
wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}${DIST}/v${KERNEL}/initrd.img-${KERNEL}
|
|
|
|
wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}${DIST}/v${KERNEL}/initrd.img-${KERNEL}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${FIRMWARE}" ] ; then
|
|
|
|
if [ "${FIRMWARE}" ] ; then
|
|
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
@ -152,6 +170,7 @@ fi
|
|
|
|
then
|
|
|
|
then
|
|
|
|
sudo cp -v ${DIR}/scripts/e2fsck.conf ${DIR}/initrd-tree/etc/e2fsck.conf
|
|
|
|
sudo cp -v ${DIR}/scripts/e2fsck.conf ${DIR}/initrd-tree/etc/e2fsck.conf
|
|
|
|
sudo cp -v ${DIR}/scripts/flash-kernel.conf ${DIR}/initrd-tree/etc/flash-kernel.conf
|
|
|
|
sudo cp -v ${DIR}/scripts/flash-kernel.conf ${DIR}/initrd-tree/etc/flash-kernel.conf
|
|
|
|
|
|
|
|
sudo cp -v ${DIR}/scripts/ttyS2.conf ${DIR}/initrd-tree/etc/ttyS2.conf
|
|
|
|
sudo dpkg -x ${DIR}/dl/mtd-utils_20090606-1_armel.deb ${DIR}/initrd-tree
|
|
|
|
sudo dpkg -x ${DIR}/dl/mtd-utils_20090606-1_armel.deb ${DIR}/initrd-tree
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
@ -318,6 +337,9 @@ Optional:
|
|
|
|
|
|
|
|
|
|
|
|
--serial-mode
|
|
|
|
--serial-mode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Testing:
|
|
|
|
|
|
|
|
--beta
|
|
|
|
|
|
|
|
|
|
|
|
Additional/Optional options:
|
|
|
|
Additional/Optional options:
|
|
|
|
-h --help
|
|
|
|
-h --help
|
|
|
|
this help
|
|
|
|
this help
|
|
|
@ -362,6 +384,9 @@ while [ ! -z "$1" ]; do
|
|
|
|
--serial-mode)
|
|
|
|
--serial-mode)
|
|
|
|
SERIAL_MODE=1
|
|
|
|
SERIAL_MODE=1
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
--beta)
|
|
|
|
|
|
|
|
IS_BETA=1
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
done
|
|
|
|