[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upgrading from etch-m68k to unstable



Hello,

The qemu-m68k approach works fine at least with sarge, but with etch-m68k qemu-m68k cannot handle some syscalls... This is how I revived my amiga; first debootstrapping sarge on i386 (second stage and tinkering using qemu), cross-compiling the latest kernel, installing amigaos with amiboot on the amiga's hdd using e-uae, and booting the debootstrapped sarge over nfsroot (no support in the latest kernel for my SCSI-controller).

sarge can then be upgraded to etch-m68k and so forth


On 07/28/2011 07:52 PM, Laurent Vivier wrote:
Hi,

if you want to test your upgrade process, I think it would be nice to
work in a chroot... and with qemu you can do that. It is not as mature
as aranym, but it is nice to play with it.

How to do ? Follow this:

create an etch-m68k system under /m68k using something like

sudo debootstrap --arch=m68k --foreign etch-m68k /m68k http://archive.debian.org/debian

then get my qemu m68k fork (based on the work of Andreas Schwab):

git clone git://gitorious.org/qemu-m68k/qemu-m68k.git

and build it:

cd qemu-m68k
./configure --target-list=m68k-linux-user --m68k-default-cpu=m68040 --static
sudo cp m68k-linux-user/qemu-m68K /m68k/usr/bin
./scripts/set_binfmt_m68k

sudo chroot /m68k
# uname -a
Linux aspire-one 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 m68k GNU/Linux
# mount none /proc -t proc
# ps -f
UID        PID  PPID  C STIME TTY          TIME CMD
root     26492  9209  0 18:21 ?        00:00:00 sudo chroot /m68k
root     26493 26492 23 18:21 ?        00:00:05 /usr/bin/qemu-m68k /bin/bash -i
root     26521 26493  0 18:22 ?        00:00:00 /usr/bin/qemu-m68k /bin/ps -f

And for the fun, I've a little program computing the bogomips as the
kernel startup does and guessing the emulated Mhz:

# ./bogomips
Clocking:	33
BogoMips:	26.00
Calibration:	131072

(on a Intel(R) Atom(TM) CPU N270   @ 1.60GHz)

I've no real internet access until mid of august, but I'll try to answer
to your questions, if any...

Regards,
Laurent
Le mercredi 27 juillet 2011 à 09:12 +0200, Ingo Jürgensmann a écrit :
Hi!

I'm in the progress of upgrading my Amigas from etch-m68k to unstable from debian-ports.org. With the great help from Thorsten Glaser I wrote up some kind of How-To on:

  http://blog.windfluechter.net/content/blog/2011/07/26/1189-upgrading-m68k-etch-m68k-unstable

Please feel free to comment on this How-To and give feedback about your upgrade experience, preferrably here on the list so that bugs and errors can be solved!
Wouter already pointed yesterday to his build of debian-installer...

--
Ciao...            //      Fon: 0381-2744150
       Ingo       \X/       http://blog.windfluechter.net


gpg pubkey:  http://www.juergensmann.de/ij_public_key.asc






Reply to: