Files
u-boot/include
Michal Simek 378a437a49 arm64: zynqmp: Add support for QSPI boot
This patch is enabling support for SPL QSPI boot.

First of all it is necessary to generate atf-spi.ub which is different
format than atf-uboot.ub (this can be made as legacy image too)

ADDR=`arm-xilinx-linux-gnueabi-readelf -a bl31.elf | grep "Entry point
address" | cut -d ':' -f 2 | sed -e 's/^[ \t]*//'`
aarch64-linux-gnu-objcopy -O binary bl31.elf bl31.bin
./tools/mkimage -f auto -A arm64 -T firmware -C none -O u-boot -a $ADDR
-e $ADDR -n "atf1" -E -b arch/arm/dts/zynqmp-zcu102.dtb -d bl31.bin
atf-uboot.ub
./tools/mkimage -A arm64 -T firmware -C none -O u-boot -a $ADDR -e $ADDR
-n "atf-for-qspi" -E -d bl31.bin atf-spi.ub

This patch is using this QSPI layout with offsets:
0 boot.bin
512k atf-ub
640k u-boot.bin
1280k u-boot.img

Which corresponding by writing these images(read from MMC)
mmcinfo
sf probe
load mmc 0 10000000 boot.bin
sf erase 0 +$filesize
sf write 10000000 0 $filesize
load mmc 0 10000000 atf-spi.ub
sf erase 0x80000 +$filesize
sf write 10000000 0x80000 $filesize
load mmc 0 10000000 u-boot.bin
sf erase 0xa0000 +$filesize
sf write 10000000 0xa0000 $filesize
load mmc 0 10000000 u-boot.img
sf erase 0x140000 +$filesize
sf write 10000000 0x140000 $filesize

For testing u-boot running in EL3 you can break atf-spi.ub like this:
sf probe
sf erase 0x80000 +4

Then u-boot.img is executed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2017-01-16 13:05:07 +01:00
..
2017-01-11 14:21:55 +01:00
…
…
…
…
2016-12-03 13:21:21 -05:00
2016-08-20 11:35:07 -04:00
2017-01-11 14:21:55 +01:00
…
…
…
…
…
…
…
…
…
…
…
2016-05-25 17:52:39 +02:00
2016-05-25 17:52:39 +02:00
…
…
…
…
…
…
…
…
2016-09-16 17:03:39 -04:00
2016-12-03 13:21:23 -05:00
…
…
2016-10-19 09:01:51 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-11-14 23:24:03 +01:00
2016-05-03 17:52:11 -05:00
…
…
2017-01-11 14:10:16 +01:00
…
…
…
…
…
2016-12-08 10:36:22 -06:00
…
…
…
…
…
2016-07-22 09:52:59 -04:00
2016-06-10 13:44:58 -07:00
…
…
…
…
…
…
…
…
…
…
…
2016-10-23 12:08:48 -07:00
…
…
…
…
2016-06-19 17:05:55 -06:00
2016-06-19 17:05:55 -06:00
…
…
…
…
…
…
…
…
…
…
2016-08-12 11:01:22 -06:00
…
2016-12-01 13:51:57 +09:00
…
…
…
…
…
…
…
…
…
…
…
2016-07-12 13:54:40 +02:00
…
…
…
…
…
…
…
…
…
…
…
2016-06-17 10:46:07 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-08-17 10:25:35 +09:00
…
…
…
2016-10-19 09:01:52 +02:00
…
…
2017-01-11 14:10:16 +01:00
2017-01-11 14:21:55 +01:00
2016-12-16 09:32:00 +01:00
…
…
…
2016-05-26 20:48:31 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-09-26 13:24:43 -04:00
2016-05-17 09:54:43 -06:00
2016-05-02 18:37:09 -04:00
…
2016-10-12 10:56:51 +08:00
2016-10-23 18:33:48 -04:00
…
…
…
2016-10-31 10:13:17 -04:00
…