Skip to content

RFC arm : dynamically choose initrd load address

Daniel Lezcano qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm : raise an error if the kernel size will overlap the initrdhw/arm_boot.c+7 -00 replies
2/3arm : factor out set_kernel_args[_old]hw/arm_boot.c+10 -160 replies
3/3arm : make initrd load address dynamichw/arm-misc.h hw/arm_boot.c+9 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [rfc 0/3] arm : dynamically choose initrd load address

Hi all,

after compiling my kernel on the arm architecture I was not able to start it because qemu was segfaulting or going to an infinite loop.

After google'ing I found on launchpad the bug:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/524893

Following the indications, I rebuilt qemu with an higher initrd load address and the kernel booted correctly.

I am trying to make the things easier and/or to fail gracefully with patchset but I am not familiar with the ARM architecture neither qemu internals, so may be I am totally wrong :)

The first patch raise an error if there is an overlapping error. But the two next patches makes to compute automatically an address for initrd to loaded.

Daniel Lezcano (3):
arm : raise an error if the kernel size will overlap the initrd arm : factor out set_kernel_args[_old]
arm : make initrd load address dynamic

 hw/arm-misc.h |    1 +
 hw/arm_boot.c |   40 +++++++++++++++++++---------------------
 2 files changed, 20 insertions(+), 21 deletions(-)