6b90a4cdc0
SUN Type 4, 5 and 5c keyboards have dip switches to choose the language layout of the keyboard. Solaris makes an ioctl to query the value of the dipswitches and uses that value to select keyboard layout. Also the SUN bios like the one in the file ss5.bin uses this value to support at least some keyboard layouts. However, the OpenBIOS provided with qemu is hardcoded to always use an US keyboard layout. Before this patch, qemu allways gave dip switch value 0x21 (US keyboard), this patch uses a command line switch like "-global escc.chnA-sunkbd-layout=de" to select dip switch value. A table is used to lookup values from arguments like: -global escc.chnA-sunkbd-layout=fr -global escc.chnA-sunkbd-layout=es But the patch also accepts numeric dip switch values directly: -global escc.chnA-sunkbd-layout=0x2b -global escc.chnA-sunkbd-layout=43 Both values above are the same and select swedish keyboard as explained in table 3-15 at https://docs.oracle.com/cd/E19683-01/806-6642/new-43/index.html Unless you want to do a full Solaris installation but happen to have access to a Sun bios file, the easiest way to test that the patch works is to: qemu-system-sparc -global escc.chnA-sunkbd-layout=sv -bios /path/to/ss5.bin If you already happen to have a Solaris installation in a qemu disk image file you can easily try different keyboard layouts after this patch is applied. Signed-off-by: Henrik Carlqvist <hc1245@poolhem.se> Message-Id: <20230623203007.56d3d182.hc981@poolhem.se> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> [MCA edit: update unsigned char to uint8_t, fix spacing issues] Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
63 lines
1.5 KiB
ReStructuredText
63 lines
1.5 KiB
ReStructuredText
.. _Sparc32-System-emulator:
|
|
|
|
Sparc32 System emulator
|
|
-----------------------
|
|
|
|
Use the executable ``qemu-system-sparc`` to simulate the following Sun4m
|
|
architecture machines:
|
|
|
|
- SPARCstation 4
|
|
|
|
- SPARCstation 5
|
|
|
|
- SPARCstation 10
|
|
|
|
- SPARCstation 20
|
|
|
|
- SPARCserver 600MP
|
|
|
|
- SPARCstation LX
|
|
|
|
- SPARCstation Voyager
|
|
|
|
- SPARCclassic
|
|
|
|
- SPARCbook
|
|
|
|
The emulation is somewhat complete. SMP up to 16 CPUs is supported, but
|
|
Linux limits the number of usable CPUs to 4.
|
|
|
|
QEMU emulates the following sun4m peripherals:
|
|
|
|
- IOMMU
|
|
|
|
- TCX or cgthree Frame buffer
|
|
|
|
- Lance (Am7990) Ethernet
|
|
|
|
- Non Volatile RAM M48T02/M48T08
|
|
|
|
- Slave I/O: timers, interrupt controllers, Zilog serial ports,
|
|
:ref:`keyboard` and power/reset logic
|
|
|
|
- ESP SCSI controller with hard disk and CD-ROM support
|
|
|
|
- Floppy drive (not on SS-600MP)
|
|
|
|
- CS4231 sound device (only on SS-5, not working yet)
|
|
|
|
The number of peripherals is fixed in the architecture. Maximum memory
|
|
size depends on the machine type, for SS-5 it is 256MB and for others
|
|
2047MB.
|
|
|
|
Since version 0.8.2, QEMU uses OpenBIOS https://www.openbios.org/.
|
|
OpenBIOS is a free (GPL v2) portable firmware implementation. The goal
|
|
is to implement a 100% IEEE 1275-1994 (referred to as Open Firmware)
|
|
compliant firmware.
|
|
|
|
A sample Linux 2.6 series kernel and ram disk image are available on the
|
|
QEMU web site. There are still issues with NetBSD and OpenBSD, but most
|
|
kernel versions work. Please note that currently older Solaris kernels
|
|
don't work probably due to interface issues between OpenBIOS and
|
|
Solaris.
|