All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] OpenRISC Device Tree Support
@ 2022-02-10 12:33 Stafford Horne
  2022-02-10 12:34 ` [PATCH v2 1/4] hw/openrisc/openrisc_sim: Create machine state for or1ksim Stafford Horne
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Stafford Horne @ 2022-02-10 12:33 UTC (permalink / raw)
  To: QEMU Development; +Cc: Stafford Horne

Changes since v1:
 - Fixed typos pointed out by Philippe
 - Moved usage of machine state to patch 3/4
 - added config dependency on FDT

This series adds device tree support for the OpenRISC SIM hardware.

The simulator will generate an FDT and pass it to the kernel.

For example:
  qemu-system-or1k -cpu or1200 -M or1k-sim \
    -kernel /home/shorne/work/linux/vmlinux \
    -initrd /home/shorne/work/linux/initramfs.cpio.gz \
    -serial mon:stdio -nographic -gdb tcp::10001 -m 32

Using the linux kernel or1ksim_defconfig we can remove the built-in
dts and the kernel will boot as expected.  The real benefit here is
being able to specify an external initrd which qemu will load into
memory and the device tree will tell the kernel where to find it.

Stafford Horne (4):
  hw/openrisc/openrisc_sim: Create machine state for or1ksim
  hw/openrisc/openrisc_sim: Parameterize initialization
  hw/openrisc/openrisc_sim; Add support for loading a device tree
  hw/openrisc/openrisc_sim: Add support for initrd loading

 configs/targets/or1k-softmmu.mak |   1 +
 hw/openrisc/openrisc_sim.c       | 261 +++++++++++++++++++++++++++++--
 2 files changed, 248 insertions(+), 14 deletions(-)

-- 
2.31.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-02-17 21:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10 12:33 [PATCH v2 0/4] OpenRISC Device Tree Support Stafford Horne
2022-02-10 12:34 ` [PATCH v2 1/4] hw/openrisc/openrisc_sim: Create machine state for or1ksim Stafford Horne
2022-02-10 12:34 ` [PATCH v2 2/4] hw/openrisc/openrisc_sim: Parameterize initialization Stafford Horne
2022-02-10 12:34 ` [PATCH v2 3/4] hw/openrisc/openrisc_sim; Add support for loading a device tree Stafford Horne
2022-02-10 12:34 ` [PATCH v2 4/4] hw/openrisc/openrisc_sim: Add support for initrd loading Stafford Horne
2022-02-17 18:04   ` Peter Maydell
2022-02-17 21:17     ` Stafford Horne

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.