Article View: comp.os.linux.embedded
Article #3Re: Booting from compact flash (a question of LILO)
From: Anders Larsen
Date: Tue, 28 Aug 2001 07:52
Date: Tue, 28 Aug 2001 07:52
54 lines
2961 bytes
2961 bytes
On Mon, 27 Aug 2001 14:16:07 +0200, "Religious Sect"
<dontspamthe.templeofcaring@optushome.com.au> wrote:
> I'm trying to boot from a compact flash card which is connected to my
> standard IDE controller (with a IDE to CF converter). But I'm not
> having much luck.
>
> I currently boot from a standard harddrive (hda). Meanwhile the CF
> card is connected as hdc. Everything works sweet. I can mount hdc1
> and hdc2 and everyone is happy.
>
> So I run:
> lilo -C lilo.flash
> cp /boot/* /mnt/flash/boot/
Don't do that!
lilo writes absolute disk addresses to the map file; these would
refer to /dev/hda in your case (since that's where /boot is located).
Step 1: cp -pv /boot/* /mnt/flash/boot/
Step 2: lilo -C lilo.flash -r /mnt/flash/
This will tell lilo to locate the boot-image on /mnt/flash/boot/
and write the map to /mnt/flash/boot/map
(you might have to copy lilo.flash to /mnt/flash/etc/lilo.flash
to get the above command to work)
> lilo.flash:
> --------------------------------
> boot=/dev/hdc
> map=/boot/map
> install=/boot/boot.b
> prompt
> timeout=50
> linear
> read-only
> root=/dev/hdc2
> image=/boot/vmlinuz-2.2.18
> --------------------------------
>
> Which should install MBR and booting stuff on the CF card.
Well, when you boot from CF, I guess your CF will be /dev/hda,
so "root=/dev/hda2" might do wonders, too.
("boot=/dev/hdc" tells lilo where to *write* the boot info,
so don't change that).
HTH
cheers
Anders
--
"In theory there is no difference between theory and practice.
In practice there is." - Yogi Berra
Technical Details
Message-ID:
<pan.2001.08.28.09.52.16.151.6999@identecsolutions.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!proxy1.identecsolutions.de!not-for-mailReferences:
<bSqi7.23401$A5.71980@news1.eburwd1.vic.optushome.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fff06,106a0a3918663612 X-Google-Attributes: gidfff06,public X-Google-Thread: 102983,2bac29b80736099f X-Google-Attributes: gid102983,public X-Google-ArrivalTime: 2001-08-28 01:05:09 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!proxy1.identecsolutions.de!not-for-mail From: "Anders Larsen" <a.larsen@identecsolutions.de> Newsgroups: comp.os.linux.embedded,aus.computers.linux Subject: Re: Booting from compact flash (a question of LILO) Date: Tue, 28 Aug 2001 09:52:20 +0200 Organization: Identec Solutions Deutschland GmbH Lines: 54 Message-ID: <pan.2001.08.28.09.52.16.151.6999@identecsolutions.de> References: <bSqi7.23401$A5.71980@news1.eburwd1.vic.optushome.com.au> NNTP-Posting-Host: pc-anders.identecsolutions.de Mime-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-Trace: proxy1.identecsolutions.de 998985162 29642 192.168.93.53 (28 Aug 2001 07:52:42 GMT) X-Complaints-To: newsmaster@identecsolutions.de NNTP-Posting-Date: 28 Aug 2001 07:52:42 GMT User-Agent: Pan/0.10.0 (Unix) X-Comment-To: "Religious Sect" <dontspamthe.templeofcaring@optushome.com.au> X-No-Productlinks: Yes