Amiga.org

Operating System Specific Discussions => Amiga UNIX => Topic started by: johnklos on January 01, 2018, 11:57:36 PM

Title: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: johnklos 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/netbsdamiga.dd.gz)
http://amiga.zia.io/1jan2018/a3000netbsd.fs-uae (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/ (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.
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: LoadWB on January 02, 2018, 12:38:05 AM
Soooo awesome.  Thank you.  When I get time over the next week I will give this a try on a DOM in my 1200.  Have to pull my 2000-060 out and try it there, too!
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: trekiej on January 02, 2018, 01:58:47 AM
I have every thing except the A3000 Rom.
:(
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: klx300r on January 02, 2018, 03:42:52 AM
@ johnklos

thanks very much this is awesome stuff ! I'd love to get this working/ dual booting on my 1200T but cringe at getting it working with my mediator & 060... time willing
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: QuikSanz on January 04, 2018, 07:30:04 PM
This is interesting. Would love to see a screen shot of it on the A2000/060, Please?
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: awol2k on January 19, 2018, 08:40:11 PM
For some reason the term "SLiRP" reminds me of a horrible time I had with SLIP / cSLIP back in the 1980s...

anyway, daft question time:
NetBSD will require an MMU won't it?

EDIT:
I believe you answered this question already:
http://www.amiga.org/forums/showthread.php?t=53323
Quote:
"which can be used with UAE (with whatever it takes to make MMU support work)"
and:
"NetBSD/amiga runs on any Amiga with an MMU and at least 8 megabytes of memory"
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: johnklos 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.
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: kolla on January 20, 2018, 09:37:42 AM
Quote from: johnklos;835196
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.


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. :)
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: awol2k on January 20, 2018, 04:46:56 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. :)


Might as well run generic x86 / x86-64bit / amd64 architecture with QEmu or OpenStack at that point!

I want to run it on Amiga hardware ideally, so that means accelerator board.
Wish I knew where the rest of my amiga kit went (including a blizzard 030 @40).

One thing I thought I still had was a single 68040RC25 cpu I was given, I had one day hoped to find an accelerator board to fit it to.

I took it out of a printer that I was given. Damned if I can remember which one.
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: johnklos 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 (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...
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: trekiej on January 21, 2018, 12:31:10 AM
I got it to run but I get an error. It cannot make a lock file when it comes to running X.
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: Rotzloeffel on September 25, 2018, 01:41:33 PM
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.

This is the same with the Blizzard2060 for example. The solution is to install the Berkeley Filesystem on your root Partition.

you can optain it from Aminet: http://aminet.net/package/misc/emu/bffs

you can also use it to Exchange data between Amiga and netbsd because they are accessable from the Workbench.

Thank you for this Project! makes it much more easier for more People!

I did a lot of Software for NetBSD like Games, Webbrowsers, Desktopmanagers, Fileutils, Email-Clients and more! you can Access the packages very easy from

http://ftp.netbsd.org/pub/NetBSD/misc/phx/amiga/

There are things like: Netsurf, ClawsMail, ScummVM, FreeCIV, Samba, Enlightenment V16 and 17, Xfce and many more!

Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: NinjaCyborg on November 10, 2018, 09:31:18 PM
what support for window manager / GUI is there? Can it run KDE or anything?
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: kolla on November 11, 2018, 09:56:09 AM
what support for window manager / GUI is there? Can it run KDE or anything?
Is it utterly worthless and pointless for you if it cannot run Plasma Desktop? I used to run KDE2 on Linux/m68k.
The biggest task is actually not running it on m68k, but building C++ code for m68k, very few m68k systems have enough RAM.
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: cdh on December 27, 2018, 03:25:08 AM
> ... The solution is to install the Berkeley Filesystem on your root Partition.
> you can optain it from Aminet: http://aminet.net/package/misc/emu/bffs
> you can also use it to Exchange data between Amiga and netbsd because they are accessable from the Workbench.

Thanks for the plug!  Note there is an updated version of the Berkeley Fast Filesystem (with source) here:
    http://aminet.net/disk/misc/bffs16_src.lha
Title: Re: NetBSD/Amiga image for real Amigas and FS-UAE
Post by: Rotzloeffel on April 02, 2019, 11:50:38 AM
what support for window manager / GUI is there? Can it run KDE or anything?

Blob... :)

Yes, there are several Desktopenvironments available vor NetBSD 68k! I built enlightenment, xzfe4 and actually I build a complete MATE-Desktop :) Also a lot of Software is available.....