Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Real Mode FAT32 USB Boot Loader

161 views
Skip to first unread message

Mike Gonta

unread,
Mar 23, 2011, 3:47:12 PM3/23/11
to
Complete original assembly language code (public domain), binaries
and DD script to transfer a 1488 byte image to a FAT32 formatted UFD
of any size (at least 64MB for FAT32).
The code can be assembled with either FASM or NASM.
http://board.flatassembler.net/topic.php?p=127245


Mike Gonta
look and see - many look but few see

http://aeBIOS.com

wolfgang kern

unread,
Mar 24, 2011, 1:53:17 PM3/24/11
to

Mike Gonta announced:

> Complete original assembly language code (public domain), binaries
> and DD script to transfer a 1488 byte image to a FAT32 formatted UFD
> of any size (at least 64MB for FAT32).
> The code can be assembled with either FASM or NASM.
> http://board.flatassembler.net/topic.php?p=127245

I see nothing wrong on your latest release.
It's almost similar to my 16-bit real to 32-bit PM link/backlink approach.
Even you implied the sequence of how to write to an USB-stick, what
LL-code or BIOS-FNCT would be required to 'format' such a device ?

What I see would need some BIOS-write-calls for several faked sectors.
At the momemt I treat USB mass-storage devices just as temporary memory
or as removable media. But not sure how to change their given format.

__
wolfgang


Mike Gonta

unread,
Mar 24, 2011, 2:13:35 PM3/24/11
to
"wolfgang kern" wrote:
>
> Mike Gonta announced:
>
>> Complete original assembly language code (public domain), binaries
>> and DD script to transfer a 1488 byte image to a FAT32 formatted UFD
>> of any size (at least 64MB for FAT32).
>> The code can be assembled with either FASM or NASM.
>> http://board.flatassembler.net/topic.php?p=127245
>
> I see nothing wrong on your latest release.
> It's almost similar to my 16-bit real to 32-bit PM link/backlink approach.
> Even you implied the sequence of how to write to an USB-stick, what
> LL-code or BIOS-FNCT would be required to 'format' such a device ?

Hi Wolfgang,

The Quick Format FAT32 would be done with an existing OS.
This is needed to fill the BPB with the the following fields which depend
on the size of the UFD.
sectors per cluster
number of sectors huge
sectors per fat32
With these filled in and the first sector of the first FAT initialized
and the root cluster zero filled (as part of the formatting)
only 1488 bytes need to be transferred to the UFD to create a bootable
FAT32 file system.

> What I see would need some BIOS-write-calls for several faked sectors.

No faked sectors are required.

> At the momemt I treat USB mass-storage devices just as temporary memory
> or as removable media. But not sure how to change their given format.

The BIOS/version has it's own criteria for UFD emulation format which is
independent of the file system format.

0 new messages