TI中文支持网
TI专业的中文技术问题搜集分享网站

am5728串口启动

am5728串口启动的流程是怎样的?

ce guo:

回复 Jian Zhou:

您好:

        我使用的串口工具是pinocom,在参考您提到的TRM中的相关章节之后,串口参数设置为115200  8 bits  EVEN parity   1 stop-bit:

gc@gc-virtual-machine:~$sudo picocom -b115200 -d8 -pe -fn -s "sx -kb" /dev/ttyUSB0

picocom v1.7

port is : /dev/ttyUSB0flowcontrol : nonebaudrate is : 115200parity is : evendatabits are : 8escape is : C-alocal echo is : nonoinit is : nonoreset is : nonolock is : nosend_cmd is : sx -kbreceive_cmd is : rz -vvimap is : omap is : emap is : crcrlf,delbs,

Terminal ready

*** file: u-boot-spl.binsx -kb u-boot-spl.bin Sending u-boot-spl.bin, 581 blocks: Give your local XMODEM receive command now.Xmodem sectors/kbytes sent: 0/ 0kRetry 0: Got 01 for sector ACKRetry 0: NAK on sectorRetry 0: Got 01 for sector ACKRetry 0: NAK on sectorRetry 0: Got 01 for sector ACK

Transfer incomplete

*** exit status: 128A!VA!VA!…

没有成功。

并且参考http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User%27s_Guide#Using_UART,这个地方的叙述和芯片手册所讲的不同,但是将设置串口参数为115200 8N1 也没有成功。

请求帮助….

ce guo:

回复 Jian Zhou:

你好:

          我在TRM中看到The host can decide the desired operation by providing a booting message 0xF0030002。

请问这个二进制值,主机如何通过二进制传输给开发板呢,很急,请求具体如何操作。

Jian Zhou:

回复 ce guo:

请问你是在AM57xx的EVM板上测的么?宿主机的串口调试工具建议用Windows下的secureCRT

ce guo:

回复 Jian Zhou:

你好:

          我使用了一个脚本文件,在wiindows下的执行命令:perl serial-boot.pl -p com3 -s c:\perl\u-boot-spl.bin -d 1

提示的错误是:invalid COMMPROP block length= 66 at serial-boot.pl line 223.

                           could not open port com3:No such file or directory

         在ubuntu中执行:perl ./serial-boot.pl -p /dev/ttyUSB0 -s u-boot-spl.bin -d1 -t40

得到如下结果

gc@gc-virtual-machine:4$perl ./serial-boot.pl -p /dev/ttyUSB0 -s u-boot-spl.bin -d1 -t40BYTES=74376 file_bytes=88220100 prefix_bytes=020003f0 string bytes=020003f088220100—-Please reset the Board NOW (timeout=40 sec)—-80 04 01 05 01 56 41 07 02 13 02 01 00 12 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 14 21 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Board Detected.waiting for draining 40TIOCSERGETLSR(21593) ioctl failed: Inappropriate ioctl for device at ./serial-boot.pl line 360.waiting for draining 39TIOCSERGETLSR(21593) ioctl failed: Inappropriate ioctl for device at ./serial-boot.pl line 360.

请问我应该如何解决这个问题呢?

您讲到的使用secureCRT,请问如果使用secureCRT应该如何操作呢?

ce guo:

回复 Jian Zhou:

是的,我使用的是am57xx    A2

Jian Zhou:

回复 ce guo:

secureCRT就是一个类似超级终端的工具,配置好port口可以看串口打印信息,也可以收发文件

ce guo:

回复 Jian Zhou:

我使用secureCRT只是二进制传输u-boot-spl.bin,串口有反应,xmodem和ymodem传输u-boot.img时候,没有反应

您有使用secureCRT成功的案例吗,求具体步骤和现象

ce guo:

回复 Jian Zhou:

我之前找到一个参考:https://e2e.ti.com/support/arm/sitara_arm/f/791/p/516467/1884780#pi316653=2

我是按照这个帖子最后的附件操作的,可是我得到了如下结果:

gc@gc-virtual-machine:5$sudo perl ./serial-boot.pl -p /dev/ttyUSB0 -s u-boot-spl.bin -d1 -t40[sudo] gc 的密码: BYTES=74376 file_bytes=88220100 prefix_bytes=020003f0 string bytes=020003f088220100—-Please reset the Board NOW (timeout=40 sec)—-1 2 3 4 5 6 7 V8 A9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 !40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 Board Detected.waiting for draining 40TIOCSERGETLSR(21593) ioctl failed: Inappropriate ioctl for device at ./serial-boot.pl line 374.waiting for draining 39TIOCSERGETLSR(21593) ioctl failed: Inappropriate ioctl for device at ./serial-boot.pl line 374.

….

请求帮助,如何解决这一困难,如果是CRT的操作步骤,希望可以得到具体的操作截图

Jian Zhou:

回复 ce guo:

请问你是想通过串口加载MLO和U-boot进行启动么?你是在自己做的板子上测的?

赞(0)
未经允许不得转载:TI中文支持网 » am5728串口启动
分享到: 更多 (0)