On 04.01.22 14:53, Moustafa Nofal wrote: > Hello everyone, I am still using RPi4, I have 1GB allocated memory for > Jailhouse and now I need to build a custom Linux for the non-root cell. > I started with the easiest method using buildroot, but I got an error > while loading the 153Mb image:
If that image is so large, why using buildroot? Did you have a look at https://github.com/siemens/jailhouse-images/blob/master/recipes-core/non-root-initramfs/files/arm64-config to get smaller images? > No space found to load all images > I reserved 1GB using device tree @0x2000 0000 > Is there an attribute in rpi4-linux-demo.c that specifies space? This region defines the primary RAM of the inmate: https://github.com/siemens/jailhouse/blob/6234762737513985d5de14d860773ca3257f858c/configs/arm64/rpi4-linux-demo.c#L103 > What I understand, that the user can either give a full image that > includes also the rootfs.cpio, or and image and a rootfs.cpio > Is is possible to use Yocto for building a small linux for the non-root > cell? You can use any ramdisk build system that you like. > From where can I start to use ISAR-build, to build a Linux for the > non-root cell? Due to size constraints we have with some targets (the Orange Pi Zero has only 256M, and we start Linux twice on it), even jailhouse-images uses a buildroot recipe to get a uclibc-based minimal rootfs for the inmates. If you do not have such size constraints, you could use a regular minimal Debian rootfs as well, just converting it into cpio (image class cpiogz-img, https://github.com/ilbers/isar/blob/master/meta/classes/cpiogz-img.bbclass). Jan -- Siemens AG, Technology 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/087160d4-a13d-4b2f-6aeb-db370227490c%40siemens.com.
