Page 1 of 1

[Patch] Headland chipset improvement and more machines

Posted: Wed 18 Jul, 2018 10:36 am
by Greatpsycho
This patch applies the following.
- Implemented experimental Headland HT102 chipset based EMS support.
- Add two machines
1. Trigem 266M
One of famous Korean 286 machine uses Headland HT102 chupset.
TG286M-Startup.png
TG286M-Startup.png (31.39 KiB) Viewed 7007 times
2. AMA-932J
Uses 386SX CPU and Headland HT18 rev B chipset(Its EMS function is compatible with HT102's) and integrated OTI-067 graphics chipset.
AMA932J-Boot.png
AMA932J-Boot.png (58.06 KiB) Viewed 7007 times
If you need BIOS ROM image file and EMS driver for testing, please send your e-mail address as PM for me.
And please note to use EMS with XMS, you must disable 384K remapping in system setup and load EMS driver before XMS driver.

p.s. The AMI386SX BIOS ROM, formerly distributed on this site, does not seem to be for the Headland chipset.

Re: [Patch] Headland chipset improvement and more machines

Posted: Wed 18 Jul, 2018 5:04 pm
by Tux
Working as expected, thanks for this patch :)
(quickly tested with Linux version of PCem and DOS boot floppies).

AMA-932J: The suggested EMS driver was not necessary for me.
Do I miss something here?
FreeDOS provides XMS and EMS with either HimemX + (FreeDOS-)EMM386 or with JemmEx 5.78.
And so does M$-DOS 6.22, tested with (standard) HIMEM.SYS and EMM386.

Re: [Patch] Headland chipset improvement and more machines

Posted: Thu 19 Jul, 2018 1:43 am
by Fenix77
Hello!

I recently sent you a PM to ask if you can send me the roms and EMS drivers for these machines.
I'd like to test these machines.

Thanks for your work and effort in implementing these new machines!

PD: I don't know if my PM was really sent because it appears on "outbox" but not in "sent message". My email is the same that you used when you sent me the updated SCAT EMS driver for SPC-4216P machine.

Re: [Patch] Headland chipset improvement and more machines

Posted: Thu 16 Aug, 2018 2:11 am
by Fenix77
Hello!

I tested these two machines in 86box and they works perfectly. I only have a few question about these BIOS.

Can, the EMS memory only be defined in the MM.SYS device driver?
Can other, similar BIOS be used in these machines?

