On 30.04.21 05:04, 曹宏鹏 wrote:
> Dear sir,
> > Dear sir,
> > Last year, I used the rapi-linux-demo.cell to launch a second cell on my 
> Raspberry Pi 4 model B. And the memory size of second cell was about 184M.
> > However, that is not enough to me to execute some test on it. So I try 
> to change the size of the cell in the rpi-linux-demo.c, but it failed (maybe 
> occupied
> >  other's memory, I don't know). A good news is, someone fixed this 
> problem. The demo can provide 1G memory size, and I git clone the new project.
> >
> > BUT when I executed the operations same with before, I can not build the 
> jailhouse
> >
> > my operations is:
> > 1. git clone https://github.com/siemens/jailhouse.git
> > 2. sudo make && make modules_install && make install
> > 3. sudo insmod driver/jailhouse.ko
> > 4. sudo jailhouse enable configs/arm64/rpi4.cell
> >
> > The 4th step is failed, the error is:
> > JAILHOUSE_ENABLE: Invalid argument
> >
> > I don't know why it occurs. Because there are two project on my 
> Raspberry (one is new, the other is cloned in last year ), the old one can 
> run properly.
> > If I can get your generous help, I will appreciate.
> >
>
> First of all, thanks for Jan give me advice. I accept his advice and obtain 
> some information.
> (NOTE: I just used the new project and I never changed the 
> configs/arm64/rpi4.c)
> when I execute
> jailhouse enable rpi4.c
> the error is
>  JAILHOUSE_ENABLE: Invalid argument
> and then I see some information from the putty
> jailhouse:request_mem_region failed for hypervisor memory

This means that the hypervisor memory region configured in rpi4.cell
does not match a memory reservation done via the device tree. It likely
overlaps RAM that is in use by Linux, thus can't be taken by the hypervisor.

If you move the hypervisor memory region, make sure to adjust
https://github.com/siemens/jailhouse-images/blob/master/recipes-bsp/rpi-firmware/files/debian/jailhouse.dts
as well.

Jan

> I don't know whether this error caused or not. Because I can run successfully 
> using old project and it also warn this problem. And I execute the followed 
> command
> sudo jailhouse config check configs/arm64/rpi4.cell
> the message is:
>
> Reading configuration set:
>   Root cell:     Raspberry-Pi4 (configs/arm64/rpi4.cell)
> Overlapping memory regions inside cell: None
> Overlapping memory regions with hypervisor: None
> Missing PCI MMCONFIG interceptions: None
> Missing resource interceptions for architecture arm64: None
>
> So what should I do ? If I can get your generous help , I will appreciate.
>
> Yours,
> Hongpeng Cao.
>

-- 
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/02875c49-2429-e452-9d25-90363743d8fc%40web.de.

Reply via email to