2
0

or1k-sim.rst 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Or1ksim board
  2. =============
  3. The QEMU Or1ksim machine emulates the standard OpenRISC board simulator which is
  4. also the standard SoC configuration.
  5. Supported devices
  6. -----------------
  7. * 16550A UART
  8. * ETHOC Ethernet controller
  9. * SMP (OpenRISC multicore using ompic)
  10. Boot options
  11. ------------
  12. The Or1ksim machine can be started using the ``-kernel`` and ``-initrd`` options
  13. to load a Linux kernel and optional disk image.
  14. .. code-block:: bash
  15. $ qemu-system-or1k -cpu or1220 -M or1k-sim -nographic \
  16. -kernel vmlinux \
  17. -initrd initramfs.cpio.gz \
  18. -m 128
  19. Linux guest kernel configuration
  20. """"""""""""""""""""""""""""""""
  21. The 'or1ksim_defconfig' for Linux openrisc kernels includes the right
  22. drivers for the or1ksim machine. If you would like to run an SMP system
  23. choose the 'simple_smp_defconfig' config.
  24. Hardware configuration information
  25. """"""""""""""""""""""""""""""""""
  26. The ``or1k-sim`` board automatically generates a device tree blob ("dtb")
  27. which it passes to the guest. This provides information about the
  28. addresses, interrupt lines and other configuration of the various devices
  29. in the system.
  30. The location of the DTB will be passed in register ``r3`` to the guest operating
  31. system.