]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/ppc/sam460ex: Update u-boot-sam460ex
authorBALATON Zoltan <balaton@eik.bme.hu>
Tue, 28 Oct 2025 15:19:23 +0000 (16:19 +0100)
committerHarsh Prateek Bora <harshpb@linux.ibm.com>
Thu, 30 Oct 2025 07:03:10 +0000 (12:33 +0530)
Update the sam460ex firmware to match 2015.c version from the machine
vendor which fixes USB devices and some other bugs. Also cherry pick
some commits from upstream U-Boot that moves licenses in a subdir and
allows gitlab to correctly detect and show license information. Drop
version number from the binary name to avoid needing to change it in
case of future updates.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <20251028151923.10DBB5972E5@zero.eik.bme.hu>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
MAINTAINERS
hw/ppc/sam460ex.c
pc-bios/meson.build
pc-bios/u-boot-sam460-20100605.bin [deleted file]
pc-bios/u-boot-sam460.bin [new file with mode: 0644]
roms/Makefile
roms/u-boot-sam460ex

index 64491c800c2cf94ae6f696a4979053b7090ac797..0a620ba87c850e0d33718508261ae347607a673f 100644 (file)
@@ -1643,7 +1643,7 @@ F: hw/display/sm501*
 F: hw/ide/sii3112.c
 F: hw/rtc/m41t80.c
 F: pc-bios/dtb/canyonlands.dt[sb]
-F: pc-bios/u-boot-sam460ex-20100605.bin
+F: pc-bios/u-boot-sam460ex.bin
 F: roms/u-boot-sam460ex
 F: docs/system/ppc/amigang.rst
 F: tests/functional/ppc/test_sam460ex.py
index 258d43f8d2d403c150ccfdd9a5d0a255a02f6c9d..038b98d0b81572c3e4311bcb6934945f46f7f867 100644 (file)
 #include <libfdt.h>
 
 #define BINARY_DEVICE_TREE_FILE "canyonlands.dtb"
-#define UBOOT_FILENAME "u-boot-sam460-20100605.bin"
-/* to extract the official U-Boot bin from the updater: */
-/* dd bs=1 skip=$(($(stat -c '%s' updater/updater-460) - 0x80000)) \
-     if=updater/updater-460 of=u-boot-sam460-20100605.bin */
+#define UBOOT_FILENAME "u-boot-sam460.bin"
 
 #define PCIE0_DCRN_BASE 0x100
 #define PCIE1_DCRN_BASE 0x120
@@ -97,7 +94,7 @@ static int sam460ex_load_uboot(void)
      *
      * Else, it's initialized to zero.  And then 512KiB of ROM get
      * mapped on top of its second half (0xFFF80000..0xFFFFFFFF),
-     * initialized from u-boot-sam460-20100605.bin.
+     * initialized from UBOOT_FILENAME.
      *
      * This doesn't smell right.
      *
index 3c41620044a345c72fbd36c355c28ebfb4dbe1d7..9260aaad78e867f9872633b76fe05340f0403df6 100644 (file)
@@ -74,7 +74,7 @@ blobs = [
   'pnv-pnor.bin',
   'palcode-clipper',
   'u-boot.e500',
-  'u-boot-sam460-20100605.bin',
+  'u-boot-sam460.bin',
   'qemu_vga.ndrv',
   'edk2-licenses.txt',
   'hppa-firmware.img',
diff --git a/pc-bios/u-boot-sam460-20100605.bin b/pc-bios/u-boot-sam460-20100605.bin
deleted file mode 100644 (file)
index e17de77..0000000
Binary files a/pc-bios/u-boot-sam460-20100605.bin and /dev/null differ
diff --git a/pc-bios/u-boot-sam460.bin b/pc-bios/u-boot-sam460.bin
new file mode 100644 (file)
index 0000000..6663683
Binary files /dev/null and b/pc-bios/u-boot-sam460.bin differ
index 4c8793c5bd454883cdb4bffc149ac46f9770b7c2..f15189a540995617edd659102a1a4db8d046c74c 100644 (file)
@@ -144,9 +144,10 @@ u-boot.e500:
                ../pc-bios/u-boot.e500
 
 u-boot.sam460:
-       $(MAKE) -C u-boot-sam460ex Sam460ex_config
+       $(MAKE) -C u-boot-sam460ex Sam460_50_config
        $(MAKE) -C u-boot-sam460ex CROSS_COMPILE=$(powerpc_cross_prefix)
-       cp u-boot-sam460ex/u-boot.bin ../pc-bios/u-boot-sam460-20100605.bin
+       cp u-boot-sam460ex/u-boot.bin ../pc-bios/u-boot-sam460.bin
+       chmod -x ../pc-bios/u-boot-sam460.bin
 
 skiboot:
        $(MAKE) -C skiboot CROSS=$(powerpc64_cross_prefix)
index 60b3916f33e617a815973c5a6df77055b2e3a588..1e5f4a1607cc6713d27ffe48dd9de84e69cfc1c2 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 60b3916f33e617a815973c5a6df77055b2e3a588
+Subproject commit 1e5f4a1607cc6713d27ffe48dd9de84e69cfc1c2