git: b07a6bd15a58 - main - booti: Enable loading the kernel image to any address aligned to 2 MB
Michal Meloun
mmel at FreeBSD.org
Wed Jul 28 11:43:40 UTC 2021
The branch main has been updated by mmel:
URL: https://cgit.FreeBSD.org/src/commit/?id=b07a6bd15a58aa6e23761c51eba78d449cd2cbf3
commit b07a6bd15a58aa6e23761c51eba78d449cd2cbf3
Author: Michal Meloun <mmel at FreeBSD.org>
AuthorDate: 2021-07-09 17:33:36 +0000
Commit: Michal Meloun <mmel at FreeBSD.org>
CommitDate: 2021-07-28 11:42:13 +0000
booti: Enable loading the kernel image to any address aligned to 2 MB
We've supported this for a long time, plus most u-boot setups quietly expect
it. Otherwise they fail with different levels of memory overwrites.
MFC after: 2 weeks
---
sys/tools/arm_kernel_boothdr.awk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/tools/arm_kernel_boothdr.awk b/sys/tools/arm_kernel_boothdr.awk
index 5526102606f6..f22c6167c7b0 100644
--- a/sys/tools/arm_kernel_boothdr.awk
+++ b/sys/tools/arm_kernel_boothdr.awk
@@ -134,7 +134,7 @@ function write_v8booti() {
write_le32(0) # code1
write_le64(0) # text_offset
write_le64(gEndOff) # image_size
- write_le64(0) # flags
+ write_le64(hexstr_to_num("8")) # flags
write_le64(0) # res1[0]
write_le64(0) # res1[1]
write_le64(0) # res1[2]
More information about the dev-commits-src-all
mailing list