I've cced this to the list (instead of just -admin).

On Mon, 15 Jul 2002, Vincent Ficet wrote:

> Hi,
> 
> I am new to this list, so please accept my apologies if my question has
> been answered in the past :-)
> My problem is the following: I need to build an embedded linux for use
> on an embedded platform, which uses a flash drive, but I can't figure
> out how to install lilo (or any other bootloader) on a blank flash drive
> from the development host (Redhat 7.3, USB works fine, no USB related
> problems on this side). Here is my lilo config file for the embedded
> host (quite standard, nothing fancy):
> 
> ##############################################
> 
> boot=/dev/hdc
> map=/boot/map
> install=/boot/boot.b
> timeout=50
> linear
> default=linux
> 
> serial=0,38400n8
> append="console=tty0 console=ttyS0,38400"
> 
> image=/boot/bzImage
>       label=linux
>       read-only
>       root=/dev/hdc1
> 
> ##############################################
> This config work fine, the embedded host comes up OK on the original
> disk.
> 
> Attempt #1:
> 
> # use a blank flash disk here and stick it in the USB flash adapter:
> mke2fs /dev/sda1
> mount /dev/sda1 /mnt/usb -t ext2
> cp <all_embedded_files> /mnt/usb -a
> lilo -C /root/lilo_usb.conf -r /mnt/usb # where lilo_usb.conf has all
> the settings for my embedded host (the config above)
> The -r option chroot's into the usb flash device and works from there.
> 
> lilo comes back with
> Fatal: open /dev/hdc: Read-only File system
> 
> Fair enough, hdc is on the embedded target and I am running lilo from my
> development host. It seems that the chroot did not quite make it.
> 
> Attempt #2:
> 
> I have the original flash disk (it boots OK), so let's try to get the
> boot sector and write it back on a blank device: 
> 
> from original disk:
> cat /dev/sda1 > flash.img
> 
> to new disk:
> cat flash.img > /dev/sda1
> 
> As far as I know, cat should give me an exact copy of what I need, but
> the embedded host does not boot, which would indicate that the cat
> command did not get the boot sector.
> 
> Attempt #3
> 
> Rewrite lilo.conf to try and write my development host's boot sector
> onto the flash drive (even if not relevant, just try to write the #?!
> thing):
> in /etc/lilo.conf replace 
> boot=/dev/hda
> by 
> boot=/dev/sda
> 
> run lilo
> 
> It still does not give me a lilo prompt on the embedded host.
> 
> Can anyone give me some pointers and tell me how that can be done? Any
> help would be greatly appreciated,
> Thanks,
> 
> Vincent
>  
> 
> 
> 
> 
> 
> AEP Systems
> 
> Bray Business Park,
> Southern Cross Route ,
> Bray, Co Wicklow,
> Ireland
> 
> ********************************************************************
> This email and any files transmitted with it are confidential 
> and intended solely for the use of the individual or entity to
> whom they are addressed. If you have received this email
>  in error please notify the postmaster at the address below.
> 
>      [EMAIL PROTECTED]
> 
> This footnote also confirms that this email message has been
> checked the presence of computer viruses.
> 
> **********************************************************************
> 
> 

-- 
 /------------------------------------+-------------------------\
|Stephen J. Gowdy                     | SLAC, MailStop 34,       |
|http://www.slac.stanford.edu/~gowdy/ | 2575 Sand Hill Road,     |
|http://calendar.yahoo.com/gowdy      | Menlo Park CA 94025, USA |
|EMail: [EMAIL PROTECTED]       | Tel: +1 650 926 3144     |
 \------------------------------------+-------------------------/



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to