[Peeweelinux] Compact Flash newbie

Adi Linden [email protected]
Tue, 30 Apr 2002 09:00:40 -0500 (CDT)


Hi,

The lilo thing is a bit confusing. Because lilo.conf is as much relevant 
during install as it is at runtime, it has to reference both /dev/hda and 
/dev/sda. A USB reader attached CompactFlash card appears to the system as 
/dev/sda. That's why there are all the references to /dev/sda. If you 
change those to /dev/hda the installation of lilo on flash fails. Instead 
it would install lilo on you physical /dev/hda HDD, breaking your running 
system.

>   bios=0x80
>   heads=4
>   sectors=32
>   cylinders=490

This tells lilo to boot off the first HDD it finds when actually booting 
the embedded system on the target platform. 

>From your earlier post I assume that lilo is functioning correctly. It 
does find the root filesystem and dies after mounting the root filesystem.

Can you mount /dev/sda1 on your development system and see if there 
actually is a /sbin/init? It looks to me like you're missing something in 
your filesystem.

Adi



On Mon, 29 Apr 2002 [email protected] wrote:

> > Hi,
> >
> > Do you have "/sbin/init" in your filesystem? Have you tried using the
> > "minimal" project, it should be already to go and get you to a login
> > and  shell prompt.
> >
> > Adi
> >
> [snipped but on the thread]
> 
> 
> Hi,
> Thanks fof the reply.
> 
> I do have /sbin/init when I extract the project to the development system's
> drive.
> I did notice that when I extract it and look in /etc/lilo.conf it shows that
> it wants to boot /dev/sda
> which it the device I'm creating PWL on but then when I move the CF card to
> the other PC
> it is supposed to boot as /dev/hda.  Am I on the right track?
> Making changes in the 'Target Hardware' section causes PWL not to build if I
> change 'Target Device' to /dev/hda.  I'll post the lilo.conf from the
> ..mnt/etc/lilo.conf and below that the results of the successfull build.
> 
> Thank you
> 
> Kevin B.
> 
> ---------------------------------------------
> 
> disk=/dev/sda    <<<----  sda
>   bios=0x80
>   heads=4
>   sectors=32
>   cylinders=490
> 
> boot=/dev/sda    <<<---sda
> map=/boot/map
> install=/boot/boot.b
> compact
> prompt
> timeout=20
> default=linux
> 
> image=/boot/bzImage
>         label=linux
>         read-only
>         root=/dev/hda1   <<<---HDA!
>         vga=0x317
> -------------------------------------------------------