Skip to content

Commit fa13e1b

Browse files
Fix loader link address for tqma8xqp1gb
Seems like this has been regressed for a while unfortunately. The issue is that there are reserved regions that conflict with the loader itself which causes the tool to error out for this platform. Testing locally, the loader being loaded at the previous address of 0x80280000 seems to relocate itself to 0x90000000 fine, so doing `go 0x80280000` seems to still work. In general this whole loader link address thing is too fragile and doens't work for really large Microkit images (since what happens is that the reserved region for the initial task gets larger and larger until it ends up overlapping with where the loader should go). Will do this hot-fix for now, and open an issue for making this part of the loader less fragile in the future. Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
1 parent 1954875 commit fa13e1b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

build_sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class KernelPath:
167167
name="tqma8xqp1gb",
168168
arch=KernelArch.AARCH64,
169169
gcc_cpu="cortex-a35",
170-
loader_link_address=0x80280000,
170+
loader_link_address=0x90000000,
171171
smp_cores=4,
172172
kernel_options={
173173
"KernelPlatform": "tqma8xqp1gb",

docs/manual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ For example:
15201520
To use tftp you also need to set the file to load and the memory address to load it to:
15211521

15221522
=> env set bootfile loader.img
1523-
=> env set loadaddr 0x80280000
1523+
=> env set loadaddr 0x90000000
15241524
=> env save
15251525

15261526
The system image generated by the Microkit tool by default is a raw binary file.

0 commit comments

Comments
 (0)