diff --git a/mk_mmc.sh b/mk_mmc.sh index 0fd710a..782eb59 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1119,6 +1119,7 @@ function populate_boot { if mount -t vfat ${MMC}${PARTITION_PREFIX}1 ${TEMPDIR}/disk; then mkdir -p ${TEMPDIR}/disk/cus + mkdir -p ${TEMPDIR}/disk/debug if [ "${SPL_BOOT}" ] ; then if [ -f ${TEMPDIR}/dl/${MLO} ]; then cp -v ${TEMPDIR}/dl/${MLO} ${TEMPDIR}/disk/MLO diff --git a/scripts/debian-finish.sh b/scripts/debian-finish.sh index bed0a0f..ffbd41b 100644 --- a/scripts/debian-finish.sh +++ b/scripts/debian-finish.sh @@ -33,3 +33,6 @@ mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initr mkimage -A arm -O linux -T kernel -C none -a ZRELADD -e ZRELADD -n `uname -r` -d /boot/vmlinuz-`uname -r` /boot/uboot/uImage rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true +#Debug: +mount > /boot/uboot/debug/mount.log + diff --git a/scripts/debian-tweaks.diff b/scripts/debian-tweaks.diff index 6d48eb2..091ded2 100644 --- a/scripts/debian-tweaks.diff +++ b/scripts/debian-tweaks.diff @@ -3,7 +3,7 @@ new file mode 100755 index 0000000..6d06fc7 --- /dev/null +++ b/usr/lib/finish-install.d/08rcn-omap -@@ -0,0 +1,30 @@ +@@ -0,0 +1,31 @@ +#!/bin/sh -e +cp /etc/e2fsck.conf /target/etc/e2fsck.conf +cp /etc/finish-install.sh /target/etc/finish-install.sh @@ -28,6 +28,7 @@ index 0000000..6d06fc7 + + mount -o bind /sys /target/sys + chroot /target /bin/bash /etc/finish-install.sh ++ cat /var/log/syslog > /target/boot/uboot/debug/syslog.log + umount /target/sys + + sync diff --git a/scripts/ubuntu-finish.sh b/scripts/ubuntu-finish.sh index 785fb51..8b71730 100644 --- a/scripts/ubuntu-finish.sh +++ b/scripts/ubuntu-finish.sh @@ -71,3 +71,6 @@ mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initr mkimage -A arm -O linux -T kernel -C none -a ZRELADD -e ZRELADD -n `uname -r` -d /boot/vmlinuz-`uname -r` /boot/uboot/uImage rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true +#Debug: +mount > /boot/uboot/debug/mount.log + diff --git a/scripts/ubuntu-tweaks.diff b/scripts/ubuntu-tweaks.diff index 3dd3c67..09f5102 100644 --- a/scripts/ubuntu-tweaks.diff +++ b/scripts/ubuntu-tweaks.diff @@ -3,7 +3,7 @@ new file mode 100755 index 0000000..6d06fc7 --- /dev/null +++ b/usr/lib/finish-install.d/08rcn-omap -@@ -0,0 +1,27 @@ +@@ -0,0 +1,28 @@ +#!/bin/sh -e +cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf +cp /etc/SERIAL.conf /target/etc/init/SERIAL.conf @@ -25,6 +25,7 @@ index 0000000..6d06fc7 + + mount -o bind /sys /target/sys + chroot /target /bin/bash /etc/finish-install.sh ++ cat /var/log/syslog > /target/boot/uboot/debug/syslog.log + umount /target/sys + + sync