oerg866 / win98-quickinstall

A framework + installer to (very) quickly install Windows 98 on anything from a 486 up to a modern system
309 stars 8 forks source link

[F.Req] DOSBOX-X Support/How-to. #12

Open yum13241 opened 2 months ago

yum13241 commented 2 months ago

Their official guide, method 1, cuz it's supposed to be bootable lol won't work, imgmount A -bootcd D* won't work, saying it cannot create a drive from the file.

DOSBOX-X is using floppy emulation boot, as it does not support otherwise AFAIK.

*D:\dosflop.img / any other .img file in the ISO.

DOSBOX-X Log: https://privatebin.net/?87248ebd3e8de583#HwvfGhK3LnLXKjmMmh78cYNEJnGpB8446jk8Y1xZHvu4

Important lines: LOG: Rejecting image, boot sector has weird values not consistent with FAT filesystem

/usr/include/c++/14.1.1/bits/stl_vector.h:1130: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; reference = std::__cxx11::basic_string<char>&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

^C^CAborted (core dumped)

EDIT [2024-9-16]: Changed the link, old one was dead.

oerg866 commented 1 month ago

It seems DOSBOX expects the boot floppy image to be a valid FAT image which makes no sense because a disk is just a bunch of sectors and you can have arbitrary code and data in there... Our boot sector is custom and loads the kernel directly from the image, so obviously that won't work if it expects a FAT12 file system.

Please try to boot from dosflop.img with the ISO loaded, maybe that works?

yum13241 commented 1 month ago

Nope. @oerg866, should I make an issue over at DOSBOX-X's side, saying that they need to not assume that the boot image complies with FAT32?