I'm using my IBM XT 5160You are probably using a too fast machine.
I removed the wait between each IO Read/write.
For fast machine, it is much more difficult to optimize.
It is working correctly on my 8086 8MHz, so this should of course work on a 4MHz 8088I'm using my IBM XT 5160
My CONFIG.SYS Line:
DEVICE=C:\DOSDRV\CH375D4.SYS @260 #0
I did another version of the change, modifying only the Read function, can you try it ?
Same " CH375: Error Boot Sector " with all, Including the Unmodified driver, My config.sys line is correct.I share as well the original unmodified driver, to test if it is not a problem of driver version.
Ok, excellent, the problem is not my changes then.Same " CH375: Error Boot Sector " with all, Including the Unmodified driver, My config.sys line is correct.
I did notice the different version 1.9, The one i posted in Post #69 V1.9A works for me in my IBM XT.
If you could redo the changes in v1.9A that would be greatI will redo the changes in the 1.9A then....
If we can fine one version that work for all, and avoid to patch multiple Driver version
1.9A is promissing, probably a bugged fixed 1.9
I have not tested with DOS 3x, I rarely use it, What i do is:How did you build the USB Key ?
What I did is a binary copy of a DOS 6.22 Disk image (.IMG) to avoid having a partition sector, the driver need to have the Boot Sector first.
I also tried with DOS 3.31 and a FAT16, but there are corrupted files, like an error in the sectors order. (Probably a DOS 3.31 bug)
FDISK / Format does not work as you know, But Yes, I have used already made bootable DOS flash drives many times with the DOS driver V1.9A, Obviously i can't boot from the drive using the driver but have had no problems working with a bootable drive using the driver.Then, does it mean the V1.9A Work with partition ?
My drives only have a single partition (512M). I'll try your modded driver later today. (My images are built offline and dumped onto whatever usb stick) and have booted with the bios.In some youtube video it is said it does not support partition.
But Yes, the v1.9/1.9A Does, but of course support only a Standard MBR, Not GPT.
I Worked on a more detailed decompilation, I will add patch tomorrow.
1.9A Is Better because smaller and support less devices (V1.9 Support other devices as well)
Curious about the card (the name of the chip seems to be CH375, but I didn't found anything useful about the card, except http://www.wch.cn/products/PC80X86.html ) and if it's working with any USB thumb drive.
Probably a good idea to completely disassemble but i wouldn't go making it too complicated at first, I've been using the V1.9A driver for the past 5+ years after a lot of trial and error with other driver's. Maybe just see about speeding it up a bit, Make sure it works and is stable and then see about adding new features.I think I will completely dissasemble it to allow more things like detect GBT partition, select the partition to use. Speed autodetect maybe to no more need the speed parameter. Partition change on the fly with an utility.
We can also do Disk cloning at the maximum possible speed.
It is more than speed up a bit. I reached easily x4 Speed.Probably a good idea to completely disassemble but i wouldn't go making it too complicated at first, I've been using the V1.9A driver for the past 5+ years after a lot of trial and error with other driver's. Maybe just see about speeding it up a bit, Make sure it works and is stable and then see about adding new features.
FYI, I don't have a way to measure the speed yet I'll have to copy something over later but the modified drivers work fine on my image/drive and on my cards so I'm not sure what the problem is for Malc but they work fine for me. This is on both my 5150 and my PC'S Limited Turbo PC.My drives only have a single partition (512M). I'll try your modded driver later today. (My images are built offline and dumped onto whatever usb stick) and have booted with the bios.