Russell King - ARM Linux Admin writes:
> David A Rusling writes:
> > OK, enough of this, a request. Does anyone have either a statically
> > linked sh or a combination of sh and libc that is known good? I'm
> > presuming that the root-rpc stuff is good, but I'm beginning to wonder.
>
> The root-rpc stuff is good, and most of the stuff on the first disk is
> statically linked. You may want to try getting the disk image up and
> running as is - both the 'init' and the first level installer are both
> statically linked.
3 experiments I've performed to get a system (doing something -
'working' would be an exageration):
[I had a lot of problems before I enabled Math Emulation in General Setup
(CONFIG_NWFPE=y) so this may be essential.]
1. --------
A collegue pointed me to the Brutus distribution
(Get the Brutus distribution from
http://www.research.digital.com/wrl/itsy/linux/linux-brutus.html)
In here you'll find a root disk image that almost works; until
I enabled MATH emulation in my kernel to fix what I thought
was FP bug in some programs - with Math enabled everything
stopped working.
2. ----------
I've managed to boot root-rpc-1999.01.21 with supplemental-1999.01.21
over NFS with a 2.2.1-rmk4 kernel on an EBSA board (with 21285 console
and a dec tulip card). Here's what I did:
unpack root-rpc using loopfs and copy it (use tar) to /tftpboot/<TARGET_IP>
next create /tftpboot/<TARGET_IP>/tmp/instimage/
and unpack supplemental into it. Then in /tftpboot/<TARGET_IP>/dev
(BTW, I export /tftpboot/<TARGET_IP> with link_relative)
mknod syscons c 5 1
ln -s syscons console
cd /tftpboot/<TARGET_IP>/bin
mv sh sh-
ln -s ../usr/bin/sh .
This should allow you to boot. I have not managed to make this run
RedHat install successfully (/bin/init) [I will post a follow up about
this..]
3. ---------- <The Big One>
(suggested to me by Dave Baukus)
Get the following from rawhide.redhat.com/armv4l/RedHat/RPMS/ (or a mirror)
(note I pulled a lot of this crap because I want to fix login)
MAKEDEV-2.3.1-8.noarch.rpm libtermcap-2.0.8-12.armv4l.rpm
SysVinit-2.74-6.armv4l.rpm libtiff-3.4-5.armv4l.rpm
basesystem-6.0-1.noarch.rpm mgetty-1.1.14-6.armv4l.rpm
bash-2.02.1-4.armv4l.rpm mingetty-0.9.4-9.armv4l.rpm
bdflush-1.5-9.armv4l.rpm mktemp-1.4-4.armv4l.rpm
chkconfig-0.9.6-4.armv4l.rpm modutils-2.1.121-3.armv4l.rpm
cracklib-2.7-3.armv4l.rpm mount-2.9-1.armv4l.rpm
cracklib-dicts-2.7-3.armv4l.rpm ncurses-4.2-11.armv4l.rpm
e2fsprogs-1.14-1.armv4l.rpm net-tools-1.50-1.armv4l.rpm
filesystem-1.3.4-3.noarch.rpm newt-0.40-2.armv4l.rpm
fileutils-3.16-11.armv4l.rpm pam-0.65-3.armv4l.rpm
getty_ps-2.0.7j-5.armv4l.rpm passwd-0.50-12.armv4l.rpm
glibc-2.1-0.990204.armv4l.rpm pwdb-0.56-1.armv4l.rpm
glibc-devel-2.1-0.990204.armv4l.rpm rpm-2.91-5.armv4l.rpm
grep-2.2-2.armv4l.rpm setup-1.9.2-3.noarch.rpm
info-3.12-10.armv4l.rpm sh-utils-1.16-15.armv4l.rpm
initscripts-3.84-2.armv4l.rpm slang-1.2.2-3.armv4l.rpm
kbdconfig-1.8.3-5.armv4l.rpm tcsh-6.08.00-2.armv4l.rpm
ldconfig-1.9.5-9.armv4l.rpm termcap-9.12.6-12.noarch.rpm
libgr-2.0.13-14.armv4l.rpm util-linux-2.9-8.armv4l.rpm
libgr-progs-2.0.13-14.armv4l.rpm zlib-1.1.3-3.armv4l.rpm
libpng-1.0.1-6.armv4l.rpm
rpm -i --nodeps --root /tftpboot/<TARGET_IP> *.rpm
This will fail to run /sbin/ldconfig - I fix this with the following:
cp /sbin/ldconfig /tftpboot/<TARGET_IP>
chroot /tftpboot/<TARGET_IP> /ldconfig
rm /tftpboot/<TARGET_IP>/ldconfig
Note that I am running the ***x86*** ldconfig here!
create the syscons/console (see #2) and then boot the kernel
with -b (this is essential as mingetty/login is broken) This
should boot single user.
Andrew
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]