Primary Bootloader (before u-boot) in sysmoBTSv2
Go to file
Holger Hans Peter Freyther de83b50dec misc: Build with no strict aliasing to avoid compiler warnings
I have not looked at the change in binary size but it seems to
be fine and still works on the device.

nandboot.c:61:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   magicNum = *((uint32_t *) nand_header);
   ^
nand.c:800:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     uart_send_hexnum(*((uint32_t *) &read_buf[k]), 8);
2014-11-20 18:38:32 +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_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 uart/timeout: Reduce the I_ME timeout to a lower value again 2014-07-11 10:12:50 +02:00
davinci.h uart/timeout: Reduce the I_ME timeout to a lower value again 2014-07-11 10:12:50 +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 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 nand: Increase the nand timeout for the toshiba flash 2014-07-10 09:24:48 +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 uart/timeout: Reduce the I_ME timeout to a lower value again 2014-07-11 10:12:50 +02:00
uart.h uart/timeout: Reduce the I_ME timeout to a lower value again 2014-07-11 10:12:50 +02:00
uartboot.c nand: Write multiple copies of UBL and U-Boot 2014-05-19 19:17:51 +02:00
ubl.c uart/timeout: Reduce the I_ME timeout to a lower value again 2014-07-11 10:12:50 +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>