[U-Boot] [PATCH 0/5] nand: sunxi: Add SPL support for booting from NAND.

Daniel Kochmański dkochmanski at turtle-solutions.eu
Wed Apr 29 17:02:56 CEST 2015


This patchset adds minimal SPL driver for reading from A20 nand
partitions utilizing DMA controller.  It supports randomization and
syndrome partitions.

Since BROM reads second syndrome partition, if first SPL checksum
doesn't match, additional U-Boot offset may be provided to load backup
U-boot from second block of second page.

To simplify loading many files (devicetree, kernel, sourcable boot
script) additional parameter is added, which allows preloading
multiboot image into memory directly from SPL.

Additionally conveniance function a20_nandread has been added, which
utilizes SPL driver on normal U-Boot.

Best regards,
Daniel Kochmański

Daniel Kochmański (5):
  nand: sunxi: change BLOCK_SIZE in mksunxiboot to match NAND block size
  nand: sunxi: Add support for booting from internal NAND memory
  nand: sunxi: Add secondary U-Boot offset on second syndrome partition
  nand: sunxi: Add multiimage preload option
  nand: sunxi: And a20_nandread command utilizing spl nand read driver

 README                           |  10 ++
 arch/arm/cpu/armv7/sunxi/board.c |  12 ++-
 board/sunxi/Kconfig              |  12 +++
 board/sunxi/Makefile             |   1 +
 board/sunxi/nand.c               | 219 +++++++++++++++++++++++++++++++++++++++
 common/Kconfig                   |   7 ++
 common/Makefile                  |   1 +
 common/cmd_a20_nandread.c        |  27 +++++
 common/spl/spl_nand.c            |  51 +++++++--
 include/configs/sunxi-common.h   |  12 +++
 tools/mksunxiboot.c              |   2 +-
 11 files changed, 344 insertions(+), 10 deletions(-)
 create mode 100644 board/sunxi/nand.c
 create mode 100644 common/cmd_a20_nandread.c

-- 
2.3.6



More information about the U-Boot mailing list