17 September 2009, 12:43 | #1 |
Linux snob
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
|
Linux on WinUAE
You need the latest WinUAE beta with MMU support and an ISO image binary1 of Debian Sarge for m68k found here: http://www.debian.org/releases/sarge/debian-installer/
You should have access to a working Linux system, because some system tools are needed for this approach. Installation: 1. Unpack WinUAE and mount the ISO. 2. Extract the /install folder from the ISO to a new directory named sarge/. 3. Unzip the initrd22.gz file from the sarge/install/hd-media subfolder. Mount that file via a loop device. 4. Make a new ramdisk called intrd.img of 11MB with dd and mkfs.ext2. Mount it via a loop device. 5. (As root) Copy contents from old ramdisk to new one, and add the missing modules (i.e. /lib from kernel-image-2.4.27-amiga_2.4.27-3sarge5_m68k.deb). 6. Copy the new ramdisk to sarge/install/tools/amiga/ and change the contents of StartInstall there so that it will use initrd.img. 7. Create two images iso.hdf and linux.hdf with dd and mkfs.ext2 of about 800MB, mount iso.hdf and copy the ISO into it. 8. Start WinUAE in A1200 mode, give it 128MB RAM, mount the sarge directory as HD0 and the hdf files as IDE0 and IDE1. 9. Insert WB floppy, boot, and enter "cd to dh0:/install/tools/amiga" in the shell. 10. Then enter "execute StartInstall", follow the instructions on screen. Problems: a2065 is not auto detected. I've come to the point of partitioning hda. Then things either become really slow, or just crash... |
17 September 2009, 13:01 | #2 | |
Zone Friend
|
Quote:
And is there any way out if you do NOT have access to a working Linux system, e. g. if you have Windows and you just want to run Linux on the emulator? |
|
17 September 2009, 13:07 | #3 |
Citizen of Elthesh
Join Date: Sep 2003
Location: UK
Posts: 949
|
Well he said "working", so definitely not SuSE. What kind of silly question is that?
[Edit] Wait, okay, did you mean "which tools"? then my guess would be the ones mentioned in the instructions. P.s. Still a silly question. [/Edit] Live CD (various distributions, also System Rescue CD, etc.), virtualization software (VirtualBox, VirtualPC, VMware, etc.) with Linux (pre-installed packages are available), there's probably also software to directly mount most Linux file systems into an NTFS tree. And many Linux tools (e.g. dd) are available for Windows, too, anyways. Last edited by eLowar; 17 September 2009 at 13:12. Reason: Added last sentence and extra comment in the first part. |
17 September 2009, 13:40 | #4 | |
Zone Friend
|
Exactly.
But my browser just crashed on auto-update (very rare!!), and that's why it took quite long until I could return here... OK it's quite obvious once you've gotten the hang of it. So you have to prepare everything on Windows first, and THEN just make your work "visible" for WinUAE. For some weird reason, I had thought you could work inside the emulator but alas, since we do not have in-emulation ISO support (yet), sure thing, this has to be done "outside" the emulator zone. Yeah, admittedly, I had forgotten this bit. My bad. Alright then...and for the tools...I almost forgot that I do have Cygwin, so this might do Quote:
Last edited by andreas; 17 September 2009 at 14:07. |
|
17 September 2009, 18:20 | #5 | ||
Linux snob
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
|
Quote:
Quote:
Outside WinUAE, but you can (and probably have to) use a PC emulator like VirtualBox. Most distros (including Ubuntu) make live CDs of their system. The emulator can execute those without installation, just like eLowar said. That includes mounting filesystems. If Cygwin hasn't included that recently, you'll have to use a "real" linux. You might want to have a look at VirtualBox or coLinux. |
||
17 September 2009, 18:49 | #6 | ||
Citizen of Elthesh
Join Date: Sep 2003
Location: UK
Posts: 949
|
Quote:
[Edit] Okay, it does provide slightly easier access to the Windows file system if you have no clue about Linux at all and/or don't have the necessary file system support. [/Edit] Quote:
I only had a cursory look, and correct me if I'm wrong, gilgamesh, but there's no reason not to copy your created/modified files and/or switch to Windows after step 7, is there? [Edit] Speaking of having no clue about Linux, gilgamesh, your instructions are not very friendly to non (or casual) *nix users ("mount via a loop back device", etc.). Seeing the problems you mentioned, however, I guess it won't do much good for them, anyways. So forget I said anything. [/Edit] My apologies. (I still don't like it, though.) Last edited by eLowar; 17 September 2009 at 18:59. Reason: Admission and some other small changes. |
||
17 September 2009, 20:08 | #7 |
Linux snob
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
|
Btw, you can get away without ever needing an extra linux. Toni has suggested how here. This method is more complicated on the UAE side, though.
And yes, you need Linux only for steps 3, 4 and 7 with my method. The commands for steps 3,4,5 can be taken from here. Maybe a detailed howto should be written when Linux actually runs on UAE. I would definitely suggest Ubuntu in VirtualBox. No install, No virtual HD. Files can easily be transferred between guest and host by the "guest additions". Oh, and now I'm sure there is a bug. After partitioning is completed, processor load is 100%, HD access it null, and it won't ever stop. |
17 September 2009, 20:10 | #8 |
Citizen of Elthesh
Join Date: Sep 2003
Location: UK
Posts: 949
|
Just for completeness, pre-installed images (as mentioned before) can for example be obtained here: http://virtualboximages.com/
Edit: Opps... there is a free section, but apparently many aren't free (anymore? I thought I was on that site before and more/all was free). Sorry about that. But I'm sure you can get plenty of other images elsewhere. Last edited by eLowar; 17 September 2009 at 20:15. Reason: Ooops. |
17 September 2009, 20:45 | #9 | ||
Zone Friend
|
Quote:
Admittedly yes, it *IS* like this on here (most of the time at least) Quote:
To a more serious note, had I already thought about upgrading my current PC, well, I wouldn't even have asked all those questions but instead figured out everything myself because I would've had *TWO* PCs at hand then. But alas, this currently is not the case. And lastly, it doesn't bug me at all if Toni's method is deemed "complicated" on the UAE side. I have been a private UAE beta tester for a whale of a time, and I'm so doggone used to this (occasionally) awkward stuff, so things got to become real cumbersome to annoy me <grin> Last edited by andreas; 17 September 2009 at 21:03. |
||
17 September 2009, 21:18 | #10 |
Linux snob
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
|
I uploaded the patched ramdisk to the zone. Maybe this helps a bit. Now you only need to get that ISO on a hdf. Affs is ok, too. Maybe you can do that with WB by mounting the hdf and a directory containing the ISO as dh0: and dh1: in WinUAE?
|
17 September 2009, 22:20 | #11 |
Zone Friend
|
Thanks!
|
22 September 2009, 09:31 | #12 |
Linux snob
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
|
Well, I started the debugger to see what's going on after partitioning. PC is in the middle of nowhere (lots of zeros mixed with some random bytes). (I wonder why it fires no traps when an illegal instructions are hit.)
My first guess would be MMU misbehavior. But how can that be verified? |
22 September 2009, 10:27 | #13 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,534
|
Quote:
Debugging hint: in these kinds of situations always compare to working condition. you would have noticed exact same behavior You need to use debugger mmu translation commands to translate PC (logical address) to physical address and then disassemble.. Very annoying but I am not going to rewrite the debugger just for MMU.. Note that you most likely break in some unrelated kernel function anyway (like in some timer interrupt routine) which really makes OS debugging difficult. What exactly are you doing? I am going to test network installation soon (going to mirror installation files to my LAN file/web server first) |
|
22 September 2009, 10:53 | #14 | |
Linux snob
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
|
Quote:
I try to install Sarge from an ISO image on a IDE-HD. The initrd I put into the zone searches all HD for an ISO and mounts it automatically. The installation routine works well until the partition table is written. (That step is completed. The partition table is correct afterwards.) Then the program is suddenly very busy, but goes nowhere from that point. |
|
22 September 2009, 16:59 | #15 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,534
|
There appears to be something wrong with IDE emulation. (syslog also shows hda errors)
btw, simply mounting the iso as IDE1 HDF in RDB mode works with your initrd (use 512 sector size also works, >512 are not supported by IDE emulation) EDIT: IDE emulation has design flaw which was missed because AmigaOS driver is too simple Last edited by Toni Wilen; 22 September 2009 at 18:23. |
22 September 2009, 18:42 | #16 |
Linux snob
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
|
|
22 September 2009, 20:11 | #17 |
Registered User
Join Date: Jun 2009
Location: Germany
Posts: 77
|
It should also work the way I described in one of the other Linux-related threads (netinstall only).
1. Get the Business Card ISO (because it's the smallest) 2. Extract the contents of said ISO to a folder on your HD 3. Start WinUAE and create a RDF-Image of appropriate size (I used 1GB) 4. Configure A2065 emulation in WinUAE settings 5. Add the folder to which you extracted the CD contents as HD 6. Edit (on your host OS) the file install/tools/amiga/StartInstall to use the initrd in the nativehd folder rather than the cdrom folder 7. Execute the StartInstall script This should work however I can't get the networking stuff to function properly. The installer contacts the debian server (archive.debian.org) but can't fetch the Release file (dmesg reports timeouts). Looks like something in my networking setup is botched - maybe someone else will have more luck. A quick Wireshark dump shows that my router is sending ARP broadcast requests for the emulated A2065 all the time but doesn't get an answer. Maybe Toni's router is using it's ARP cache more wisely |
22 September 2009, 20:44 | #18 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,534
|
Quote:
Log format is > or < (out or in), dst mac, src mac, packet type, length. * after a2065 means translated mac. There is something wrong in translation if you see 00:80:10:x:y:z with wireshark (inside ARP packet. Note that this translation was broken ~week ago) |
|
23 September 2009, 18:18 | #19 |
Zone Friend
|
|
23 September 2009, 18:24 | #20 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,534
|
winuae.zip updated, IDE emulation fixed. Unfortunately Sarge installation stopped at about 40% with following error in console 3:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linux + WinUAE - Help needed | gulliver | support.WinUAE | 2 | 17 October 2010 19:32 |
Winuae on Linux | alanwall | support.WinUAE | 3 | 08 November 2009 10:56 |
Anyone tried WinUAE with Linux & WINE? | mark_k | support.WinUAE | 36 | 03 May 2008 19:51 |
Linux on WinUAE possible? | Tolismlf | support.WinUAE | 5 | 04 May 2006 21:46 |
WinUAE vs Linux UAE? | kckelleher | support.WinUAE | 0 | 04 May 2002 23:29 |
|
|