public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Redboot (i386pc with IDE Flash)
@ 2004-08-10 20:54 bhanuprakash kandimalla
  2004-08-11  8:47 ` Nick Garnett
  0 siblings, 1 reply; 7+ messages in thread
From: bhanuprakash kandimalla @ 2004-08-10 20:54 UTC (permalink / raw)
  To: ecos-discuss

Hello:
I am working on i386pc. I am succesful in building a
redboot(floppy) and the pc is able to bootup. The
i386pc system has a IDE Flash disk. I am able to build
ecos libraries and able to use fat file system on this
IDE Flash disk. My plan is to put a redboot image on
the IDE Flash disk so that the PC boots from this IDE
flash disk instead of a floppy. I am insearch of
finding solutions for the following:
1. I hope redboot(ROM) or redboot(ROM_RAM) will be
needed. Am I right?
2. If I can put the redboot(ROM).bin or
redboot(ROM_RAM).bin on the IDE Flash Disk and set the
pc BIOS to boot from IDE , will the pc boots up with
the .bin file? or what file or type of file is pc
looking for booting?
Any suggestions are greatly appreciated.
Thanks a lot,
Bhanu.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
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] 7+ messages in thread

* Re: [ECOS] Redboot (i386pc with IDE Flash)
  2004-08-10 20:54 [ECOS] Redboot (i386pc with IDE Flash) bhanuprakash kandimalla
@ 2004-08-11  8:47 ` Nick Garnett
  2004-08-12  3:18   ` David Brennan
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Garnett @ 2004-08-11  8:47 UTC (permalink / raw)
  To: bhanuprakash kandimalla; +Cc: ecos-discuss

bhanuprakash kandimalla <kbhanu@yahoo.com> writes:

> Hello:
> I am working on i386pc. I am succesful in building a
> redboot(floppy) and the pc is able to bootup. The
> i386pc system has a IDE Flash disk. I am able to build
> ecos libraries and able to use fat file system on this
> IDE Flash disk. My plan is to put a redboot image on
> the IDE Flash disk so that the PC boots from this IDE
> flash disk instead of a floppy. I am insearch of
> finding solutions for the following:
> 1. I hope redboot(ROM) or redboot(ROM_RAM) will be
> needed. Am I right?

No, as the names of these configurations imply, these are intended for
booting from ROM, not disk.


> 2. If I can put the redboot(ROM).bin or
> redboot(ROM_RAM).bin on the IDE Flash Disk and set the
> pc BIOS to boot from IDE , will the pc boots up with
> the .bin file? or what file or type of file is pc
> looking for booting?
> Any suggestions are greatly appreciated.

For booting from IDE disk you should use the GRUB support. Read the
documentation at:

http://ecos.sourceware.org/docs-latest/user-guide/setup-i386-pc.html

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
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] 7+ messages in thread

* Re: [ECOS] Redboot (i386pc with IDE Flash)
  2004-08-11  8:47 ` Nick Garnett
@ 2004-08-12  3:18   ` David Brennan
  2004-08-12 10:25     ` Nick Garnett
  0 siblings, 1 reply; 7+ messages in thread
From: David Brennan @ 2004-08-12  3:18 UTC (permalink / raw)
  To: ecos-discuss; +Cc: Nick Garnett

Nick,
Can you easily summarize why redboot does not work with GRUB? This is a 
feature that I am going to be looking for in the near future. Is it just 
something that no one has tackled? Or is it impossible for some reason? 
I am working on a VME based PC and have several available target 
machines, but only one floppy. So I want to be able to boot off of CF 
and still load/debug using Ethernet. If this is possible but just needs 
work, can you give me some pointers as to what needs to be done?

Thanks
David Brennan

Nick Garnett wrote:

