大家好,
最近在AM335x BeagleBone Black 上完整验证了下eMMC的烧写,总结了一篇文档共享出来,欢迎拍砖。
附件是文档中所描述的debrick.sh,烧写用的文件系统在后面的跟帖,这篇帖子可以和“AM335x Flash Tool — UniFlash 烧写工具使用简介及问题解决方案汇总”互为参考。
Jian Zhou:
不好意思,忘了加文档,这个跟帖是文档
Jian Zhou:
回复 Jian Zhou:
这个跟帖是烧写用的文件系统
douhuo:
Jian Zhou 您好,我在用uniflash 通过USB下载时,每次下载到27%就停止,然后网路断开–>重连–>断开,之后设备管理器里USB/RNDIS网络就掉了。
请问这是什么原因造成的?谢谢
douhuo:
回复 douhuo:
串口信息如下:
U-Boot SPL 2013.01.01 (Oct 25 2014 – 04:49:57)musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)musb-hdrc: MHDRC RTL version 2.0 musb-hdrc: setup fifo_mode 4musb-hdrc: 28/31 max ep, 16384/16384 memoryUSB Peripheral mode controller at 47401000 using PIO, IRQ 0Using default environment
usb_etherusing musb-hdrc, OUT ep1out IN ep1in STATUS ep2inMAC c8:a0:30:c5:db:10HOST MAC de:ad:be:af:00:00RNDIS readymusb-hdrc: peripheral reset irq lost!high speed config #2: 2 mA, Ethernet Gadget, using RNDISUSB RNDIS network up!BOOTP broadcast 1BOOTP broadcast 2BOOTP broadcast 3BOOTP broadcast 4BOOTP broadcast 5BOOTP broadcast 6BOOTP broadcast 7BOOTP broadcast 8BOOTP broadcast 9BOOTP broadcast 10
Retry count exceeded; starting againusing musb-hdrc, OUT ep1out IN ep1in STATUS ep2inMAC c8:a0:30:c5:db:10HOST MAC de:ad:be:af:00:00RNDIS readyhigh speed config #2: 2 mA, Ethernet Gadget, using RNDISUSB RNDIS network up!BOOTP broadcast 1Using usb_ether deviceTFTP from server 192.168.2.1; our IP address is 192.168.2.2Filename 'u-boot-restore.img'.Load address: 0x807fffc0Loading: *######################### 877.9 KiB/sdoneBytes transferred = 365104 (59230 hex)
U-Boot 2013.01.01 (Oct 25 2014 – 04:49:57)
I2C: readyDRAM: 512 MiBWARNING: Caches not enabledNAND: No NAND device found!!!0 MiBMMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1*** Warning – readenv() failed, using default environment
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)musb-hdrc: MHDRC RTL version 2.0 musb-hdrc: setup fifo_mode 4musb-hdrc: 28/31 max ep, 16384/16384 memoryUSB Peripheral mode controller at 47401000 using PIO, IRQ 0musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)musb-hdrc: MHDRC RTL version 2.0 musb-hdrc: setup fifo_mode 4musb-hdrc: 28/31 max ep, 16384/16384 memoryUSB Host mode controller at 47401800 using PIO, IRQ 0Net: <ethaddr> not set. Validating first E-fuse MACcpsw, usb_etherHit any key to stop autoboot: 0 using musb-hdrc, OUT ep1out IN ep1in STATUS ep2inMAC c8:a0:30:c5:db:10HOST MAC de:ad:be:af:00:00RNDIS readymusb-hdrc: peripheral reset irq lost!high speed config #2: 2 mA, Ethernet Gadget, using RNDISUSB RNDIS network up!BOOTP broadcast 1BOOTP broadcast 2BOOTP broadcast 3DHCP client bound to address 192.168.2.2using musb-hdrc, OUT ep1out IN ep1in STATUS ep2inMAC c8:a0:30:c5:db:10HOST MAC de:ad:be:af:00:00RNDIS readyERROR: The remote end did not respond in time.at ether.c:2395/usb_eth_init()cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !Using cpsw deviceTFTP from server 192.168.2.1; our IP address is 192.168.2.2Filename 'uImage'.Load address: 0x81000000Loading: *cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !T cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !T cpsw Waiting for PHY auto negotiation to complete……… TIMEOUT !
Jian Zhou:
回复 douhuo:
第二阶段要重新建立一个USB RNDIS连接,因此要在PC机重新设定一个USB 网卡。
可以参考http://processors.wiki.ti.com/index.php/Sitara_Uniflash_Quick_Start_Guide#Flashing_a_Board_using_USB中的第28节的说明
douhuo:
回复 douhuo:
过了好几分钟出现
T cpsw Waiting for PHY auto negotiation to complete……Configuring network interfaces… [ 6.268096] net eth0: CPSW phy found : id is : 0x7c0f1udhcpc (v1.20.2) startedSending discover…Sending discover…Sending discover…No lease, failingdone.Mon Feb 17 19:03:00 UTC 2014Collected errors: * opkg_conf_load: Could not create lock file /var/lib/opkg/lock: No such fil INIT: Entering runlevel: 5 Starting syslogd/klogd: done********************************************************************************************************
Sitara Flash Fetcher Script – 07/28/2014
ifconfig: SIOCGIFFLAGS: No such deviceGetting flasher script from server: 192.168.100.1tftp: sendto: Network is unreachableUnable to fetch debrick script! Exiting…Stopping Bootlog daemon: bootlogd.
_____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _||__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___|
Arago Project http://arago-project.org am335x-evm ttyO0
Arago 2013.05 am335x-evm ttyO0
am335x-evm login: rootroot@am335x-evm:~#
douhuo:
回复 Jian Zhou:
设定过了
douhuo:
回复 Jian Zhou:
谢谢 确定是按照文档内容进行的设定
Jian Zhou:
回复 douhuo:
按照Uniflash guide所述,PC机上前后会出现2个网卡,这2个网卡都要设为192.168.100.1,不知道你有没有做这一步
douhuo:
回复 Jian Zhou:
Jian Zhou
按照Uniflash guide所述,PC机上��后会出现2个网卡,这2个网卡都要设为192.168.100.1,不知道你有没有做这一步