bug: the debian installer in squeeze is failing to init the usb system, looks to be a gcc bug as the linaro kernels work fine

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 13 years ago
parent 15da1a93d4
commit 008389baae

@ -39,6 +39,7 @@ unset USE_UENV
SCRIPT_VERSION="1.11" SCRIPT_VERSION="1.11"
IN_VALID_UBOOT=1 IN_VALID_UBOOT=1
DI_BROKEN_USE_CROSS=1
MIRROR="http://rcn-ee.net/deb/" MIRROR="http://rcn-ee.net/deb/"
DIST=squeeze DIST=squeeze
@ -193,6 +194,10 @@ function dl_kernel_image {
wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ http://rcn-ee.net/deb/${DIST}/${FTP_DIR}/ wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ http://rcn-ee.net/deb/${DIST}/${FTP_DIR}/
ACTUAL_DEB_FILE=$(cat ${TEMPDIR}/dl/index.html | grep linux-image | awk -F "\"" '{print $2}') ACTUAL_DEB_FILE=$(cat ${TEMPDIR}/dl/index.html | grep linux-image | awk -F "\"" '{print $2}')
wget -c --directory-prefix=${DIR}/dl/${DIST} ${MIRROR}${DIST}/v${KERNEL}/${ACTUAL_DEB_FILE} wget -c --directory-prefix=${DIR}/dl/${DIST} ${MIRROR}${DIST}/v${KERNEL}/${ACTUAL_DEB_FILE}
if [ "${DI_BROKEN_USE_CROSS}" ] ; then
CROSS_DEB_FILE=$(echo ${ACTUAL_DEB_FILE} | sed 's:'${DIST}':cross:g')
wget -c --directory-prefix=${DIR}/dl/${DIST} ${MIRROR}cross/v${KERNEL}/${CROSS_DEB_FILE}
fi
else else
KERNEL=${DEB_FILE} KERNEL=${DEB_FILE}
#Remove all "\" from file name. #Remove all "\" from file name.
@ -510,6 +515,9 @@ function setup_bootscripts {
sed -i -e 's:SERIAL:'$SERIAL':g' ${DIR}/scripts/serial.conf sed -i -e 's:SERIAL:'$SERIAL':g' ${DIR}/scripts/serial.conf
sed -i -e 's:SERIAL:'$SERIAL':g' ${DIR}/scripts/*-tweaks.diff sed -i -e 's:SERIAL:'$SERIAL':g' ${DIR}/scripts/*-tweaks.diff
#Setup Kernel Boot Address
sed -i -e 's:ZRELADD:'$ZRELADD':g' ${DIR}/scripts/*-tweaks.diff
if [ "$SMSC95XX_MOREMEM" ];then if [ "$SMSC95XX_MOREMEM" ];then
sed -i 's/8192/16384/g' ${DIR}/scripts/*.diff sed -i 's/8192/16384/g' ${DIR}/scripts/*.diff
fi fi
@ -521,7 +529,11 @@ function extract_base_initrd {
cd ${TEMPDIR}/initrd-tree cd ${TEMPDIR}/initrd-tree
zcat ${DIR}/dl/${DIST}/initrd.gz | cpio -i -d zcat ${DIR}/dl/${DIST}/initrd.gz | cpio -i -d
dpkg -x ${DIR}/dl/${DIST}/${ACTUAL_DEB_FILE} ${TEMPDIR}/initrd-tree if [ ! "${DI_BROKEN_USE_CROSS}" ] ; then
dpkg -x ${DIR}/dl/${DIST}/${ACTUAL_DEB_FILE} ${TEMPDIR}/initrd-tree
else
dpkg -x ${DIR}/dl/${DIST}/${CROSS_DEB_FILE} ${TEMPDIR}/initrd-tree
fi
cd ${DIR}/ cd ${DIR}/
} }
@ -707,7 +719,11 @@ function recompress_initrd {
function extract_zimage { function extract_zimage {
echo "Extracting Boot Kernel zImage" echo "Extracting Boot Kernel zImage"
echo "-----------------------------" echo "-----------------------------"
dpkg -x ${DIR}/dl/${DIST}/${ACTUAL_DEB_FILE} ${TEMPDIR}/kernel if [ ! "${DI_BROKEN_USE_CROSS}" ] ; then
dpkg -x ${DIR}/dl/${DIST}/${ACTUAL_DEB_FILE} ${TEMPDIR}/kernel
else
dpkg -x ${DIR}/dl/${DIST}/${CROSS_DEB_FILE} ${TEMPDIR}/kernel
fi
} }
function create_custom_netinstall_image { function create_custom_netinstall_image {
@ -1016,6 +1032,9 @@ function reset_scripts {
sed -i -e 's:'$SERIAL':SERIAL:g' ${DIR}/scripts/serial.conf sed -i -e 's:'$SERIAL':SERIAL:g' ${DIR}/scripts/serial.conf
sed -i -e 's:'$SERIAL':SERIAL:g' ${DIR}/scripts/*-tweaks.diff sed -i -e 's:'$SERIAL':SERIAL:g' ${DIR}/scripts/*-tweaks.diff
#Setup Kernel Boot Address
sed -i -e 's:'$ZRELADD':ZRELADD:g' ${DIR}/scripts/*-tweaks.diff
if [ "$SMSC95XX_MOREMEM" ];then if [ "$SMSC95XX_MOREMEM" ];then
sed -i 's/16384/8192/g' ${DIR}/scripts/*.diff sed -i 's/16384/8192/g' ${DIR}/scripts/*.diff
fi fi
@ -1217,18 +1236,21 @@ function check_distro {
if test "-$DISTRO_TYPE-" = "-maverick-" if test "-$DISTRO_TYPE-" = "-maverick-"
then then
DIST=maverick DIST=maverick
unset DI_BROKEN_USE_CROSS
unset IN_VALID_DISTRO unset IN_VALID_DISTRO
fi fi
if test "-$DISTRO_TYPE-" = "-oneiric-" if test "-$DISTRO_TYPE-" = "-oneiric-"
then then
DIST=oneiric DIST=oneiric
unset DI_BROKEN_USE_CROSS
unset IN_VALID_DISTRO unset IN_VALID_DISTRO
fi fi
if test "-$DISTRO_TYPE-" = "-natty-" if test "-$DISTRO_TYPE-" = "-natty-"
then then
DIST=natty DIST=natty
unset DI_BROKEN_USE_CROSS
unset IN_VALID_DISTRO unset IN_VALID_DISTRO
fi fi

@ -3,7 +3,7 @@ new file mode 100755
index 0000000..6d06fc7 index 0000000..6d06fc7
--- /dev/null --- /dev/null
+++ b/usr/lib/finish-install.d/08rcn-omap +++ b/usr/lib/finish-install.d/08rcn-omap
@@ -0,0 +1,44 @@ @@ -0,0 +1,45 @@
+#!/bin/sh -e +#!/bin/sh -e
+cp /etc/e2fsck.conf /target/etc/e2fsck.conf +cp /etc/e2fsck.conf /target/etc/e2fsck.conf
+ +
@ -21,7 +21,6 @@ index 0000000..6d06fc7
+ +
+ #Use the final boot files + #Use the final boot files
+ mv /tmp/mmc/user.scr /tmp/mmc/boot.scr + mv /tmp/mmc/user.scr /tmp/mmc/boot.scr
+ mv /tmp/mmc/uImage.net /tmp/mmc/uImage
+ +
+ mkdir -p /target/boot/uboot + mkdir -p /target/boot/uboot
+ echo "/dev/mmcblk0p1 /boot/uboot auto defaults 0 0" >> /target/etc/fstab + echo "/dev/mmcblk0p1 /boot/uboot auto defaults 0 0" >> /target/etc/fstab
@ -42,6 +41,8 @@ index 0000000..6d06fc7
+ chroot /target update-initramfs -c -k `uname -r` + chroot /target update-initramfs -c -k `uname -r`
+ chroot /target mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uInitrd + chroot /target mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uInitrd
+ cp /target/boot/uInitrd /tmp/mmc/uInitrd + cp /target/boot/uInitrd /tmp/mmc/uInitrd
+ chroot /target mkimage -A arm -O linux -T kernel -C none -a ZRELADD -e ZRELADD -n `uname -r` -d /boot/vmlinuz-`uname -r` /boot/uImage
+ cp /target/boot/uImage /tmp/mmc/uImage
+ umount /target/sys + umount /target/sys
+ +
+ sync + sync

@ -3,7 +3,7 @@ new file mode 100755
index 0000000..6d06fc7 index 0000000..6d06fc7
--- /dev/null --- /dev/null
+++ b/usr/lib/finish-install.d/08rcn-omap +++ b/usr/lib/finish-install.d/08rcn-omap
@@ -0,0 +1,64 @@ @@ -0,0 +1,65 @@
+#!/bin/sh -e +#!/bin/sh -e
+cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf +cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf
+cp /etc/SERIAL.conf /target/etc/init/SERIAL.conf +cp /etc/SERIAL.conf /target/etc/init/SERIAL.conf
@ -46,7 +46,6 @@ index 0000000..6d06fc7
+ +
+ #Use the final boot files + #Use the final boot files
+ mv /tmp/mmc/user.scr /tmp/mmc/boot.scr + mv /tmp/mmc/user.scr /tmp/mmc/boot.scr
+ mv /tmp/mmc/uImage.net /tmp/mmc/uImage
+ +
+ mkdir -p /target/boot/uboot + mkdir -p /target/boot/uboot
+ echo "/dev/mmcblk0p1 /boot/uboot auto defaults 0 0" >> /target/etc/fstab + echo "/dev/mmcblk0p1 /boot/uboot auto defaults 0 0" >> /target/etc/fstab
@ -63,6 +62,8 @@ index 0000000..6d06fc7
+ chroot /target update-initramfs -c -k `uname -r` + chroot /target update-initramfs -c -k `uname -r`
+ chroot /target mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uInitrd + chroot /target mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uInitrd
+ cp /target/boot/uInitrd /tmp/mmc/uInitrd + cp /target/boot/uInitrd /tmp/mmc/uInitrd
+ chroot /target mkimage -A arm -O linux -T kernel -C none -a ZRELADD -e ZRELADD -n `uname -r` -d /boot/vmlinuz-`uname -r` /boot/uImage
+ cp /target/boot/uImage /tmp/mmc/uImage
+ umount /target/sys + umount /target/sys
+ +
+ sync + sync

Loading…
Cancel
Save