Award286 clone

Discussion of development and patch submission.
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Award286 clone

Postby Greatpsycho » Wed 30 Mar, 2016 1:13 pm

This patch applies experimental implement for Award 286 clone that uses Chips&Technologies 82C235 Single Chip AT chipset.
Currently, only limited shadow ram support implemented(Only segment C000~FFFF supported).

I've attached test boot image that loads UMB_DRVR.SYS to UMB use test but it is patched to do not check ISA-DMA work. Original version also included but it enters infinite loop when ISA-DMA check because DMA write request not yet implemened in PCem.

Note : This is second submission. scat.c has been changed first submission and should be updated if you downloaded first-time attached award286_emu.tgz file.
Attachments
award286_emu.tgz
Award 286 clone patches and needed files.
(29.42 KiB) Downloaded 157 times
award286_boot_dos5.img.gz
Test boot image
(158.82 KiB) Downloaded 131 times
Last edited by Greatpsycho on Thu 31 Mar, 2016 1:11 pm, edited 2 times in total.
SA1988
Posts: 182
Joined: Wed 30 Apr, 2014 9:38 am

Re: Award286 clone

Postby SA1988 » Wed 30 Mar, 2016 8:55 pm

The 82C836 chipset is identical to this, but for 386 processors, though I'm struggling finding an award bios for it.
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Re: Award286 clone

Postby Greatpsycho » Sun 03 Apr, 2016 5:41 pm

This revision 2 patch added applies experimental EMS implement for Award 286 clone that uses Chips&Technologies 82C235 Single Chip AT chipset.

Patch and test disk image attached.

Please note this revision allows EMS function only memory size is 2MB, 4MB, 6MB, 8MB due to chipset & attached BIOS limit. I'll modify BIOS to allow memory configuration upto 16MB later.

SETUP.png
SETUP.png (19.42 KiB) Viewed 4725 times
Attachments
award286_boot_disk_rev2_dos5.img.gz
Test boot image. EMS driver and test program added.
(164.97 KiB) Downloaded 120 times
award286_emu_rev2.tgz
Award 286 clone patches and needed files
(30.57 KiB) Downloaded 123 times
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Re: Award286 clone

Postby Greatpsycho » Sun 10 Apr, 2016 2:56 pm

This is revision 3 patch for Award286 clone.

Changed from revision 2

1) Added memory remap feature if 1MB memory installed.
2) Code simplified and many bugs fixed.
3) Attached modified BIOS and EMS driver to handle memory configuration up to 16MB.(Original versions are also included)

Please note memory setting should be one of 1MB, 2MB, 4MB, 6MB, 8MB if original BIOS or EMS driver use. Modified BIOS & EMS driver supports 10MB, 12MB, 14MB, 16MB configuration.

SETUP.png
SETUP.png (19.44 KiB) Viewed 4620 times
Attachments
award286_boot_rev3_dos5.img.gz
Test boot image.
(160.82 KiB) Downloaded 132 times
award286_emu_rev3.tgz
Award 286 clone patches and needed files
(54.24 KiB) Downloaded 146 times
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Re: Award286 clone

Postby Greatpsycho » Wed 13 Apr, 2016 3:38 am

This additional patch fixees memory configuration related bugs in revision 3.

Only patch file against revision 3 attached.
Attachments
scat.c.patch
Patch file against revision 3 of scat.c
(3.32 KiB) Downloaded 114 times
SarahWalker
Site Admin
Posts: 1002
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Wed 13 Apr, 2016 4:59 pm

Is this ready for me to merge into mainline?
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Re: Award286 clone

Postby Greatpsycho » Thu 14 Apr, 2016 2:21 am

SarahWalker wrote:Is this ready for me to merge into mainline?


Yes. It seems ready to merge into mainline now. Not yet implemented features are planned to be implemented after the release of new version. And I'm going to port shadowram features and memory remap feature into AMI286 clone(It uses NEAT chipset) before end of this month.
SarahWalker
Site Admin
Posts: 1002
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Thu 14 Apr, 2016 8:27 pm

Committed at rev 474. I had to make a few changes to rebase it to the current version (mem_size has changed from MB to kB) and tweaked the coding style a bit, but other than that it's good.
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Re: Award286 clone

Postby Greatpsycho » Sun 17 Apr, 2016 9:57 am

SarahWalker wrote:Committed at rev 474. I had to make a few changes to rebase it to the current version (mem_size has changed from MB to kB) and tweaked the coding style a bit, but other than that it's good.


