12 Commits

Author SHA1 Message Date
Siarhei Siamashka
a4557874f0 Merge pull request #44 from ssvb/20160512-uart0-helloworld
Add new uart0-helloworld-sdboot.sunxi bootable test image
2016-06-03 06:17:24 +03:00
Siarhei Siamashka
958143e77b Add new uart0-helloworld-sdboot.sunxi bootable test image
This is a universal bootable image, which just prints a hello
message on UART0. For example, it is useful as a test payload
when debugging the SPI boot functionality:
   https://linux-sunxi.org/Bootable_SPI_flash

Changes in v2:
 - A workaround for https://patchwork.ozlabs.org/patch/622173
 - Also print the type of the used bootable media

Changes in v3:
 - Bernhard Nortmann's workaround for
   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63803

More details in https://github.com/linux-sunxi/sunxi-tools/pull/44

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
2016-06-03 06:04:44 +03:00
Bernhard Nortmann
17164d8d9a fel-sdboot: Fix header corruption workaround, implement in assembly
Now that we have a better understanding of what's causing the issue
that prevented entering FEL sometimes, we can adjust the workaround
code to a proper solution, i.e. skip over the problematic location.

Since the code amounts to less than a dozen ARM instructions, I've
decided to rewrite it as assembly code - fel-sdboot.S replaces the
former fel-sdboot.c.

The commit also includes a new binary (bin/fel-sdboot.sunxi) with
these changes.

Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
Reviewed-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
2016-05-28 12:32:55 +02:00
Siarhei Siamashka
b4d32f0711 fel-sdboot.sunxi: Add support for A64 and A80
This small bootable stub, which just passes control to the
FEL code in the BROM, needs to be adjusted to also support
Allwinner A64 and Allwinner A80 because the BROM is located
at a different address there.

The SD card boot has a very low priority on Allwinner A64, but
it at least has a higher priority than the SPI NOR Flash:

    https://linux-sunxi.org/BROM#A64

So this patch may help to simplify the FEL mode activation on
devices, which are booting their firmware from the SPI NOR Flash.

Changes in v2:
 - Use SCTLR.V to detect the exception vectors location as
   suggested by Jens Kuske.
 - Add a padding of 32 NOP instructions in the beginning as
   a workaround for some strange failures.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
2016-05-09 20:57:32 +03:00
Henrik Nordstrom
e5736fd09a usb-boot: ramboot script without uimage header 2013-07-27 01:59:20 +02:00
Henrik Nordstrom
6f5049ffa7 usb-boot: Remove prebuilt fel boot binaries
They were all built with no version information so it's not trivial
to tell which sources they are built from.

It is very easy to rebuild u-boot which gives these. Not really a need
to have them prebuilt here.
2013-07-27 01:27:10 +02:00
Henrik Nordstrom
6004127d01 usb-boot: Handle variable arguments 2013-05-23 21:12:53 +02:00
Henrik Nordstrom
05cdc60eb1 usb-boot: Rework ram boot to use a boot.scr @0x41000000 to indicate RAM boot 2013-05-21 23:19:19 +02:00
Henrik Nordstrom
bacc658e59 Rename eoma68 to eoma68-a10 2013-05-19 21:33:30 +02:00
Henrik Nordstrom
1d8769b44b Rename fel-boot to fel-sdboot to avoid confusion with new fel-boot FEL bootloader 2013-05-16 01:53:10 +02:00
Henrik Nordstrom
6963d52030 felboot: Small system initialization for FEL booting 2013-05-16 01:18:18 +02:00
Henrik Nordstrom
8076c5bf30 Import ARM binaries to avoid need for cross-compilers 2012-09-06 20:07:59 +02:00