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/AM3358: Production flash programming via USB

Part Number: AM3358
Other Parts Discussed in Thread: UNIFLASH, STRIKE

Tool/software: Linux

LK"I

Hi,

We want to flash our custom made board (which is BeagleBone Black based) via USB.

I'm following this guide:

http://processors.wiki.ti.com/index.php/Sitara_Uniflash_Quick_Start_Guide#Flashing_a_Board_using_USB

When I'm going to flash my board via USB, should I change the boot mode to USB (if so how?)

Should I connect my PC to usb client connector or to USB host connector?

Harel

  • Hi Harel,

    Please refer here: e2e.ti.com/.../1529135

    You need to connect to USB device(client) connector on the Board.
  • LK"I

    This guide assumes that there is alreay U-boot on the eMMC.
    I'm talking on a fresh new board , no U-boot nada...
  • harel ashwal said:
    This guide assumes that there is alreay U-boot on the eMMC.

    This is not correct. Please read the guide carefully.

  • LK"I

    I took a look at the guide again,

    Here is the section on flashing the board. (this is the first step).

    as you can see, it assumes U-boot is already there!:

    What am I missing...??!?

    Program the Flash

    Now, take a deep breath, and let's see if all of the hard work pays off.

    1. Make sure you have an active console window. You'll need to hit a key very early in the boot process to stop U-Boot from auto booting.

    2. If you would like to use Uniflash on Windows, a full guide for Uniflash can be found here. If using Linux, make sure your TFTP and BOOTP/DHCP servers are configured correctly and running as well. More information on peripheral booting with a Linux host can be found here and here.

    3. Apply power and "strike any key" to halt U-Boot at a prompt.

    4. At this point, we haven't fully configured U-Boot to boot properly from TFTP. So, we'll have to do some typing. This allows us to fine tune the process before committing it to U-Boot.

  • Setup the Hardware

    In order to flash the board, you need to make sure that it is setup to boot from the appropriate interface and that it is using the proper pin configuration. By default, the Beaglebone Black will attempt to boot from USB if the "boot" switch is held down, even if there is already something in the eMMC. The board comes programmed, so unless you have erased the eMMC, there will be a bootable image there. You can also boot the board from Ethernet by modifying the necessary Sysboot pins with something like the Memory Expansion Cape.

    1. Set the Beaglebone Black to boot from the appropriate interface. Use USB if you don't have a way to modify the sysboot pins.
      NOTE

      Your host computer will need to be set up to use the same interface. If you are using a Linux host, you need to have followed the proper instructions (example here). This is also true for Uniflash on Windows.
    2. Connect cables as necessary, but do not power on the board quite yet. Make sure you have a cable connected for console as you'll need to stop U-Boot to get a U-Boot prompt.

    Step 1 that you refer, means that you stop the U-boot that's been loaded over the USB.