On 02.08.19 04:34, João Reis wrote:
> The value of arch.ramdisk_address() is 2062893056, converted to hexadecimal is
> 0x7AF54000, which is within the newly added RAM memory region that begins at
> address 0x60000000.
> 

OK, and what' the size that shall be transferred here? Keep in mind that there
is only 0xF9C000 (16367616) left in that region. That information is part of the
'load' structure JailhouseCell.load assembles. If that size if too large, the
driver will reject it. That would explain the error, not yet the reason for
jailhouse-cell-linux to make that mistake.

If you share your configs, the kernel and dtb images and the information how
large the initramfs is, I can try to reproduce that.

Jan

> quarta-feira, 31 de Julho de 2019 às 07:22:32 UTC+1, Jan Kiszka escreveu:
> 
>     On 31.07.19 02:40, João Reis wrote:
>     > Other thing i forgot was that on Ultrascale+ the RAM finishes at 2GB
>     > (0x80000000), so i moved the memory region to 0x60000000, with a 
> different
>     size
>     > to not overlap any other memory region.
>     >
>     > /* RAM */ {
>     > .phys_start = 0x60000000,
>     > .virt_start = 0x60000000,
>     > .size = 0x1bef0000, //must be page size aligned
>     > .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
>     > JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE |
>     > JAILHOUSE_MEM_DMA,
>     > },
>     >
>     > But now it gives me the error on ramdisk_address:
>     >
>     > Traceback (most recent call last):
>     >   File "/usr/local/libexec/jailhouse/jailhouse-cell-linux", line 831, in
>     <module>
>     >     cell.load(args.initrd.read(), arch.ramdisk_address())
>     >   File "/usr/local/lib/python2.7/dist-packages/pyjailhouse/cell.py", 
> line
>     44, in
>     > load
>     >     fcntl.ioctl(self.dev <http://self.dev>, self.JAILHOUSE_CELL_LOAD, 
> load)
>     > IOError: [Errno 22] Invalid argument
>     >
> 
>     To make this a bit more systematic, I would recommend you to instrument 
> the
>     code, dump this address e.g., and match against what you think you 
> configured.
> 
>     Jan
> 
>     -- 
>     Siemens AG, Corporate Technology, CT RDA IOT SES-DE
>     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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jailhouse-dev/1ebfd29b-3c2d-490d-bd2d-c7cbdad1507c%40googlegroups.com
> <https://groups.google.com/d/msgid/jailhouse-dev/1ebfd29b-3c2d-490d-bd2d-c7cbdad1507c%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
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/164159e0-478e-c5e9-fc8a-e0c0cb27da7a%40siemens.com.

Reply via email to