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: eMMC partitioning and flashing procedure

Hi,

 

we need to partition and flash a blank eMMC in a production flow, via a USB bootmode on the AM335x. This is on generic Linux (not Android fastboot).

There was mention of a proposed flow that could be used with standard linux tools like fdisk. Here's the basic flow:

  1. boot the target into linux using some supported target boot (uart, usb, networking, etc.).
  2. load the mass storage gadget to reveal the eMMC to the host.
  3. use host tools like fdisk to create partitions if needed.
  4. copy files to the two partitions.
  5. Reboot from eMMC.

To be precise, I think we would need to use the booting tool to write to RAM SPL/uboot/kernel/ramdisk and boot that up to get the eMMC gadget driver up. Then do the rest.

Could you give me an update where we are with this sequence? Or is there a different sequence?

 

Thanks,

--Gunter

 

 

  • Hi Gunter,
     
    There is a procedure for the Beaglebone Black with Angstrom Linux, which is described here: http://circuitco.com/support/index.php?title=Updating_The_Software
  • This issue was brought up by somebody else back in 2013... Well it is already 2015...

    I have been searching high and low... have gone through hundreds of pages of TI documentation...

    I can get to the U-Boot prompt via UART that's no problem... Now I need to flash the eMMC on AM335x based device

    is there a process in place... via UART or by other means from the U-Boot prompt...

    I have not seen anything in that regard... Please don't tell me to look at BBB.

    I am not using the BBB. I am using AM335x and besides whatever is described in BBB  that is requiring

    pressing button and waiting 30 to 45 minutes until some MagicBlackBox  process will complete its abracadabra... This  is not acceptable...

    There should be something available very similar to the process as described within Flashing the NAND...

  • The eMMC can be flashed easily from Linux kernel prompt. This post describes the procedure: http://e2e.ti.com/support/arm/sitara_arm/f/791/p/378142/1330741#1330741

  • Many thanks for responding quickly to my question... I am glad to see that flashing eMMC is very well described...

    I have another question/issue... I we come from point of view and assume that I have a totally virgin AM335x based system

    and I need to bring it up an configure it from scratch... i.e. eMMC is totally blank and there is no SD-card

    so I am bringing it up to life via UART

    1. I have no issue XMODEMing u-boot-spl.bin

    2.I have no issue YMODEMing u-boot.img

    This gets me to U-Boot prompt...

    At this point I would like to get things to continue rolling via TFTP for which 

    u-boot.img usually looks into the uEnv.txt

    So my question is.... Is there some process already established where uEnv.txt can

    be sent in ahead of u-boot.img so that when u-boot.img can find and access uEnv.txt

    and kick in the rest of the process via TFTP...???

  • Hi,

    the process is also described here
    http://processors.wiki.ti.com/index.php/Sitara_Linux_Program_the_eMMC_on_Beaglebone_Black

    There are always some variances of this, but the above should be the main link.


    Regards,
    --Gunter