Project

General

Profile

Serial flash of u-boot-ubl.bin not working

Added by Ian St. John over 9 years ago

Hi,

I have a custom board without Ethernet (so far). The factory u-boot.bin works fine but I need the bootelf command upgrade. I cannot use uboot to update uboot because it uses ftp on ethernet so I am using sfh-OMAP-L138.exe to load u-boot-ubl.bin over serial. I can restore back to u-boot.bin no problem so the sfh update works fine. But when the u-boot-ubl.bin is flashed, it does not run to the "u-boot:" message. I get

BOOTME OMAP-L138/AM-1808/AM-1810 initialization passed!
Configuring 128MB mDDR
Booting TI User Boot Loader
UBL Version: 1.65:2.28.1 BuiltJul 11 2011 12:49:53
UBL Flashtype: SPI
Starting SPI Memory Copy...
Valid magicnum, 0x55424CBB, found at offset 0x00010000.
DONE
Jumping to entry point at 0xC1080000.

Following which it hangs indefinitely. Can anyone give me a clue why?


Replies (14)

RE: Serial flash of u-boot-ubl.bin not working - Added by Jonathan Cormier over 9 years ago

I don't remember when the u-boot-ubl.bin file is supposed to be used but according to the Reprogramming_a_Dead_Board guide, the u-boot.bin file that is output when building u-boot should be used with the sfh_OMAP-L138.exe tool.

RE: Serial flash of u-boot-ubl.bin not working - Added by Jonathan Cormier over 9 years ago

Also note that if you are in u-boot, you can use the loadb command to send a file over uart. We've used Teraterm to send files over kermit, but there are likely other programs that can do it as well.

loadb   - load binary file over serial line (kermit mode)

RE: Serial flash of u-boot-ubl.bin not working - Added by Jonathan Cormier over 9 years ago

Found it. u-boot file description from Das_U-Boot_Port

If successful, there should be a u-boot.bin file (usable with the serial downloader tool for a dead board) as well as a u-boot-ubl.bin file (suitable for reprogramming u-Boot from u-Boot).

RE: Serial flash of u-boot-ubl.bin not working - Added by Ian St. John over 9 years ago

I have the u-boot.bin (older version without bootelf) and the u-boot-ubl.bin file (new version with bootelf). The documentation shows the load of uboot from uboot using ethernet. Using the serial loader, it seems to load ok, but then doesn't run to the prompt. Is it possible that there is a different entry point?

RE: Serial flash of u-boot-ubl.bin not working - Added by Ian St. John over 9 years ago

Oh, and I have used kermit to download. Not sure of all the parameters to load uboot properly. I have a background with embedded systems but no ARM/Linux. Struggling a bit.

RE: Serial flash of u-boot-ubl.bin not working - Added by Ian St. John over 9 years ago

Note: I downloaded the images assuming they were ok for serial. I am not up to compiling with cygwin yet. I have bash but not the tool chains (I think).

RE: Serial flash of u-boot-ubl.bin not working - Added by Jonathan Cormier over 9 years ago

Where did you get the u-boot-ubl.bin with bootelf?

RE: Serial flash of u-boot-ubl.bin not working - Added by Ian St. John over 9 years ago

I am trying to move to Starterware (not Linux) and the tools are in
https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/StarterWare near the end.

RE: Serial flash of u-boot-ubl.bin not working - Added by Jonathan Cormier over 9 years ago

Just checked and it appears that our current MDK u-boot has the bootelf command. Board_Support_Package

MDK_2014-01-03/images/u-boot.bin should be what you need.

The following guide has instructions for updating using tftp but it should be able to be replaced with loadb
Updating_devkit_to_latest_MDK

RE: Serial flash of u-boot-ubl.bin not working - Added by Jonathan Cormier over 9 years ago

Ian St. John wrote:

I am trying to move to Starterware (not Linux) and the tools are in
https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/StarterWare near the end.

Okay thanks. The MDK u-boot should work with Starterware.

RE: Serial flash of u-boot-ubl.bin not working - Added by Ian St. John over 9 years ago

Ok. The u-boot.bin from the images of the MDK is installed and has bootelf in the help.

So the u-boot-ubl is only for the ftp download? Is that the convention? Is that my error?

RE: Serial flash of u-boot-ubl.bin not working - Added by Jonathan Cormier over 9 years ago

Ian St. John wrote:

Ok. The u-boot.bin from the images of the MDK is installed and has bootelf in the help.

So the u-boot-ubl is only for the ftp download? Is that the convention? Is that my error?

As I understand it, the UBL requires a special header to load the u-boot.bin file. The serial loader program auto adds this header and so if the header is already there then things break. But if you are loading it via u-boot then you need the version with the header since u-boot won't add the header itself. The u-boot-ubl.bin file has the header added.

RE: Serial flash of u-boot-ubl.bin not working - Added by Ian St. John over 9 years ago

Thanks. That clears that up. Now to load code sourcery and see if I can compiler makefiles. Trying to use CCS 6.0 but all the code seems set up for cygwin gcc or CCS 3.3 (not available). I may ask more questions later.. ;-)

    (1-14/14)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)