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.

Linux: How to flash the eMMC on Beaglebone Black

Tool/software: Linux

Hello,

I would like flashing emmc on beaglebone board that i using ti-processor-sdk-linux-am335x-evm-04.02.00.09 image.

Thank you,

somkiat 

  • Hi Biser,

    I can't finding or download 0001-Change-finduuid-to-use-mmcdev.patch.gz on this wiki page

    Best Regards
    somkiat
  • Hi ,
    I am working follow an example as e2e.ti.com/.../1204926 page from Miroslav that is worked well.


    Run the BBB from the SD card (hold the USR button when powering the board up)

    3. ssh into the board:
    # ssh root@172.20.0.111

    4. The eMMC is /dev/mmcblk1. Format it this way:
    4.01. fdisk /dev/mmcblk1
    4.02. o - this clears the existing partitions
    4.03. p - this lists all partition tables on the card (there should be none)
    4.04. n - create a new partition
    4.05. p - primary partition
    4.06. 1 - partition number
    4.07. 2048 - default value for the first sector
    4.08. +16M - last sector / partition size
    4.09. t - change the partition type (select partition 1)
    4.10. e - change tha partition type to "W95 FAT16 (LBA)"
    4.11. a - set the bootable flag for the selected partition (1)
    4.12. n - create a new partition
    4.13. p - primary partition
    4.14. 2 - partition number
    4.15. hit Enter to choose the default (next available) value for the first sector
    4.16. hit Enter to choose the default (last) value for the last sector
    4.17. p - this lists all partition tables on the card (there should be two)
    4.18. w - write all the above changes to disk
    4.19. umount /dev/mmcblk1p1; mkfs.vfat -F 16 /dev/mmcblk1p1 - format the first partition
    4.20. umount /dev/mmcblk1p2; mkfs.ext4 /dev/mmcblk1p2 - format the second partition

    5. Copy the {MLO,u-boot.img,uEnv.txt} files to the first partition:
    # mkdir boot
    # mount /dev/mmcblk1p1 boot
    # cp {MLO,u-boot.img,uEnv.txt} boot
    # umount boot

    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

    7. Shutdown the BBB, remove the SD card and start it from the eMMC.

    Best Regards
    somkiat