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.

[参考译文] SK-AM62P-LP:RPI 7英寸面板可使用预编译的 SDK 映像启用、但不能通过 SDK 中的源和默认设置使用重新编译内核

Guru**** 2328790 points
Other Parts Discussed in Thread: SK-AM62P-LP
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1520440/sk-am62p-lp-rpi-7inch-panel-can-be-enable-using-prebuilt-sdk-image-but-not-using-the-rebuild-kernel-through-the-source-and-default-setting-from-sdk

器件型号:SK-AM62A-LP
主题中讨论的其他器件:SK-AM62P-LP

工具/软件:

您好、

我正在使用 SDK ti-processor-sdk-linux-rt-am62pxx-evm-11.0009.04、在 SK-AM62P-LP EVM 上开发 mipi 面板启用  

我有一个 RPI 7英寸面板、这是该主题 https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1372152/sk-am62p-lp-tested-lvds-and-mipi-dsi-display-part-number 的建议

可通过以下步骤启用该面板

1)使用 具有此映像"tisdk-default-image-rt-am62pxx-evm.rootfs.tar"的 create-sdcard.sh 脚本准备 SD 卡

2) 在 uEnv.txt 中添加 name_overles=ti/k3-am62p5-sk-sq-dsi-Rpi-7inch-panel.dtbo

3)开机到内核控制台并键入"kmstest --device=/dev/dri/card2 ",一些 RGB 是可见的。

由于我刚接触 TI-DSS 和 DRM、需要对代码流进行一些研究、我尝试从 SDK 重新编译默认内核源并将其闪存到 SD 卡中、面板空白 什么出错了??

执行的操作

1) 使 arch=arm64 cross_compile="$cross_compile_64" distclean

2) make arch=arm64 cross_compile="$cross_compile_64" defconfig ti_arm64_prune.config ti_rt.config

4) make arch=arm64 cross_compile="$cross_compile_64" Image

5) 建立 arch=arm64 cross_compile="$cross_compile_64"模块

6) make arch=arm64 install_MOD_PATH=/data/tisdk/ti-processor-sdk-linux-rt-am62pxx-evm-11.0009.04 modules_install

7)通过 winscp 连接到 EVM、替换 boot 目录中的 Image

8)将 sdcard 中的替换为我通过 modules_install 生成的/lib/modules/6.12.17 (步骤6)

9)对 EVM 进行下电上电、内核正常上电。 lsmod 可以看到 DRM 模块和 panel_simpled 已加载。

10)当键入 "kmstest --device=rubile"时/dev/dri/card2、屏幕上将显示以下日志、面板上没有可见的 RGB。

请提供建议。 谢谢。

e2e.ti.com/.../log_2D00_rpi_2D00_nwork.log

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

    您好、
    以下各项的输出是什么:

    modetest -M tidss
    ls -l /dev/dri/*

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

    您好、

    请在随附的日志中找到上述内容的输出。

    谢谢。

    e2e.ti.com/.../log_2D00_rpi_2D00_modetest.log

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

    您好、
    从您的引导日志中、似乎 DSS1已初始化。 您可以尝试以下方法:

    modetest -D 30220000.dss
    kmsprint --device=/dev/dri/card0
    kmsprint --device=/dev/dri/card1
    kmstest --device=/dev/dri/card0
    kmstest --device=/dev/dri/card1


    只是为了检查您的显示、以下命令是否有效?:
    1.  在 SD 卡上刷写 tisdk-default-image-am62pxx-evm-11.00.09.04.rootfs.wic.xz。
    2. 在 uEnv.txt 中添加 name_overles=ti/k3-am62p5-sk-DSI-RPI-7inch-panel.dtbo
    3. 打开内核控制台并键入"kmstest --device=/dev/dri/card "、可以看到一些 RGB。
      此处 x 的值可以是0、1或2。 尝试所有。

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

    尊敬的 Divyansh:

    请查找 card0和 card1的 kmsprint 和 kmstest 日志、在 card1上可以看到 RGB。

    e2e.ti.com/.../log_2D00_rpi_2D00_modetest_2B00_kmsprint_2B00_kmtest.log

    对于默认预编译映像、RGB 仅在 Card2上可见、并且 /dev/dri 中有此 renderD128节点、但不能使用构建内核。

    预构建和 SDK 默认源+设置之间可能有哪些差异导致所有这些??

    e2e.ti.com/.../log_2D00_rpi_2D00_prebuilt_2D00_kmstest_2D00_all_2D00_card.log

    谢谢你。

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

    您好、
    在预构建的外壳中、您将在中看到以下内容:
    旁路 卡0 Card1 Card2  RenderD128

    其中两个卡连接到 DSS0和 DSS1、其他卡+renderD128是 GPU 特定的实体。
    您可以通过检查以下各项的输出来检查加载内容:

    root@am62pxx-evm:~# ls /dev/dri/by-path/ -l
    total 0
    lrwxrwxrwx 1 root root  8 Jun  3 21:12 platform-30200000.dss-card -> ../card2
    lrwxrwxrwx 1 root root  8 Jun  3 21:12 platform-30220000.dss-card -> ../card0
    lrwxrwxrwx 1 root root  8 Jun  3 21:12 platform-fd80000.gpu-card -> ../card1
    lrwxrwxrwx 1 root root 13 Jun  3 21:12 platform-fd80000.gpu-render -> ../renderD128

    30200000是 DSS030220000是 DSS1。

    注意: 不能保证 DSI (从 DSS1运行)将始终加载到 Card2上、即也可以加载到 Card0或 Card1上。 此加载可能会在任何引导和用户空间应用程序在使用之前都需要进行检查时进行更改。

    预构建和 SDK 默认源+设置之间可能存在哪些差异?

    似乎您的 GPU 实体没有加载、主要是表明 lsmod 不会显示 pvrsrvkm、modprobeing pvrsrvkm 将导致错误。

    如果要使用 GPU、则需要使用类似以下命令将其构建为树外内核模块:

    make ti-img-rogue-driver
    sudo make ti-img-rogue-driver_install DESTDIR=/media/a0507040local/root
    sudo make ARCH=arm64 INSTALL_MOD_PATH=/media/a0507040local/root linux_install

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

    您好、

    我尝试制作 ti-img-rogue-driver 并观察到.config 在构建过程中更新了。

    将新的.config 与使用 "make arch=arm64 cross_compile="$cross_compile_64" defconfig ti_arm64_prune.config ti_rt.config"配置的之前配置进行比较、存在很大差异、主要变化是删除了所有 PREMPT-RT 配置。

    是否必须从流氓驱动程序构建中严格遵循.config?

    谢谢。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引用 userid="413558" url="~/support/processors-group/processors/f/processors-forum/1520440/sk-am62p-lp-rpi-7inch-panel-can-be-enable-using-prebuilt-sdk-image-but-not-using-the-rebuild-kernel-through-the-source-and-default-setting-from-sdk/5855691 #5855691"]

    是否必须从流氓驱动程序构建中严格遵循.config?

    [/报价]

    编号

    我建议您仔细查看 Makefile、并查看任何权变措施以包含您的特定配置。
    例如、请尝试以下操作:

    make ti-img-rogue-driver RT_FRAGMENT=ti_rt.config

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

    已注意。 谢谢你。 将关闭该主题。