Primary Bootloader (before u-boot) in sysmoBTSv2
Go to file
Holger Hans Peter Freyther 0974846c2d sysmobts: Be able to toggle the nWP on the flash through a GPIO
Starting from revision F we can toggle a GPIO to control nWP of
the NAND chip. This means that during power-on or other mode of
operation no changes can be done to the flash.

Remove the nWP before we try to write to the flash in the UART
mode. Leave it enabled for further operations.
2015-02-05 19:03:14 +01: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 misc: Build with no strict aliasing to avoid compiler warnings 2014-11-20 18:38:32 +01: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: Be able to toggle the nWP on the flash through a GPIO 2015-02-05 19:03:14 +01: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 sysmobts: Be able to toggle the nWP on the flash through a GPIO 2015-02-05 19:03:14 +01:00
davinci.h sysmobts: Be able to toggle the nWP on the flash through a GPIO 2015-02-05 19:03:14 +01: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 timer: Make the timer configurable and use it 2014-07-09 19:38:07 +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 sysmobts: Be able to toggle the nWP on the flash through a GPIO 2015-02-05 19:03:14 +01:00
nand.h sysmobts: Be able to toggle the nWP on the flash through a GPIO 2015-02-05 19:03:14 +01: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 uart/timeout: Reduce the I_ME timeout to a lower value again 2014-07-11 10:12:50 +02:00
uart.h sysmobts: Be able to toggle the nWP on the flash through a GPIO 2015-02-05 19:03:14 +01:00
uartboot.c sysmobts: Be able to toggle the nWP on the flash through a GPIO 2015-02-05 19:03:14 +01:00
ubl.c sysmobts: Be able to toggle the nWP on the flash through a GPIO 2015-02-05 19:03:14 +01: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>