>bhanuprakash kandimalla <kbhanu@yahoo.com> writes:
>
>  
>
>>Hello:
>>I am working on i386pc. I am succesful in building a
>>redboot(floppy) and the pc is able to bootup. The
>>i386pc system has a IDE Flash disk. I am able to build
>>ecos libraries and able to use fat file system on this
>>IDE Flash disk. My plan is to put a redboot image on
>>the IDE Flash disk so that the PC boots from this IDE
>>flash disk instead of a floppy. I am insearch of
>>finding solutions for the following:
>>1. I hope redboot(ROM) or redboot(ROM_RAM) will be
>>needed. Am I right?
>>    
>>
>
>No, as the names of these configurations imply, these are intended for
>booting from ROM, not disk.
>
>
>  
>
>>2. If I can put the redboot(ROM).bin or
>>redboot(ROM_RAM).bin on the IDE Flash Disk and set the
>>pc BIOS to boot from IDE , will the pc boots up with
>>the .bin file? or what file or type of file is pc
>>looking for booting?
>>Any suggestions are greatly appreciated.
>>    
>>
>
>For booting from IDE disk you should use the GRUB support. Read the
>documentation at:
>
>http://ecos.sourceware.org/docs-latest/user-guide/setup-i386-pc.html
>
>  
>

-- 
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] 7+ messages in thread

* Re: [ECOS] Redboot (i386pc with IDE Flash)
  2004-08-12  3:18   ` David Brennan
@ 2004-08-12 10:25     ` Nick Garnett
  2004-08-12 13:09       ` David Brennan
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Garnett @ 2004-08-12 10:25 UTC (permalink / raw)
  To: David Brennan; +Cc: ecos-discuss

David Brennan <eCos@brennanhome.com> writes:

> Nick,
> Can you easily summarize why redboot does not work with GRUB? This is
> a feature that I am going to be looking for in the near future. Is it
> just something that no one has tackled? Or is it impossible for some
> reason? I am working on a VME based PC and have several available
> target machines, but only one floppy. So I want to be able to boot off
> of CF and still load/debug using Ethernet. If this is possible but
> just needs work, can you give me some pointers as to what needs to be
> done?
> 

RAM applications load at the 1MB boundary, so RedBoot needs to live in
the bottom 640k. However, GRUB also uses the bottom 640k, so we would
need to load a GRUB RedBoot above the 1MB boundary. This means that we
would then have to shuffle RAM applications up, probably to 2MB. This
causes an incompatibility, and also means that when not using a GRUB
RedBoot, we waste a megabyte of memory.

We also end up with the silly situation of using a bootloader to load
a bootloader to load the application. It was thought much better to go
straight to the application from GRUB. RedBoot on the PC has much less
functionality than elsewhere since there is no flash. All it can
provide is loading an application from the network, and GDB
support. GRUB can load from the network, and by building the stubs
into the application we get GDB support. So RedBoot is largely
redundant, and no effort has been put into making it work.


-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
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] 7+ messages in thread

* Re: [ECOS] Redboot (i386pc with IDE Flash)
  2004-08-12 10:25     ` Nick Garnett
@ 2004-08-12 13:09       ` David Brennan
  2004-08-12 13:36         ` Nick Garnett
  0 siblings, 1 reply; 7+ messages in thread
From: David Brennan @ 2004-08-12 13:09 UTC (permalink / raw)
  To: Nick Garnett; +Cc: ecos-discuss

Ram size would not be a typical concern in a PC target (I think). We are 
running with 256M of RAM, and probably using less that 64M of that. So 
I'd be willing to try and juggle the memory, if you could point me in 
the correct direction.
Yes, I can load an application with GRUB off the network, but it is not 
as convenient as with GDB. (Need to set up TFTP/FTP server? GRUB 
documentation was not clear on what (ND) was supported when I scanned 
it). But debugging serial would be a real pain. (And one of our apps 
will be using both available serial ports on the board for IO, so in 
that case it will not be feasible.)

Thanks
David Brennan

Nick Garnett wrote:

>David Brennan <eCos@brennanhome.com> writes:
>
>  
>
>>Nick,
>>Can you easily summarize why redboot does not work with GRUB? This is
>>a feature that I am going to be looking for in the near future. Is it
>>just something that no one has tackled? Or is it impossible for some
>>reason? I am working on a VME based PC and have several available
>>target machines, but only one floppy. So I want to be able to boot off
>>of CF and still load/debug using Ethernet. If this is possible but
>>just needs work, can you give me some pointers as to what needs to be
>>done?
>>
>>    
>>
>
>RAM applications load at the 1MB boundary, so RedBoot needs to live in
>the bottom 640k. However, GRUB also uses the bottom 640k, so we would
>need to load a GRUB RedBoot above the 1MB boundary. This means that we
>would then have to shuffle RAM applications up, probably to 2MB. This
>causes an incompatibility, and also means that when not using a GRUB
>RedBoot, we waste a megabyte of memory.
>
>We also end up with the silly situation of using a bootloader to load
>a bootloader to load the application. It was thought much better to go
>straight to the application from GRUB. RedBoot on the PC has much less
>functionality than elsewhere since there is no flash. All it can
>provide is loading an application from the network, and GDB
>support. GRUB can load from the network, and by building the stubs
>into the application we get GDB support. So RedBoot is largely
>redundant, and no effort has been put into making it work.
>
>
>  
>

