intoduce support for the freescale mx53loco board, just u-boot and correct partition layout at this point, still need to generate a working *.deb

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent 7d331423a0
commit c0607e1cf7

@ -33,8 +33,9 @@ unset PRINTK
unset HASMLO unset HASMLO
unset ABI_VER unset ABI_VER
unset SMSC95XX_MOREMEM unset SMSC95XX_MOREMEM
unset DO_UBOOT_DD
SCRIPT_VERSION="1.09" SCRIPT_VERSION="1.10"
IN_VALID_UBOOT=1 IN_VALID_UBOOT=1
MIRROR="http://rcn-ee.net/deb/" MIRROR="http://rcn-ee.net/deb/"
@ -71,6 +72,11 @@ if fdisk -v | grep "GNU Fdisk" >/dev/null ; then
exit exit
fi fi
unset PARTED_ALIGN
if parted -v | grep parted | grep 2.[1-3] >/dev/null ; then
PARTED_ALIGN="--align cylinder"
fi
function detect_software { function detect_software {
unset NEEDS_PACKAGE unset NEEDS_PACKAGE
@ -482,7 +488,7 @@ NUM_MOUNTS=$(mount | grep -v none | grep "$MMC" | wc -l)
sudo parted --script ${MMC} mklabel msdos sudo parted --script ${MMC} mklabel msdos
} }
function create_partitions { function uboot_in_fat {
sudo fdisk ${FDISK_DOS} ${MMC} << END sudo fdisk ${FDISK_DOS} ${MMC} << END
n n
@ -506,13 +512,40 @@ echo ""
sudo mkfs.vfat -F 16 ${MMC}${PARTITION_PREFIX}1 -n ${BOOT_LABEL} sudo mkfs.vfat -F 16 ${MMC}${PARTITION_PREFIX}1 -n ${BOOT_LABEL}
}
function dd_uboot {
sudo dd if=${TEMPDIR}/dl/${UBOOT} of=${MMC} seek=1 bs=1024
sudo parted --script ${PARTED_ALIGN} ${MMC} mkpart primary ext3 10 100
echo ""
echo "Formating Boot Partition"
echo ""
sudo mkfs.ext3 ${MMC}${PARTITION_PREFIX}1 -L ${BOOT_LABEL}
}
function create_partitions {
if [ "${DO_UBOOT_DD}" ] ; then
dd_uboot
else
uboot_in_fat
fi
mkdir ${TEMPDIR}/disk mkdir ${TEMPDIR}/disk
sudo mount ${MMC}${PARTITION_PREFIX}1 ${TEMPDIR}/disk sudo mount ${MMC}${PARTITION_PREFIX}1 ${TEMPDIR}/disk
if [ "${HASMLO}" ] ; then if [ "${HASMLO}" ] ; then
sudo cp -v ${TEMPDIR}/dl/${MLO} ${TEMPDIR}/disk/MLO sudo cp -v ${TEMPDIR}/dl/${MLO} ${TEMPDIR}/disk/MLO
fi fi
if [ ! "${DO_UBOOT_DD}" ] ; then
sudo cp -v ${TEMPDIR}/dl/${UBOOT} ${TEMPDIR}/disk/u-boot.bin sudo cp -v ${TEMPDIR}/dl/${UBOOT} ${TEMPDIR}/disk/u-boot.bin
fi
echo "uInitrd Installer" echo "uInitrd Installer"
sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${TEMPDIR}/initrd.mod.gz ${TEMPDIR}/disk/uInitrd.net sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${TEMPDIR}/initrd.mod.gz ${TEMPDIR}/disk/uInitrd.net
@ -830,7 +863,6 @@ case "$UBOOT_TYPE" in
HASMLO=1 HASMLO=1
ABI_VER=5 ABI_VER=5
#with the panda, we need the beta kernel and serial-more
BETA_KERNEL=1 BETA_KERNEL=1
SERIAL_MODE=1 SERIAL_MODE=1
@ -844,6 +876,18 @@ case "$UBOOT_TYPE" in
ABI_VER=6 ABI_VER=6
#with the crane, we need the beta kernel and serial-more #with the crane, we need the beta kernel and serial-more
BETA_KERNEL=1
SERIAL_MODE=1
;;
mx53loco)
SYSTEM=mx53loco
unset IN_VALID_UBOOT
DO_UBOOT=1
DO_UBOOT_DD=1
ABI_VER=8
BETA_KERNEL=1 BETA_KERNEL=1
SERIAL_MODE=1 SERIAL_MODE=1
@ -899,11 +943,15 @@ Required Options:
Unformated MMC Card Unformated MMC Card
--uboot <dev board> --uboot <dev board>
(omap)
beagle_bx - <Ax/Bx Models> beagle_bx - <Ax/Bx Models>
beagle - <Cx, xM A/B/C> beagle - <Cx, xM A/B/C>
panda - <dvi or serial> panda - <dvi or serial>
touchbook - <serial only> touchbook - <serial only>
(freescale)
mx53loco
--distro <distro> --distro <distro>
Debian: Debian:
squeeze <default> squeeze <default>

Loading…
Cancel
Save