qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: With "-kernel Image" method in arm64 virtual machine, where is the k


From: Peter Maydell
Subject: Re: With "-kernel Image" method in arm64 virtual machine, where is the kernel loaded, Ram or Rom?
Date: Mon, 14 Mar 2022 09:54:45 +0000

On Mon, 14 Mar 2022 at 09:06, Chan Kim <ckim@etri.re.kr> wrote:
> After this, I tried to read the memory at 0x80200000 to see if this kernel 
> Image is there but could not find it.
>
> I used this method to see memory at 0x80200000 :
>
> during the machab21q_init function,
>
> Ram_ptr = memory_region_get_ram_ptr(machine->ram);  // to the virtual address 
> of the memory in the host machine

This will not work, because ROM blobs are not loaded into
guest memory at this point in QEMU's initialization. They
are loaded into RAM later on, as part of the system reset.
rom_add_blob() and friends simply set things up on a list
to be loaded into RAM on every system reset.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]