public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] PC boot image for 720k FDD
@ 2000-07-18  0:17 Vlastimil Masek
  2000-07-18  7:19 ` Bart Veer
  0 siblings, 1 reply; 4+ messages in thread
From: Vlastimil Masek @ 2000-07-18  0:17 UTC (permalink / raw)
  To: ecos-discuss

Hi!
Is there any way to make PC boot image for 720kB FDD. The current floppy disk boot code "gdb_module.bin" seems to be hard-coded only for 1.44M floppies.

Thank you

Vlastimil

Vlastimil Masek
ABB Corporate Research Dept. R
Systems Engineering: Mechatronics&SW Systems
SE-721 78 Vasteras, Sweden
Tel: +46 (0)21 345159
Fax: +46 (0)21 345108
vlastimil.masek@secrc.abb.se
(vlastimil.masek@se.abb.com)
_______________________________________________________________________

$1 million in prizes! 20 daily instant winners. 
AltaVista Rewards: Click here to win! 
http://shopping.altavista.com/e.sdc?e=3

_______________________________________________________________________

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

* Re: [ECOS] PC boot image for 720k FDD
  2000-07-18  0:17 [ECOS] PC boot image for 720k FDD Vlastimil Masek
@ 2000-07-18  7:19 ` Bart Veer
  2000-07-18  8:08   ` Patrick O'Grady
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Veer @ 2000-07-18  7:19 UTC (permalink / raw)
  To: rur; +Cc: ecos-discuss

>>>>> "Vlastimil" == Vlastimil Masek <rur@altavista.com> writes:

    Vlastimil> Is there any way to make PC boot image for 720kB FDD.
    Vlastimil> The current floppy disk boot code "gdb_module.bin"
    Vlastimil> seems to be hard-coded only for 1.44M floppies.

I suspect that none of the developers of the i386 PC support had
access to a machine that still used a 720K floppy drive.

After a very quick glance through the source code, it looks like
most/all of the relevant code lives in the hal_cpu_init macro in
hal/i386/pc/<version>/include/platform.inc. To add support for 720K
floppies you would want to add a configuration option, and then modify
this initialization macro to cope with different types of floppy
drive.

Bart Veer // eCos net maintainer

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

* Re: [ECOS] PC boot image for 720k FDD
  2000-07-18  7:19 ` Bart Veer
@ 2000-07-18  8:08   ` Patrick O'Grady
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick O'Grady @ 2000-07-18  8:08 UTC (permalink / raw)
  To: ecos-discuss

Most OSs actually write the diskette geometry onto the first sector of the
disk.  hmm... yes, here's how MS/DOS does it:
http://support.microsoft.com/support/kb/articles/Q140/4/18.asp .  Check out
the FAT boot sector section...  you can see that the diskette geometry is
stored there.  Seems like it shouldn't be too hard to add this little
structure to the beginning of the .bin file, and have the code itself use
these parameters to determine how to read the rest of the file.  Those
parameters could be controlled thru configuration or patched before
writing to the floppy...  (Would love to do this myself, but I *still*
can't compile eCos on my BSD system..)  Hope this helps...

-patrick



On Tue, 18 Jul 2000, Bart Veer wrote:

> >>>>> "Vlastimil" == Vlastimil Masek <rur@altavista.com> writes:
> 
>     Vlastimil> Is there any way to make PC boot image for 720kB FDD.
>     Vlastimil> The current floppy disk boot code "gdb_module.bin"
>     Vlastimil> seems to be hard-coded only for 1.44M floppies.
> 
> I suspect that none of the developers of the i386 PC support had
> access to a machine that still used a 720K floppy drive.
> 
> After a very quick glance through the source code, it looks like
> most/all of the relevant code lives in the hal_cpu_init macro in
> hal/i386/pc/<version>/include/platform.inc. To add support for 720K
> floppies you would want to add a configuration option, and then modify
> this initialization macro to cope with different types of floppy
> drive.
> 
> Bart Veer // eCos net maintainer
> 

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

* Re: [ECOS] PC boot image for 720k FDD
@ 2000-07-19  3:57 Vlastimil Masek
  0 siblings, 0 replies; 4+ messages in thread
From: Vlastimil Masek @ 2000-07-19  3:57 UTC (permalink / raw)
  To: bartv, patrick; +Cc: ecos-discuss

Thank you all very much for the advises! My problem was solved by changing 	"sectorsPerTrack = 9 /*18*/"  in "../hal/i386/pc/<version>/include/platform.inc". 

The need for 720K FDD support is due to I am using Japanese PC (Toshiba Dynabook 386/20 J-3100) that has 1.2M FDD. This FDD, however, can also read 720K floppies that can be easily produced on majority of available PCs.

Thanks a lot again!

Vlastimil 


On Tue, 18 July 2000, Bart Veer wrote:

> 
> >>>>> "Vlastimil" == Vlastimil Masek <rur@altavista.com> writes:
> 
>     Vlastimil> Is there any way to make PC boot image for 720kB FDD.
>     Vlastimil> The current floppy disk boot code "gdb_module.bin"
>     Vlastimil> seems to be hard-coded only for 1.44M floppies.
> 
> I suspect that none of the developers of the i386 PC support had
> access to a machine that still used a 720K floppy drive.
> 
> After a very quick glance through the source code, it looks like
> most/all of the relevant code lives in the hal_cpu_init macro in
> hal/i386/pc/<version>/include/platform.inc. To add support for 720K
> floppies you would want to add a configuration option, and then modify
> this initialization macro to cope with different types of floppy
> drive.
> 
> Bart Veer // eCos net maintainer

_______________________________________________________________________

$1 million in prizes! 20 daily instant winners. 
AltaVista Rewards: Click here to win! 
http://shopping.altavista.com/e.sdc?e=3

_______________________________________________________________________

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

end of thread, other threads:[~2000-07-19  3:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-18  0:17 [ECOS] PC boot image for 720k FDD Vlastimil Masek
2000-07-18  7:19 ` Bart Veer
2000-07-18  8:08   ` Patrick O'Grady
2000-07-19  3:57 Vlastimil Masek

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