How to build xen + yocto for rcar m3 + kingfisher board.

currently, i`m following this link  https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/Salvator-X

but there are some issue but not able to find a solution how to resolve that. 

detail error is here : https://www.yoctoproject.org/pipermail/meta-virtualization/2016-September/002201.html

Added oe-repo repo from /home/test_user/workspace/renesas/yocto_5_1_0/m3ulcb/build/tmp/work/m3ulcb-poky-linux/xen-image-minimal/1.0-r0/oe-rootfs-repo
repo: using cache for: oe-repo
not found other for:
not found modules for:
not found deltainfo for:
not found updateinfo for:
oe-repo: using metadata from Thu 28 Oct 2021 11:05:51 AM UTC.
Last metadata expiration check: 0:00:01 ago on Thu 28 Oct 2021 11:05:51 AM UTC.
No module defaults found
No match for argument: kernel-module-xen-blkback
Error: Unable to find a match

same error also for xen-gntdev, xen-wdt

please let me know if any link that i can follow or i can solve,     let me know also if any info required

  • Hi YH

    Thanks.

    yes after setting the above bootargs i`m able to run yocto through nfs and tftp.

    but now i`m tried to run xen with yocto.

    i build the yocto with r-car m3 bsp and output dtb file for me is  r8a77961-ulcb-m3ulcb.dtb  .

    first question

           is this correct ?? as per link for salvator -xs borad dtb file has xen in name.

    i also  build xen as per step and build successfully but when i tried to run it hangs after starting kernel.

    below are logs...

    => printenv
    baudrate=115200
    bootargs==rw root=/dev/nfs nfsroot=192.168.0.173:/nfs/m3ulcb,tcp,v3 ip=192.168.0.117
    bootargs_emmc=rw root=/dev/mmcblk0p1 rootfstype=ext4 rootwait consoleblank=0 log_buf_len=1M
    bootargs_sd0=rw root=/dev/mmcblk1p1 rootfstype=ext4 rootwait consoleblank=0 log_buf_len=1M
    bootargs_tftp_yocto==rw root=/dev/nfs nfsroot=192.168.0.173:/nfs/m3ulcb,tcp,v3 ip=192.168.0.117
    bootcmd_emmc=setenv bootargs ${bootargs_emmc};ext4load mmc 1:1 0x48080000 /boot/Image; ext4load mmc 1:1 0x48000000 /boot/${dtb}; run booti_cmd
    bootcmd_sd0=setenv bootargs ${bootargs_sd0};ext4load mmc 0:1 0x48080000 /boot/Image;ext4load mmc 0:1 0x48000000 /boot/${dtb};run booti_cmd
    bootcmd_tftp=run tftp_xen_load; run tftp_dtb_load; run tftp_kernel_load; run tftp_xenpolicy_load; bootm 0x48080000 - 0x48000000
    bootcmd_tftp_yocto=setenv bootargs ${bootargs_tftp_yocto}; tftp 0x48080000 /Image; tftp 0x48000000 /r8a77960-ulcb-kf-m3ulcb.dtb; run booti_cmd
    bootdelay=5
    booti_cmd=booti 0x48080000 - 0x48000000
    bootm_cmd=bootm 0x48080000 - 0x48000000
    dnsip=192.168.0.1
    dtb=r8a77960-ulcb-kf-m3ulcb.dtb
    ethact=ethernet@e6800000
    ethaddr=2E:09:0A:06:D2:94
    fdt_high=0xffffffffffffffff
    fdtcontroladdr=bbeeffb0
    fileaddr=8c000000
    filesize=28c2
    gatewayip=192.168.0.1
    initrd_high=0xffffffffffffffff
    ipaddr=192.168.0.117
    loadaddr=0x58000000
    netmask=255.255.255.0
    platform=r8a7796
    serverip=192.168.0.173
    stderr=serial@e6e88000
    stdin=serial@e6e88000
    stdout=serial@e6e88000
    tftp_dtb_load=tftp 0x48000000 r8a77961-ulcb-m3ulcb.dtb
    tftp_kernel_load=tftp 0x8a000000 Image
    tftp_xen_load=tftp 0x48080000 xen-uImage
    tftp_xenpolicy_load=tftp 0x8c000000 xenpolicy
    usb_pgood_delay=2000
    ver=U-Boot 2020.10 (Jun 29 2021 - 12:42:46 +0000)

    Environment size: 1687/131068 bytes
    => setenv bootargs rw root=/dev/nfs nfsroot=192.168.0.173:/nfs/m3ulcb,tcp,v3 ip=192.168.0.117
    => saveenv
    Saving Environment to MMC... Writing to MMC(1)... OK
    => tftp 0x48000000 r8a77961-ulcb-m3ulcb.dtb
    Using ethernet@e6800000 device
    TFTP from server 192.168.0.173; our IP address is 192.168.0.117
    Filename 'r8a77961-ulcb-m3ulcb.dtb'.
    Load address: 0x48000000
    Loading: #####
    2 MiB/s
    done
    Bytes transferred = 68371 (10b13 hex)
    => tftp 0x8a000000 Image
    Using ethernet@e6800000 device
    TFTP from server 192.168.0.173; our IP address is 192.168.0.117
    Filename 'Image'.
    Load address: 0x8a000000
    Loading: #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #############################################
    4 MiB/s
    done
    Bytes transferred = 33102336 (1f91a00 hex)
    => tftp 0x48080000 xen-uImage
    Using ethernet@e6800000 device
    TFTP from server 192.168.0.173; our IP address is 192.168.0.117
    Filename 'xen-uImage'.
    Load address: 0x48080000
    Loading: #################################################################
    #########
    3.5 MiB/s
    done
    Bytes transferred = 1081416 (108048 hex)
    => tftp 0x8c000000 xenpolicy
    Using ethernet@e6800000 device
    TFTP from server 192.168.0.173; our IP address is 192.168.0.117
    Filename 'xenpolicy'.
    Load address: 0x8c000000
    Loading: #
    565.4 KiB/s
    done
    Bytes transferred = 10434 (28c2 hex)
    => bootm 0x48080000 - 0x48000000
    ## Booting kernel from Legacy Image at 48080000 ...
    Image Name: XEN
    Image Type: AArch64 Linux Kernel Image (uncompressed)
    Data Size: 1081352 Bytes = 1 MiB
    Load Address: 78080000
    Entry Point: 78080000
    Verifying Checksum ... OK
    ## Flattened Device Tree blob at 48000000
    Booting using the fdt blob at 0x48000000
    Loading Kernel Image
    Using Device Tree in place at 0000000048000000, end 0000000048013b12
    Overlap found: 0x480000000..0x4ffffffff / 0x480000000..0x4ffffffff
    Overlap found: 0x600000000..0x6ffffffff / 0x600000000..0x6ffffffff

    Starting kernel ...

  • Hi, kallz

    I think it needs to create new devicetree r8a77961-ulcb-kf-xen.dtb for booting Xen.

    According to salvator's dts file, it has very simple structure.
    So, replacing "salvator" with "ulcb" may be enough.
    https://github.com/xen-troops/meta-renesas/blob/v5.1.0_xen/meta-rcar-gen3/recipes-kernel/linux/linux-renesas/r8a77951-salvator-xs-xen.dts


    Currently, there is only devicetree for salvator-xs with r8a7795 SoC in xen-troops/meta-renesas.
    So, Supporting r8a7796 SoC may be required some modification.

  • Hi,

    Do you have any updates?

  • Hi,

    This question has been opened but there is no reply for a long time.
    We have a tentative answer already, so I will close this question.
    If you have any updates or want to ask another question, please post new question.