Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XZD Yocto Layer
#7
(08-14-2017, 01:15 PM)Nathan.Studer Wrote:
(08-10-2017, 08:48 AM)ariefgrand Wrote: 1. In Dornerworks tutorial, I saw the procedures to build Dom0. I saw that you need to build it from buildroot git and insert components/apps/xen/ from the BSP given. If I use the petalinux 2017.1 BSP, can I just copy the entire folder to my Petalinux project? Will the buildroot git compatible with the next Petalinux versions? 

If you followed the instructions on the Xilinx wiki page, you should be able to use your Yocto FS as Dom0 instead of a buildroot based one.  This is probably the best route anyway, since a buildroot based rootFS is not planned on being supported in the future.

You could try to follow the User Manual to perform the buildroot build with PetaLinux 2017.1, but I'm not sure how well the User Manual will match that version of the Xilinx tools and you may run into other issues.

(08-10-2017, 08:48 AM)ariefgrand Wrote: 3. If I use two partitions on my SD card, BOOT for the first partition and ROOTFS for the second. I should put the Dom0.img in the second partition, right? But then, how can I configure the U-boot to boot the rootfs from the second partition. Not from ramdisk. Especially with the Xen inside.

Yes, put the Dom0.img or Dom0 Yocto rootfs on the second partition.  Assuming you're not using a initramfs kernel, you just need to update the kernel boot arguments in the device tree to point to the partition that contains the rootfs.

Code:
     xen,dom0-bootargs = "console=hvc0 earlycon=xenboot root=/dev/mmcblk1p2 rw";

If you're using an initramfs kernel, then the initramfs kernel needs to mount the true root partition and switch_root to it.

     Nate

Hi Nate,

Thank you so much for your suggestions. It works!

Arief
Reply


Messages In This Thread
XZD Yocto Layer - Nathan.Studer - 04-12-2017, 03:23 PM
RE: XZD Yocto Layer - ariefgrand - 07-12-2017, 01:53 PM
RE: XZD Yocto Layer - Nathan.Studer - 07-12-2017, 03:51 PM
RE: XZD Yocto Layer - ariefgrand - 08-10-2017, 08:48 AM
RE: XZD Yocto Layer - Nathan.Studer - 08-14-2017, 01:15 PM
RE: XZD Yocto Layer - ariefgrand - 08-14-2017, 05:20 PM
RE: XZD Yocto Layer - ariefgrand - 08-10-2017, 11:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)