Skip to content

Commit

Permalink
Fix QEMU demo start addresses.
Browse files Browse the repository at this point in the history
The 32-bit Arm QEMU has 3GB of DDR so our address worked, but let's load at the start of RAM instead.

Also removed the DTB adjustment because that doesn't seem to be necessary.
  • Loading branch information
jonathanpallant committed Sep 26, 2024
1 parent 2ea1f0e commit f70efc7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions example-code/qemu-aarch32v78r/linker.ld
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/* RAM starts at 0x40000000 but if we ask to load the kernel there, QEMU will not load a DTB */
/*
RAM starts at 0x20000000.

See https://github.com/qemu/qemu/blob/master/hw/arm/mpsr3.c
*/

MEMORY {
RAM : ORIGIN = 0x40100000, LENGTH = 128M
RAM : ORIGIN = 0x20000000, LENGTH = 128M
}

ENTRY(_start)
Expand Down
8 changes: 6 additions & 2 deletions example-code/qemu-aarch64v8a/linker.ld
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/* RAM starts at 0x40000000 but if we ask to load the kernel there, QEMU will not load a DTB */
/*
RAM starts at 0x40000000.

See https://github.com/qemu/qemu/blob/master/hw/arm/virt.c
*/

MEMORY {
RAM : ORIGIN = 0x40100000, LENGTH = 128M
RAM : ORIGIN = 0x40000000, LENGTH = 128M
}

ENTRY(_start)
Expand Down

0 comments on commit f70efc7

Please sign in to comment.