-- 
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] 7+ messages in thread

* Re: [ECOS] Redboot (i386pc with IDE Flash)
  2004-08-12 13:09       ` David Brennan
@ 2004-08-12 13:36         ` Nick Garnett
  2004-08-15  0:43           ` David Brennan
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Garnett @ 2004-08-12 13:36 UTC (permalink / raw)
  To: David Brennan; +Cc: ecos-discuss

David Brennan <david@brennanhome.com> writes:

> Ram size would not be a typical concern in a PC target (I think). We
> are running with 256M of RAM, and probably using less that 64M of
> that. So I'd be willing to try and juggle the memory, if you could
> point me in the correct direction.

You need to juggle the base address for RAM startup in the mlt
files. You also need to create a redboot_GRUB.ecm file -- copy the
FLOPPY one and edit it. In theory Redboot should then just work --
although I cannot guarantee it, you'll just have to try it and see.


> Yes, I can load an application with GRUB off the network, but it is
> not as convenient as with GDB. (Need to set up TFTP/FTP server? GRUB
> documentation was not clear on what (ND) was supported when I scanned
> it). But debugging serial would be a real pain.

The only real pain in debugging via serial is downloading the
executable. But if you have downloaded via the network, then the
actual interactive debugging over the serial line consists of
relatively light traffic. And you can always put it up to 115200 baud.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
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] 7+ messages in thread

* Re: [ECOS] Redboot (i386pc with IDE Flash)
  2004-08-12 13:36         ` Nick Garnett
@ 2004-08-15  0:43           ` David Brennan
  0 siblings, 0 replies; 7+ messages in thread
From: David Brennan @ 2004-08-15  0:43 UTC (permalink / raw)
  To: Nick Garnett; +Cc: ecos-discuss

Well, I tried it and it seems to work fine for me. I submitted a patch.

http://ecos.sourceware.org/ml/ecos-patches/2004-08/msg00031.html

Thanks for the help
David Brennan

Nick Garnett wrote:

>David Brennan <david@brennanhome.com> writes:
>
>  
>
>>Ram size would not be a typical concern in a PC target (I think). We
>>are running with 256M of RAM, and probably using less that 64M of
>>that. So I'd be willing to try and juggle the memory, if you could
>>point me in the correct direction.
>>    
>>
>
>You need to juggle the base address for RAM startup in the mlt
>files. You also need to create a redboot_GRUB.ecm file -- copy the
>FLOPPY one and edit it. In theory Redboot should then just work --
>although I cannot guarantee it, you'll just have to try it and see.
>
>
>  
>
>>Yes, I can load an application with GRUB off the network, but it is
>>not as convenient as with GDB. (Need to set up TFTP/FTP server? GRUB
>>documentation was not clear on what (ND) was supported when I scanned
>>it). But debugging serial would be a real pain.
>>    
>>
>
>The only real pain in debugging via serial is downloading the
>executable. But if you have downloaded via the network, then the
>actual interactive debugging over the serial line consists of
>relatively light traffic. And you can always put it up to 115200 baud.
>
>  
>

-- 
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] 7+ messages in thread

end of thread, other threads:[~2004-08-15  0:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-10 20:54 [ECOS] Redboot (i386pc with IDE Flash) bhanuprakash kandimalla
2004-08-11  8:47 ` Nick Garnett
2004-08-12  3:18   ` David Brennan
2004-08-12 10:25     ` Nick Garnett
2004-08-12 13:09       ` David Brennan
2004-08-12 13:36         ` Nick Garnett
2004-08-15  0:43           ` David Brennan

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).