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.

PROCESSOR-SDK-AM335X: eMMC programming issue

Part Number: PROCESSOR-SDK-AM335X

I have follow the steps : e2e.ti.com/.../503009

everything is fine when I got the step 6:

6. Copy the root file system to the second partition:
# mkdir root
# mount /dev/mmcblk1p2 root
# tar -xf tisdk-rootfs-image-am335x-evm.tar.gz -C root
# umount root

tar is crash. I am sure the file "tisdk-rootfs-image-am335x-evm.tar.gz" is OK. becasue I use this file to create the SD card. It can boot.

  • Hello,

    Thanks for you post. Would you please verify which version of the SDK you are working with?

    Could you please provide the output of the command as you execute them?

    Have you verified that the partition that you are trying to copy to is large enough to accept the files?

    Thank you.

  • Hello BonB:
    Thank you for your reply.

    I have tried severl times . Now tar is fine.

    But I also can not boot from eMMC. Boot programe excutes till uboot, fail to boot Linux kernel. And I found I miss the file "uEnv.txt".

    How can I get the file "uEnv.txt"?

  • below is print from my console :

    U-Boot SPL 2017.01-gc68ed086bd (Mar 26 2018 - 15:08:11)
    Trying to boot from MMC2
    Card did not respond to voltage select!
    ** Bad device mmc 0 **
    Using default environment
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img

    U-Boot 2017.01-gc68ed086bd (Mar 26 2018 - 15:08:11 -0400)
    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    MMC: no card present
    ** Bad device mmc 0 **
    Using default environment
    <ethaddr> not set. Validating first E-fuse MAC
    Net:   cpsw, usb_ether
    Hit any key to stop autoboot:  0
    MMC: no card present
    MMC: no card present
    MMC: no card present
    MMC: no card present
    MMC: no card present
    MMC: no card present
    ## Error: "bootcmd_nand0" not defined
    starting USB...
    USB0:   Port not available.
    cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC c4:f3:12:7f:f0:5a
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    ERROR: The remote end did not respond in time.
    at /oe/bld/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/u-boot-ti-staging/2017.01+gitAUTOINC+c68ed086bd-r21/git/drivers/usb/gadget/ether.c:2426/_usb_eth_init()
    missing environment variable: pxeuuid
    Retrieving file: pxelinux.cfg/01-c4-f3-12-7f-f0-5a
    cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC c4:f3:12:7f:f0:5a
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    ERROR: The remote end did not respond in time.
    at /oe/bld/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/u-boot-ti-staging/2017.01+gitAUTOINC+c68ed086bd-r21/git/drivers/usb/gadget/ether.c:2426/_usb_eth_init()
    Retrieving file: pxelinux.cfg/00000000
    cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC c4:f3:12:7f:f0:5a
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
  • Are you doing this process on a Beaglebone Black? Or, a custom board? If custom, please tell me which MMC slots the SD card and the eMMC are connected to.

    Thanks.

  • Hi RonB:

    It is on a Beaglebone Black.

    Thanks.

  • Hi,

    OK, I just went through this on a BBB and I couldn't see what you are seeing. Here is my log:

    U-Boot SPL 2018.01-g9d984f4548 (Apr 06 2019 - 07:42:30)
    Trying to boot from MMC1
    *** Warning - bad CRC, using default environment



    U-Boot 2018.01-g9d984f4548 (Apr 06 2019 - 07:42:30 +0000)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM: 512 MiB
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: cpsw, usb_ether
    Hit any key to stop autoboot: 0
    switch to partitions #0, OK
    mmc1(part 0) is current device
    Scanning mmc 1:1...
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    3871232 bytes read in 271 ms (13.6 MiB/s)
    36805 bytes read in 19 ms (1.8 MiB/s)
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8fff4000, end 8fffffc4 ... OK

    Starting kernel ...

    The U-Boot version you are using is older than mine, so that could be the difference. 

    Can you try to run "mmc dev 1" and mmc info and show the results here. This is what I get:

    => mmc info
    Device: OMAP SD/MMC
    Manufacturer ID: 70
    OEM: 100
    Name: M6270
    Bus Speed: 48000000
    Mode : MMC High Speed (52MHz)
    Rd Block Len: 512
    MMC version 5.1
    High Capacity: Yes
    Capacity: 3.6 GiB
    Bus Width: 4-bit
    Erase Group Size: 512 KiB
    User Capacity: 3.6 GiB
    Boot Capacity: 2 MiB ENH
    RPMB Capacity: 512 KiB ENH

    I hope this helps.

  • Hi RonB:
    Thank you for your help .
    I will try to get the u-boot which you have successful booted.

    This is output from my console :

    => mmc info
    MMC: no card present

    I think I should re-config the u-boot.

    Thanks.