debug: log mount and syslog from netinstall to sd card

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 13 years ago
parent 1a33574253
commit ac15a58b38

@ -1119,6 +1119,7 @@ function populate_boot {
if mount -t vfat ${MMC}${PARTITION_PREFIX}1 ${TEMPDIR}/disk; then if mount -t vfat ${MMC}${PARTITION_PREFIX}1 ${TEMPDIR}/disk; then
mkdir -p ${TEMPDIR}/disk/cus mkdir -p ${TEMPDIR}/disk/cus
mkdir -p ${TEMPDIR}/disk/debug
if [ "${SPL_BOOT}" ] ; then if [ "${SPL_BOOT}" ] ; then
if [ -f ${TEMPDIR}/dl/${MLO} ]; then if [ -f ${TEMPDIR}/dl/${MLO} ]; then
cp -v ${TEMPDIR}/dl/${MLO} ${TEMPDIR}/disk/MLO cp -v ${TEMPDIR}/dl/${MLO} ${TEMPDIR}/disk/MLO

@ -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 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 rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true
#Debug:
mount > /boot/uboot/debug/mount.log

@ -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,30 @@ @@ -0,0 +1,31 @@
+#!/bin/sh -e +#!/bin/sh -e
+cp /etc/e2fsck.conf /target/etc/e2fsck.conf +cp /etc/e2fsck.conf /target/etc/e2fsck.conf
+cp /etc/finish-install.sh /target/etc/finish-install.sh +cp /etc/finish-install.sh /target/etc/finish-install.sh
@ -28,6 +28,7 @@ index 0000000..6d06fc7
+ +
+ mount -o bind /sys /target/sys + mount -o bind /sys /target/sys
+ chroot /target /bin/bash /etc/finish-install.sh + chroot /target /bin/bash /etc/finish-install.sh
+ cat /var/log/syslog > /target/boot/uboot/debug/syslog.log
+ umount /target/sys + umount /target/sys
+ +
+ sync + sync

@ -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 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 rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true
#Debug:
mount > /boot/uboot/debug/mount.log

@ -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,27 @@ @@ -0,0 +1,28 @@
+#!/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
@ -25,6 +25,7 @@ index 0000000..6d06fc7
+ +
+ mount -o bind /sys /target/sys + mount -o bind /sys /target/sys
+ chroot /target /bin/bash /etc/finish-install.sh + chroot /target /bin/bash /etc/finish-install.sh
+ cat /var/log/syslog > /target/boot/uboot/debug/syslog.log
+ umount /target/sys + umount /target/sys
+ +
+ sync + sync

Loading…
Cancel
Save