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:从 FastXSPI 模式引导并且文件系统位于 eMMC 分区 II 中

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1498999/sk-am62p-lp-boot-from-fastxspi-mode-and-file-system-is-located-in-emmc-partition-ii

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

工具/软件:

SoC:k3-AM62P5

平台:SK-AM62P-LP

SDK:v10.1

尊敬的支持者:

1.我们将文件系统存储在 eMMC 分区2中, 并将 boot 命令设置为"console=ttyS2115200n8 quiet earlycon=ns16550a,mmio32,0x2800000 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"

2.可以从 SD 卡和 eMMC 引导。

3、但是、一旦转到 FastXSPI (Falcon 启用器) 并 如上所述设置 bootargs 和 CONFIG_CMDLINE、我们只会从控制台日志中得到2行、就不会发生任何情况。

NOTICE:  BL31: v2.11.0(release):v2.11.0-906-g58b25570c9-dirty
NOTICE:  BL31: Built : 04:20:32, Nov  1 2024

我们假设 FastXSPI 允许 rootfs 可以位于其他任何位置、在 RAMFS 中不受限制。 不确定是否还有其他问题。

谢谢、

洪文华

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

    您好、Wilson:

    我假设您正在执行以下 SBL OSPI Linux 引导流程: software-dl.ti.com/.../EXAMPLES_DRIVERS_SBL_OSPI_LINUX_MULTISTAGE.html

    您能否附加整个 SBL 日志?

    此致、

    会面。

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

    您好、认识、

    我们遵循 https://software-dl.ti.com/processor-sdk-linux/esd/AM62PX/10_01_10_04/exports/docs/linux/How_to_Guides/Target/How_to_boot_quickly.html 、并尝试将 rootfs 从 OSPI 重定位到 eMMC、因为文件大小很大。

    您提供的链接在引导系统上需要更长时间、但我们需要快速引导。 我们的 rootfs 太大、无法存储在 OSPI 中、因此我们必须将其保存在 eMMC 中。 您可以将 tisdk-default-image-am62pxx-evm.rootfs.tar.xz 视为我们的 rootfs。 为此、我们将 boot 命令修改为"console=ttyS2115200n8 quiet earlycon=ns16550a,mmio32,0x2800000 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"。 但是、电路板上电后、我们只会看到2条线路、它们是整个 SBL 日志。

    NOTICE:  BL31: v2.11.0(release):v2.11.0-906-g58b25570c9-dirty
    NOTICE:  BL31: Built : 04:20:32, Nov  1 2024

    我们的规程:

    1.将 SD 卡安装到主机,运行' cp tisdk-default-image-am62pxx-evm.rootfs.tar.xz /media/$user/rootfs '、然后从主机上卸载 SD 卡

    2.从 SD 卡引导 SK-AM62P-LP。

    3. mkfs.ext4 /dev/mmcblk0p2

    4. cd /run/media/mmcblk0p2

    5. tar -xvf /tisdk-default-image-am62pxx-evm.rootfs.tar.xz

    6.遵循 https://software-dl.ti.com/processor-sdk-linux/esd/AM62PX/10_01_10_04/exports/docs/linux/How_to_Guides/Target/How_to_boot_quickly.html。唯一的区别是设置 CMDLINE= "console=ttyS2115200n8 quiet earlycon=ns16550a,mmio32,0x2800000 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"

    7.从 FastXSPI 引导 SK-AM62P-LP

    此致、

    洪文华

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

    您好、Wilson:

    FastXSPI 是一种特殊的 OSPI_NOR 引导模式。OSPI 闪存中需要存在 SBL stage-1/stage-2、Linux appimage 等所需的二进制文件才能正常工作、您能否确认您是否已在 OSPI 中正确刷写了所需的二进制文件(default_sbl_ospi_linux_hs_fs.cfg)?

    如这里所述: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1418685/sk-am62p-lp-how-to-enable-fastxspi

    您必须在 default_sbl_ospi_linux_hs_fs.cfg 中添加此行、
    --file= --操作=闪存-闪存-偏移= 0x3FC0000

    (此二进制文件在 FastXSPI 部分中提供)

    并删除第23行("flash-phy-tuning…")

    此致、

    会面。

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

    您好、认识、

    当 bootargs ="console=ttyS2115200n8 earlycon=ns16550a,mmio32,0x02800000 quiet";

    NOTICE:  BL31: v2.11.0(release):v2.11.0-906-g58b25570c9-dirty
    NOTICE:  BL31: Built : 04:20:32, Nov  1 2024
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 6.6.58 (user@am62p) (aarch64-oe-linux-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240723) #2 SMP PREEMPT Thu Apr 10 12:09:14 CST 2025
    [    0.000000] KASLR disabled due to lack of seed
    [    0.000000] Machine model: Texas Instruments AM62P5 SK
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    
    am62xx-evm login:

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

    您好、Wilson:

    在此处继续讨论时暂停该主题: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1499906/sk-am62-lp-dev-mmcblk0p2-points-to-sd-card-partition-2-not-emmc-partition-2