NetBSD 7.1 on the Atari TT

Blogs & guides and tales of woo by forum members.
User avatar
Icky
Posts: 116
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: NetBSD 7.1 on the Atari TT

Post by Icky » Thu Feb 15, 2018 11:51 pm

Just built the Falcon kernel and placed in /. I have no way of testing as I don't have a Falcon but it has the options of supporting 68030-060.

Code: Select all

options M68030 # support for 030
options FPU_EMULATE # Support for MC68881/MC68882 emulator
options M68040 # support for 040
options M68060 # support for 060
options FPSP # 68040 Floatingpoint support
options M060SP # MC68060 software support (Required for 060)
As mentioned in the previous post I will clean up the image this weekend and post with instructions thereafter.

User avatar
frank.lukas
Posts: 61
Joined: Fri Jan 19, 2018 11:52 am

Re: NetBSD 7.1 on the Atari TT

Post by frank.lukas » Fri Feb 16, 2018 11:48 am

Send a eMail to Izumi Tsutsui about the IDE Interface on the Atari TT ...

User avatar
Icky
Posts: 116
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: NetBSD 7.1 on the Atari TT

Post by Icky » Fri Feb 16, 2018 6:55 pm

frank.lukas wrote:
Fri Feb 16, 2018 11:48 am
Send a eMail to Izumi Tsutsui about the IDE Interface on the Atari TT ...
Thanks Frank. I also need to reach out to tuxie with some questions around the Thunder card.

pakman
Posts: 2
Joined: Fri Feb 16, 2018 10:04 pm

Re: NetBSD 7.1 on the Atari TT

Post by pakman » Fri Feb 16, 2018 10:59 pm

Icky wrote:
Thu Feb 15, 2018 6:54 pm
There are some items I have questions around. Firstly does the Thunder card use the same address space as the Falcon:

Code: Select all

/* Falcon IDE register locations (base and offsets). */
#define FALCON_WD_BASE  0xfff00000
#define FALCON_WD_LEN   0x40
#define FALCON_WD_AUX   0x38
Yes, it uses the same address space as the Falcon.
The hardwired base address is 0x00FFF000. Anyhow, TOS 3.06 is using the 68030 MMU to map 0xFFFFF000 to 0x00FFF000 as well.
ATA registers will show up from base + 0x00 to base + 0x39.

