我们需要从emmc启动,linux编译完成的img如何烧写到emmc,能否提供下emmc的烧写工具。
Nancy Wang:
参考:
e2e.ti.com/…/3362733
e2echina.ti.com/…/232308
yi yan:
回复 Nancy Wang:
如果从网口下载,硬件应该怎么设置从网口启动?
Nancy Wang:
回复 yi yan:
请查看技术手册 5.2.5.2 SYSBOOT Configuration Pins
www.ti.com/…/spruhl7i.pdf
yi yan:
回复 Nancy Wang:
processors.wiki.ti.com/…/Sitara_Uniflash_Flash_Programming_with_Linux
技术文档里面提到:
Build SPL (also called MLO) and U-Boot for FlashingThis process uses the U-Boot sources that have been board ported to the custom target board. More information about building U-Boot can be found here
A patch need to be applied to the U-Boot source tree for the given platform, AM335x or AM437x. This patch changes the default boot behavior to TFTP over either USB or ethernet.AM335x – [U-Boot Patch to Add TFTP Boot Configurations]AM437x – [U-Boot Patch to Add TFTP Boot Configurations]Use the below commands to build the images from the u-boot source tree (assumes TI Linux Processor SDK 1.0):make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=flasher <build target from below table>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=flasher
为什么uboot还要设置通过tftp从网口启动?
我们计划把flasher.sh集成到ramdisk文件系统后,自动运行flasher.sh,flasher.sh再通过tftp下载Production Image到emmc,这种方案可行吗?这么操作的话,uboot是不是可以就不用设置从网口启动?
Nancy Wang:
回复 yi yan:
yi yan 为什么uboot还要设置通过tftp从网口启动?我们计划把flasher.sh集成到ramdisk文件系统后,自动运行flasher.sh,flasher.sh再通过tftp下载Production Image到emmc,这种方案可行吗?这么操作的话,uboot是不是可以就不用设置从网口启动?
文档中所说的步骤应该是跟linux内核的启动流程有关,关键是怎么逐步引导将flasher.sh运行起来。
从网口启动是为了加载SPL,设置uboot中TFTP是为了加载kernel。
yi yan:
回复 Nancy Wang:
明白了,谢谢解答,另外A patch need to be applied to the U-Boot source tree for the given platform, AM335x or AM437x. This patch changes the default boot behavior to TFTP over either USB or ethernet.AM335x – [U-Boot Patch to Add TFTP Boot Configurations]AM437x – [U-Boot Patch to Add TFTP Boot Configurations]
这个patch(AM437x – [U-Boot Patch to Add TFTP Boot Configurations])我们下载不下来,能提供下吗?我们现在用的sdk是
ti-processor-sdk-linux-am437x-evm-06.03.00.106-Linux-x86-Install.bin
yi yan:
回复 Nancy Wang:
明白了,谢谢解答,另外A patch need to be applied to the U-Boot source tree for the given platform, AM335x or AM437x. This patch changes the default boot behavior to TFTP over either USB or ethernet.AM335x – [U-Boot Patch to Add TFTP Boot Configurations]AM437x – [U-Boot Patch to Add TFTP Boot Configurations]
这个patch(AM437x – [U-Boot Patch to Add TFTP Boot Configurations])我们下载不下来,能提供下吗?我们现在用的sdk是
ti-processor-sdk-linux-am437x-evm-06.03.00.106-Linux-x86-Install.bin
Nancy Wang:
回复 yi yan:
这个文档比较老,最新的SDK可能不需要patch了,我咨询一下相关工程师,再回复给您。
yi yan:
回复 Nancy Wang:
好的,另外再帮忙问下,如果不需要配置,对应的uboot的config(支持tftp)应该选哪个?