This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x Beaglebone Black eMMC烧写记录

Other Parts Discussed in Thread: UNIFLASH, TPS65910, TPS65217, FLASHTOOL, AM3358

大家好,

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

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

 

 

debrick.sh
  • 我现在烧写的过程中出现了一些错误,我想请问一下,这种错误有没有可能是我自己编译的内核没有编译好呀?
    另外,我感觉已经能走到这一步了,应该给烧写用的spl还有u-boot没什么关系了吧?
    INIT: version 2.88 booting
    Starting udev
    [    2.675811]  gadget: high-speed config #2: RNDIS
    [    4.503143] EXT3-fs (mmcblk0): error: can't find ext3 filesystem on dev mmcblk0.
    [    4.512268] EXT2-fs (mmcblk0): error: can't find an ext2 filesystem on dev mmcblk0.
    [    4.520782] FAT-fs (mmcblk0): bogus number of reserved sectors
    [    4.526916] FAT-fs (mmcblk0): Can't find a valid FAT filesystem
    [    4.546356] cramfs: wrong magic
    [    4.550292] FAT-fs (mmcblk0): bogus number of reserved sectors
    [    4.556427] FAT-fs (mmcblk0): Can't find a valid FAT filesystem
    [    5.285919] kjournald starting.  Commit interval 5 seconds
    [    5.562377] EXT3-fs (mmcblk0p2): using internal journal
    [    5.567871] EXT3-fs (mmcblk0p2): recovery complete
    [    5.572906] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    [    5.619049] EXT3-fs (mmcblk0boot1): error: can't find ext3 filesystem on dev mmcblk0boot1.
    [    5.632720] EXT3-fs (mmcblk0boot0): error: can't find ext3 filesystem on dev mmcblk0boot0.
    [    5.641937] EXT2-fs (mmcblk0boot1): error: can't find an ext2 filesystem on dev mmcblk0boot1.
    [    5.651367] EXT2-fs (mmcblk0boot0): error: can't find an ext2 filesystem on dev mmcblk0boot0.
    [    5.660858] FAT-fs (mmcblk0boot1): bogus number of reserved sectors
    [    5.667449] FAT-fs (mmcblk0boot1): Can't find a valid FAT filesystem
    [    5.674804] FAT-fs (mmcblk0boot0): bogus number of reserved sectors
    [    5.681427] FAT-fs (mmcblk0boot0): Can't find a valid FAT filesystem
    [    5.777496] cramfs: wrong magic
    [    5.784393] FAT-fs (mmcblk0boot1): bogus number of reserved sectors
    [    5.791015] FAT-fs (mmcblk0boot1): Can't find a valid FAT filesystem
    [    5.804351] cramfs: wrong magic
    [    5.810699] FAT-fs (mmcblk0boot0): bogus number of reserved sectors
    [    5.817352] FAT-fs (mmcblk0boot0): Can't find a valid FAT filesystem
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    Configuring network interfaces... [    6.568450] 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:
    INIT: Entering runlevel: 5ot create lock file /var/lib/opkg/lock: No such fil
    Starting syslogd/klogd: done
    ****************************************************
    ****************************************************
    Sitara Flash Fetcher Script - 07/28/2014
    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    Sending select for 192.168.100.14...
    Lease of 192.168.100.14 obtained, lease time 600
    Getting flasher script from server: 192.168.100.1
    ********************************************
    Sitara Flash Fetcher is complete. Executing debrick.sh.
    Calling Script=debrick.sh with SERVER_IP=192.168.100.1
    ****************************************************
    ****************************************************
    Sitara Example Flashing Script - 02/11/2014
    Getting files from server: 192.168.100.1
    1+0 records in
    1+0 records out
    Found mounted partition(s) on  /dev/mmcblk0:  /media/mmcblk0p1 /media/mmcblk0p2
    4k erase on /dev/mmcblk0p1
    1+0 records in
    1+0 records out
    4k erase on /dev/mmcblk0p2
    1+0 records in
    1+0 records out
    Partitioning the eMMC...
    Checking that no-one is using this disk right now ...
    [   22.391601]  mmcblk0: unknown partition table
    OK
    Disk /dev/mmcblk0: 470 cylinders, 255 heads, 63 sectors/track
    sfdisk: ERROR: sector 0 does [   22.417053]  mmcblk0: p1 p2
    not have an msdos signature
    sfdisk:  /dev/mmcblk0: unrecognized partition table type
    Old situation:
    sfdisk: No partitions found
    New situation:
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
       Device Boot Start     End   #cyls    #blocks   Id  System
    /dev/mmcblk0p1   *      0+      8       9-     72261    c  W95 FAT32 (LBA)
    /dev/mmcblk0p2         10     469     460    3694950   83  Linux
    /dev/mmcblk0p3          0       -       0          0    0  Empty
    /dev/mmcblk0p4          0       -       0          0    0  Empty
    Successfully wrote the new partition table
    Re-reading the partition table ...
    If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
    to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
    (See fdisk(8).)
    [   23.209899] EXT3-fs (mmcblk0p1): error: can't find ext3 filesystem on dev mmcblk0p1.
    [   23.221160] EXT3-fs (mmcblk0p2): error: can't find ext3 filesystem on dev mmcblk0p2.
    [   23.230895] EXT2-fs (mmcblk0p1): error: can't find an ext2 filesystem on dev mmcblk0p1.
    [   23.240325] EXT2-fs (mmcblk0p2): error: can't find an ext2 filesystem on dev mmcblk0p2.
    [   23.250274] FAT-fs (mmcblk0p1): bogus number of reserved sectors
    [   23.256622] FAT-fs (mmcblk0p1): Can't find a valid FAT filesystem
    [   23.263793] FAT-fs (mmcblk0p2): bogus number of reserved sectors
    [   23.270141] FAT-fs (mmcblk0p2): Can't find a valid FAT filesystem
    [   23.303802] cramfs: wrong magic
    [   23.311035] FAT-fs (mmcblk0p1): bogus number of reserved sectors
    [   23.317382] FAT-fs (mmcblk0p1): Can't find a valid FAT filesystem
    [   23.339355] cramfs: wrong magic
    [   23.346008] FAT-fs (mmcblk0p2): bogus number of reserved sectors
    [   23.352355] FAT-fs (mmcblk0p2): Can't find a valid FAT filesystem
    real    0m 1.93s
    user    0m 0.01s
    sys     0m 0.12s
    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)
    real    0m 2.43s
    user    0m 0.00s
    sys     0m 0.15s
    mke2fs 1.42.1 (17-Feb-2012)
    Discarding device blocks: done                           
    Filesystem label=rootfs
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    231072 inodes, 923737 blocks
    46186 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=947912704
    29 block groups
    32768 blocks per group, 32768 fragments per group
    7968 inodes per group
    Superblock backups stored on blocks:
            32768, 98304, 163840, 229376, 294912, 819200, 884736
    Allocating group tables: done                           
    Writing inode tables: done                           
    Creating journal (16384 blocks): done
    Writing superblocks and filesystem accounting information: done
    Formatting done.
    [   40.228118] kjournald starting.  Commit interval 5 seconds
    [   40.237487] EXT3-fs (mmcblk0p2): using internal journal
    [   40.242980] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    Copying Files...
    real    0m 0.34s
    user    0m 0.23s
    sys     0m 0.09s
    Boot partition done.
    real    0m 0.87s
    user    0m 0.55s
    sys     0m 0.23s
    RootFS partition done.
    It took 21 seconds to complete this task...
    ********************************************
    Sitara Example Flash Script is complete.
    Stopping Bootlog daemon: bootlogd.
     _____                    _____           _         _  
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_| 
                  |___|                    |___|           
    Arago Project http://arago-project.org am335x-evm ttyO0
    Arago 2013.05 am335x-evm ttyO0
    am335x-evm login:
  • 你是自己编译的uImage么?看样子烧写已经成功了啊

  • 是自己按教程上编译的,但是烧写过程中还是报错了,uboot烧进去了,可以启动起来,但是加载不了内核,还不确定是什么原因。

  • 我看我这边,内存中的内核启动后会输出如下信息:

    [    5.572906] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    [    5.619049] EXT3-fs (mmcblk0boot1): error: can't find ext3 filesystem on dev mmcblk0boot1.
    [    5.632720] EXT3-fs (mmcblk0boot0): error: can't find ext3 filesystem on dev mmcblk0boot0.
    [    5.641937] EXT2-fs (mmcblk0boot1): error: can't find an ext2 filesystem on dev mmcblk0boot1.
    [    5.651367] EXT2-fs (mmcblk0boot0): error: can't find an ext2 filesystem on dev mmcblk0boot0.
    [    5.660858] FAT-fs (mmcblk0boot1): bogus number of reserved sectors
    [    5.667449] FAT-fs (mmcblk0boot1): Can't find a valid FAT filesystem
    [    5.674804] FAT-fs (mmcblk0boot0): bogus number of reserved sectors
    [    5.681427] FAT-fs (mmcblk0boot0): Can't find a valid FAT filesystem
    [    5.777496] cramfs: wrong magic
    [    5.784393] FAT-fs (mmcblk0boot1): bogus number of reserved sectors
    [    5.791015] FAT-fs (mmcblk0boot1): Can't find a valid FAT filesystem
    [    5.804351] cramfs: wrong magic
    [    5.810699] FAT-fs (mmcblk0boot0): bogus number of reserved sectors
    [    5.817352] FAT-fs (mmcblk0boot0): Can't find a valid FAT filesystem
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory

    不知道会不会是我的内核没有编译好呀?会是我没有修改好,然后内核不支持emmc吗?但是uboot可以下进去,内核就下不进去,不知道什么情况?

  • 根据log来看,这是文件系统没有烧写正确吧。

  • 终于搞定了,我把烧写过程中需要用到固件放这里了,备用,以后就不用重新编译了。

    http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/p/116200/321037.aspx#321037

  • 刚开始学习这个,谢谢分享!

  • 周工好,我看了 您的帖子,是基于AM335x Linux SDK06实现的,但是我现在下不到AM335x Linux SDK06了,能给我地址链接吗?谢谢

  • http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/06_00_00_00/index_FDS.html

    从这里下载

  • 周工,您好:

            我采用了您说的方法,通过uniflash(版本:Uniflash_3.3.0.00058_win32)来烧写内核到Beagle Bone Black(刚在e络盟上买的原装板,没做任何变动)的板载eMMC(4G,U13,Kingston),在网址http://processors.wiki.ti.com/index.php/Sitara_Uniflash_Quick_Start_Guide下载了Linux am335x.zip ,解压到C:\AM335x_Flashtool,然后直接将BBB通过板上的小USB口(P4)连接到电脑上,右键我的电脑,属性,设备管理器后,在其他设备下出现了带有叹号的RNDIS,然后再RNDIS上右键更新驱动,选择在磁盘安装,brown了路径C:\AM335x_Flashtool下的linux_am335x.inf,见下图:

    然后,在C:\ti\uniflash_3.3\eclipse下打开uniflash.exe,修改了uniflash的配置,见下图:

    接下来,又修改了下图所示本地连接9的IPv4属性,见下:

    并将固件(采用本帖子第7页xinliang liu在网址http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/p/116200/321037.aspx#321037下的估固件)copy到目录C:\AM335x_Flashtool\images下:

    在uniflash下点击start flashing,在uniflash下边栏的StatusView中没有任何信息,一片空白。随后拔掉USB线,再次插上(即给BBB断电后,重新上电),uniflash下边栏的Status View依旧一片空白,Device Mac Addr下没有任何值。

    请问一下周工,我的步骤中,是那步没有操作正确,导致uniflash下边栏一片空白,program%下没有进度?谢谢!(sd卡插入到板上和没插入到板上均试了,都不行)

  • 你买的板子,不接SD卡,连上串口有打印信息没有?

  • 刘工,没插SD卡的时候串口有打印信息。插了SD卡后,串口有打印信息,我再SD卡上copy了qnx官方提供的uboot.img,qnx系统的ifs文件和MLO

  • 你是用QNX而不是Linux?我这个文档都是基于Linux的,不能用QNX。

  • 周工,我发的那个帖子也是基于Linux实现的啊,而且我也把sd卡拔掉了,没有插入到插槽里啊!固件采用的是:采用本帖子第7页xinliang liu在网址http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/p/116200/321037.aspx#321037下的固件,copy到目录C:\AM335x_Flashtool\images下。您详细看一下我的上边带贴图的帖子,就会发现。

    另,您是在北京吗?在的话,我能过去详细问下吗,前几天你们那边的售前也来我们这边做过交流。

  • 你是用Linux去烧写QNX的image到eMMC么?

  • 周工,我的最终目标是想通过USB口或者SD卡,将QNX系统镜像写到BB Black的emmc上。现在,我只是初步先按照你在帖子里的步骤,尝试一下将linux系统通过USB口写到emmc上,但是按照我前几天发的帖子试了几次都没有成功,想请教您一下,我那步出问题了?

  • 请问执行那个脚本啊,谢谢!

  • 在烧写完 android 的时候

      重启  板子 , 出现 以下 bug

    U-Boot 2013.01.01-00123-g2830d15 (Jun 26 2013 - 17:23:54)

    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
    Hit any key to stop autoboot: 0
    mmc0 is current device
    SD/MMC found on device 0
    ** Unrecognized filesystem type **
    ** Unrecognized filesystem type **
    ** No partition table - mmc 0 **
    Could not find uImage

     

  • 您好,我对BBB烧写eMMC不太熟悉,有个疑问:

    1)《Sitara Uniflash Quick Start Guide》为什么ip地址要配置成192.168.2.*?一块新的BBB板子,如果eMMC是空的,BBB板怎么会有IP地址呢?

    2)即使BBB板的eMMC里有os的话,默认ip也是192.168.7.2,也不应该是192.168.2.*呀?

    Sitara Uniflash Quick Start Guide:http://processors.wiki.ti.com/index.php/Sitara_Uniflash_Quick_Start_Guide


    还请解答一下,谢谢


  • 这个IP地址,是u-boot阶段通过dhcp获取到的。

  • 要是eMMC协议正好是v4.41呢,应该用MMC0还是MMC1?

  • 能不能提供一个用于烧写的linux uImage??

  • 如果能在MMC0上启动,MMC0也是可以的。

    烧写用的Linux uImage在你们移植的基础上按照我文档里的说明配置下就可以了。

  • 你好,我用新的BBB板子尝试eMMC烧写(没插SD卡),步骤如下:

    1)上电,按正常启动启动顺序,从eMMC启动系统,登录linux命令行,根目录下rm -rf /  删除eMMC上所有数据/文件。

    2)重新上电,此时eMMC为空,没有SD卡,串口没连设备,按正常启动顺序应该从USB启动了。

    3)按Sitara_Uniflash_Quick_Start_Guide (http://processors.wiki.ti.com/index.php/Sitara_Uniflash_Quick_Start_Guide)所说的步骤操作,从usb烧写eMMC,按照Flashing a Board using USB章节所说的操作,做到

              6.Connect the host PC to the powered target board using an appropriate USB cable.

              7.This will prompt Windows to install a USB driver if a target board has never been plugged into that particular PC and that particular USB port on that PC. More than likely, this attempt will fail.

    这两步时,并没有提示我安装驱动,查看设备管理器,反而把BBB板识别成了“大容量存储设备”,这里是为啥?怎么破?

    我已经安装了RNDIS驱动,插上了usb,Uniflash也按照步骤配置了...

  • 知道原因了,pc问题,换个电脑就可以用了

  • 你好,我刚开始用sdk06,这个有使用指南么?

  • 具体哪部分的使用指南?

  • 找到了,编译指南

  • 我动手烧写BBB的emmc,没有sd卡,emmc数据全部删除了。按下boot键、按照《BB Black EMMC烧写全记录》和http://processors.wiki.ti.com/index.php/Sitara_Uniflash_Quick_Start_Guide流程操作,使用usb烧写,配置见下图:

    最后停在下面界面不动了,一直是0%

    请问能看出可能是哪里的问题吗?

    1.配置和操作步骤都是按照文档来做的

    2.ping 192.168.2.2一直不通

    3.系统是win7的,刚安装的新系统,驱动等也都安装过了,应该没啥问题

    4.出现进度条之后就一直没变,应该是烧写SPL就没成功吧??可问题可能出在哪儿呢?

    急求,在线等!!!

  • 使用的所有的镜像都是帖子里提供的镜像咯

  • 看看串口打印信息都有什么输出?

  • 只有一句这个:

    U-Boot SPL 2013.01.01 (Sep 01 2016 - 00:31:54)

    从打印来看,像是SPL已经启动了,但是烧写uboot失败了,莫非DDR初始化失败?

  • 我的电脑是64位的,没找到uniflash的64位安装包,就安装了这个uniflash_3.4.1.00012_win32,不知道有没有影响。

  • 可以在虚拟机里搞的。

  • U-Boot SPL 2013.01.01 (Sep 01 2016 - 00:31:54)
    Using default environment

    ERROR: Environment import failed: errno = 12

    at env_common.c:141/set_default_env()
    ## Can't malloc 4 bytes

    后来输出这个了。。

  • 你是在哪个板子上测的?感觉DDR都没有正常运行。

  • 重新试了一次,又这样了。。。

    循环出现下面的东西


    U-Boot SPL 2013.01.01 (Mar 14 2017 - 10:22:07)
    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 04:a3:16:ad:49:e2
    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 04:a3:16:ad:49:e2
    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
    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 04:a3:16:ad:49:e2
    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
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    BOOTP broadcast 6

  • patch都打上了么?另外有按照文档安装PC上的驱动了么?

  •  我们基于BBB做了一版自己的板子,主要修改:去掉32k时钟,去掉eeprom,MMC不使用MMC1,只使用MMC0。MMC0对接eMMC(支持4.41协议),只使用4根数据线(0~3,IO与BBB相同),板子启动顺序是MMC、串口、usb。裸板时,通过tftp加载uboot后,通过串口向uboot发送mmcinfo指令,串口log如下:

    示波器显示指令发送了,但没有回应。

    U-Boot# mmcinfo
    mmc_send_cmd : timeout: No status update
    Card did not respond to voltage select!
    Device: OMAP SD/MMC
    Manufacturer ID: 0
    OEM: 0
    Name: Tran Speed: 0
    Rd Block Len: 0
    MMC version 0.0
    High Capacity: No
    Capacity: 0 Bytes
    Bus Width: 1-bit
    U-Boot#

    求助:uboot里,eeprom里的内容从BBB导出来后打桩,mmc驱动并没有修改。这样有什么遗漏吗?跟eMMC无法通信可能有什么原因呢?

  • 急,在线等!

  • 根据你提供的log信息,硬件就没有识别出eMMC。

  • 烧写程序起来之后kernel报panic,帮看下是什么愿意呢?

    U-Boot SPL 2013.01.01 (Apr 10 2017 - 16:24:15)
    [DEBUG]printf
    [DEBUG] right
    [DEBUG]:i2c_probe ok %d
    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 78:a5:04:af:56:ed
    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 78:a5:04:af:56:ed
    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.100.1; our IP address is 192.168.100.19
    Filename 'u-boot-restore.img'.
    Load address: 0x807fffc0
    Loading: #########################
    806.6 KiB/s
    done
    Bytes transferred = 365920 (59560 hex)


    U-Boot 2013.01.01 (Apr 10 2017 - 16:24:15)

    I2C: ready
    DRAM: 512 MiB
    WARNING: Caches not enabled
    NAND: No NAND device found!!!
    0 MiB
    MMC: [DEBUG]mmc_initialize
    [DEBUG]FUNC __def_mmc_init, LINE 1300
    [DEBUG]LINE 545, dev 0, host_caps_mask 0, f_max 0
    [DEBUG]LINE 545, dev 1, host_caps_mask 0, f_max 0
    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 78:a5:04:af:56:ed
    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.100.19
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC 78:a5:04:af:56:ed
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
    USB RNDIS network up!
    Using usb_ether device
    TFTP from server 192.168.100.1; our IP address is 192.168.100.19
    Filename 'uImage'.
    Load address: 0x81000000
    Loading: T #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #########
    1.5 MiB/s
    done
    Bytes transferred = 14440144 (dc56d0 hex)
    ## Booting kernel from Legacy Image at 81000000 ...
    Image Name: Linux-3.2.0
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 14440080 Bytes = 13.8 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Linux version 3.2.0 (lusuo@lusuo-virtual-machine) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.
    1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #12 Tue Apr 11 18:12:54 CST 2017
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine: am335xevm
    [ 0.000000] Memory policy: ECC disabled, Data cache writeback
    [ 0.000000] AM335X ES2.1 (sgx neon )
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
    [ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait console=ttyO0,115200 enforcing=0
    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Memory: 512MB = 512MB total
    [ 0.000000] Memory: 494520k/494520k available, 29768k reserved, 0K highmem
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    [ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
    [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc052c000 (5264 kB)
    [ 0.000000] .init : 0xc052c000 - 0xc1815000 (19364 kB)
    [ 0.000000] .data : 0xc1816000 - 0xc18755d8 ( 382 kB)
    [ 0.000000] .bss : 0xc18755fc - 0xc18a3ce4 ( 186 kB)
    [ 0.000000] NR_IRQS:396
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] Total of 128 interrupts on 1 active controller
    [ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
    [ 0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping i
    n low power state
    [ 0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
    [ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [ 0.000000] Console: colour dummy device 80x30
    [ 0.000161] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [ 0.087770] pid_max: default: 32768 minimum: 301
    [ 0.087867] Security Framework initialized
    [ 0.087948] Mount-cache hash table entries: 512
    [ 0.088266] CPU: Testing write buffer coherency: ok
    [ 0.107618] omap_hwmod: pruss: failed to hardreset
    [ 0.108601] print_constraints: dummy:
    [ 0.108913] NET: Registered protocol family 16
    [ 0.110680] OMAP GPIO hardware version 0.1
    [ 0.112694] omap_mux_init: Add partition: #1: core, flags: 0
    [ 0.114233] omap_i2c.1: alias fck already exists
    [ 0.114950] omap2_mcspi.1: alias fck already exists
    [ 0.115129] omap2_mcspi.2: alias fck already exists
    [ 0.115873] edma.0: alias fck already exists
    [ 0.115889] edma.0: alias fck already exists
    [ 0.115902] edma.0: alias fck already exists
    [ 0.133801] bio: create slab <bio-0> at 0
    [ 0.135555] SCSI subsystem initialized
    [ 0.137051] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [ 0.138206] tps65910 1-002d: could not be detected
    [ 0.139236] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [ 0.140112] Switching to clocksource gp timer
    [ 0.151929] NET: Registered protocol family 2
    [ 0.152101] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.152361] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [ 0.152576] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.152702] TCP: Hash tables configured (established 16384 bind 16384)
    [ 0.152712] TCP reno registered
    [ 0.152720] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.152737] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.152885] NET: Registered protocol family 1
    [ 0.153110] RPC: Registered named UNIX socket transport module.
    [ 0.153121] RPC: Registered udp transport module.
    [ 0.153127] RPC: Registered tcp transport module.
    [ 0.153133] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.271629] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.289006] VFS: Disk quotas dquot_6.5.2
    [ 0.289065] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.289499] msgmni has been set to 965
    [ 0.292105] alg: No test for stdrng (krng)
    [ 0.292711] io scheduler noop registered
    [ 0.292722] io scheduler deadline registered
    [ 0.292777] io scheduler cfq registered (default)
    [ 0.293754] Could not set LED4 to fully on
    [ 0.330997] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [ 0.774227] console [ttyO0] enabled
    [ 0.778313] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [ 0.786061] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [ 0.793787] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [ 0.801513] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [ 0.809195] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [ 0.817287] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [ 0.831442] brd: module loaded
    [ 0.838426] loop: module loaded
    [ 0.841930] i2c-core: driver [tsl2550] using legacy suspend method
    [ 0.848390] i2c-core: driver [tsl2550] using legacy resume method
    [ 0.854833] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [ 0.960140] No daughter card found
    [ 0.963735] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [ 0.971023] [DEBUG]: mac addr 0:
    [ 0.974572] [DEBUG]: mac addr 1:
    [ 0.978121] [DEBUG]: mac addr 2:
    [ 0.981679] [DEBUG]config.header: 0xEE3355AA
    [ 0.986319] [DEBUG]config.name: A335BNLT00C02916BBBK265B
    [ 0.992054] [DEBUG]config.version: 00C02916BBBK265B
    [ 0.997329] [DEBUG]config.serial: 2916BBBK265B
    [ 1.002158] [DEBUG]config.opt:
    [ 1.005618] Board name: A335BNLT
    [ 1.008986] Board version: 00C0
    [ 1.012270] The board is a AM335x Beaglebone Black.
    [ 1.017467] could not look up rtc
    [ 1.022601] tps65217 1-0024: TPS65217 ID 0xe version 1.2
    [ 1.030148] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV
    [ 1.038591] print_constraints: DCDC2: 900 <--> 3300 mV at 1325 mV
    [ 1.047163] print_constraints: DCDC3: 900 <--> 1500 mV at 1125 mV
    [ 1.055605] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
    [ 1.064037] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
    [ 1.072391] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV
    [ 1.080786] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
    [ 1.087725] Maximum current provided by the USB port is 500mA which is not sufficient
    [ 1.087732] when operating @OPP120 and OPPTURBO. The current requirement for some
    [ 1.087738] use-cases using OPP100 might also exceed the maximum current that the
    [ 1.087743] USB port can provide. Unless you are fully confident that the current
    [ 1.087749] requirements for OPP100 use-case don't exceed the USB limits, switching
    [ 1.087754] to AC power is recommended.
    [ 1.131764] omap_hsmmc.0: alias fck already exists
    [ 1.137162] omap_hsmmc.1: alias fck already exists
    [ 1.142549] omap_i2c.3: alias fck already exists
    [ 1.147754] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz
    [ 1.155288] registered am33xx_sr device
    [ 1.160903] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 1.167942] omap2-nand driver initializing
    [ 1.172385] OneNAND driver initializing
    [ 1.177376] CAN device driver interface
    [ 1.181404] CAN bus driver for Bosch D_CAN controller 1.0
    [ 1.230169] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [ 1.236634] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [ 1.245237] davinci_mdio.0: probed
    [ 1.248804] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
    [ 1.258193] mousedev: PS/2 mouse device common for all mice
    [ 1.264561] i2c /dev entries driver
    [ 1.268700] Linux video capture interface: v2.00
    [ 2.410152] omap_i2c omap_i2c.3: controller timed out
    [ 3.410272] omap_i2c omap_i2c.3: controller timed out
    [ 4.430196] omap_i2c omap_i2c.3: controller timed out
    [ 5.450192] omap_i2c omap_i2c.3: controller timed out
    [ 6.470147] omap_i2c omap_i2c.3: controller timed out
    [ 7.490225] omap_i2c omap_i2c.3: controller timed out
    [ 8.510279] omap_i2c omap_i2c.3: controller timed out
    [ 9.530406] omap_i2c omap_i2c.3: controller timed out
    [ 9.551296] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 9.558829] cpuidle: using governor ladder
    [ 9.563532] cpuidle: using governor menu
    [ 9.567828] [DEBUG]omap_hsmmc_gpio_init: 524
    [ 9.573888] [DEBUG]omap_hsmmc_gpio_init: 524
    [ 9.578636] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
    [ 9.587217] omap4_aes_mod_init: loading AM33X AES driver
    [ 9.592887] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [ 9.599303] omap4_aes_probe: probe() done
    [ 9.603955] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [ 9.610070] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [ 9.632888] omap4_sham_probe: probe() done
    [ 9.639418] ALSA device list:
    [ 9.642569] No soundcards found.
    [ 9.646120] oprofile: hardware counters not available
    [ 9.651410] oprofile: using timer interrupt.
    [ 9.655891] nf_conntrack version 0.5.0 (7726 buckets, 30904 max)
    [ 9.662656] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 9.668307] TCP cubic registered
    [ 9.671713] NET: Registered protocol family 17
    [ 9.676364] can: controller area network core (rev 20090105 abi 8)
    [ 9.682900] NET: Registered protocol family 29
    [ 9.687543] can: raw protocol (rev 20090105)
    [ 9.692013] can: broadcast manager protocol (rev 20090105 t)
    [ 9.697957] Registering the dns_resolver key type
    [ 9.702942] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 9.710967] ThumbEE CPU extension supported.
    [ 9.715486] mux: Failed to setup hwmod io irq -22
    [ 9.720997] Power Management for AM33XX family
    [ 9.725839] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [ 9.732545] Copied the M3 firmware to UMEM
    [ 9.736896] Cortex M3 Firmware Version = 0x181
    [ 9.742372] create_regulator: DCDC2: Failed to create debugfs directory
    [ 9.749973] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
    [ 9.761303] clock: disabling unused clocks to save power
    [ 9.775191] FUNC mmc_add_card, LINE 269
    [ 9.779300] [DEBUG]mmc card->type : 0
    [ 9.783260] FUNC mmc_add_card, LINE 274
    [ 9.787357] mmc0: new high speed MMC card at address 0001
    [ 9.797813] mmcblk0: mmc0:0001 MMC02G 1.78 GiB
    [ 9.802745] mmcblk0boot0: mmc0:0001 MMC02G partition 1 1.00 MiB
    [ 9.810682] mmcblk0boot1: mmc0:0001 MMC02G partition 2 1.00 MiB
    [ 9.820531] mmcblk0: unknown partition table
    [ 9.828152] mmcblk0boot1: unknown partition table
    [ 9.836506] mmcblk0boot0: unknown partition table
    [ 9.843290] mmc1: mmc_rescan_try_freq: trying to init card at 400000 Hz
    [ 9.943068] Detected MACID=78:a5:4:af:56:ed
    [ 9.948431] cpsw: Detected MACID = 78:a5:04:af:56:ef
    [ 9.954524] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    [ 9.961217] Warning: unable to open an initial console.
    [ 9.989419] Freeing init memory: 19364K
    [ 9.995148] Kernel panic - not syncing: Attempted to kill init!
    [ 10.001424] Backtrace:
    [ 10.004014] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c03c5d1c>] (dump_stack+0x18/0x1c)
    [ 10.012852] r6:df02bc00 r5:c04aa9c0 r4:c18782c8 r3:c1839e4c
    [ 10.018785] [<c03c5d04>] (dump_stack+0x0/0x1c) from [<c03c5f58>] (panic+0x64/0x194)
    [ 10.026816] [<c03c5ef4>] (panic+0x0/0x194) from [<c004263c>] (do_exit+0x5b0/0x65c)
    [ 10.034734] r3:df02bc00 r2:df02df60 r1:df02df60 r0:c04aa9c0
    [ 10.040667] r7:000000f8
    [ 10.043319] [<c004208c>] (do_exit+0x0/0x65c) from [<c0042948>] (do_group_exit+0x44/0xa4)
    [ 10.051783] r7:000000f8
    [ 10.054435] [<c0042904>] (do_group_exit+0x0/0xa4) from [<c00429c0>] (__wake_up_parent+0x0/0x28)
    [ 10.063533] r4:bee40a48 r3:0000007f
    [ 10.067289] [<c00429a8>] (sys_exit_group+0x0/0x18) from [<c0014740>] (ret_fast_syscall+0x0/0x30)

  • 看log,应该是把内核tftp进去之后没有加载起来,这个kernel有移植或者裁剪过么?

  • 你好!周工。

    我成功地用tf卡把emmc移植上了系统,也可以从emmc正常启动系统了。现在有这么一个问题:从emmc启动系统可以正常工作,但是下次设备没有插入tf卡的话,系统就无法进入到文件系统中,下面是没有tf卡的启动信息:


    U-Boot SPL 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img


    U-Boot 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)

    I2C:   ready
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - readenv() failed, using default environment

    Net:   <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot:  0
    gpio: pin 53 (gpio 53) value is 1
    Card did not respond to voltage select!
    mmc0(part 0) is current device
    Card did not respond to voltage select!
    gpio: pin 56 (gpio 56) value is 0
    gpio: pin 55 (gpio 55) value is 0
    gpio: pin 54 (gpio 54) value is 0
    mmc1(part 0) is current device
    gpio: pin 54 (gpio 54) value is 1
    SD/MMC found on device 1
    reading uEnv.txt
    1698 bytes read in 7 ms (236.3 KiB/s)
    gpio: pin 55 (gpio 55) value is 1
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Checking if uenvcmd is set ...
    gpio: pin 56 (gpio 56) value is 1
    Running uenvcmd ...
    reading zImage
    4382704 bytes read in 253 ms (16.5 MiB/s)
    reading initrd.img
    2957458 bytes read in 171 ms (16.5 MiB/s)
    reading /dtbs/am335x-boneblack.dtb
    25130 bytes read in 9 ms (2.7 MiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x42dff0 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Using Device Tree in place at 88000000, end 88009229

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [    0.355834] omap2_mbox_probe: platform not supported
    [    0.362420] tps65217-bl tps65217-bl: no platform data provided
    [    0.426610] bone-capemgr bone_capemgr.9: slot #0: No cape found
    [    0.463719] bone-capemgr bone_capemgr.9: slot #1: No cape found
    [    0.500827] bone-capemgr bone_capemgr.9: slot #2: No cape found
    [    0.537936] bone-capemgr bone_capemgr.9: slot #3: No cape found
    [    0.556723] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' failed
    [    0.618254] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by 44e10800.pinmux; cannot claim for gpio-leds.8
    [    0.629962] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22
    [    0.637245] pinctrl-single 44e10800.pinmux: could not request pin 21 on device pinctrl-single
    Loading, please wait...
    modprobe: chdir(3.8.13): No such file or directory
    Gave up waiting for root device.  Common problems:
     - Boot args (cat /proc/cmdline)
       - Check rootdelay= (did the system wait long enough?)
       - Check root= (did the system wait for the right device?)
     - Missing modules (cat /proc/modules; ls /dev)
    ALERT!  /dev/mmcblk1p2 does not exist.  Dropping to a shell!
    modprobe: chdir(3.8.13): No such file or directory
    modprobe: chdir(3.8.13): Žo such file or directory
    modprobe: chdir(3.8.13): No such file or directory
    modprobe: chdir(3.8.13): No such file or directory
    modprobe: chdir(3.8.13): No such file or directory
    modprobe: chdir(3.8.13): No such file or directory


    BusyBox v1.20.2 (Debian 1:1.20.0-7) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    /bin/sh: can't access tty; job control turned off
    (initramfs)

     

    后来发现是环境变量的问题:板子的环境变量uEnv.txt中

    “mmcroot=/dev/mmcblk1p2 ro”

    进入系统后,将它改为

    “mmcroot=/dev/mmcblk0p2 ro”,这样拔掉sd卡后就可以从emmc正常启动系统了。

    但是,我想问的是:怎么能够让emmc默认是/dev/mmcblk0p2呢,不管加了什么其他的mmc设备都不会影响从emmc中正常的启动系统。

    望赐教!!!

  • 系统的环境变量是可以通过u-boot下的config.h修改的。

  • 你好 我按照bb black的文档烧写了新的镜像文件BBB-eMMC-flasher-debian-7.5-2014-05-14-2gb.img。但是usb一上电不到15秒4个灯就全亮。然后没有规律的闪烁。半个小时后4个灯全亮停止闪烁。这是烧写成功了么?和文档描述不一致。还有看打印信息:

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.

    [    0.378597] omap2_mbox_probe: platform not supported

    [    0.533119] tps65217-bl tps65217-bl: no platform data provided

    [    0.596968] bone-capemgr bone_capemgr.9: slot #0: No cape found

    [    0.634076] bone-capemgr bone_capemgr.9: slot #1: No cape found

    [    0.671183] bone-capemgr bone_capemgr.9: slot #2: No cape found

    [    0.708292] bone-capemgr bone_capemgr.9: slot #3: No cape found

    [    0.722951] bone-capemgr bone_capemgr.9: slot #6: BB-BONELT-HDMIN conflict P8.45 (#5:BB-BONELT-HDMI)

    [    0.732559] bone-capemgr bone_capemgr.9: slot #6: Failed verification

    [    0.739300] bone-capemgr bone_capemgr.9: loader: failed to load slot-6 BB-BONELT-HDMIN:00A0 (prio 2)

    [    0.756803] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' failed

    [    0.819903] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by 44e10800.pinmux; cannot claim for gpio-leds.8

    [    0.831574] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22

    [    0.838860] pinctrl-single 44e10800.pinmux: could not request pin 21 on device pinctrl-single

    Loading, please wait...

    Scanning for Btrfs filesystems

    systemd-fsck[213]: eMMC-Flasher: clean, 78793/102752 files, 390222/410368 blocks

     

    这linux没有版本号。请问这烧写有问题么。我敲命令echo mem > /sys/power/state显示no found device。请问这和我的版本有关系么。

  • am335x的芯片需要RNDIS驱动嘛?IP地址需要修改嘛?

  • 請問我參考作者提供的篇文檔有提到 将 SD 卡上文件系统中的/etc/init.d/fetcher.sh 修改,但是我沒有這個檔案(fetcher.sh)??請問您怎麼處理與修改?謝謝您!

    PS : 我用的SDK : ti-processor-sdk-linux-am335x-evm-02.00.00.00-Linux-x86-Install

  • 这个脚本是要加到文件系统里的。