From your code above I understand:
- FALCON_WD_BASE: Ok, this is the base address
- FALCON_WD_AUX: Ok, this is the offset to the alternate status register, the uppermost ATA register
- FALCON_WD_LEN: Not sure, what this is supposed to do on a Falcon. The Thunder card will throw a bus error when the offset exceeds 0x3F!
Icky wrote:
Thu Feb 15, 2018 6:54 pm
There is also some initiation with the Atari Falcon to turn on the IDE before its probed by tapping the ym2149. Which I believe Port A has a bit to turn the IDE on or off (handy doc on Atari hardware registers http://deunstg.free.fr/sct1/hardware.htm)

Code: Select all

ym2149_ser2(0);
The Thunder card can be enabled/disabled by Jumper only.
Setting the YM2149 port bit has no effect on the Thunder at all.

User avatar
Icky
Posts: 116
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: NetBSD 7.1 on the Atari TT

Post by Icky » Mon Feb 19, 2018 11:15 pm

pakman wrote:
Fri Feb 16, 2018 10:59 pm
Icky wrote:
Thu Feb 15, 2018 6:54 pm
There are some items I have questions around. Firstly does the Thunder card use the same address space as the Falcon:

Code: Select all

/* Falcon IDE register locations (base and offsets). */
#define FALCON_WD_BASE  0xfff00000
#define FALCON_WD_LEN   0x40
#define FALCON_WD_AUX   0x38
Yes, it uses the same address space as the Falcon.
The hardwired base address is 0x00FFF000. Anyhow, TOS 3.06 is using the 68030 MMU to map 0xFFFFF000 to 0x00FFF000 as well.
ATA registers will show up from base + 0x00 to base + 0x39.

From your code above I understand:
- FALCON_WD_BASE: Ok, this is the base address
- FALCON_WD_AUX: Ok, this is the offset to the alternate status register, the uppermost ATA register
- FALCON_WD_LEN: Not sure, what this is supposed to do on a Falcon. The Thunder card will throw a bus error when the offset exceeds 0x3F!
Icky wrote:
Thu Feb 15, 2018 6:54 pm
There is also some initiation with the Atari Falcon to turn on the IDE before its probed by tapping the ym2149. Which I believe Port A has a bit to turn the IDE on or off (handy doc on Atari hardware registers http://deunstg.free.fr/sct1/hardware.htm)

Code: Select all

ym2149_ser2(0);
The Thunder card can be enabled/disabled by Jumper only.
Setting the YM2149 port bit has no effect on the Thunder at all.
Thanks for the info pakman - I will take a look and see how this can help with my debugging.

User avatar
Icky
Posts: 116
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: NetBSD 7.1 on the Atari TT

Post by Icky » Tue Feb 20, 2018 9:29 pm

:excited: Here it is the first version of the AtariTT NetBSD 7.1 image. :excited:

There are probably loads of things I have missed but this is the first version so all feedback / questions welcome.

Firstly I would like to thank exxos and IngoQ for helping me with hosting the file.

So here are some instructions to get you started:

Download the file https://hub.e-quade.de/exxos/netbsd-atari-7.1.zip and unzip to the file netbsd-7.1-ataritt-v1.img

Just a warning the file is about 1.3GB in size

Using the unix command dd copy the image to your disk such as SD card which I use a Gigafile. On a Unix, Linux or OSX machine find the SD card disk device /dev/diskX where X is the disk number of the SD card.

Code: Select all

dd bs=1m if=netbsd-7.1-ataritt-v1.img of=/dev/diskX
Once you have copied over your image to your physical disk pop it in the Atari TT and boot - be patient (remember the Atari TT is not a fast PC).

There are 3 kernels available by default it loads option 1. To boot into one of the other kernels after the memory test on the Atari hold down the RIGHT-SHIFT key and a boot prompt will appear:
  1. netbsd - current Atari TT 7.1.1 kernel with a larger st_pool_size to allow X to work in TT HIGH
  2. netbsd-7.1 - original Atari TT kernel
  3. netbsd-7.1-falcon - kernel compiled for Falcon (not tested)
Once booted there are two logins

Root account:
  • user: root
  • password: ataritt

Unprivileged user account:
  • user: atarian
  • password: ataritt

Network is DHCP enabled but may need a bit more configuration:
  • hostname: atari.local
Setup in /etc/rc.conf is:

Code: Select all

hostname=atari.local

dhclient=YES

sshd=NO

xdm=NO
  • ssh is turned off as ssh slows the system down. I use it but the boot up takes longer.
  • xdm is turned off so you have to launch X as startx (only works under root)
Enjoy!

Steve
Posts: 133
Joined: Fri Sep 15, 2017 11:49 am

Re: NetBSD 7.1 on the Atari TT

Post by Steve » Wed Feb 21, 2018 9:14 am

Wow! Thank you! My TT is currently needing repairs but I will try this on the Falcon first :)

User avatar
IngoQ
Posts: 582
Joined: Tue Aug 22, 2017 8:38 am
Location: Germany

Re: NetBSD 7.1 on the Atari TT

Post by IngoQ » Wed Feb 21, 2018 9:47 am

Great work :thanksyellow:

When running Windows, a great tool for writing Images to Flashmedia is Rufus. It is Open Source and available here:

https://rufus.akeo.ie/
Ingo :geek:

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” - Antoine de Saint-Exupéry

User avatar
Icky
Posts: 116
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: NetBSD 7.1 on the Atari TT

Post by Icky » Wed Feb 21, 2018 10:15 am

IngoQ wrote:
Wed Feb 21, 2018 9:47 am
Great work :thanksyellow:

When running Windows, a great tool for writing Images to Flashmedia is Rufus. It is Open Source and available here:

https://rufus.akeo.ie/
Thanks IngoQ. I was wondering what the tool might be for Windows. I dumped windows back in 2006 only use it at work now.

User avatar
Icky
Posts: 116
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: NetBSD 7.1 on the Atari TT

Post by Icky » Wed Feb 21, 2018 11:35 pm

Icky wrote:
Tue Feb 20, 2018 9:29 pm

There are 3 kernels available by default it loads option 1. To boot into one of the other kernels after the memory test on the Atari hold down the RIGHT-SHIFT key and a boot prompt will appear:
  1. netbsd - current Atari TT 7.1.1 kernel with a larger st_pool_size to allow X to work in TT HIGH
  2. netbsd-7.1 - original Atari TT kernel
  3. netbsd-7.1-falcon - kernel compiled for Falcon (not tested)
Anyone trying to use this with the Falcon kernel its called netbsd-falcon-7.1 so at the boot prompt please enter that name and not the one previously mentioned.

Apologies for the typo in my previous instructions.

For information the disk image is 4GB i.e. using a 4GB SD card is ideal.

Post Reply