Previous Thread
Next Thread
Print Thread
Page 16 of 16 1 2 14 15 16
Edstrom #120081 11/23/21 07:15 PM
Joined: May 2012
Posts: 544
S
Senior Member
Offline
Senior Member
S
Joined: May 2012
Posts: 544
I've been working on hcpu30, and managed to make it boot native Unix into multiuser, but it doesn't run for long. Linux port stops responding after going multiuser.

This Unix needs 1K-sector disks and nscsihd doesn't expect this -- the buffer is 512 bytes long :-)

Edstrom #120082 11/23/21 07:28 PM
Joined: Mar 2001
Posts: 16,841
Likes: 45
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,841
Likes: 45
Heh! I've added support for non-512-byte sectors in various places in MAME, but it was generally because of 256 byte sectors, not 1K :-)

Luigi30 #120084 11/23/21 08:27 PM
Joined: Jan 2011
Posts: 227
Likes: 1
Senior Member
Offline
Senior Member
Joined: Jan 2011
Posts: 227
Likes: 1
Originally Posted by Luigi30
Yeah, the disk controller I have is an MVME320/A (a 3X805-based scheduler with a WD floppy controller) so that’s what I’d be using. I’ve also got a DRAM expansion board and a Rastergraf TMS34010 video/mouse/keyboard card to add.
I just pushed an original set of 340x0 tools floppies to http://bitsavers.org/components/ti/TMS340xx/

Al Kossow #120088 11/24/21 09:38 PM
Joined: Nov 2018
Posts: 9
J
Member
Offline
Member
J
Joined: Nov 2018
Posts: 9
Thanks, Al.

I've got a Peritek VCU-V/16 board with a TMS34020 (similar to this board).
Unfortunately, it didn't come with firmware EPROMS. Probably robbed by the surplus parts goblins back when I bought it.

Anyway, I've got it loading custom firmware using the toolchain from bitsavers plus a bit of custom ROM-generating code to massage the output of the GSP tools in just the right way. I can single-step through my code up until it accesses the serial port, which is waiting for terminal input. I may put the project on github if anyone is interested.

I did have a question for the MAME experts here apropos terminals on graphics boards. How do I connect to the rs232 port I defined for the SCN2681? Searching shows there's a '-rs232' command, but the current build (or mine) doesn't acknowledge that flag at all. I've scoured the googles and it appears you must build the console into your app, which I did. But that seems to conflict with also having a graphics display. I haven't found an example (yet) that has both a terminal port and graphics. MAME gets confused with having two displays. Yeah, I'm probably doing it wrong. smile
I was hoping for a way to telnet to the device or somehow use minicom through a virtual terminal device.)

I also have an MVME-167 board. It would be interesting to get some kind of unix running on it with X using this graphics board.

Edstrom #120089 11/24/21 10:14 PM
Joined: Mar 2001
Posts: 16,841
Likes: 45
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,841
Likes: 45
MAME supports multiple (emulated) monitors, so the built-in serial terminal can coexist with your board's graphics display. If you use -numscreens 2 they'll appear in separate windows, otherwise MAME will put them side-by-side in a double-wide window.

For the hookup, you'll need to add an rs232 device, route the necessary signals between it and the UART device, and specify "terminal" for the last parameter. Look at the ht68k.cpp driver for a minimal working terminal hookup to an MC68681 (which for hookup purposes is the same as the SCN2681).

Edstrom #120091 11/25/21 01:19 AM
Joined: Feb 2004
Posts: 2,291
Likes: 19
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,291
Likes: 19
You need to put the -rs232 option after the system name.

Edstrom #120092 11/25/21 02:56 AM
Joined: Nov 2018
Posts: 9
J
Member
Offline
Member
J
Joined: Nov 2018
Posts: 9
Thanks, that was very helpful. I now have a a working text console. Woot!

One unexpected thing when I started was that the terminal window needed to have the baud configured. Yeah, I should have expected full serial emulation for MAME smile I was able to fix it partly with this:

DEVICE_INPUT_DEFAULTS_START( terminal )
DEVICE_INPUT_DEFAULTS( "RS232_RXBAUD", 0xff, RS232_BAUD_38400)
DEVICE_INPUT_DEFAULTS( "RS232_TXBAUD", 0xff, RS232_BAUD_38400)
DEVICE_INPUT_DEFAULTS( "RS232_DATABITS", 0xff, RS232_DATABITS_8 )
DEVICE_INPUT_DEFAULTS( "RS232_PARITY", 0xff, RS232_PARITY_NONE )
DEVICE_INPUT_DEFAULTS( "RS232_STOPBITS", 0xff, RS232_STOPBITS_1 )
DEVICE_INPUT_DEFAULTS_END


It looks like this worked, but the 2681's Rx seems to be stuck at 9600, so terminal input is garbled. It's possible my 2681 code is only configuring the Tx baud rate, but this works on real hardware at 38.4k. I vaguely recall the real hardware has automatic rate detection. Maybe that's different here. More debugging...

Edstrom #120093 11/25/21 03:44 AM
Joined: Mar 2001
Posts: 16,841
Likes: 45
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,841
Likes: 45
We don't support automatic rate detection, so the baud has to match what the 2681 was programmed for smile

Al Kossow #120099 11/26/21 02:18 PM
Joined: May 2005
Posts: 32
Likes: 5
L
Member
Offline
Member
L
Joined: May 2005
Posts: 32
Likes: 5
Yeah, I whipped up a C library for it and had it doing raycasting a while back. Slow!

Page 16 of 16 1 2 14 15 16

Link Copied to Clipboard
Who's Online Now
1 members (1 invisible), 35 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,993
Posts118,155
Members5,005
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com