I found a bug when A20 line set to be enabled via port 0x92, A20 line can't be disabled. This patch solves that bug.
Attachments
scat.c.patch
A20 line access bug patch against rev 474
(743 Bytes) Downloaded 71 times
SarahWalker
Site Admin
Posts: 1002
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Sun 17 Apr, 2016 2:52 pm

Committed at rev 475.
EluanCM
Posts: 22
Joined: Tue 27 Oct, 2015 2:07 pm
Contact:

Re: Award286 clone

Postby EluanCM » Wed 20 Apr, 2016 3:15 am

I dumped the BIOS from an old 286 of mine (Hyundai Super 286-TR) which used this chipset and it actually worked! Only problem is that sometimes "refresh timing error" is displayed after POST, but it is 100% stable after lots of testing. Thanks!
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Re: Award286 clone

Postby Greatpsycho » Sun 26 Feb, 2017 9:12 am

I've rewritten 82C235 memory mapping logic. Windows 3.0 Real mode and Desqview now works properly when EMS enabled and shadow RAM at A000~BFFF segment area can be enabled.
Attachments
award286_emu_patch.tgz
(3.06 KiB) Downloaded 48 times
EluanCM
Posts: 22
Joined: Tue 27 Oct, 2015 2:07 pm
Contact:

Re: Award286 clone

Postby EluanCM » Wed 22 Mar, 2017 4:11 am

Thanks for this patch!

Sarah: I'm guessing this last patch wasn't merged yet because it messes a with mem.c just for this chipset?
SarahWalker
Site Admin
Posts: 1002
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Wed 22 Mar, 2017 5:44 pm

I haven't really looked at this patch yet - it came just after the v12 release when I wasn't really interested in looking at anything related the emulator. I'll give it a look tonight.
SarahWalker
Site Admin
Posts: 1002
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Wed 22 Mar, 2017 6:27 pm

Having just had a look at the code, I'm really not keen on the mem.c changes here. You should be able to use the mem_mapping functionality to do all this. If there's any required functionality missing, let me know and I'll add it.
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Re: Award286 clone

Postby Greatpsycho » Sat 01 Apr, 2017 9:14 am

SarahWalker wrote:Having just had a look at the code, I'm really not keen on the mem.c changes here. You should be able to use the mem_mapping functionality to do all this. If there's any required functionality missing, let me know and I'll add it.


I've rewritten memory mapping logic patch. This patch against PCem V12 release. Only solves Windows 3.0 Real mode and Desqview issue when EMS enabled but does not solves impossible to enable shadow RAM at A000~BFFF area. To use shadow ram at A000~BFFF area, video memory mapping portion may need to be modified significantly.
Attachments
award286_emu_patch.tgz
SCAT memory mapping patch against PCem V12
(1.85 KiB) Downloaded 15 times
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Re: Award286 clone

Postby Greatpsycho » Sat 08 Apr, 2017 5:55 am

This additional patch enables shadow RAM at A000~BFFF segment area.

Sarah : award286 folder does not exist in roms folder in source tree and distribution.
Attachments
scat.c.patch
Additional patch against previous patch.
(1.62 KiB) Downloaded 12 times
SarahWalker
Site Admin
Posts: 1002
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Wed 12 Apr, 2017 7:56 pm

Committed at rev 682.
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Re: Award286 clone

Postby Greatpsycho » Wed 19 Apr, 2017 1:03 pm

This additional patch against rev 682 applies to enable shadow RAM at A000~BFFF segment area(It has already been implemented and submitted but not applied in rev 682) and Waitstate setting is work together with SCAT chipset control register as real machine does.
Attachments
award286_boot_rev4_dos5.img.gz
Test boot image.
(130.5 KiB) Downloaded 8 times
scat.c.patch
Patch file against rev 682.
(2.65 KiB) Downloaded 6 times
Last edited by Greatpsycho on Sat 22 Apr, 2017 3:34 am, edited 1 time in total.
SarahWalker
Site Admin
Posts: 1002
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Wed 19 Apr, 2017 3:54 pm

Committed at rev 693.
Greatpsycho
Posts: 23
Joined: Tue 22 Mar, 2016 10:03 am
Contact:

Re: Award286 clone

Postby Greatpsycho » Fri 21 Apr, 2017 1:52 pm

This patch fixes a problem shadow RAM state at A000~BFFF range not applied correctly and get A20 state bit of SCAT register should be obtained from the keyboard controller but it is getting from port 0x92.
Attachments
scat.c.patch
(1.01 KiB) Downloaded 12 times
SarahWalker
Site Admin
Posts: 1002
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Fri 28 Apr, 2017 4:09 pm

Committed at rev 697.

Return to “Development”

Who is online

Users browsing this forum: basic2004 and 2 guests