This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PC target -- How to build the GDB stub Floppy ?


"Rosimildo daSilva" <rosimildo@hotmail.com> writes:

> Hi,
> 
> I have compiled the toolset for i386-elf, ecos 1.3.1, and
> I've built properly the PC target. My host is CygWin.
> 
> I need to create a floppy to *boot* and check things out.
> 
> Questions:
> 
> 1. How do I create a floppy with GDB stubs ?
> 
> 2. Which boot loader this floppy uses ? Can I use Grub, etherboot ?
> Is it the file format compatible with a multi-bootloader such as
> grub ?
> 

The resulting file, install/bin/gdb_module.bin, can simply be written
onto a floppy starting at sector zero. It boots itself into RAM and
does not use a boot loader.

To write it on to the floppy use either dd, which is supplied with
cygwin, or rawrite.exe, which you can pick up from many places on the
net, including ftp://ftp.redhat.com/pub/redhat/current/i386/dosutils.

You can see that it is running if it prints some characters on the
display (this is actually a copy of what it is sending down com1 and
is the GDB remote protocol).

Hope this helps...

-- 
Nick Garnett
Cygnus Solutions, a Red Hat Company
Cambridge, UK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]