All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v12 0/2]  Add a generic loader
@ 2016-09-28 22:44 Alistair Francis
  2016-09-28 22:45 ` [Qemu-devel] [PATCH v12 1/2] generic-loader: " Alistair Francis
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Alistair Francis @ 2016-09-28 22:44 UTC (permalink / raw)
  To: qemu-devel, peter.maydell
  Cc: alistair.francis, crosthwaitepeter, armbru, cov, pbonzini

This work is based on the original work by Li Guang with extra
features added by Peter C and myself.

The idea of this loader is to allow the user to load multiple images
or values into QEMU at startup.

Memory values can be loaded like this: -device loader,addr=0xfd1a0104,data=0x8000000e,data-len=4

Images can be loaded like this: -device loader,file=./images/u-boot.elf,cpu=0

This can be useful and we use it a lot in Xilinx to load multiple images
into a machine at creation (ATF, Kernel and DTB for example).

Tested with the latest Xilinx ZynqMP machine, if I enable EL3 and EL2 I can
boot ATF through to u-boot using the loader to load the images.

It can also be used to set registers.

This patch series makes the load_elf() function more generic by not
requiring an architecture. It also adds new functions load_elf_as(),
load_uimage_as and load_image_targphys_as which allows custom
AddressSpaces when loading images.

V12:
 - All patches have been reviewed
 - Most patches have been merged
 - The commit message of the actual device patch has been updated to
   justify why it is a device.


Alistair Francis (2):
  generic-loader: Add a generic loader
  docs: Add a generic loader explanation document

 MAINTAINERS                      |   6 ++
 docs/generic-loader.txt          |  81 ++++++++++++++++
 hw/core/Makefile.objs            |   2 +
 hw/core/generic-loader.c         | 197 +++++++++++++++++++++++++++++++++++++++
 include/hw/core/generic-loader.h |  46 +++++++++
 5 files changed, 332 insertions(+)
 create mode 100644 docs/generic-loader.txt
 create mode 100644 hw/core/generic-loader.c
 create mode 100644 include/hw/core/generic-loader.h

-- 
2.7.4

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

end of thread, other threads:[~2016-10-05 21:32 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 22:44 [Qemu-devel] [PATCH v12 0/2] Add a generic loader Alistair Francis
2016-09-28 22:45 ` [Qemu-devel] [PATCH v12 1/2] generic-loader: " Alistair Francis
2016-09-29  9:32   ` Markus Armbruster
2016-09-30  0:14     ` Alistair Francis
2016-09-28 22:45 ` [Qemu-devel] [PATCH v12 2/2] docs: Add a generic loader explanation document Alistair Francis
2016-09-29  9:24   ` Markus Armbruster
2016-09-30  0:25     ` Alistair Francis
2016-09-30  5:36       ` Markus Armbruster
2016-10-03 17:28         ` Alistair Francis
2016-10-04  7:56           ` Markus Armbruster
2016-10-04 15:45             ` Alistair Francis
2016-10-05  7:44               ` Markus Armbruster
2016-10-05 21:31                 ` Alistair Francis
2016-09-29  0:53 ` [Qemu-devel] [PATCH v12 0/2] Add a generic loader no-reply
2016-09-29  9:25   ` Markus Armbruster
2016-09-30  0:00     ` Peter Maydell
2016-09-30  0:09       ` Alistair Francis
2016-09-30  0:25         ` Peter Maydell
2016-09-30  0:27         ` Alistair Francis
2016-09-30  1:53     ` Fam Zheng

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.