u-boot flash emmc ttl串行 [英] u-boot flash emmc ttl serial
问题描述
我曾经通过tftp(带有USB端口或USB上的以太网),SD卡或简单的USB棒之类的工具来更新嵌入式系统上的固件。
I used to update firmware on embedded system through tools like tftp (with ethernet port or ethernet over usb), sd card or a simple usb stick.
我是当前在没有以太网端口,没有USB端口的系统上工作。只有ttl / usb连接可以访问控制台,而微型usb可以提供它。我目前正在构建一个Linux映像和一个rootfs。板上使用的存储是emmc。
I am currently working on a system without ethernet port, no usb port. Only a ttl/usb connexion to be able to access the console and a micro usb to supply it. I am currently building a linux image and a rootfs. The storage used on the board is emmc.
是否有标准方法可以通过简单的ttl /在umc中使用em-boot更新linux / rootfs等。 USB连接?我想我可以借助mmc命令将自己的闪存分配到u-boot中,但是我不明白如何通过简单的ttl / usb链接在emmc中传输内核映像和rootfs。
Is there a standard way to update linux/rootfs in Emmc, etc.. with u-boot by using a simple ttl/usb connexion ? I guess that I can part my flash in u-boot thanks to mmc command but I don't understand how to transfer my kernel image and my rootfs in emmc with a simple ttl/usb link.
推荐答案
是否存在使用简单的ttl / usb通过u-boot更新Emmc等中的linux / rootfs的标准方法。 connexion?
Is there a standard way to update linux/rootfs in Emmc, etc.. with u-boot by using a simple ttl/usb connexion ?
是的,当只有串行控制台连接可用时,可以使用二进制传输协议。这些方法与电话调制解调器所使用的方法相同。
一种传输方法的U-Boot命令为 loadb 。
Yes, when only the serial console connection is available, a binary transfer protocol can be employed. These methods are identical to what is used with phone modems.
A U-Boot command for one transfer method is loadb.
=> help loadb
loadb - load binary file over serial line (kermit mode)
Usage:
loadb [ off ] [ baud ]
- load binary file over serial line with offset 'off' and baudrate 'baud'
=>
另一个用于转移方法的U-Boot命令是 加载 以格式化为Motorola S记录文件的二进制数据:
Another U-Boot command for a transfer method is loads for binary data formatted as a Motorola S-record file:
=> help loads
loads - load S-Record file over serial line
Usage:
loads [ off ] [ baud ]
- load S-Record file over serial line with offset 'off' and baudrate 'baud'
=>
这些方法当然需要在串行链接另一端使用适当的发送程序,就像 tftpboot 需要一个TFTP服务器。像Minicom或TeraTerm这样的终端仿真器程序可以在这些传输的PC端执行。请注意,由发送者确定要传输的文件; U-Boot端无法按名称请求文件,而只能接收文件。
These methods of course require the appropriate sending program on the other end of the serial link, just like tftpboot requires a TFTP server. A decent terminal emulator program, such as Minicom or TeraTerm, can perform the PC side of these transfers. Note that it's the sender that determines the file to transfer; the U-Boot side cannot request the file by name but only receives it.
如果U-Boot中尚未提供这些命令,则必须编辑配置并重建U-Boot。
If these commands are not already available in your U-Boot, then you'll have to edit the configuration and rebuild U-Boot.
这篇关于u-boot flash emmc ttl串行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!