请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:AM625 主题中讨论的其他器件:CSD
您好!
我已成功按照为 DFU 刷写脚本提供的步骤操作、在成功刷写 rootfs 后、我需要在 UART 控制台中执行特定命令。 但是、我的目标是自动执行整个刷写过程、无需在 UART 控制台中手动键入任何命令。
刷写脚本后、我需要在 UART 终端中执行以下步骤:
To give the ROM access to the boot partition, the following commands must be used for the first time:
=> mmc partconf 0 1 1 1
=> mmc bootbus 0 2 0 0
The above command sets up the EXT_CSD register of eMMC flash and enables boot from boot0 partition.
Power the EVM off. Set the boot switches [SW2:SW1] to eMMC boot. When the board is powering on, hit any key to stop u-boot auto-booting. Enter the following u-boot commands. Alternatively, these u-boot commands may also be built into u-boot.
To boot kernel from eMMC, use the following commands after writing rootfs to user partition:
setenv mmcdev 0
setenv bootpart 0
boot
The board should now boot from eMMC with the updated files.
如何将这些命令集成到 DFU-Flashing 脚本中以自动执行此过程?
谢谢。
Abhijeet