Welcome, Guest. Please login or register.

Author Topic: NetBSD/Amiga image for real Amigas and FS-UAE  (Read 25406 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline johnklosTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2010
  • Posts: 190
    • Show all replies
NetBSD/Amiga image for real Amigas and FS-UAE
« on: January 01, 2018, 11:57:36 PM »
Hi, all,

Here's the beginning of an effort to make NetBSD/Amiga more accessible to anyone who would like to try it. I've made an image of NetBSD 8 (not yet final, so it's 8.0_BETA) which'll run on FS-UAE or on real Amigas.

At the link below you'll find a compressed 2 gigabyte image with NetBSD for Amiga preinstalled. The disk is a little more than 2*10^9 bytes and smaller than 2^31 bytes, so it should fit on any 2 gig or larger (micro)SD or CompactFlash card. It has a 300 meg bootable AmigaDOS partition (without AmigaDOS, of course), a 64 meg swap partition, and the rest is a NetBSD installation.

The bootblocks work on most controllers, but some boards won't boot from this. The Blizzard 1260 with SCSI IV won't, for instance. In my A1200, I boot the kernel from a CF with this image, then use an SSD on the SCSI bus as the root partition.

It's available here:

http://amiga.zia.io/1jan2018/netbsdamiga.dd.gz
http://amiga.zia.io/1jan2018/a3000netbsd.fs-uae

Once you ungzip the image, you can use dd to write this on to a real drive (SCSI, IDE, CompactFlash, SD card, whatever) and connect it to your Amiga, or you can use it with FS-UAE.

Setting everything up with FS-UAE really should require a separate post, but for now this should get you started.

Start the download of the netbsdamiga.dd.gz image from above.

From http://fs-uae.net/, download FS-UAE and FS-UAE Launcher, plus download QEMU-UAE (PPC and Slirp Plugin). Launch FS-UAE Launcher so it'll create your directory structure. Take note of where the FS-UAE directory is made. In Unix, it'll be ~/FS-UAE. In Mac OS X, it'll be in ~/Documents/FS-UAE. Not sure about Windows, but you should be able to find it easily.

Unzip the QEMU-UAE download. In the folder that appears you'll see three directories - Linux, macOS and Windows. Open the one that corresponds to your OS, then open the folder in there that corresponds to whether your OS is Intel 32 bit or Intel 64 bit. Take the files in that folder (qemu-uae.so and Version.txt) and put them in to FS-UAE/Plugins/.

If you have an OS other than GNU/Linux, macOS or Windows, or if you're using a non-x86 processor, networking won't work yet. I'll look in to that soon. Right now, networking only works by using the QEMU-UAE plugin to provide an emulated A2065 ethernet card to NetBSD, and the plugin isn't available for other architectures / OSes yet.

Next, download a3000netbsd.fs-uae and put it in FS-UAE/Configuration/. Ungzip netbsdamiga.dd.gz and put netbsdamiga.dd in to FS-UAE/Hard Drives/. Put a copy of an Amiga 3000 ROM in to FS-UAE/Kickstarts/.

Launch FS-UAE, select "a3000netbsd" from the listed configuations, then select the icon along the top that looks like an eight pin surface mount chip, and click the file icon next to the "Kickstart ROM:" line. Select your Amiga 3000 Kickstart ROM. Click the little button with what appears to be a red down arrow in the lower right corner of the list of configurations (which saves the configuration), and then click the "Start" button. You should have NetBSD booting now!

Networking is via SLiRP, which is horribly documented. To get networking under NetBSD up and running, do the following:

mount /dev/sd0a /
echo "nameserver 10.0.2.3" > /etc/resolv.conf
ifconfig le0 inet 10.0.2.15 netmask 255.255.255.0
route add default 10.0.2.2

ICMP won't work properly, and ssh seems to get disconnected with errors now and then, but it's a start.

Soon I'll have a mini NetBSD how-to, plus I'll be looking in to better networking options. Also, over the next few days I'll start building a repository of m68k/Amiga pkgsrc packages for quick download and installation.

Good luck! Please don't hesitate to provide feedback.
 

Offline johnklosTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2010
  • Posts: 190
    • Show all replies
Re: NetBSD/Amiga image for real Amigas and FS-UAE
« Reply #1 on: January 20, 2018, 09:26:32 AM »
Yes, NetBSD requires an MMU, which is why NetBSD under FS-UAE, even on a 4 GHz Core i7, is not yet as fast as a real m68060.
 

Offline johnklosTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2010
  • Posts: 190
    • Show all replies
Re: NetBSD/Amiga image for real Amigas and FS-UAE
« Reply #2 on: January 20, 2018, 09:56:13 PM »
Quote from: kolla;835198
Which is why you should use Aranym for such tasks, as emulating the atari and dropping all the Amiga chipset emulation, makes a big difference. :)


It seems that ARAnyM isn't an option yet:

https://mail-index.netbsd.org/port-atari/2012/03/19/msg000493.html

I'll have to see if that's changed. In the meanwhile, although SLiRP is mostly broken, this works. The configuration has several options to make video less of a drain, but I'm sure I could find more.

I still haven't come up with a better way to network yet...