BootProg icon indicating copy to clipboard operation
BootProg copied to clipboard

boot16.asm fails to load a FAT larger than 64KB because of ReadSector overflows.

Open tazgm opened this issue 4 years ago • 2 comments

The patch http://mirror1.slitaz.org/boot/BootProg/BootProg-v1.5.U fix it.

BTW: Enhanced boot16.asm and boot32.asm with better error messages are available in http://mirror1.slitaz.org/boot/BootProg/

boot16.asm supports a 8086 cpu, 8GB HD, detects the disk geometry, can load larger .EXE files and is merged with boot12.asm (FAT12 and FAT16 support).

boot32.asm has a LBA (max 4TB) and CHS (max 8GB) driver with retries.

A tiny shell installer is also available: http://mirror1.slitaz.org/boot/BootProg/bootprog

tazgm avatar Aug 15 '21 16:08 tazgm

@tazgm Thanks! I'll review the code and see if or how I'll incorporate the changes. Likely, it won't be soon though.

alexfru avatar Aug 16 '21 01:08 alexfru

Update: http://mirror1.slitaz.org/boot/BootProg/boot16.asm has a new LBA (max 2TB) and CHS (max 8GB).

tazgm avatar Aug 17 '21 08:08 tazgm

For the time being I only fixed the original bug with loading FAT16 larger than 64KB.

Still unsure if or when I'm gonna make other improvements.

  • Querying disk geometry from BIOS is kinda important (I just ran into this problem when testing the fix for large FAT16).
  • 8086 in FAT12 and FAT16 is nice.
  • Longer error messages are nice.
  • Merging/unifying FAT12 and FAT16 is OK at source code level, but unnecessary in the binary.
  • CHS-based FAT32... I'd probably pass on it.

alexfru avatar Jan 17 '23 05:01 alexfru

@tazgm Some of the improvements are in.

alexfru avatar Apr 16 '23 01:04 alexfru

Need to had Exfat support ?

SliTaz provides exfat support with the file bootex.asm in https://hg.slitaz.org/wok/file/tip/BootProg/stuff The compile rules are in https://hg.slitaz.org/wok/file/tip/BootProg/receipt to build https://cook.slitaz.org/index.cgi?files=BootProg Assembly listing is https://cook.slitaz.org/index.cgi?stuff=../wok/BootProg/source/BootProg-slitaz/bootex.lst

It may load up to 511 extra bytes in memory (1 sector only, the maximum cluster size is 32MB) It can run up to 637KB programs with AX=FFFF according to https://wiki.osdev.org/MZ#Initial_Program_State and an empty cmdline.

Regards,

Pascal

@tazgm Some of the improvements are in.

-- Reply to this email directly or view it on GitHub: https://github.com/alexfru/BootProg/issues/1#issuecomment-1510016934 You are receiving this because you were mentioned.

Message ID: @.***>

tazgm avatar May 05 '23 16:05 tazgm