完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
大家好,
最近在AM335x BeagleBone Black 上完整验证了下eMMC的烧写,总结了一篇文档共享出来,欢迎拍砖。 附件是文档中所描述的debrick.sh,烧写用的文件系统在后面的跟帖,这篇帖子可以和“AM335x Flash Tool -- UniFlash 烧写工具使用简介及问题解决方案汇总”互为参考。 |
|
相关推荐
90个回答
|
|
|
不好意思,忘了加文档,这个跟帖是文档
|
|
|
|
|
|
|
|
|
|
|
|
Jian Zhou 您好,我在用uniflash 通过USB下载时,每次下载到27%就停止,然后网路断开-->重连-->断开,之后设备管理器里USB/RNDIS网络就掉了。
请问这是什么原因造成的?谢谢 |
|
|
|
|
vevrwerwr 发表于 2018-6-1 14:59 串口信息如下: U-Boot SPL 2013.01.01 (Oct 25 2014 - 04:49:57) mu***-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn) mu***-hdrc: MHDRC RTL version 2.0 mu***-hdrc: setup fifo_mode 4 mu***-hdrc: 28/31 max ep, 16384/16384 memory USB Peripheral mode controller at 47401000 using PIO, IRQ 0 Using default environment u***_ether using mu***-hdrc, OUT ep1out IN ep1in STATUS ep2in MAC c8:a0:30:c5:db:10 HOST MAC de:ad:be:af:00:00 RNDIS ready mu***-hdrc: peripheral reset irq lost! high speed config #2: 2 mA, Ethernet Gadget, using RNDIS USB RNDIS network up! BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 BOOTP broadcast 4 BOOTP broadcast 5 BOOTP broadcast 6 BOOTP broadcast 7 BOOTP broadcast 8 BOOTP broadcast 9 BOOTP broadcast 10 Retry count exceeded; starting again using mu***-hdrc, OUT ep1out IN ep1in STATUS ep2in MAC c8:a0:30:c5:db:10 HOST MAC de:ad:be:af:00:00 RNDIS ready high speed config #2: 2 mA, Ethernet Gadget, using RNDIS USB RNDIS network up! BOOTP broadcast 1 Using u***_ether device TFTP from server 192.168.2.1; our IP address is 192.168.2.2 Filename 'u-boot-restore.img'. Load address: 0x807fffc0 Loading: *######################### 877.9 KiB/s done Bytes transferred = 365104 (59230 hex) U-Boot 2013.01.01 (Oct 25 2014 - 04:49:57) I2C: ready DRAM: 512 MiB WARNING: Caches not enabled NAND: No NAND device found!!! 0 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 *** Warning - readenv() failed, using default environment mu***-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn) mu***-hdrc: MHDRC RTL version 2.0 mu***-hdrc: setup fifo_mode 4 mu***-hdrc: 28/31 max ep, 16384/16384 memory USB Peripheral mode controller at 47401000 using PIO, IRQ 0 mu***-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn) mu***-hdrc: MHDRC RTL version 2.0 mu***-hdrc: setup fifo_mode 4 mu***-hdrc: 28/31 max ep, 16384/16384 memory USB Host mode controller at 47401800 using PIO, IRQ 0 Net: cpsw, u***_ether Hit any key to stop autoboot: 0 using mu***-hdrc, OUT ep1out IN ep1in STATUS ep2in MAC c8:a0:30:c5:db:10 HOST MAC de:ad:be:af:00:00 RNDIS ready mu***-hdrc: peripheral reset irq lost! high speed config #2: 2 mA, Ethernet Gadget, using RNDIS USB RNDIS network up! BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 DHCP client bound to address 192.168.2.2 using mu***-hdrc, OUT ep1out IN ep1in STATUS ep2in MAC c8:a0:30:c5:db:10 HOST MAC de:ad:be:af:00:00 RNDIS ready ERROR: The remote end did not respond in time. at ether.c:2395/u***_eth_init() cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT ! Using cpsw device TFTP from server 192.168.2.1; our IP address is 192.168.2.2 Filename 'uImage'. Load address: 0x81000000 Loading: *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 ! |
|
|
|
|
|
第二阶段要重新建立一个USB RNDIS连接,因此要在PC机重新设定一个USB 网卡。 可以参考http://processors.wiki.ti.com/index.php/Sitara_Uniflash_Quick_Start_Guide#Flashing_a_Board_using_USB中的第28节的说明 |
|
|
|
|
|
过了好几分钟出现 T cpsw Waiting for PHY auto negotiation to complete......Configuring network interfaces... [ 6.268096] net eth0: CPSW phy found : id is : 0x7c0f1 udhcpc (v1.20.2) started Sending discover... Sending discover... Sending discover... No lease, failing done. Mon Feb 17 19:03:00 UTC 2014 Collected 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 device Getting flasher script from server: 192.168.100.1 tftp: sendto: Network is unreachable Unable 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: root root@am335x-evm:~# |
|
|
|
|
344868615qq 发表于 2018-6-1 15:25 设定过了 |
|
|
|
|
344868615qq 发表于 2018-6-1 15:25 谢谢 确定是按照文档内容进行的设定 |
|
|
|
|
vevrwerwr 发表于 2018-6-1 15:38 按照Uniflash guide所述,PC机上前后会出现2个网卡,这2个网卡都要设为192.168.100.1,不知道你有没有做这一步 |
|
|
|
|
|
|
|
|
|
|
|
如果要从eMMC启动,要查一下eMMC芯片是用的什么协议,如果是v4.41以下的要接在MMC0接口,v4.41以上的都要接在MMC1。 |
|
|
|
|
|
Jian Zhou您好: 请问sdk7.0的emmc flash验证了吗?我按照贵公司给的资料,始终不能成功,log如下,请问能帮我解答下吗? U-Boot 2013.10-00189-g78d8ebd-dirty (Jan 19 2015 - 10:22:35) I2C: ready DRAM: 512 MiB NAND: 0 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 *** Error - No Valid Environment Area found *** Warning - bad CRC, using default environment Net: cpsw, u***_ether Hit any key to stop autoboot: 0 Card did not respond to voltage select! mmc0(part 0) is current device Scanning mmc 0... Card did not respond to voltage select! ** Bad device mmc 0 ** Card did not respond to voltage select! mmc0(part 0) is current device Card did not respond to voltage select! mmc1(part 0) is current device SD/MMC found on device 1 Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** ** No partition table - mmc 1 ** Booting from nand ... no devices available no devices available Bad Linux ARM zImage magic! |
|
|
|
|
|
你好: 我使用debrick.sh脚本从SD卡烧写eMMC时,系统启动后自动执行debrick.sh,总是cannot find boot_partition.tar.gz和rootfs_partition.tar.gz。 必须登陆后,手动执行debrick.sh才能成功。求助!!! |
|
|
|
|
qwer36 发表于 2018-6-1 17:07 你好: 我是用uniflash烧写的,不过以前也试过用T卡烧写过貌似和你一样的现象,不过dbrick.sh,貌似是烧写文件系统中的一个fether.sh这个脚本来调用的,你看看有没有这个脚本文件,还有权限问题也很重要。 |
|
|
|
|
qwer36 发表于 2018-6-1 17:07 需要更改下debrick.sh,将boot_partition.tar.gz和rootfs_partition.tar.gz存放位置的目录更新下 |
|
|
|
|
344868615qq 发表于 2018-6-1 17:35 提示的错误: tar:cannot open 'boot_partition.tar.gz':No such file or directory Command exited with non-zero status 1 但是我随即登陆后,发现rootfs_partition.tar.gz和boot_partition.tar.gz是存在的。然后手动执行debrick,就不再提示类似错误了,能够成功的烧写eMMC,并从eMMC启动。 |
|
|
|
|
lifei639156 发表于 2018-6-1 17:16 有fetcher.sh脚本,它也有权限,就是执行过程中提示找不到rootfs_partition.tar.gz和boot_partition.tar.gz。而登陆后发现目录中是有这两个文件的,此时手动执行一次debrick.sh是可以成功的。 |
|
|
|
|
344868615qq 发表于 2018-6-1 17:35 您好: 我也在从T卡烧写到emmc的时候遇到了一点问题,明明已经烧进去了,拔掉T卡emmc里面是空的,而且T卡貌似也不能启动了,连续试了两个卡都是这样,请帮忙看看。log如下。 Sitara Example Flashing Script - 02/11/2014 1+0 records in 1+0 records out No partition found. Continuing. Partitioning the eMMC... Checking that no-one is using this disk right now ... BLKRRPART: Device or resource busy sfdisk: This disk is currently in use - repartitioning is probably a bad idea. Umount all file systems, and swapoff all swap partitions on this disk. Use the --no-reread flag to suppress this check. sfdisk: Use the --force flag to overrule all checks. No partition found. Continuing. 1+0 records in 1+0 records out Formatting the eMMC into 2 partitions... mkfs.vfat 2.11 (12 Mar 2005) +-----------------------------+ mke2fs 1.42.1 (17-Feb-2012) | | /dev/mmcblk0p2 is mounted; will not make a filesystem her| Cannot open /dev/ttyUSB0! | Formatting done. | | Copying Files... +-----------------------------+ real 0m 1.21s user 0m 0.79s sys 0m 0.27s Boot partition done. real 6m 46.24s user 1m 29.20s sys 0m 29.84s RootFS partition done. It took 454 seconds to complete this task... ******************************************** Sitara Example Flash Script is complete. Stopping Bootlog daemon: bootlogd. umount: can't umount /mnt/.psplash: Invalid argument _____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _| |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project http://arago-project.org am335x-evm ttyO0 Arago 2013.05 am335x-evm ttyO0 am335x-evm login: root root@am335x-evm:~# CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC� |
|
|
|
|
344868615qq 发表于 2018-6-1 17:35 您好: 请问您遇到这种情况吗? |
|
|
|
|
只有小组成员才能发言,加入小组>>
549 浏览 0 评论
1613 浏览 0 评论
2047 浏览 0 评论
为啥BQ7693003DBTR芯片在和BQ769X0盒子通讯时收不到信号?
1513 浏览 0 评论
DSP 28027F 开发板 XDS100v2调试探针诊断日志显示了 Error -150 (SC_ERR_FTDI_FAIL)如何解决
1337 浏览 0 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
1756浏览 29评论
2781浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
1723浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
1634浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
1645浏览 13评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 20:28 , Processed in 1.267539 second(s), Total 108, Slave 92 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
4315