public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] grub redboot install on a USB drive under Cygwin
@ 2011-03-04 19:46 Stephen Polkowski
  2011-03-08  2:01 ` [ECOS] " John Dallaway
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Polkowski @ 2011-03-04 19:46 UTC (permalink / raw)
  To: ecos-discuss


Hello,

	I've spent a very frustrating two days trying to
get redboot onto a usb drive.  Fortunately, I having it working
now.  It seems to me that a lot of this time could have
been avoided if the "i386 PC Hardware Setup" section in the
"eCos User Guide" was updated.  It is seriously out of date.

	For example, one of the steps for Floppy Disk Support
is to mount the drive with the following command:

  mount -f -b //./a: /dev/fd0

	The "-b" is no longer supported.  It has been changed
to "-o binary".  So, things like this need to be updated.
More importantly, the GRUB section needs to updated for the
GRUB 2 configuration file "grub.cfg" instead of "menu.lst".
This assumes that most distributions of linux are shipping with
GRUB 2 now.  Cygwin comes with GRUB2.

	I would be interested in updating the
"i386 PC Hardware Setup" section if given the chance.  Here's
a quick run down of my steps to install grub on a usb drive.


Thanks,

Stephen


CYGWIN
======

1) format drive using Windows Explorer

2) mount -f -o binary //./a: /dev/fd0

3) cat /proc/partitions

# find your install drive

major minor  #blocks  name

     8     0 156290904 sda
     8     1    102400 sda1
     8     2 156185600 sda2
     8    16   2008064 sdb
     8    17   2000061 sdb1


4) grub-install --root-directory=/cygdrive/e /dev/sdb
5) cd /cygdrive/e/boot/grub
6) vi grub.cfg

---------------------------------

# Timeout for menu
set timeout=10

# Set default boot entry as Entry 0
set default=0

# Entry 0 - redboot
menuentry "redboot from hd0,1" {
     set root=(hd0,1)
     multiboot /boot/redboot.elf
}

---------------------------------

7) cp redboot.elf /cygdrive/e/boot


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ECOS] Re: grub redboot install on a USB drive under Cygwin
  2011-03-04 19:46 [ECOS] grub redboot install on a USB drive under Cygwin Stephen Polkowski
@ 2011-03-08  2:01 ` John Dallaway
  0 siblings, 0 replies; 2+ messages in thread
From: John Dallaway @ 2011-03-08  2:01 UTC (permalink / raw)
  To: Stephen Polkowski; +Cc: ecos-discuss

Hi Stephen

Thank you for sharing your experiences with installing RedBoot on a USB
mass storage device.

Stephen Polkowski wrote:

>     I've spent a very frustrating two days trying to
> get redboot onto a usb drive.  Fortunately, I having it working
> now.  It seems to me that a lot of this time could have
> been avoided if the "i386 PC Hardware Setup" section in the
> "eCos User Guide" was updated.  It is seriously out of date.

Please raise a bug about this at http://bugs.ecos.sourceware.org

>     I would be interested in updating the
> "i386 PC Hardware Setup" section if given the chance.

You are very welcome to submit a documentation patch. Ideally, the PC
target-specific documentation should be relocated to the i386 PC
platform HAL package (similar to the M5272C3 and SH4-202 target
documentation). However, a patch to the eCos User Guide would certainly
be helpful.

John Dallaway
eCos maintainer
http://www.dallaway.org.uk/john

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-07  8:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-04 19:46 [ECOS] grub redboot install on a USB drive under Cygwin Stephen Polkowski
2011-03-08  2:01 ` [ECOS] " John Dallaway

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).