target-mips.rst 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .. _MIPS-System-emulator:
  2. MIPS System emulator
  3. --------------------
  4. Four executables cover simulation of 32 and 64-bit MIPS systems in both
  5. endian options, ``qemu-system-mips``, ``qemu-system-mipsel``
  6. ``qemu-system-mips64`` and ``qemu-system-mips64el``. Five different
  7. machine types are emulated:
  8. - The MIPS Malta prototype board \"malta\"
  9. - An ACER Pica \"pica61\". This machine needs the 64-bit emulator.
  10. - MIPS emulator pseudo board \"mipssim\"
  11. - A MIPS Magnum R4000 machine \"magnum\". This machine needs the
  12. 64-bit emulator.
  13. The Malta emulation supports the following devices:
  14. - Core board with MIPS 24Kf CPU and Galileo system controller
  15. - PIIX4 PCI/USB/SMbus controller
  16. - The Multi-I/O chip's serial device
  17. - PCI network cards (PCnet32 and others)
  18. - Malta FPGA serial device
  19. - Cirrus (default) or any other PCI VGA graphics card
  20. The Boston board emulation supports the following devices:
  21. - Xilinx FPGA, which includes a PCIe root port and an UART
  22. - Intel EG20T PCH connects the I/O peripherals, but only the SATA bus
  23. is emulated
  24. The ACER Pica emulation supports:
  25. - MIPS R4000 CPU
  26. - PC-style IRQ and DMA controllers
  27. - PC Keyboard
  28. - IDE controller
  29. The MIPS Magnum R4000 emulation supports:
  30. - MIPS R4000 CPU
  31. - PC-style IRQ controller
  32. - PC Keyboard
  33. - SCSI controller
  34. - G364 framebuffer
  35. The Fuloong 2E emulation supports:
  36. - Loongson 2E CPU
  37. - Bonito64 system controller as North Bridge
  38. - VT82C686 chipset as South Bridge
  39. - RTL8139D as a network card chipset
  40. The Loongson-3 virtual platform emulation supports:
  41. - Loongson 3A CPU
  42. - LIOINTC as interrupt controller
  43. - GPEX and virtio as peripheral devices
  44. - Both KVM and TCG supported
  45. The mipssim pseudo board emulation provides an environment similar to
  46. what the proprietary MIPS emulator uses for running Linux. It supports:
  47. - A range of MIPS CPUs, default is the 24Kf
  48. - PC style serial port
  49. - MIPSnet network emulation
  50. .. include:: cpu-models-mips.rst.inc
  51. .. _nanoMIPS-System-emulator:
  52. nanoMIPS System emulator
  53. ~~~~~~~~~~~~~~~~~~~~~~~~
  54. Executable ``qemu-system-mipsel`` also covers simulation of 32-bit
  55. nanoMIPS system in little endian mode:
  56. - nanoMIPS I7200 CPU
  57. Example of ``qemu-system-mipsel`` usage for nanoMIPS is shown below:
  58. Download ``<disk_image_file>`` from
  59. https://mipsdistros.mips.com/LinuxDistro/nanomips/buildroot/index.html.
  60. Download ``<kernel_image_file>`` from
  61. https://mipsdistros.mips.com/LinuxDistro/nanomips/kernels/v4.15.18-432-gb2eb9a8b07a1-20180627102142/index.html.
  62. Start system emulation of Malta board with nanoMIPS I7200 CPU::
  63. qemu-system-mipsel -cpu I7200 -kernel <kernel_image_file> \
  64. -M malta -serial stdio -m <memory_size> -hda <disk_image_file> \
  65. -append "mem=256m@0x0 rw console=ttyS0 vga=cirrus vesa=0x111 root=/dev/sda"