Skip to contentSkip to conversation

roms: add H2 firmware

PATCH Superseded Brian Cain 1 participant 1 message Oct 23 Arm/Amlogic Meson SoC support

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Brian Cain

author
#0 lore raw

PATCH 1/1 roms: add H2 firmware

Add the new hexagon-hypervisor submodule, makefile targets and booter and loadlinux images for the hexagon machines.

---
 MAINTAINERS                             |   2 +
 docs/system/hexagon/cdsp.rst            |  48 ++++++++++++++++++
 .gitignore                              |   1 +
 .gitmodules                             |   3 ++
 pc-bios/README                          |   7 +++
 pc-bios/hexagon-hypervisor-license.txt  |  26 ++++++++++
 pc-bios/hexagon_booter_qcs6490_cdsp     | Bin 0 -> 281596 bytes
 pc-bios/hexagon_booter_sa8775p_cdsp     | Bin 0 -> 281628 bytes
 pc-bios/hexagon_booter_sa8797p_nsp0     | Bin 0 -> 289308 bytes
 pc-bios/hexagon_booter_sc8480xp_nsp0    | Bin 0 -> 289308 bytes
 pc-bios/hexagon_booter_sm8975_nsp       | Bin 0 -> 289304 bytes
 pc-bios/hexagon_loadlinux_qcs6490_cdsp  | Bin 0 -> 200828 bytes
 pc-bios/hexagon_loadlinux_sa8775p_cdsp  | Bin 0 -> 200860 bytes
 pc-bios/hexagon_loadlinux_sa8797p_nsp0  | Bin 0 -> 208540 bytes
 pc-bios/hexagon_loadlinux_sc8480xp_nsp0 | Bin 0 -> 208540 bytes
 pc-bios/hexagon_loadlinux_sm8975_nsp    | Bin 0 -> 208536 bytes
 pc-bios/meson.build                     |  11 +++++
 roms/Makefile                           |  63 ++++++++++++++++++++++++
 roms/hexagon-hypervisor                 |   1 +
 19 files changed, 162 insertions(+)
 create mode 100644 pc-bios/hexagon-hypervisor-license.txt
 create mode 100644 pc-bios/hexagon_booter_qcs6490_cdsp
 create mode 100644 pc-bios/hexagon_booter_sa8775p_cdsp
 create mode 100644 pc-bios/hexagon_booter_sa8797p_nsp0
 create mode 100644 pc-bios/hexagon_booter_sc8480xp_nsp0
 create mode 100644 pc-bios/hexagon_booter_sm8975_nsp
 create mode 100644 pc-bios/hexagon_loadlinux_qcs6490_cdsp
 create mode 100644 pc-bios/hexagon_loadlinux_sa8775p_cdsp
 create mode 100644 pc-bios/hexagon_loadlinux_sa8797p_nsp0
 create mode 100644 pc-bios/hexagon_loadlinux_sc8480xp_nsp0
 create mode 100644 pc-bios/hexagon_loadlinux_sm8975_nsp
 create mode 160000 roms/hexagon-hypervisor
MAINTAINERS +2 -0
index d9209f043f0..641ca4761f3 100644
@@ -1383,6 +1383,8 @@ F: configs/devices/hexagon-softmmu/default.mak
 F: docs/system/hexagon/
 F: tests/functional/hexagon/
 F: docs/devel/hexagon-sys.rst
+F: pc-bios/hexagon*
+F: roms/hexagon-hypervisor
 
 LoongArch Machines
 ------------------
docs/system/hexagon/cdsp.rst +48 -0

51 lines not on this page · raw message

.gitignore +1 -0
index 61fa39967b5..7ea1afbb4e2 100644
@@ -1,5 +1,6 @@
 /GNUmakefile
 /build/
+/roms/hexagon-firmware-build/
 /.cache/
 /.vscode/
 *.pyc
.gitmodules +3 -0
index c307216d173..7042b599f65 100644
@@ -45,3 +45,6 @@
 [submodule "tests/lcitool/libvirt-ci"]
 	path = tests/lcitool/libvirt-ci
 	url = https://gitlab.com/libvirt/libvirt-ci.git
+[submodule "roms/hexagon-hypervisor"]
+	path = roms/hexagon-hypervisor
+	url = https://gitlab.com/qemu-project/hexagon-hypervisor.git
pc-bios/README +7 -0
index 2f8a565245f..661feddf3ac 100644
@@ -1,6 +1,13 @@
 - SeaBIOS (bios.bin) is the successor of pc bios.
   See http://www.seabios.org/ for more information.
 
