#!/bin/sh if [ $# -ne 2 ] ; then error "Usage: `basename $0` " fi . $(dirname $0)/arm-installer-common.sh # This is machine specific, AFAIK. LOAD_ADDR=0x80008000 ENTRY_POINT=0x80008000 TMP_MOUNT=$(mktemp -d) # The FAT u-boot bootloader partition. UBOOT_PART=/dev/mmcblk0p1 KVERSION=$(getversion) CONFIG_FILE="config-$KVERSION" fetchfiles mkuboot > /dev/null mkscript moveconfig doinitramfs mkuinitrd echo "Mounting u-boot partition ..." >&2 sudo mount $UBOOT_PART $TMP_MOUNT echo "done." >&2 UBOOT_PATH=$TMP_MOUNT copy_to_uboot echo "Unmounting u-boot partition ..." >&2 sudo umount $TMP_MOUNT echo "done." >&2 rm_tmp_files rm -rf $TMP_MOUNT echo "All done!" >&2