AM335x Beaglebone Black eMMC烧写记录

AM335x Beaglebone Black eMMC烧写记录

  • 榜眼40615分
    debrick.sh

    大家好,

    最近在AM335x BeagleBone Black 上完整验证了下eMMC的烧写,总结了一篇文档共享出来,欢迎拍砖。

    附件是文档中所描述的debrick.sh,烧写用的文件系统在后面的跟帖,这篇帖子可以和“AM335x Flash Tool -- UniFlash 烧写工具使用简介及问题解决方案汇总”互为参考。

     

     

  • 榜眼40615分
    BB Black EMMC烧写全记录.pdf

    不好意思,忘了加文档,这个跟帖是文档

  • 榜眼40615分
    FlasherFS.tar.gz

    这个跟帖是烧写用的文件系统

  • 秀才70分

    您好,我在用uniflash 通过USB下载时,每次下载到27%就停止,然后网路断开-->重连-->断开,之后设备管理器里USB/RNDIS网络就掉了。

    请问这是什么原因造成的?谢谢

  • 秀才70分

    串口信息如下:


    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 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    Using default environment

    usb_ether
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC c8:a0:30:c5:db:10
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    musb-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 musb-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 usb_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

    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 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    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 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    Net: <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot: 0
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC c8:a0:30:c5:db:10
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    musb-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 musb-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/usb_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 !

  • 榜眼40615分

    第二阶段要重新建立一个USB RNDIS连接,因此要在PC机重新设定一个USB 网卡。

    可以参考http://processors.wiki.ti.com/index.php/Sitara_Uniflash_Quick_Start_Guide#Flashing_a_Board_using_USB中的第28节的说明

  • 秀才70分

    过了好几分钟出现

    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:~#

  • 秀才70分

    设定过了 

  • 秀才70分

    谢谢 确定是按照文档内容进行的设定

  • 榜眼40615分

    按照Uniflash guide所述,PC机上前后会出现2个网卡,这2个网卡都要设为192.168.100.1,不知道你有没有做这一步

  • 秀才70分

    Jian Zhou

    按照Uniflash guide所述,PC机上��后会出现2个网卡,这2个网卡都要设为192.168.100.1,不知道你有没有做这一步

    谢谢 都设置了

  • 榜眼40615分

    那可能是你编译的u-boot有问题,如果你是在beaglebone做的验证,你可以试试附件的spl和u-boot-restore.img

    2526.u-boot-spl-restore.bin

    0601.u-boot-restore.img

  • 秀才70分

    Jian Zhou

    那可能是你编译的u-boot有问题,如果你是在beaglebone做的验证,你可以试试附件的spl和u-boot-restore.img

    2526.u-boot-spl-restore.bin

    0601.u-boot-restore.img

    刚试了一下您提供的u-boot,也是出现同样的问题,下载到27%就断了。

    又试了一下beaglebone black官方提供的eMMC-flasher 固件发现也是无法烧入。

    而SD卡固件却能成功启动,可能是eMMC硬件出问题了,我再试试吧。谢谢~~

  • 举人661分

    Hi,Jian,

    请问是BeagleBone Black中国版 的板子上验证的么?似乎很复杂么

  • 榜眼40615分

    是在中国板上验证的,做明白了就不觉得复杂了