On 05/15/2017 02:21 PM, Sneha wrote: > Hi Jan > > I still need to use the kernel config you provided. But I tried using the > kernel of jailhouse/queues branch in git.kiszka.org. I don't know how to > create initrd using Buildroot, but I was successful in creating initramfs > using it. I had enabled libserial and some other serial related libraries. > While building the Kernel, I enabled CONFIG_SERIO,set CONFIG_BLK_DEV_RAM=m, > CONFIG_BLK_DEV_RAM_COUNT=1 and CONFIG_BLK_DEV_RAM_SIZE=4096. > > After enabling Jailhouse using jetson-tk1.cell, I tried the following : > > sudo jailhouse cell linux \ > --dtb configs/dts/inmate-jetson-tk1.dtb \ > --initrd rootfs.cpio \ > --cmdline "console=ttyS0,115200" \ > --arch arm \ > configs/jetson-tk1-linux-demo.cell Image > > rootfs.cpio was created using Buildroot. PFA the buildroot config. > Linux Kernel from > http://git.kiszka.org/?p=linux.git;a=shortlog;h=refs/heads/queues/jailhouse. > PFA the kernel config. > > I still don't see any output on serial(ttyS0). I don't get any errors. > jailhouse cell list displays the cell as running. > > I also tried using rootfs.tar instead of rootfs.cpio created using Buildroot, > but still the same behaviour. I gave initramfs instead of initrd since it was > mentioned in jailhouse cell linux --help. > > Another observation is when I pass zImage instead of Image, Jailhouse traps. Shouldn't happen. Could you please paste the message?
As a first step, I recommend to try to boot Linux without providing an initial ramdisk. This reduces the problem set a bit. You should at least see your kernel booting followed by a panic. After this works, try providing your initrd as a next step. > > Does the root cell also need /dev/ram0 for the non root cell to work? How can > I build initrd using Buildroot? Is it for the root cell or the non root cell? No, /dev/ram0 has nothing to do with Jailhouse or with you non-root cell. Clone buildroot, type 'make menuconfig' and configure it according to your wishes. Set BR2_TARGET_ROOTFS_CPIO=y and BR2_TARGET_ROOTFS_CPIO_NONE=y to get an uncompressed initrd. 'make' will finally build your 'output/images/rootfs.cpio' that can be used as rootfs for your inmate. Ralf > > Please help. > > Regards > Sneha > -- 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]. For more options, visit https://groups.google.com/d/optout.
