ubuntu: first step in recovering from fat16 reformating

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent caac5dfa12
commit 15ca78eb82

@ -1050,6 +1050,8 @@ function finish_installing_device {
mount -o bind /sys /target/sys
cat /proc/mounts > /target/mounts
cat /proc/mounts > /target/boot/uboot/backup/proc_mounts
cp /SOC.sh /target/etc/
chroot /target /bin/bash /etc/finish-install.sh
rm -f /target/mounts || true
cat /var/log/syslog > /target/boot/uboot/backup/syslog.log
@ -1088,6 +1090,34 @@ function initrd_preseed_settings {
sed -i -e 's:d-i console-keymaps-at:#d-i console-keymaps-at:g' ${TEMPDIR}/initrd-tree/preseed.cfg
fi
#This should be compatible with hwpacks variable names..
#https://code.launchpad.net/~linaro-maintainers/linaro-images/
cat > ${TEMPDIR}/initrd-tree/SOC.sh <<-__EOF__
#!/bin/sh
format=1.0
board=${BOOTLOADER}
bootloader_location=${bootloader_location}
dd_spl_uboot_seek=${dd_spl_uboot_seek}
dd_spl_uboot_bs=${dd_spl_uboot_bs}
dd_uboot_seek=${dd_uboot_seek}
dd_uboot_bs=${dd_uboot_bs}
boot_image=${boot}
boot_script=${boot_script}
boot_fstype=${boot_fstype}
serial_tty=${SERIAL}
kernel_addr=${kernel_addr}
initrd_addr=${initrd_addr}
load_addr=${load_addr}
dtb_addr=${dtb_addr}
dtb_file=${dtb_file}
usbnet_mem=${usbnet_mem}
__EOF__
cd "${DIR}"/
}

@ -41,8 +41,12 @@ cp /boot/vmlinuz-`uname -r` /boot/uboot/zImage
cp /boot/initrd.img-`uname -r` /boot/uboot/initrd.img
rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true
#Device Tweaks:
#Device Configuration:
if [ ! -f /boot/uboot/SOC.sh ] ; then
cp /etc/SOC.sh /boot/uboot/SOC.sh
fi
source /boot/uboot/SOC.sh
if [ "x${boot_image}" == "xbootm" ] ; then
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uboot/uInitrd
mkimage -A arm -O linux -T kernel -C none -a ${load_addr} -e ${load_addr} -n `uname -r` -d /boot/vmlinuz-`uname -r` /boot/uboot/uImage

@ -92,8 +92,12 @@ cp /boot/vmlinuz-`uname -r` /boot/uboot/zImage
cp /boot/initrd.img-`uname -r` /boot/uboot/initrd.img
rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true
#Device Tweaks:
#Device Configuration:
if [ ! -f /boot/uboot/SOC.sh ] ; then
cp /etc/SOC.sh /boot/uboot/SOC.sh
fi
source /boot/uboot/SOC.sh
if [ "x${boot_image}" == "xbootm" ] ; then
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uboot/uInitrd
mkimage -A arm -O linux -T kernel -C none -a ${load_addr} -e ${load_addr} -n `uname -r` -d /boot/vmlinuz-`uname -r` /boot/uboot/uImage

Loading…
Cancel
Save