This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] PROCESSOR-SDK-AM69:是否支持 KVM?

Guru**** 2473260 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1463997/processor-sdk-am69-is-kvm-supported

器件型号:PROCESSOR-SDK-AM69
Thread 中讨论的其他器件:OMAPL138

工具与软件:

简单的问题: SDK Yocto 构建是否支持 KVM?  所有配方都不包括 KVM 模块。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Ian、

    您可以尝试可在 OpenEmbedded Layer 索引中搜索的 KVM 方法。 我不能保证一个人会工作,但假设它应该工作。

    您可以尝试: https://layers.openembedded.org/layerindex/recipe/52930/ 

    您只需将图层添加到 bblayers.conf 并编辑 IMAGE_INSTALL 变量即可。

    此致!
    Jared

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢、 kvmtool_git.bb 由 SDK 拉动。

    我认为它不会提供我想要的 、即本机 KVM 支持、硬件虚拟化。  换言之,我希望能够使用"qemu-system-Aarch64 -enable-kvm"运行 QEMU 。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Ian、

    您是否可以将 qemu 软件包添加到映像: https://layers.openembedded.org/layerindex/recipe/68652/

    此致!
    Jared

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    再次感谢 Jared、

    当前的 SDK 引入了 qemu_8.2.2、这是我在构建中包含的内容。  但是、 使用-enable-KVM 运行 qemu-system-Aarch64失败

    无法访问 KVM 内核模块:没有此类文件或目录

    可能我的食谱或配置中缺少一些东西?  我将 qemu 添加到 tisdk-tinlinux-image.bb 食谱中:

    $ cat ../sources/meta-arago/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image-qemu.bb
    SUMMARY ="Arago TI SDK 精简 Linux 映像"

    Description ="最小可引导映像和容器、以开始下一个映像\
    复杂的系统启动。"

    需要 arago-image.inc

    #允许用户在感兴趣的附加软件包上进行定位。
    arago_thin_image_extra_install?=""

    #我们假设某些显示管理器安装有 OpenGL
    systemd_default_target ="${@bb.utils.contains ('DISTRO_features'、'OpenGL'、'graphic.target'、'multi-user.target'、d)}"

    IMAGE_INSTALL +="\
    packagegroup-arago-base \
    packagegroup-arago-console \
    ${@bb.utils.contains ('DISTRO_features'、'OpenGL'、'packagegroup-arago-tisdk-graphics'、''、d)}\
    packagegroup-arago-tisdk-connectivity \
    packagegroup-arago-tisdk-crypto \
    Docker \
    QEMU \
    ${Arago_thin_image_extra_install}\
    "

    导出 image_BASENAME ="tisdk-tinlinux-image-qemu${Arago_image_suffix}"

    #禁用 ubi/ubifs、因为文件系统需要的空间比实际要大
    #在硬件上可用。
    Image_FSTYPES:remove:omapl138 ="ubifs ubi"

    $ diff ../sources/meta-arago/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image-qemu.bb ../sources/meta-arago/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bb
    21d20
    < qemu \
    25c24
    < export IMAGE_BASENAME ="tisdk-tinlinux-image-qemu${Arago_image_suffix}"
    ——
    >导出 image_BASENAME ="tisdk-tinlinux-image${arago_image_suffix}"

    Ian。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Ian、

    您能否检查您的内核模块是否已加载?

    $ lsmod

    如果没有、您需要将以下内容添加到您的图像配方/ local.conf /等

    IMAGE_INSTALL:append = " kernel-modules"

    此致!
    Jared

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    事实证明、SDK 内核配置 未启用 KVM! 一旦我发现这一点,它是简单的帆船打开它与 menuconfig 和重建。

     似乎没有构建内核模块的任何支持、因此 在内核中启用 KVM 支持是一种不错的选择。  默认情况下应该真正启用该功能。

    Ian。