Linux系统用TFTP下载裸机程序到开发板步骤
- 前提是内存中正在运行u-boot
- 将u-boot或裸机程序复制到/tftpboot目录中
- 在u-boot命令执行tftp命令下载:tftp 0x20008000 filename
- 传输完成后在u-boot命令行执行go命令运行: go 0x20008000
- 停止程序运行:ctrl +\之后再c回车,返回kermit命令行
- 将内存中的程序下载到nand:
a) nand erase 0x0 0x100000 擦出闪存0x0是地址, 0x100000是大小
b) nand write 0x20008000 0x0 0x10000 向闪存写数据第一个是内存地 - U-boot中NFS启动:NFS启动
- DFU_uboot搭建 :DFU 搭建
- Boot from UART: http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_U-Boot.html#booting-u-boot-from-the-console-uart
- TFTP: software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Overview/Run_Setup_Scripts.html
- 通过USB烧录uboot到RAM,reboot进入RAM,通过RAM烧录uboot到QSPI,通过QSPI进去 NFS,然后通过NFS烧录系统到eMMC。
- 通过网络使用TFTP和NFS, 登录远程的内核和文件系统, 运行位于TFTP文件系统的烧系统脚本。
- 通过UART烧录RAM,从RAM启动,烧录uboot到Emmc,进入NFS,烧录系统到Emmc。