From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0tPt-0002F8-JC for qemu-devel@nongnu.org; Thu, 12 May 2016 12:24:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0tPq-0006rz-8V for qemu-devel@nongnu.org; Thu, 12 May 2016 12:24:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0tPp-0006ru-Vc for qemu-devel@nongnu.org; Thu, 12 May 2016 12:24:46 -0400 References: <723eb07ff8e7b7c64cede2f2e48452138541abc6.1463069453.git.alistair.francis@xilinx.com> From: Eric Blake Message-ID: <5734AE4C.7040804@redhat.com> Date: Thu, 12 May 2016 10:24:44 -0600 MIME-Version: 1.0 In-Reply-To: <723eb07ff8e7b7c64cede2f2e48452138541abc6.1463069453.git.alistair.francis@xilinx.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NVG6KcoaFugfbsj7SHUEGpoMjj86gNev6" Subject: Re: [Qemu-devel] [PATCH v5 3/3] docs: Add a generic loader explanation document List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alistair Francis , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, armbru@redhat.com, crosthwaitepeter@gmail.com, cov@codeaurora.org, pbonzini@redhat.com, afaerber@suse.de This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --NVG6KcoaFugfbsj7SHUEGpoMjj86gNev6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 05/12/2016 10:13 AM, Alistair Francis wrote: > Signed-off-by: Alistair Francis > --- > V4: > - Re-write to be more comprehensive >=20 > docs/generic-loader.txt | 56 +++++++++++++++++++++++++++++++++++++++++= ++++++++ > 1 file changed, 56 insertions(+) > create mode 100644 docs/generic-loader.txt > +Loading Memory Values > +--------------------------- Worth matching ---- line length to the line above? > + > +NOTE: The loader device supports other options (see the next section) = but they > + do not apply to setting memory values and will be ignored. Ignoring invalid option combinations is not as friendly as outright rejecting them. > + > +Loading Files > +--------------------------- And again > +The loader device also allows files to be loaded into memory. This can= be done > +similarly to setting memory values. The syntax is shown below: > + > + -device loader,file=3D,addr=3D,cpu-num=3D,for= ce-raw=3D > + > + - A file to be loaded into memory > + - The addr in memory that the file should be loaded. T= his is > + ignored if you are using an ELF (unless force-raw is= true). > + This is requried if you aren't loading an ELF. s/requried/required/ > + - This specifices the CPU that should be used. This is= an s/specifices/specifies/ > + optional argument and will cause the CPU's PC to be = set to > + where the image is stored. This option should only b= e used > + for the boot image. > + - Forces the file to be treated as a raw image. This c= an be > + used to specificy the load address of ELF files. s/specificy/specify/ > + > +An example of loading an ELF file which CPU0 will boot is shown below:= > + -device loader,file=3D./images/boot.elf,cpu-num=3D0 >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --NVG6KcoaFugfbsj7SHUEGpoMjj86gNev6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXNK5MAAoJEKeha0olJ0NqNZEH/2mz8aCm/f2RmXS+5l8SCCn+ vLjcMlh1h5VIpYe2ZxjNsLEq3UeLJJ7qjKBitvvBJKn0A3IryoqvoSFArc5eF1nF MWHM19WRh2eCBU+SkCbCmRfErxDdqAyqNdbFRLa0zRdJ9iuGAWDQjU9BDl4xvei5 RH+/LTxXIaZXdAAdhhALxmRODG/7fHlxrZnz6pMX3ZrBej1nH2+RSyv+T4lY/FG7 gIjAN5iaT+9CXLuwC6ly3PuQcE+Icd5M1dU1OFIkIL9l/k1cVkk45CEQxg6lrg0r hSeXWdd208erid+JzK59ii73zHI9cG81IJ2BuMPr3gjaMSzRW5ot/PznJi5NjF0= =Wr1t -----END PGP SIGNATURE----- --NVG6KcoaFugfbsj7SHUEGpoMjj86gNev6--