Hello David,
my experience with chrooting lilo dates back at least 4 years, but what
I found was:
(1) the Lilo versions on mounting fs and mounted fs must match. More
precisely: if the map file isn't of the same version as the binary
things will fail.
(2) chrooting is a very buggy affair - or at least used to be - because
you are running one system in the environment (/proc etc.) of another,
with all complexities involved.
I recently found this:
lilo --rbind /dev /mountpoint/dev
The 'bind' option passed to mount(8) here has apparently been around
since linux 2.4. From the manpage:
"--bind Remount a subtree somewhere else (so that its contents
are available in both places)."
Which means that binaries running on the mounted fs will at least be
using the "real" device files on the mounting system.
(3) I'm not very sure about all the ins and outs of this one, but I
remember always having trouble when installing lilo from another drive,
and especially onto a secondary HD. On my test PC this was impossible
because the BIOS refused to write to IDE1's MBR. But that would depend
on the BIOS used - lilo doesn't mind, I think, and I don't know how the
Soekris comBIOS handles that. As far as I can remember, booting off the
secondary HD (from floppy/CD), and installing Lilo onto the primary
disk, offered a higher chance of success.
Advice: set up a TFTP boot server, if only as an emergency backup, and
install directly onto the Soekris from the NFS partition. This will save
you a lot of trouble, and you will at some point in the future be really
happy to have one;). Look here for a well-maintained Debian NFS root,
optimized for Soekris: http://www.cheapnet.net/~mike/soekris/ . And
forget about all that has to do with installing an OS onto a CF card
from a second host or drive.
OpenBSD has a "bsd.rd", a kernel with builtin ramdisk, which can be
served from a TFTP boot server without running NFS, which makes
installing OpenBSD onto e.g. a Soekris box incredibly easy. I don't know
if something similar exists for Linux, but it may be worth looking for.
Or better even: make the "operational conversion".
Having said all this, you could still be having a comBIOS and/or
master-slave problem rather than a Linux/CF one. I've seen quite a lot
of M/S problems with CF cards passing this list lately, maybe take a
look in the archives if you haven't already.
Bill
On Mon, 2007-05-14 at 12:40 -0700, David Cohen wrote:
> Hi group,
>
> I have a net4501-60 that I have installed Slackware 11 with a 2.6.20
> kernel, using a 4GB laptop drive. I want to duplicate this to a 2GB
> CF card. I'm using about 1.2G of drive space currently. I've been
> unable to make the soekris boot on CF.
>
> On CF, I set up 1st partition as swap (256MB), then 2nd as ext2. With
> CF mounted as hdb2, I ran "lilo -r /mnt/hdb2 -C /etc/lilo.conf". That
> was supposed to take care of the boot sector. Then I copied the
> files over from HD to CF from toplevel of HD root using cp -a
> (direrctory), one at a time . After that, I set flash=primary from
> soekris BIOS. When I try to boot, I get kicked back to the BIOS menu,
> BIOS say "no boot device available". Boots fine from HD after I set
> flash=secondary.
>
> Can anyone offer advice? Thanks for your time.
> Dave
>
>
> Best Regards,
> Dave Cohen
> [EMAIL PROTECTED]
>
>
> ______________________________________________________________________
> Yahoo! oneSearch: Finally, mobile search that gives answers, not web
> links.
> _______________________________________________
> Soekris-tech mailing list
> [email protected]
> http://lists.soekris.com/mailman/listinfo/soekris-tech
--
"Fix bugs first, add features later"
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech