|
From: Ken W. <kg...@lu...> - 2005-05-17 05:50:22
|
Peter Chubb wrote: >Ken Walker wrote: >Ken> OK, I did this and it failed again: > > >Ken> root@collie:~# mount >Ken> /dev/mtdblock4 on / type jffs2 (rw) >Ken> proc on /proc type proc (rw) >Ken> ramfs on /dev type ramfs (rw) >Ken> tmpfs on /var type tmpfs (rw) >Ken> devpts on /dev/pts type devpts (rw) >Ken> /dev/mmcda on /media/card type ext2 (rw) > ^^^^^^^^^^ Ha! > Your SD card isn't partitioned. /sbin/init expects /dev/mmcda1 not > /dev/mmcda. > > To fix: just edit /sbin/init and replace mmcda1 with mmcda in >the two places it appears, then reboot. > > Tried that. The reboot didn't work. I got the OpenZuaurus logo at the top and a flashing cursor. So I started from scratch, reflashed, took all the same steps again. Before I rebooted, I edited the /sbin/init as suggested. Sorry to say it still failed. Here is the same info as before: root@collie:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtdblock4 14464 13112 1352 91% / tmpfs 31204 60 31144 0% /var /dev/mmcda 241965 150599 78874 66% /media/card root@collie:~# mount /dev/mtdblock4 on / type jffs2 (rw) proc on /proc type proc (rw) ramfs on /dev type ramfs (rw) tmpfs on /var type tmpfs (rw) devpts on /dev/pts type devpts (rw) /dev/mmcda on /media/card type ext2 (rw) root@collie:~# cat /sbin/init #!/bin/sh #Check to see if we are being run to shutdown if [ "$1" = 0 ] || [ "$1" = 6 ] then exec /sbin/init.org "$1" fi # create our menu echo "Choose a boot system:" >> /dev/tty0 echo "i) Internal" >> /dev/tty0 if [ -f /etc/rboot.conf ] then while read LABEL NAME SOURCE IMAGE do if [ -n "$LABEL" ] && [ `expr substr $LABEL 1 1` != "#" ] then echo "$LABEL) $NAME" >> /dev/tty0 fi done < /etc/rboot.conf ; else echo "Config file not found - Booting internal System" >> /dev/tty0 exec /sbin/init.org "$1" fi # read the response and deal with it while [ true ] do read CHOICE < /dev/tty0 if [ "$CHOICE" = 'i' ] then exec /sbin/init.org "$1" fi while read LABEL NAME SOURCE IMAGE do if [ -n "$LABEL" ] && [ `expr substr $LABEL 1 1` != "#" ] && [ "$LABEL" = "$CHOICE" ] then echo "Pivoting Root..." >> /dev/tty0 /sbin/insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/block/sharp_mmcsd_m.o if [ -z "$IMAGE" ] then IMAGE='/dev/mmcda' /bin/mount -o remount,rw / else /bin/mount -t ext2 -o defaults,sync,noatime /dev/mmcda /media/card fi /sbin/losetup /dev/loop0 $IMAGE /bin/mount -t ext2 /dev/loop0 /media/image if [ -f /media/image/sbin/init ] then if(/sbin/pivot_root /media/image /media/image/media/realroot) then echo " Successful" >> /dev/tty0 /bin/mount -t ext2 -o move /media/realroot/media/card /media/card exec /sbin/init $1 fi fi echo " Failed!" >> /dev/tty0 exec /sbin/init.org $1 fi done < /etc/rboot.conf ; echo "Sorry that choice was not found - Try again" >> /dev/tty0 done root@collie:~# |