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.
工具与软件:
大家好、团队成员:
我已 在 Linux 中安装了 ti-processor-sdk-linux-am62xx-evm-10.00.07.04。 并通过 UART 将配置文件刷写至 eMMC。 下面是使用的配置文件。
hsm@c001149862:~/ti/bin/uart_uniflash/bin/am62xx-lp-evm$ ls example_sbl_ospi_nand_linux_hs.cfg sbl_uart_uniflash_stage1.release.hs_fs.tiimage sbl_uart_uniflash_stage2.release.appimage.hs sbl_uart_uniflash_stage2.release.appimage.hs_fs.tmp example_sbl_ospi_nand_linux_hs_fs.cfg sbl_uart_uniflash_stage1.release.hs.tiimage sbl_uart_uniflash_stage2.release.appimage.hs_fs sbl_uart_uniflash_stage2.release.appimage.hs.tmp hsm@c001149862:~/ti/bin/uart_uniflash/bin/am62xx-lp-evm$ cat example_sbl_ospi_nand_linux_hs_fs.cfg #-----------------------------------------------------------------------------# # # # EXAMPLE CONFIGURATION FILE TO BE USED WITH THE FLASHWRITER SCRIPT # # # #-----------------------------------------------------------------------------# # # - You can customized this config file to point to your own bootloader and/or application images # - You can use --operation=flashverify if you just want to verify the flash contents and not flash the file. # how to use: python uart_uniflash.py -p {name of your UART com port} --cfg={path to your edited config file} # help: python uart_uniflash.py --help # # First point to sbl_uart_uniflash_stage1 binary, which initialises DDR and receives sbl_uart_uniflash_stage2 binary --flash-writer=/home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage1.release.hs_fs.tiimage # When sending sbl_uart_uniflash_stage2 binary make sure to flash at SOC memory offset 0x0. # Points to sbl_uart_uniflash_stage2 binary, which function's as a server to flash one or more --file=/home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage2.release.appimage.hs_fs --operation=flash --flash-offset=0x0 # Now send one or more files to flash or flashverify as needed. The order of sending files does not matter # Flash tiboot3.bin --file=/home/u_hsm/git_repos/az24266ssp-linux-is7_kernal/image-a/am62x-bootloader/hs-fs/tiboot3.bin --operation=flash-emmc --flash-offset=0x0 # Flash tispl.bin --file=/home/u_hsm/git_repos/az24266ssp-linux-is7_kernal/image-a/am62x-bootloader/hs-fs/tispl.bin --operation=flash-emmc --flash-offset=0x80000 # Flash u-boot.img --file=/home/u_hsm/git_repos/az24266ssp-linux-is7_kernal/image-a/am62x-bootloader/hs-fs/u-boot.img --operation=flash-emmc --flash-offset=0x280000 hsm@c001149862:~/ti/bin/uart_uniflash/bin/am62xx-lp-evm$
并将电路板引导模式设置为 UART、尝试使用 sbl_uart_uniflash.py 通过上述附加的 cfg 文件进行闪存。 以下是错误面。
hsm@c001149862:~/ti/bin/uart_uniflash$ hsm@c001149862:~/ti/bin/uart_uniflash$ python3.8 uart_uniflash.py -p /dev/ttyUSB0 --cfg=/home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/example_sbl_ospi_nand_linux_hs_fs.cfg Parsing config file ... Parsing config file ... SUCCESS. Found 5 command(s) !!! Executing command 1 of 5 ... Found flash writer ... sending /home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage1.release.hs_fs.tiimage Sent flashwriter /home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage1.release.hs_fs.tiimage of size 246676 bytes in 24.54s. Executing command 2 of 5 ... Command arguments : --file=/home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage2.release.appimage.hs_fs --operation=flash --flash-offset=0x0 Sending /home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 122468bytes [00:13, 10718.41bytes/s]error_count reached 16, aborting. Sending /home/u_hsm/ti/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage2.release.appimage.hs_fs: 122470bytes [00:13, 10718.41bytes/s] [ERROR] XMODEM recv failed, no response OR incorrect response from EVM OR cancelled by user, Power cycle EVM and run this script again !!! hsm@c001149862:~/ti/bin/uart_uniflash$
您能在这方面帮助我吗? 谢谢
大家好、预编译的二进制文件仅适用于 TI EVM。 那么、您是使用 TI SK-LP EVM 还是使用定制电路板?
我 只使用 TI SK-LP EVM、而不使用定制电路板。
在这种情况下、您可以尝试以下 UART_UNIFLASH 映像吗?
hsm@c001149862:~/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash$ python3.8 uart_uniflash.py -p /dev/ttyUSB0 --cfg=/home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/example_sbl_ospi_nand_linux_hs_fs.cfg Parsing config file ... Parsing config file ... SUCCESS. Found 5 command(s) !!! Executing command 1 of 5 ... Found flash writer ... sending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage1.release.hs_fs.tiimage Sending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stageSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stageSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stageSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage Sent flashwriter /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage1.release.hs_fs.tiimage of size 249016 bytes in 25.57s. Executing command 2 of 5 ... Command arguments : --file=/home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage2.release.appimage.hs_fs --operation=flash --flash-offset=0x0 Sending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stageSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stageSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stageSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stageSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stageSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stageSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage Sent /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash/bin/am62xx-lp-evm/sbl_uart_uniflash_stage2.release.appimage.hs_fs of size 128079 bytes in 15.59s. [STATUS] SUCCESS !!! Executing command 3 of 5 ... Command arguments : --file=/home/u_hsm/git_repos/az24266ssp-linux-is7_kernal/image-a/am62x-bootloader/hs-fs/tiboot3.bin --operation=flash-emmc --flash-offset=0x0 Sending /home/u_hsm/git_repos/az24266ssp-linux-is7_kernal/image-a/am62x-bootloader/hs-fs/tiboot3.bin: 0%| | 0/313118 [00:00<?,send error: error_count reached 10, aborting. Sending /home/u_hsm/git_repos/az24266ssp-linux-is7_kernal/image-a/am62x-bootloader/hs-fs/tiboot3.bin: 0%| | 2/313118 [01:50<95 [ERROR] XMODEM send failed, no response OR incorrect response from EVM OR cancelled by user, Power cycle EVM and run this script again !!! hsm@c001149862:~/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash$ hsm@c001149862:~/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/bin/uart_uniflash$
现在、我能够成功地使用 UART uart_uniflash.py 来刷写 u-boot 映像。
但我在 偏移=0x0处刷写了 tiboot3.bin、 在 偏移=0x80000处刷写了 tispl.bin、在偏移=0x280000处刷写了 tispl.bin 、在0x680000处刷写了 uEnv.txt、电路板开始启动。
我有问题、我想闪存内核映像、dtb 文件和 rootfs、因此我要在 eMMC 上闪存什么地址、您能否为 am62x-LP-SK EVM 的 eMMC 存储器布局提供帮助。
您好!
以下链接显示了 eMMC 布局
以下是通过不同高速介质刷写 rootfs 的资源:
此致、
Prashant
我必须 使用 UART uart_uniflash.py 将 uEnv.txt、内核映像、dtb 文件和 rootfs 刷写到 eMMC、因此我需要正确的闪存地址。 am62x.LP-SK 评估板中。
Linux 内核和 dtb 是 Rootfs 本身的一部分。 并且由于 rootfs 的大小很大、因此无法使用 UART 进行刷写。 您需要利用高速媒体来刷写 rootfs (如之前所述)。
Rootfs 文件系统已作为 PSDK 安装的一部分提供
~/ti/psdk/am62x/10.00.07.04 ❯ ls -l filesystem/am62xx-lp-evm .rw-r--r-- 94M p-shivhare tisdk-base-image-am62xx-lp-evm.rootfs.tar.xz .rw-r--r-- 149M p-shivhare tisdk-thinlinux-image-am62xx-lp-evm.rootfs.tar.xz .rw-r--r-- 17M p-shivhare tisdk-tiny-initramfs-am62xx-evm.rootfs.cpio
您好、Prashant
我尝试使用 uart_uniflash.py 刷写微型闪存 initramfs (如下)。
-rw-r--r-- 1 HSM 用户 17213952 Jun 13 14:07 tisdk-tiny-initramfs-am62xx-evm.rootfs.cpio (与正常的 rootfs 相比、大小更小)
但失败了。 您能在这方面提供帮助吗。
Executing command 7 of 7 ... Command arguments : --file=/home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpio --operation=flash-emmc --flash-offset=0x2000000 Sending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpiSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpi Sending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpiSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpi Sending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpiSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpi Sending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpiSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpi Sending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpiSending /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpi Sent /home/u_hsm/ti/ti-processor-sdk-linux-am62xx-evm-10.00.07.04/filesystem/am62xx-lp-evm/tisdk-tiny-initramfs-am62xx-evm.rootfs.cpio of size 17213952 bytes in 1616.75s. [STATUS] ERROR: Flashing failed !!!
您好!
微型文件系统旨在用作 initramfs。 您需要根据您的要求使用基本或默认文件系统。 在任何情况下、都不能使用 UART_UNIFLASH 刷写其中任何一个。 您必须通过之前传递的方法之一刷写 rootfs。
e2e.ti.com/.../sk-am62b-p1-correct-way-to-flash-the-rootfs-into-the-emmc