+- hexagon_booter_<machine> and hexagon_loadlinux_<machine> are the H2
+  hypervisor firmware for the Hexagon machines. The sources are at
+  https://gitlab.com/qemu-project/hexagon-hypervisor, built from commit
+  23d5bde4313c1e63ba64dd5d7f542b1055188ef8 with Hexagon SDK 6.7.0.0
+  via "make -C roms hexagon-<machine>".  H2 is distributed under the terms
+  given in "hexagon-hypervisor-license.txt".
+
 - The VGA BIOS and the Cirrus VGA BIOS come from the LGPL VGA bios
   project (http://www.nongnu.org/vgabios/).
 
pc-bios/hexagon-hypervisor-license.txt new file +26 -0
new file mode 100644
index 00000000000..389b5477129
@@ -0,0 +1,26 @@
+Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+* Redistributions of source code must retain the above copyright
+  notice, this list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above
+  copyright notice, this list of conditions and the following
+  disclaimer in the documentation and/or other materials provided
+  with the distribution.
+* Neither the name of the copyright holder nor the names of its
+  contributors may be used to endorse or promote products derived
+  from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
pc-bios/hexagon_booter_qcs6490_cdsp new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..82349eb543c5a18270af70bb8f7dee617eacb806
GIT binary patch
pc-bios/hexagon_booter_sa8775p_cdsp new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..0df364ea2fcd39df6ea2cb50911f43534eb24996
GIT binary patch
pc-bios/hexagon_booter_sa8797p_nsp0 new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..08814c3ba01113949595d92c1bd73a1a90b53697
GIT binary patch
pc-bios/hexagon_booter_sc8480xp_nsp0 new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..fab9e47b2feb71268aa2d13e09fa4160c0b4b5ad
GIT binary patch
pc-bios/hexagon_booter_sm8975_nsp new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..f9894cf0d121288d4e9189ddd753b6cddece4d0e
GIT binary patch
pc-bios/hexagon_loadlinux_qcs6490_cdsp new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..9b70a33ab70168ff33414c41fa420a59bc642e46
GIT binary patch
pc-bios/hexagon_loadlinux_sa8775p_cdsp new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..03b4f837d2264fed54c3b3487a31a14d0992834d
GIT binary patch
pc-bios/hexagon_loadlinux_sa8797p_nsp0 new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..57642591644b3c890b7362f48c87a24355566c33
GIT binary patch
pc-bios/hexagon_loadlinux_sc8480xp_nsp0 new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..b861a1c87e4318bfc6ed427df37f7fee4e12f2c5
GIT binary patch
pc-bios/hexagon_loadlinux_sm8975_nsp new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..a89099571cd91e9f991fc8261d1250108a649f9b
GIT binary patch
pc-bios/meson.build +11 -0
index 961d99fde4e..05cb2d40d9c 100644
@@ -73,6 +73,17 @@ blobs = [
   'edk2-licenses.txt',
   'hppa-firmware.img',
   'hppa-firmware64.img',
+  'hexagon_booter_qcs6490_cdsp',
+  'hexagon_loadlinux_qcs6490_cdsp',
+  'hexagon_booter_sm8975_nsp',
+  'hexagon_loadlinux_sm8975_nsp',
+  'hexagon_booter_sa8775p_cdsp',
+  'hexagon_loadlinux_sa8775p_cdsp',
+  'hexagon_booter_sc8480xp_nsp0',
+  'hexagon_loadlinux_sc8480xp_nsp0',
+  'hexagon_booter_sa8797p_nsp0',
+  'hexagon_loadlinux_sa8797p_nsp0',
+  'hexagon-hypervisor-license.txt',
   'opensbi-riscv32-generic-fw_dynamic.bin',
   'opensbi-riscv64-generic-fw_dynamic.bin',
   'npcm7xx_bootrom.bin',
roms/Makefile +63 -0

78 lines not on this page · raw message

roms/hexagon-hypervisor new file +1 -0
new file mode 160000
index 00000000000..23d5bde4313
@@ -0,0 +1 @@
+Subproject commit 23d5bde4313c1e63ba64dd5d7f542b1055188ef8
Signature · 1 line
2.34.1