Primary Bootloader (before u-boot) in sysmoBTSv2
Go to file
Holger Hans Peter Freyther e564034a60 nand: Write multiple copies of UBL and U-Boot
The NAND might have more bit flips than can be recovered. The way
to deal with it is to write multiple copies on multiple pages. The
probability of all pages failing depends on the specific NAND flash
used and was not calculated so far. The RBL is capable of trying to
load several copies and we should be more safe now.

This requires a new partioning inside the U-Boot or other bootloader.
2014-05-19 19:17:51 +02:00
.gitignore git: Ignore the generated files 2012-07-11 09:07:21 +02:00
ChangeLog dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
Makefile interrupt: Allow to interrupt the NAND boot by sending a command 2012-07-11 09:05:23 +02:00
README dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
TODO dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
board.h sysmobts_v2: Set PINMUX0_DEFAULT and PINMUX1_DEFAULT for sysmoBTS v2 2012-07-10 23:15:01 +02:00
common.h nand: Detect and correct bit errors on the sysmoBTSv2D and later platforms 2014-05-19 19:14:12 +02:00
crc.c dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
crc.h dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
davinci.c interrupt: Allow to interrupt the NAND boot by sending a command 2012-07-11 09:05:23 +02:00
davinci.h interrupt: Allow to interrupt the NAND boot by sending a command 2012-07-11 09:05:23 +02:00
ddr.h sysmobts_v2: Add sysmobts_v2 with runtime detection of DDR/NAND 2012-04-25 09:20:55 +02:00
dm644x.c dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
dm644x.h sysmobts_v2: Add sysmobts_v2 with runtime detection of DDR/NAND 2012-04-25 09:20:55 +02:00
gpio.c dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
gpio.h dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
nand.c nand: Write multiple copies of UBL and U-Boot 2014-05-19 19:17:51 +02:00
nand.h nand: Write multiple copies of UBL and U-Boot 2014-05-19 19:17:51 +02:00
nandboot.c nand: Write multiple copies of UBL and U-Boot 2014-05-19 19:17:51 +02:00
nor.c dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
nor.h dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
norboot.c dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
uart.c sysmobts_v2: Add sysmobts_v2 with runtime detection of DDR/NAND 2012-04-25 09:20:55 +02:00
uart.h dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
uartboot.c nand: Write multiple copies of UBL and U-Boot 2014-05-19 19:17:51 +02:00
ubl.c interrupt: Allow to interrupt the NAND boot by sending a command 2012-07-11 09:05:23 +02:00
ubl.lds sysmobts_v2: Add sysmobts_v2 with runtime detection of DDR/NAND 2012-04-25 09:20:55 +02:00
util.c dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00
util.h dvnixload/ubl copy as of pre 0.2.6 svn 2012-04-25 09:20:50 +02:00

README

 README for HVUBL

This UBL can be used for flashing itself and a 2nd stage bootloader (usually
U-boot) in flash memory.

It can also be used to flash an arbitrary data image into flash, without
a header.

It can also be used to run DDR RAM memory testing.

To compile HVUBL for the sffsdr board, for example, run:
  $> make BOARD=sffsdr

The Makefile honors the CROSS_COMPILE environment variable to specify the prefix
of your ARM gcc toolchain. If it is not set, it defaults to:
  CROSS_COMPILE=arm-linux-

You can override it like this, for example:
  $> make CROSS_COMPILE=arm-angstrom-linux-gnueabi- BOARD=sffsdr

The output file, in ARM ELF format, will be named <ubl.elf>