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

"James Conner" <[email protected]>
Newsgroups gmane.comp.handhelds.linux.intimate
Message-ID <[email protected]>
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: [email protected]
[mailto:[email protected]]On Behalf Of Seth Golub
Sent: 04 October 2001 22:25
To: [email protected]
Subject: [Intimate] Re: [Familiar] Familiar 0.5pre + Intimate problem



James Conner <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.