On 19.08.21 13:59, Moustafa Nofal wrote:
> I tried this configuration, but it did not work with me, I attached the
> log file. I have Pi4(4GB version). Initially installed 5.10, it did not
> compile so I back-patched to 5.3 and added CONFIG_HOTPLUG_CPU=y to the
> build configuration, I was able to understand, why it was essential.
> Then I tried different memory reservations using device tree:
> reserved-memory {
> #address-cells=<2>;
> #size-cells=<1>;
> ranges;
> memmap:memmap@0x20000000{
> reg = <0x0 0x20000000 0x10000000>;
> };
> };
> The memory is reserved and observable at proc/iomem but the result is
> either crash as in the log file or this:
> [ 1463.849868] jailhouse: request_mem_region failed for hypervisor memory.
> [ 1463.849882] jailhouse: Did you reserve the memory with "memmap=" or
> "mem="?
> In rpi4.c
> I edited memory regions to begin with 2:
>
> .hypervisor_memory = {
> .phys_start = 0x2fc00000,
> .size = 0x00400000,
> },
> and the same for all memory regions.
>
> Something that I do not really understand, is the RAM address. In the
> jailhouse Image, there was a RAM at 0x20000000 and the image works fine.
> But in my case there is nothing at this address.
> Any help would be appreciated and thanks in advance.
>
Integrating all the loose ends of these targets is a hairy process (I
stopped counting hours I invested). Therefore, I strongly recommend
starting from jailhouse-images where the RPi4 works fine, at least here,
and then step-wise deviate from that towards whatever alternative
configuration is desired.
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/798dc279-8f39-b3c6-c0ec-ff10c94c2f86%40siemens.com.