RE: Re: [Familiar] Familiar 0.5pre + Intimate problem

From: James Conner <jim.a.t.secret.org.uk>
Date: Fri Oct 05 2001 - 22:49:21 EDT

Give this a try.. works for me...

Seems we now need to load h3600_generic_sleeve instead of h3600-sleeve....
(Whatever :)

Jim/Tangent.

#!/bin/sh
export PATH=/bin:/sbin

echo "Mounting /proc"
mount -n /proc
mount /mnt/ramfs
mkdir /mnt/ramfs/tmp
chmod +t /mnt/ramfs/tmp
mkdir -p /mnt/ramfs/var/log/ksymoops
mkdir /mnt/ramfs/var/run
mkdir -p /mnt/ramfs/var/lib/pcmcia
touch /var/run/pcmcia-scheme
KERNEL_VERSION=`uname -r`
        depmod -a
        modprobe h3600_generic_sleeve
        modprobe pcmcia_core
        modprobe ds
        cardmgr -q -o -c /etc/pcmcia

if [ -b /dev/hda1 ]
then
# insmod -f /root/blkmtd-arm.o device=/dev/hda
# mount -n -t jffs2 /dev/mtdblock/4 /mnt/hda1
        mount -n -t reiserfs /dev/hda1 /mnt/hda1
        if [ $? -eq 0 -a -x /mnt/hda1/sbin/init ]
        then
                echo "Booting intimate from microdrive..."
                mount -n -t devfs none /mnt/hda1/dev
                pivot_root /mnt/hda1 /mnt/hda1/boot
                cd /
                exec /sbin/init
        else
                umount /mnt/hda1 >/dev/null 2>&1
        fi
else
        echo "Searching for intimate distribution over ethernet..."
        mount /mnt/nfs
        if [ $? -eq 0 -a -x /mnt/nfs/sbin/init ]
        then
                mount -n -t devfs none /mnt/nfs/dev
                echo "Booting intimate from nfs..."
                pivot_root /mnt/nfs /mnt/nfs/boot
                cd /
                exec /sbin/init
        else
                rmmod nfs >/dev/null 2>&1
                rmmod pcnet_cs >/dev/null 2>&1
                rmmod lockd >/dev/null 2>&1
                rmmod 8390 >/dev/null 2>&1
        fi
        rmmod ds >/dev/null 2>&1
        rmmod sa1100_cs >/dev/null 2>&1
        rmmod pcmcia_core >/dev/null 2>&1
fi

echo "Loading floating point emulator..."
/sbin/insmod nwfpe

echo "Loading Unix socket support"
/sbin/insmod unix

echo "Setting up RAMFS, please wait... "
tar xfpz .ramfs.tar.gz -C /mnt/ramfs > /dev/null 2>&1

if [ ! -s /etc/inittab ]
then
    echo "You are attemping to boot an incomplete system, starting a
shell..."
    mkdir /mnt/ramfs/tmp
    cd /tmp
    exec /bin/sh
fi

echo "Setting Date/Time from previous settings"
/bin/date -s "`/bin/cat /etc/lastdate`"

echo "Executing /sbin/init..."
exec /sbin/init

-----Original Message-----
From: intimate-admin@handhelds.org
[mailto:intimate-admin@handhelds.org]On Behalf Of Seth Golub
Sent: 04 October 2001 22:25
To: intimate@handhelds.org
Subject: [Intimate] Re: [Familiar] Familiar 0.5pre + Intimate problem

James Conner <jim@secret.org.uk> wrote:

> We have to do the pivot_root before we start init, or we have
> multiple processes running with locks on the old root filesystem,
> and are unable to unmount it

You're right. I was thinking in terms of paths, but any open handles
will cause problems. We will need to get the PCMCIA handlers up
before init gets run.

_______________________________________________
Intimate mailing list
Intimate@handhelds.org
http://handhelds.org/mailman/listinfo/intimate
Received on Fri Oct 5 18:47:55 2001

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:42:39 EDT