![]() |
![]() |
#1 |
Registered User
![]() Join Date: Jul 2015
Location: Stafford
Age: 51
Posts: 39
|
Minix
Since this thread is supposed to host all UNIX flavours, it seems weird no one posted about MINIX
![]() The full MINIX distribution can be found here: http://aminet.net/misc/os The original distribution, the two upgrades and some docs. I managed to boot and run the bootdisk from Update 1 (which includes code to avoid the kernel crashing on 680x0, x>0) and most crucially, hard disk support. Now, for real hardware, you need either a SCSI or XT. Worryingly enough, I couldn't install EITHER on WinUAE; something within MINIX doesn't seem to like how WinUAE handles the devices. Or is it? Did anyone succeed? In a related post, I mentioned I couldn't even get a proper hdf image under the XT protocol working; that's another attempt I'd like to try before giving up on emulation, and working solely on my A1200/30. In related news, I'm in the process of writing a proper IDE driver for my A1200. |
![]() |
![]() |
#2 | |
NetBSD developer
Join Date: May 2012
Location: Warsaw, Poland
Posts: 411
|
Quote:
![]() Would you mind sharing your effort? Is the old Minix code even buildable in 2015? What toolchain do you use? Maybe you can publish the code on GitHub? I wrote a few NetBSD/amiga drivers, I could take a look. |
|
![]() |
![]() |
#3 | |
Registered User
![]() Join Date: Jul 2015
Location: Stafford
Age: 51
Posts: 39
|
Quote:
![]() The idea was to use emulation to get a clean HD install of MINIX, but apparently MINIX doesn't like WinUAE ![]() I tried with both SCSI and XT emulation; I can see SCSI hdf images from MINIX, but then MINIX filesystem creation doesn't work; then I tried XT hdf images, but I can't even get AmigaOS to format an hdf file with XT format (see the thread in WinUAE support.) If you could try getting an XT format hdf (Toni Wilen says he got it working...somehow) it would be really helpful, at least I could see if MINIX likes XT better than SCSI on WinUAE. As a toolchain I was thinking of using cc on MINIX itself on WinUAE (just for that retro-experience ![]() What NetBSD drivers did you write? I'll definitely look at Linux, NetBSD and AROS for IDE implementations, I want to keep things as simple as possible, say ATA-1 level, so as to re-use as much of the official AT code in MINIX as possible. Another challenge, for the future, is to allow MINIX to fully support virtual memory (I have a 68030 accelerator in my A1200) and replace process shadowing. But until I get a proper HD installation of MINIX that's not really (easily) feasible. Last edited by rabindranath72; 29 July 2015 at 13:39. |
|
![]() |
![]() |
#4 |
Zone Friend
![]() Join Date: Mar 2004
Location: Middle Earth
Age: 39
Posts: 2,005
|
I was going to play with the patches tonight. Wrote the disks with yadi and messydos file handler from Aminet.
I remember the update was good as it didn't crash my A1200. But I didn't use the patches. |
![]() |
![]() |
#5 | |||||
NetBSD developer
Join Date: May 2012
Location: Warsaw, Poland
Posts: 411
|
Quote:
Quote:
![]() Quote:
Quote:
Quote:
![]() |
|||||
![]() |
![]() |
#6 | ||||
Registered User
![]() Join Date: Jul 2015
Location: Stafford
Age: 51
Posts: 39
|
Quote:
Quote:
Quote:
Quote:
![]() ![]() In any case, for starters I only want to implement some form of memory protection (similar to what the 8088 provides), so I'll have only to hack the memory manager. Last edited by rabindranath72; 29 July 2015 at 20:41. |
||||
![]() |
![]() |
#7 |
Registered User
![]() Join Date: Jul 2015
Location: Stafford
Age: 51
Posts: 39
|
Note that if you want to develop with an existing MINIX system, Atari ST emulation is robust enough to handle MINIX, including hard drive support, so you could install a full MINIX ST system. The executables produced are compatible between the ST and Amiga versions (unless they use some specific hardware, obviously). ST can work as an excellent cross-development platform.
In terms of more "modern" compiler, you could check the ACK compiler. http://tack.sourceforge.net/ Version 5.6 is relatively modern, it has 68k as a target architecture, and it can compile old non-ANSI code. |
![]() |
![]() |
#8 |
Registered User
![]() Join Date: Jul 2015
Location: Stafford
Age: 51
Posts: 39
|
Just a quick heads-up! It's been three years already! Well, only last month I managed to get my A1200 up and running, after finally having the physical space to set it up (moving to a much larger home.)
I am using the Atari ST version of MINIX (running under the Hatari emulator) as a development machine, as even the latest versions of WinUAE don't provide reliable support for hard drives under MINIX (although it works fine from floppy.) MiNT under the Atari ST also provides a minix-fs driver, so that I can easily move images from virtual MINIX filesystems to a windows folder, from which I can read files and import them in WinUAE or my A1200 (via PCMCIA CF reader.) It's a bit convoluted, but it works. I managed to re-compile the OS after applying the 1.5.10.1 and .2 patches. Note for some reason I couldn't get a working kernel image with the assembler string handling routines compiled into libc.a; both my A1200 and WinUAE (emulating both A1200 and A500) crash at boot. As this is not of immediate concern for my work, I'll try to address the problem later. As I mentioned earlier, the idea is to build a IDE driver. As a first step, I managed to modify the kernel to introduce a check for the Gayle gate array, and the kernel successfully identifies it, both on my A1200, and on WinUAE-emulated A600 and A1200. Next step: implementing the IDE register map. Last edited by rabindranath72; 22 January 2019 at 11:18. |
![]() |
![]() |
#9 |
BoingBagged
![]() Join Date: Aug 2007
Location: The South of nowhere
Age: 45
Posts: 2,341
|
This is really cool.
I understand there is a long road ahead of you, but it would be great, once your project is finished that you could upload your complete Minix WinUAE hardfile to Aminet. |
![]() |
![]() |
#10 | |
Registered User
![]() Join Date: Jul 2015
Location: Stafford
Age: 51
Posts: 39
|
Quote:
![]() |
|
![]() |
![]() |
#11 |
BoingBagged
![]() Join Date: Aug 2007
Location: The South of nowhere
Age: 45
Posts: 2,341
|
|
![]() |
![]() |
#12 |
Registered User
![]() Join Date: Jun 2015
Location: Umeå / Sweden
Posts: 265
|
I love projects like this! I'm curious though, I have (basically) no experience of Minix, how much can it do nowadays? Does it have proper networking, is much of the GNU-userland portable to it/usable under it?
|
![]() |
![]() |
#13 |
\m/
![]() Join Date: Nov 2008
Location: Devon, U.K.
Posts: 529
|
Incredible stuff. Looking forward to hearing more about this.
|
![]() |
![]() |
#14 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 48
Posts: 25,947
|
Quote:
I am not going to waste time with any random tests or install attempts. |
|
![]() |
![]() |
#15 | |
Registered User
![]() Join Date: Jul 2015
Location: Stafford
Age: 51
Posts: 39
|
Quote:
![]() In any case, I am interested in my software running on my machine, not on emulation, so if WinUAE doesn't work at this point it's not much of an issue for me. Last edited by rabindranath72; 21 January 2019 at 13:20. |
|
![]() |
![]() |
#16 | |
Registered User
![]() Join Date: Jul 2015
Location: Stafford
Age: 51
Posts: 39
|
Quote:
MINIX supported networking as early as version 1.5 on PC, and on ST from 1.6.25, I think. The Amiga version was "left behind" at 1.5.10.2 with no networking. I am not aware of attempts to port a GNU-userland to it; there is however at least one attempt to produce a PC cross-compiler that targets ST MINIX 1.6.25, however recompiling the OS meant quite a lot of changes to the K&R code had to be applied: http://www.beastielabs.net/minix/ I provided a small "hack" so that the full cross-development environment could work on cygwin. Someone has also managed to port MINIX 2.0.2 to Atari ST, but no source code was released. I didn't go that route because I don't have the time to change all of the code in the Amiga version. Ideally, I'd like to produce at least an Amiga 1.6.25 port, but that may be in the (far) future, mostly depending on the free time I have. For now, I'd be happy to get a full HD installation on my A1200 ![]() Last edited by rabindranath72; 21 January 2019 at 10:50. |
|
![]() |
![]() |
#17 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 48
Posts: 25,947
|
I am not interested in installing minix, it is someone else's problem
![]() There is still too many unknown variables, for example does it happen with all minix supported configs (A2090, A2091, A3000)? Config should be really simple, no "more compatible" checked, fastest possible CPU. |
![]() |
![]() |
#18 |
Registered User
![]() Join Date: Jul 2015
Location: Stafford
Age: 51
Posts: 39
|
Quick update: I successfully managed to detect the IDE devices on my A1200 (CF card.) I have two different CFs, one with two partitions, and another with a single partition. I can detect both.
|
![]() |
![]() |
#19 |
Registered User
![]() Join Date: Jul 2015
Location: Stafford
Age: 51
Posts: 39
|
It's been almost a year!
I have the pleasure to report that the ATA driver for Minix is now working. - LBA28 addressing - Supports up to two drives (no IDE doubler, though) - Up to 7 partitions per drive - MINIX partitions are limited to 32Mb - No interrupts support for now; the driver works by polling. A similar solution was adopted as an option for the IBM PC version of Minix, and a loss of 10-15% performance was reported - Tested on A1200, both physical hardware (using a CF 128Mb drive) and WinUAE emulation. It should work on A600 too, but I haven't tested it yet. It would require some changes to work on A4000 (not really interested in supporting this at the moment) - Uses Fast memory if available for buffering I am working on releasing the sources as an update (on top of 1.5.10.1/2) as soon as possible. I will release a pre-installed hdf image to run on A1200 as well. To date, I have installed the full OS on both my A1200 and in emulation, I have run tests, and even recompiled the OS (it makes a heavy use of the hard disk) without any issues. Interestingly, as previously mentioned, the default XT/SCSI drivers that come with Minix (for use on A590/A2090/A2091/A3000 SCSI) don't seem to work (at least in emulation; I haven't got any hardware to test them.) Last edited by rabindranath72; 17 January 2020 at 16:03. |
![]() |
![]() |
#20 |
Zone Friend
![]() Join Date: Mar 2004
Location: Middle Earth
Age: 39
Posts: 2,005
|
I will be interested in this
![]() When did you change development to Amiga or were you using Hatari for part of the development process? |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Minix images | redblade | support.WinUAE | 30 | 28 July 2015 12:50 |
Minix on Amiga | tinto | Amiga scene | 9 | 18 January 2010 10:05 |
Minix under E-UAE | gilgamesh | New to Emulation or Amiga scene | 1 | 13 September 2008 12:15 |
Amiga MINIX boot disk | _ThEcRoW | support.Apps | 3 | 30 December 2005 00:02 |
Minix on WinUAE | dondilly | support.WinUAE | 1 | 03 November 2005 08:01 |
|
|