Alan Cox [Sun, 19 Aug 2018 00:28:32 +0000 (01:28 +0100)]
sam: more work on the IDE layer
I think it probably works for kernel now (user is broken and the split word
case is nasty so will need some thinking).
Need to update to the 1.1 alpha emulator as SimCoupe 1.0 can't do LBA and
has other ATA bugs
Alan Cox [Sun, 19 Aug 2018 00:27:48 +0000 (01:27 +0100)]
keycode: add another code
Alan Cox [Sun, 19 Aug 2018 00:27:26 +0000 (01:27 +0100)]
devide: allow for 16bit ports
We don't need it yet but add it ready
Alan Cox [Sat, 18 Aug 2018 21:57:20 +0000 (22:57 +0100)]
sam: further keymap work
Alan Cox [Sat, 18 Aug 2018 21:57:03 +0000 (22:57 +0100)]
kernel: add KEY_COPYRIGHT and KEY_EDIT
Alan Cox [Sat, 18 Aug 2018 19:40:55 +0000 (20:40 +0100)]
usermem-z80-thunked: Fix offsets for 32K/32K mode
With this fixed we can attempt (and fail) to mount a file system
Alan Cox [Sat, 18 Aug 2018 19:40:22 +0000 (20:40 +0100)]
sam: base keyboard map
Still need to do all the shift stuff
Alan Cox [Sat, 18 Aug 2018 19:34:16 +0000 (20:34 +0100)]
tty: note an optimization area
Alan Cox [Sat, 18 Aug 2018 19:16:50 +0000 (20:16 +0100)]
sam: fix keyboard scan logic
With this fixed we now get key events. We don't get the right keys because the
keyboard map isn't yet correct.
Alan Cox [Sat, 18 Aug 2018 19:16:37 +0000 (20:16 +0100)]
sam: Fix scrolling
Alan Cox [Sat, 18 Aug 2018 19:15:54 +0000 (20:15 +0100)]
sam: correct check for timer interrupt
Alan Cox [Sat, 18 Aug 2018 19:15:36 +0000 (20:15 +0100)]
sam: call the keyboard scanner
Alan Cox [Sat, 18 Aug 2018 19:15:20 +0000 (20:15 +0100)]
sam: turn off debug stop loop
Alan Cox [Sat, 18 Aug 2018 15:18:05 +0000 (16:18 +0100)]
sam: further debugging work
We now get to the bootdev prompt with interrupts running. No keyboard input
yet but that's next to investigate.
Note that there's a stop after loading so if you are using simcoupe you need
to hit shift-F10, ctrl-downarrow escape to set it loose (or set up debugger
stuff first as needed)
Alan Cox [Sat, 18 Aug 2018 00:01:04 +0000 (01:01 +0100)]
fontexpand: fix the bug
Now the fonts look right
Alan Cox [Sat, 18 Aug 2018 00:00:53 +0000 (01:00 +0100)]
sam: note bug in program_vectors
Alan Cox [Fri, 17 Aug 2018 23:52:44 +0000 (00:52 +0100)]
fontexpand: fix endian dependancy
I'm still not sure we have it all correct yet
Alan Cox [Fri, 17 Aug 2018 23:52:05 +0000 (00:52 +0100)]
tools/binman: allow for a kernel with low and high pages
We don't pack such images (yet anyway). We could look at it eventually
Alan Cox [Fri, 17 Aug 2018 23:51:14 +0000 (00:51 +0100)]
sam: restructure loading a bit fix some display and other bugs
We now get to the point we start trying to boot, and blow up after the
RAM sizing message. I suspect this is program_vectors exploding.
Alan Cox [Fri, 17 Aug 2018 23:51:04 +0000 (00:51 +0100)]
sam: don't link the font
Alan Cox [Fri, 17 Aug 2018 22:23:46 +0000 (23:23 +0100)]
sam: Get to the point we enter the kernel
Fix for binman to allow for our page below code
Assorted logic fixes to the boot and setup code
Make crt0 map the high kernel bank
Video is still broken and we die early in setup but we made it into C
Alan Cox [Fri, 17 Aug 2018 12:17:57 +0000 (13:17 +0100)]
sam: build bootable image
At least it runs the boot code, not yet useful beyond that step
Alan Cox [Fri, 17 Aug 2018 12:17:33 +0000 (13:17 +0100)]
z80: build raw2mgt for Z80 kernel builds
Alan Cox [Fri, 17 Aug 2018 12:17:15 +0000 (13:17 +0100)]
tools: add a raw2mgt too for SAM kernel building
Alan Cox [Fri, 17 Aug 2018 12:09:47 +0000 (13:09 +0100)]
setup: we need the ROM off
Alan Cox [Fri, 17 Aug 2018 12:08:32 +0000 (13:08 +0100)]
sam: correct the boot.s code
At this point we seem to be able to load our image. Not yet tried debugging
what happens after bootstrap loads.
Alan Cox [Fri, 17 Aug 2018 09:44:49 +0000 (10:44 +0100)]
tty: improve behaviour of O_NDELAY
We want to bale out on a polled output port on a reschedule not just sit
assuming the bits will go out shortly
Alan Cox [Fri, 17 Aug 2018 00:35:34 +0000 (01:35 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX
Tormod Volden [Tue, 14 Aug 2018 19:27:24 +0000 (21:27 +0200)]
dragon-nx32: Use the tty_close wrapper to close DriveWire channel properly
Fixes issues when disconnecting login over DriveWire (dwgetty).
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Tue, 14 Aug 2018 19:27:23 +0000 (21:27 +0200)]
dragon-nx32: Correct DriveWire minor offset
Forgot to bump this when adding crt9128 console tty.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
EtchedPixels [Tue, 14 Aug 2018 10:31:50 +0000 (11:31 +0100)]
Merge pull request #653 from beretta42/coco2cart
coco2cart: bug: sdc driver still not returning no of bytes read/writen
Brett Gordon [Tue, 14 Aug 2018 02:07:14 +0000 (22:07 -0400)]
coco2cart: bug: sdc driver still not returning no of bytes read/writen
With this fix it boots again on the CoCo2 w/ SDC
Alan Cox [Mon, 13 Aug 2018 12:53:07 +0000 (13:53 +0100)]
sam: add IDE definitions
Alan Cox [Mon, 13 Aug 2018 12:52:37 +0000 (13:52 +0100)]
sam: more work on fork support for 32/32
Tormod Volden [Sat, 11 Aug 2018 09:32:39 +0000 (11:32 +0200)]
dragon-nx32: Ship custom inittab and rc
inittab:
- do not run sysinit boot shell
- run getty on ttys 1-4
- add commented out dwgetty entry
rc:
- try setting time from DriveWire before resorting to settime
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 11 Aug 2018 09:18:37 +0000 (11:18 +0200)]
dragon-nx32: Only init IDE if we have a known IDE cartridge ROM
Same as we do for SCSI controllers.
Avoids the long detection timeout when there is no IDE controller
present.
Since we are not using the cartridge ROM, it would be strictly
possible to use a controller without ROM but we won't support
that for now. The same goes for unknown ROMs, of course.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 11 Aug 2018 23:32:45 +0000 (01:32 +0200)]
dragon-nx32: Minor updates to README
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Sun, 12 Aug 2018 23:55:57 +0000 (00:55 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sun, 12 Aug 2018 23:39:57 +0000 (00:39 +0100)]
genie-eg64: New platform (in test only)
The Video Genie EG64 allows you to take a Video Genie (also known as the
Dick Smith System 80, the TRZ80 and a few other names) with either of the
expansion units and the EG64 fitted up to 96K. It's intended for running CP/M
but it's just about big enough to run Fuzix badly providing you have a swap
device on hard disk.
Another goal of this port is to figure out how to move a lot of TRS80 driver
code into dev/trs80 to share between these two ports, a Genie III port maybe,
and also potentially things like the Lobo-Max, Guepard., SysData III and so on.
Alan Cox [Sun, 12 Aug 2018 23:39:26 +0000 (00:39 +0100)]
tools/binman: Teach it about kernels with the data the top of memory
Alan Cox [Sun, 12 Aug 2018 23:39:07 +0000 (00:39 +0100)]
trs80m1: update documentation
Alan Cox [Sun, 12 Aug 2018 23:38:42 +0000 (00:38 +0100)]
trs80m1: Fix more tty bugs
This lot really needs a restructure instead
Alan Cox [Sun, 12 Aug 2018 23:38:13 +0000 (00:38 +0100)]
trs80m1: add initial test UDG support
Needs emulator work to test properly
Alan Cox [Sun, 12 Aug 2018 23:37:35 +0000 (00:37 +0100)]
trs80m1: make the lower case status C visible
Alan Cox [Sun, 12 Aug 2018 23:37:20 +0000 (00:37 +0100)]
trs80m1: remove obsolete comment
Alan Cox [Sun, 12 Aug 2018 23:36:36 +0000 (00:36 +0100)]
trs80m1: remove bogus asm
Alan Cox [Sun, 12 Aug 2018 23:36:13 +0000 (00:36 +0100)]
trs80m1: Fix bogus comment
Alan Cox [Sun, 12 Aug 2018 23:35:33 +0000 (00:35 +0100)]
tty.h: add new font type
Alan Cox [Sun, 12 Aug 2018 23:35:19 +0000 (00:35 +0100)]
trs80m1: remove drivewire reference
Alan Cox [Sun, 12 Aug 2018 23:33:36 +0000 (00:33 +0100)]
dragon-nx-32: note bug to look at
EtchedPixels [Sat, 11 Aug 2018 17:07:06 +0000 (18:07 +0100)]
Merge pull request #651 from beretta42/coco2cart
some fixes for coco2cart SDC support
Alan Cox [Fri, 10 Aug 2018 23:54:11 +0000 (00:54 +0100)]
trs80m1: only one interface is present
Alan Cox [Fri, 10 Aug 2018 23:52:03 +0000 (00:52 +0100)]
trs80m1: move platform_param into discard
We don't need it after boot and we are going to add some options here soon
Alan Cox [Fri, 10 Aug 2018 23:32:42 +0000 (00:32 +0100)]
z80fixedbank-banked: apply the same SP fix as to the main fixedbank code
Alan Cox [Fri, 10 Aug 2018 23:32:20 +0000 (00:32 +0100)]
devide: save two bytes and a few clocks
Alan Cox [Fri, 10 Aug 2018 23:31:49 +0000 (00:31 +0100)]
sam: update boot logic
Thanks to the various Sam folks who explained how BOOT works
Alan Cox [Fri, 10 Aug 2018 23:31:36 +0000 (00:31 +0100)]
rabbit: I guess we use a different rst
Alan Cox [Fri, 10 Aug 2018 23:29:28 +0000 (00:29 +0100)]
trs80m1: simplify make clean
Alan Cox [Fri, 10 Aug 2018 23:29:00 +0000 (00:29 +0100)]
trs80m1: adjust the istack_switched_sp so it doesn't get scribbled
With this fixed we seem to be back in business and 768 bytes better off
Alan Cox [Fri, 10 Aug 2018 21:27:50 +0000 (22:27 +0100)]
trs80m1: and make the IDE drives visible
Alan Cox [Fri, 10 Aug 2018 21:26:27 +0000 (22:26 +0100)]
trs80m1: turn on the probing
Alan Cox [Fri, 10 Aug 2018 21:25:29 +0000 (22:25 +0100)]
trs80m1: rearrange memory so that we get 768 bytes back
We stick the udata/stack over 4100-42FF, and the istack over the boot area at
4300-43FF
Alan Cox [Fri, 10 Aug 2018 21:24:42 +0000 (22:24 +0100)]
trs80m1: turn IDE on in build
Alan Cox [Fri, 10 Aug 2018 21:23:54 +0000 (22:23 +0100)]
trs80m1: build the IDE layer for this machine
Alan Cox [Fri, 10 Aug 2018 21:22:53 +0000 (22:22 +0100)]
trs80m1: add .module to floppy
Alan Cox [Fri, 10 Aug 2018 21:20:22 +0000 (22:20 +0100)]
trs80m1: add IDE layer helpers
Tormod Volden [Thu, 9 Aug 2018 21:56:11 +0000 (23:56 +0200)]
Add .pkg for dragon-nx32 platform
Tormod Volden [Thu, 9 Aug 2018 21:56:10 +0000 (23:56 +0200)]
build-filesystem-ng: Scan Kernel folder for package files
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Thu, 9 Aug 2018 18:15:37 +0000 (19:15 +0100)]
rc2014: hopefully correctly turn on the IDE CF
Alan Cox [Wed, 8 Aug 2018 22:16:19 +0000 (23:16 +0100)]
sam: next pass over the code working on stuff
Still lots and lots to sort out
Alan Cox [Wed, 8 Aug 2018 22:15:49 +0000 (23:15 +0100)]
rc2014: init IDE
Alan Cox [Wed, 8 Aug 2018 22:15:27 +0000 (23:15 +0100)]
bank32k: note need to do swap
Brett Gordon [Wed, 8 Aug 2018 13:27:15 +0000 (09:27 -0400)]
coco2cart: adjust sdc return to match 256 byte sectors
Brett Gordon [Wed, 8 Aug 2018 13:18:47 +0000 (09:18 -0400)]
coco2cart: reformat boot fail messages
M6847 VDG chips can't do lowercase.
Alan Cox [Tue, 7 Aug 2018 23:16:32 +0000 (00:16 +0100)]
Makefile: The Amstrad NC100 moved
Alan Cox [Tue, 7 Aug 2018 23:15:49 +0000 (00:15 +0100)]
gmtime: not a needed optimization
Alan Cox [Tue, 7 Aug 2018 23:14:54 +0000 (00:14 +0100)]
z80: Initial documentation on how 32K/32K works
Alan Cox [Tue, 7 Aug 2018 23:13:43 +0000 (00:13 +0100)]
kernel: initial development tree for the Sam Coupe
This is so that the 32K/32K split code can be developed. This memory model is
actually a lot more complex and different to the existing Z80 models we use.
Don't expect anything runnable for quite some time.
Alan Cox [Tue, 7 Aug 2018 23:10:05 +0000 (00:10 +0100)]
z80: fix a nasty bug with the full bank switching model on swapless
The swap case is ok as it always runs on the swap stack. The non swap case
restores the process kernel stack underneath the curent sp. That in itself is
fine as we have interrupts off. However we then called map_kernel which if
the current sp was above the sp of the save would corrupt the stack.
Instead restore sp first so that we push and pop data below the saved stack
content
Alan Cox [Tue, 7 Aug 2018 23:07:46 +0000 (00:07 +0100)]
z80: first sketches of the 32K/32K support
Some of this will also hopefully apply to the 64K/ROM switch and the Cromemco /
NASCOM style models where you have write through to multiple banks but 64K
switching
Alan Cox [Tue, 7 Aug 2018 23:05:58 +0000 (00:05 +0100)]
lowlevel-z80: removed dead symbol import
Alan Cox [Tue, 7 Aug 2018 23:05:33 +0000 (00:05 +0100)]
kernel.def: add PAGE2 define
We'll need that shortly
Alan Cox [Tue, 7 Aug 2018 23:04:18 +0000 (00:04 +0100)]
font: add an expanded 8x8 font for 2bpp displays
We'll need this for the SAM Coupe where we don't have a 1pp high res mode.
(We may want a 6bit to 12bit font in the end but for now keep it simple).
Alan Cox [Thu, 2 Aug 2018 20:55:45 +0000 (21:55 +0100)]
tzset: more patches moving towards proper timezone support
It's enough to make you want summer time abolished!
Alan Cox [Tue, 31 Jul 2018 19:55:51 +0000 (20:55 +0100)]
trslabel: fix missing error argument
Alan Cox [Tue, 31 Jul 2018 19:55:29 +0000 (20:55 +0100)]
rc2014: add devinput
Tormod Volden [Sat, 28 Jul 2018 11:39:37 +0000 (13:39 +0200)]
Build setdate for all platforms and add it to filesystem
seq was also missing on 6502 and pdp11.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 28 Jul 2018 10:36:36 +0000 (12:36 +0200)]
dragon-nx32: Update README
Also remove XRoar patch which went upstream.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Fri, 27 Jul 2018 21:00:08 +0000 (22:00 +0100)]
gm8x9: fix typo
Alan Cox [Fri, 27 Jul 2018 20:59:21 +0000 (21:59 +0100)]
dragon-nx-32: tweaks to scsi driver
No way to test this yet so I doubt it works but it'll not-works better than
before 8)
Alan Cox [Fri, 27 Jul 2018 20:56:27 +0000 (21:56 +0100)]
rc2014: do a pile of cleanup work
- Start working on tty autodetect
- Sort out non standard SIO layouts
Still need to look further into the CTC usage and tidy up the boot logic so
we can do a handy boot from CP/M
Alan Cox [Fri, 27 Jul 2018 20:52:33 +0000 (21:52 +0100)]
pcw8256: update README
Alan Cox [Fri, 27 Jul 2018 20:52:09 +0000 (21:52 +0100)]
rc-files: run setdate in the boot up
Tormod Volden [Tue, 24 Jul 2018 21:38:44 +0000 (23:38 +0200)]
dragon-nx32: (MOOH) Optimized fork copy bank routine
Around twice as fast. Now about 0.24 s for a 24KB large sh.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Tue, 24 Jul 2018 23:16:40 +0000 (00:16 +0100)]
trs80m1: update README
Alan Cox [Tue, 24 Jul 2018 23:16:19 +0000 (00:16 +0100)]
pcw8256: correct clock rate
Alan Cox [Tue, 24 Jul 2018 23:15:38 +0000 (00:15 +0100)]
fsck: note an improvement to make
Alan Cox [Tue, 24 Jul 2018 23:15:25 +0000 (00:15 +0100)]
mkdir: fix size check
Tormod Volden [Mon, 23 Jul 2018 23:15:20 +0000 (01:15 +0200)]
init: Allow empty process field in inittab
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Mon, 23 Jul 2018 21:57:38 +0000 (23:57 +0200)]
dragon-nx32: Add virtual consoles (6847 text mode)
Copy and rename the common CONFIG_VT_SIMPLE code and use it with the
6847 text mode.
This gives us:
tty1 Graphic mode console at 0x0400
tty2 CRT9128
tty3 VC 0 text mode at 0x1c00
tty4 VC 1 text mode at 0x1e00
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>