Documentation/Platforms/m68k: Difference between revisions

From QEMU
No edit summary
No edit summary
Line 1: Line 1:
This page is about qemu-system-m68k, which emulates the following machines:
The following machines are emulated through qemu-system-m68k:
 
 
== Arnewsh 5206 ==
 
== MCF5208EVB ==
 
== NeXT Cube ==
 
== Macintosh Quadra 800 ==
 


<table>
<table>
Line 16: Line 6:
</tr>
</tr>
<tr>
<tr>
<td>-m an5206 </td><td>Arnewsh 5206 (default)</td>
<td>-m g3beige </td><td>Heathrow based PowerMAC (default)</td>
</tr>
<tr>
<td>-m mac99 </td><td>Mac99 based PowerMAC<tr>
</tr>
<tr>
<td>-m 40p </td><td>IBM RS/6000 7020 (40p)</td>
</tr>
<tr>
<td>-m bamboo </td><td>Bamboo</td>
</tr>
<tr>
<td>-m mpc8544ds </td><td>Mpc8544ds</td>
</tr>
<tr>
<td>-m none </td><td>Empty machine</td>
</tr>
</tr>
<tr>
<tr>
<td>-m mcf5208evb  </td><td>MCF5208EVB (default)<tr>
<td>-m ppce500 </td><td>Generic paravirt e500 platform</td>
</tr>
</tr>
<tr>
<tr>
<td>-m next-cube </td><td>NeXT Cube</td>
<td>-m prep </td><td>PowerPC PREP platform (deprecated in favour of the 40p machine )</td>
</tr>
</tr>
<td>-m none  </td><td>empty machine<tr>
<tr>
<td>-m ref405ep </td><td>Ref405ep</td>
</tr>
</tr>
<tr>
<tr>
<td>-m q800 </td><td>Macintosh Quadra 800</td>
<td>-m sam460ex </td><td>aCube Sam460ex</td>
</tr>
</tr>
<tr>
<td>-m taihu </td><td>Taihu</td>
</tr>
<tr>
<td>-m virtex-ml507 </td><td>Xilinx Virtex ML507 reference design</td>
</table>
</table>



Revision as of 08:33, 7 December 2019

The following machines are emulated through qemu-system-m68k:

Machine model selectorProvides
-m g3beige Heathrow based PowerMAC (default)
-m mac99 Mac99 based PowerMAC
-m 40p IBM RS/6000 7020 (40p)
-m bamboo Bamboo
-m mpc8544ds Mpc8544ds
-m none Empty machine
-m ppce500 Generic paravirt e500 platform
-m prep PowerPC PREP platform (deprecated in favour of the 40p machine )
-m ref405ep Ref405ep
-m sam460ex aCube Sam460ex
-m taihu Taihu
-m virtex-ml507 Xilinx Virtex ML507 reference design

You can select the desired machine with the -M command line option.

Installing Linux

Download a m68k distribution, such as debian-10.0-m68k-NETINST-1.iso. Create a hard disk image to install onto.

Extract the installation kernel and initrd from the installation CD:

 guestfish --add debian-10.0-m68k-NETINST-1.iso --ro --mount /dev/sda:/
 <fs> copy-out /install/cdrom/initrd.gz .
 <fs> copy-out /install/kernels/vmlinux-4.16.0-1-m68k .

Boot from the CD image:

 ./qemu-system-m68k -boot d \
 -M q800 -serial none -serial mon:stdio -m 1000M \
 -net nic,model=dp83932 -net user \
 -append "console=ttyS0 vga=off" \
 -kernel vmlinux-4.16.0-1-m68k \
 -initrd initrd.gz \
 -drive file=m68k-deb10.qcow2,format=qcow2 \
 -drive file=debian-10.0-m68k-NETINST-1.iso,format=raw,media=cdrom \
 -nographic

Use the following for the source for network-based installation:

 http://ftp.ports.debian.org
 /debian-ports/

After installation, extract the kernel and initrd from the hard disk image;

 guestfish --add m68k-deb10.qcow2 --mount /dev/sda2:/
 <fs>copy-out /boot/vmlinux-4.16.0-1-m68k .
 <fs>copy-out /boot/initrd.img-4.16.0-1-m68k .

To boot from the HD image, you can use:

 ./qemu-system-m68k -boot c \
 -M q800 -serial none -serial mon:stdio -m 1000M \
 -net nic,model=dp83932 -net user \
 -append "root=/dev/sda2 rw console=ttyS0 console=tty \
 -kernel vmlinux-4.16.0-1-m68k \
 -initrd initrd.img-4.16.0-1-m68k \
 -drive file=m68k-deb10.qcow2,format=qcow2 \
 -nographic