I found on Vogons site a near identical BIOS of HT103, 286 chipset, but it is from 1990 and have an option to select the amount of EMS memory in BIOS
(here: https://www.vogons.org/viewtopic.php?f= ... 18#p584228

There is a little bug:

The EMS driver always adds 384kb of RAM to the specified amount of memory in config.sys, there is an option to relocate the last 384kb of the first MB, in AMA-932J, but does not have any effect in in the memory count, either enabled or disabled.

My last question is which memory managers can I use to get UMB memory. I know QRAM requires NEAT,LEAP or SCAT chipset, and I have a software called "the Last byte manager" that support several 286 and 386 chipsets, but I do not know how to use it, yet.

Thanks for these new machines!

Re: [Patch] Headland chipset improvement and more machines

Posted: Thu 16 Aug, 2018 3:36 am
by Greatpsycho
Fenix77 wrote:
Thu 16 Aug, 2018 2:11 am
I found on Vogons site a near identical BIOS of HT103, 286 chipset, but it is from 1990 and have an option to select the amount of EMS memory in BIOS
(here: https://www.vogons.org/viewtopic.php?f= ... 18#p584228
The link's BIOS uses Headland HT12 chipset. Its EMS feature is different from HT102 and HT18 chipset and this chipset isn't yet implemented.
Fenix77 wrote:
Thu 16 Aug, 2018 2:11 am
There is a little bug:

The EMS driver always adds 384kb of RAM to the specified amount of memory in config.sys, there is an option to relocate the last 384kb of the first MB, in AMA-932J, but does not have any effect in in the memory count, either enabled or disabled.

My last question is which memory managers can I use to get UMB memory. I know QRAM requires NEAT,LEAP or SCAT chipset, and I have a software called "the Last byte manager" that support several 286 and 386 chipsets, but I do not know how to use it, yet.

Thanks for these new machines!
The Headland chipset's EMS driver uses shadow ram as EMS memory so up to 384KB shadow ram always added. To use EMS memory with XMS, you must disable 384K remapping in system setup and load EMS driver before XMS driver as mentioned in the previous post or first 384KB of XMS memory data will be destroyed by EMS driver.

And to the best of my knowledge, the LastByte memory manager is the only memory manager that supports the Headland chipset. However, it can only use some of the Large Page Frame areas as UMBs.

Re: [Patch] Headland chipset improvement and more machines

Posted: Thu 16 Aug, 2018 4:27 am
by Fenix77
I have another question?

I did the changes you suggested me, but with the Trigem 286 machine when I run Windows 2.11/286 the machine crash at startup.
It works if I remove Himem.sys.
The 386SX machine has no issue.
my configuration is: Trigem 286, OTI-067 VGA, 3MB RAM, DOS 3.31 and Windows 2.11/286 configured in 800x600 16 colours:

Here is my config.sys

Thanks in advance!

Re: [Patch] Headland chipset improvement and more machines

Posted: Thu 16 Aug, 2018 5:02 am
by Greatpsycho
Fenix77 wrote:
Thu 16 Aug, 2018 4:27 am
I have another question?

I did the changes you suggested me, but with the Trigem 286 machine when I run Windows 2.11/286 the machine crash at startup.
It works if I remove Himem.sys.
The 386SX machine has no issue.
my configuration is: Trigem 286, OTI-067 VGA, 3MB RAM, DOS 3.31 and Windows 2.11/286 configured in 800x600 16 colours:

Here is my config.sys

Thanks in advance!
In the Trigem 286M's CMOS Setup, try setting Video BIOS shadow and / or Main BIOS shadow item to Enabled as shown in the screenshot below.
TG286M_Setup.png
TG286M_Setup.png (74.34 KiB) Viewed 6670 times

Re: [Patch] Headland chipset improvement and more machines

Posted: Fri 17 Aug, 2018 12:05 am
by Fenix77
Thanks!

Enabling the Shadow RAM and copy Video RAM solved the problem, and improved the general performance too.

I have a last question: The Lastbyte Manager, (both 2.20 and 2.53) identifies the chipset as HT21, not GC103/113 as saying the EMS device driver.
I have a couple of EMS drivers for HT18 and HT21. But i have not test them yet.
the HT18 says it's "G2" instead of "Headland" and its version is older (01.04) and the HT21 version is (03.12) both of them says GC103/113 but I don not know if they are meant for different motherboards.

Here is the screenshot

Re: [Patch] Headland chipset improvement and more machines

Posted: Fri 17 Aug, 2018 12:22 am
by Greatpsycho
Fenix77 wrote:
Fri 17 Aug, 2018 12:05 am
Thanks!

Enabling the Shadow RAM and copy Video RAM solved the problem, and improved the general performance too.

I have a last question: The Lastbyte Manager, (both 2.20 and 2.53) identifies the chipset as HT21, not GC103/113 as saying the EMS device driver.
I have a couple of EMS drivers for HT18 and HT21. But i have not test them yet.
the HT18 says it's "G2" instead of "Headland" and its version is older (01.04) and the HT21 version is (03.12) both of them says GC103/113 but I don not know if they are meant for different motherboards.

Here is the screenshot
The Headland chipset's emulation is still incomplete so there are many things to do.

Re: [Patch] Headland chipset improvement and more machines

Posted: Mon 12 Nov, 2018 8:33 pm
by SarahWalker
Merged at rev 1195.

Re: [Patch] Headland chipset improvement and more machines

Posted: Mon 19 Nov, 2018 8:59 am
by Greatpsycho
This patch correctly sets dipswitch value of AMA932J's built-in OTI067. AMA932J no longer displays black/white mode.

Re: [Patch] Headland chipset improvement and more machines

Posted: Tue 20 Nov, 2018 10:41 am
by SarahWalker
Merged at rev 1198.