hw/ppc/sam460ex: Update u-boot-sam460ex
PATCH 1/1 hw/ppc/sam460ex: Update u-boot-sam460ex
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.
--- MAINTAINERS | 2 +- hw/ppc/sam460ex.c | 7 ++----- pc-bios/meson.build | 2 +- pc-bios/u-boot-sam460-20100605.bin | Bin 524288 -> 0 bytes pc-bios/u-boot-sam460.bin | Bin 0 -> 524288 bytes roms/Makefile | 5 +++-- roms/u-boot-sam460ex | 2 +- 7 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 pc-bios/u-boot-sam460-20100605.bin create mode 100644 pc-bios/u-boot-sam460.bin
MAINTAINERS +1 -1
@@ -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
hw/ppc/sam460ex.c +2 -5
@@ -43,10 +43,7 @@#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. *
pc-bios/meson.build +1 -1
@@ -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',
pc-bios/u-boot-sam460-20100605.bin deleted binary +0 -0
pc-bios/u-boot-sam460.bin new file binary +0 -0
roms/Makefile +3 -2
@@ -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)
roms/u-boot-sam460ex +1 -1
@@ -1 +1 @@ -Subproject commit 60b3916f33e617a815973c5a6df77055b2e3a588 +Subproject commit 1e5f4a1607cc6713d27ffe48dd9de84e69cfc1c2
Signature · 1 line
2.41.3
+ Thomas
Hi BALATON,
I am unable to fetch it with b4 am, and I do not see it appear on lore also, not sure if its due to the binary size.
harshpb:patches$ b4 am [email protected]
Looking up https://lore.kernel.org/r/20251028151923.10DBB5972E5%40zero.eik.bme.hu
Grabbing thread from lore.kernel.org/all/20251028151923.10DBB5972E5%40zero.eik.bme.hu/t.mbox.gz Server returned an error: 404
harshpb:patches$
I guess you may need to send a PULL SUBSYSTEM req like Thomas did for slof:
https://lore.kernel.org/qemu-devel/[email protected]/
Hi Thomas,
Is it a known thing to deal with binary updates ?
regards,
Harsh
Quoted 7,869 lines · BALATON Zoltan
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 <[email protected]>--- MAINTAINERS | 2 +- hw/ppc/sam460ex.c | 7 ++----- pc-bios/meson.build | 2 +- pc-bios/u-boot-sam460-20100605.bin | Bin 524288 -> 0 bytes pc-bios/u-boot-sam460.bin | Bin 0 -> 524288 bytes roms/Makefile | 5 +++-- roms/u-boot-sam460ex | 2 +- 7 files changed, 8 insertions(+), 10 deletions(-)delete mode 100644 pc-bios/u-boot-sam460-20100605.bin create mode 100644 pc-bios/u-boot-sam460.bin
MAINTAINERS +1
-1@@ -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.pyhw/ppc/sam460ex.c +2
-5@@ -43,10 +43,7 @@#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. * pc-bios/meson.build +1
-1@@ -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',pc-bios/u-boot-sam460-20100605.bin deleted binary +0
-0pc-bios/u-boot-sam460.bin new file binary +0
-0roms/Makefile +3
-2@@ -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)roms/u-boot-sam460ex +1
-1@@ -1 +1 @@ -Subproject commit 60b3916f33e617a815973c5a6df77055b2e3a588 +Subproject commit 1e5f4a1607cc6713d27ffe48dd9de84e69cfc1c2
Quoted 12 lines · Harsh Prateek Bora
+ Thomas
Hi BALATON,
I am unable to fetch it with b4 am, and I do not see it appear on lore also, not sure if its due to the binary size.
harshpb:patches$ b4 am [email protected]
Looking up https://lore.kernel.org/ r/20251028151923.10DBB5972E5%40zero.eik.bme.hu Grabbing thread from lore.kernel.org/ all/20251028151923.10DBB5972E5%40zero.eik.bme.hu/t.mbox.gz Server returned an error: 404
harshpb:patches$
Quoted 5 lines
I guess you may need to send a PULL SUBSYSTEM req like Thomas did for slof:
https://lore.kernel.org/qemu-devel/[email protected]/Hi Thomas,
Is it a known thing to deal with binary updates ?
Hi,
honestly, I can't remember clearly why we introduced these subsystem pull requests in the past ... Maybe it was related to some problems with binary patches, but I think it was rather meant as a staged approach for the case where the maintainer of the firmware is not the main maintainer of the architecture subsystem, so that the main maintainer gets another chance of doing tests before the final pull request to the master branch.
Conny, Alexey, do you remember?
Thomas
Quoted 24 lines · Thomas Huth
Quoted 15 lines · Harsh Prateek Bora
+ Thomas
Hi BALATON,
I am unable to fetch it with b4 am, and I do not see it appear on lore also, not sure if its due to the binary size.
harshpb:patches$ b4 am [email protected] Looking up https://lore.kernel.org/
r/20251028151923.10DBB5972E5%40zero.eik.bme.hu
Grabbing thread from lore.kernel.org/ all/20251028151923.10DBB5972E5%40zero.eik.bme.hu/t.mbox.gz Server returned an error: 404
harshpb:patches$Quoted 5 lines
I guess you may need to send a PULL SUBSYSTEM req like Thomas did for slof:
https://lore.kernel.org/qemu-devel/[email protected]/Hi Thomas,
Is it a known thing to deal with binary updates ?Hi,
Quoted 8 lines
honestly, I can't remember clearly why we introduced these subsystem pull requests in the past ... Maybe it was related to some problems with binary patches, but I think it was rather meant as a staged approach for the case where the maintainer of the firmware is not the main maintainer of the architecture subsystem, so that the main maintainer gets another chance of doing tests before the final pull request to the master branch.
Conny, Alexey, do you remember?
Hmm... I thought subsystem pull reqs were mainly intended for the case where there might be different maintainers, or one person handling a subsys for that release. However, I'm not sure if I ever actually b4 am'ed a binary update (for s390, I think I usually regenerated the binary myself, and it would get merge via a pull from whoever was handling the main branch.)
Regardless, I think it's easiest to put a binary update into its own separate patch?
Quoted 6 lines · Harsh Prateek Bora
+ Thomas
Hi BALATON,
I am unable to fetch it with b4 am, and I do not see it appear on lore also, not sure if its due to the binary size.
Quoted 8 lines
harshpb:patches$ b4 am [email protected]
Looking up https://lore.kernel.org/r/20251028151923.10DBB5972E5%40zero.eik.bme.hu
Grabbing thread from lore.kernel.org/all/20251028151923.10DBB5972E5%40zero.eik.bme.hu/t.mbox.gz Server returned an error: 404
harshpb:patches$I guess you may need to send a PULL SUBSYSTEM req like Thomas did for slof:
https://lore.kernel.org/qemu-devel/[email protected]/
Hi Harsh,
You should be able to download mbox from
https://patchew.org/QEMU/[email protected]/
and git am that. This was tested by somebody else and worked. If needed I could try to split the binary into another patch or send you the patch again. Maybe lore does not store large files?
Regards,
BALATON Zoltan
Quoted 13 lines · BALATON Zoltan
Quoted 12 lines · Harsh Prateek Bora
+ Thomas
Hi BALATON,
I am unable to fetch it with b4 am, and I do not see it appear on lore also, not sure if its due to the binary size.
harshpb:patches$ b4 am [email protected]
Looking up https://lore.kernel.org/r/20251028151923.10DBB5972E5%40zero.eik.bme.hu
Grabbing thread from lore.kernel.org/all/20251028151923.10DBB5972E5%40zero.eik.bme.hu/t.mbox.gz Server returned an error: 404
harshpb:patches$
Quoted 8 lines
Quoted 2 lines
I guess you may need to send a PULL SUBSYSTEM req like Thomas did for slof:
https://lore.kernel.org/qemu-devel/[email protected]/Hi Harsh,
You should be able to download mbox from
https://patchew.org/QEMU/[email protected]/
and git am that. This was tested by somebody else and worked.
Yes, git fetch from there seems to work, thanks.
If needed
Quoted 1 line
I could try to split the binary into another patch or send you the patch again. Maybe lore does not store large files?
Having only binary file update into its own separate patch may be better as a best practice, so other patch gets non-binary changes for easy review. Also, maintaining the date stamp may also be helpful in some cases. Let me know if you think otherwise.
regards,
Harsh
Quoted 4 lines
Regards,
BALATON Zoltan
Quoted 25 lines · Harsh Prateek Bora
Quoted 13 lines · BALATON Zoltan
Quoted 12 lines · Harsh Prateek Bora
+ Thomas
Hi BALATON,
I am unable to fetch it with b4 am, and I do not see it appear on lore also, not sure if its due to the binary size.
harshpb:patches$ b4 am [email protected]
Looking up https://lore.kernel.org/r/20251028151923.10DBB5972E5%40zero.eik.bme.hu
Grabbing thread from lore.kernel.org/all/20251028151923.10DBB5972E5%40zero.eik.bme.hu/t.mbox.gz Server returned an error: 404
harshpb:patches$Quoted 8 lines
Quoted 2 lines
I guess you may need to send a PULL SUBSYSTEM req like Thomas did for slof:
https://lore.kernel.org/qemu-devel/[email protected]/Hi Harsh,
You should be able to download mbox from
https://patchew.org/QEMU/[email protected]/
and git am that. This was tested by somebody else and worked.Yes, git fetch from there seems to work, thanks.
Quoted 7 lines
If needed
Quoted 1 line
I could try to split the binary into another patch or send you the patch again. Maybe lore does not store large files?
Having only binary file update into its own separate patch may be better as a best practice, so other patch gets non-binary changes for easy review. Also, maintaining the date stamp may also be helpful in some cases. Let me know if you think otherwise.
Which date stamp maintaining are you referring to? I can split the patch in two later today or tomorrow if you want and send a v2 but not right now. For that to compile and work after each patch it would need to add the new binary in one patch then remove the old one after changing its usage. Or maybe even 3 patches: first updating submodule, then adding binary rebuilt from that then changing usage and removing old one. I think this would make the series larger as git now seems to contain binary diff between old and new versions but if these are in different patch it may still add the removed binary as a binary patch. So this only works if the old and new binary is the same name or renamed in one patch but then that would break if the usage is not updated in the same patch. So maybe patch one to update submodule, patch 2 to add binary with old name and patch 3 to rename the binary could work but does that worth the hassle and any better than this single patch?
Regards,
BALATON Zoltan
Quoted 27 lines · BALATON Zoltan
Quoted 26 lines · Harsh Prateek Bora
Quoted 13 lines · BALATON Zoltan
Quoted 12 lines · Harsh Prateek Bora
+ Thomas
Hi BALATON,
I am unable to fetch it with b4 am, and I do not see it appear on lore also, not sure if its due to the binary size.
harshpb:patches$ b4 am [email protected]
Looking up https://lore.kernel.org/r/20251028151923.10DBB5972E5%40zero.eik.bme.hu
Grabbing thread from lore.kernel.org/all/20251028151923.10DBB5972E5%40zero.eik.bme.hu/t.mbox.gz Server returned an error: 404
harshpb:patches$Quoted 8 lines
Quoted 2 lines
I guess you may need to send a PULL SUBSYSTEM req like Thomas did for slof:
https://lore.kernel.org/qemu-devel/[email protected]/Hi Harsh,
You should be able to download mbox from
https://patchew.org/QEMU/[email protected]/
and git am that. This was tested by somebody else and worked.Yes, git fetch from there seems to work, thanks.
If needed
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
I could try to split the binary into another patch or send you the patch again. Maybe lore does not store large files?
Having only binary file update into its own separate patch may be better as a best practice, so other patch gets non-binary changes for easy review. Also, maintaining the date stamp may also be helpful in some cases. Let me know if you think otherwise.
Which date stamp maintaining are you referring to? I can split the patch in two later today or tomorrow if you want and send a v2 but not right now. For that to compile and work after each patch it would need to add the new binary in one patch then remove the old one after changing its usage. Or maybe even 3 patches: first updating submodule, then adding binary rebuilt from that then changing usage and removing old one. I think this would make the series larger as git now seems to contain binary diff between old and new versions but if these are in different patch it may still add the removed binary as a binary patch. So this only works if the old and new binary is the same name or renamed in one patch but then that would break if the usage is not updated in the same patch. So maybe patch one to update submodule, patch 2 to add binary with old name and patch 3 to rename the binary could work but does that worth the hassle and any better than this single patch?
I was referring to the version number in binary name as date stamp which is being removed, but that's fine. I think we can take this patch as-is for now as split doesn't add much value and also we are close to freeze.
regards,
Harsh
Quoted 3 lines
Regards,
BALATON Zoltan
Quoted 35 lines · Harsh Prateek Bora
Quoted 34 lines · BALATON Zoltan
Quoted 32 lines · Harsh Prateek Bora
Quoted 13 lines · BALATON Zoltan
Quoted 12 lines · Harsh Prateek Bora
+ Thomas
Hi BALATON,
I am unable to fetch it with b4 am, and I do not see it appear on lore also, not sure if its due to the binary size.
harshpb:patches$ b4 am [email protected]
Looking up https://lore.kernel.org/r/20251028151923.10DBB5972E5%40zero.eik.bme.hu
Grabbing thread from lore.kernel.org/all/20251028151923.10DBB5972E5%40zero.eik.bme.hu/t.mbox.gz Server returned an error: 404
harshpb:patches$Quoted 8 lines
Quoted 2 lines
I guess you may need to send a PULL SUBSYSTEM req like Thomas did for slof:
https://lore.kernel.org/qemu-devel/[email protected]/Hi Harsh,
You should be able to download mbox from
https://patchew.org/QEMU/[email protected]/
and git am that. This was tested by somebody else and worked.Yes, git fetch from there seems to work, thanks.
If needed
Quoted 1 line
I could try to split the binary into another patch or send you the patch again. Maybe lore does not store large files?
Having only binary file update into its own separate patch may be better as a best practice, so other patch gets non-binary changes for easy review. Also, maintaining the date stamp may also be helpful in some cases. Let me know if you think otherwise.
Quoted 4 lines
Quoted 1 line
Which date stamp maintaining are you referring to? I can split the patch in two later today or tomorrow if you want and send a v2 but not right now. For that to compile and work after each patch it would need to add the new binary in one patch then remove the old one after changing its usage. Or maybe even 3 patches: first updating submodule, then adding binary rebuilt from that then changing usage and removing old one. I think this would make the series larger as git now seems to contain binary diff between old and new versions but if these are in different patch it may still add the removed binary as a binary patch. So this only works if the old and new binary is the same name or renamed in one patch but then that would break if the usage is not updated in the same patch. So maybe patch one to update submodule, patch 2 to add binary with old name and patch 3 to rename the binary could work but does that worth the hassle and any better than this single patch?
I was referring to the version number in binary name as date stamp which is being removed, but that's fine.
As I wrote in the commit message it seems having that in binary name would just cause problems when updating it so I use this opportunity to get rid of it. Other binaries don't seem to have such version either. (Also the old one was named with date stamp upstream but the new one is version 2015.c which was changed upstream so it would be changing anyway).
Quoted 2 lines
I think we can take this patch as-is
for now as split doesn't add much value and also we are close to freeze.
Thanks. I'll try the split patches when the firmware is updated next time in the future but not having to redo it now saves me some time.
Regards,
BALATON Zoltan