Commit e25f6e90 authored by Boris Brezillon's avatar Boris Brezillon
Browse files

Add a tool to generate raw NAND images



Generating raw NAND images is particularly useful for boot0 images
creation since the mainline driver is not supporting the funky layout
used by Allwinner's ROM code to load the boot0 binary from NAND.

This tools also allows one to generate raw images for 'normal' partitions
so that they can be flashed before soldering on the NAND on the board
(using a regular NAND programmer).

The tool takes care of generating ECC bytes and randomizing data as
expected by the NAND controller, and re-arranging the ECC/data sections
correctly.
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent d93a631d
...@@ -41,7 +41,7 @@ FEXC_LINKS = bin2fex fex2bin ...@@ -41,7 +41,7 @@ FEXC_LINKS = bin2fex fex2bin
# Tools which are only useful on the target # Tools which are only useful on the target
TARGET_TOOLS = sunxi-pio TARGET_TOOLS = sunxi-pio
MISC_TOOLS = phoenix_info MISC_TOOLS = phoenix_info sunxi-nand-image-builder
# ARM binaries and images # ARM binaries and images
# Note: To use this target, set/adjust CROSS_COMPILE and MKSUNXIBOOT if needed # Note: To use this target, set/adjust CROSS_COMPILE and MKSUNXIBOOT if needed
......
...@@ -46,6 +46,9 @@ Manipulate PIO register dumps ...@@ -46,6 +46,9 @@ Manipulate PIO register dumps
### sunxi-nand-part ### sunxi-nand-part
Tool for manipulating Allwinner NAND partition tables Tool for manipulating Allwinner NAND partition tables
### sunxi-nand-image-builder
Tool used to create raw NAND images (including boot0 images)
### jtag-loop.sunxi ### jtag-loop.sunxi
ARM native boot helper to force the SD port into JTAG and then stop, ARM native boot helper to force the SD port into JTAG and then stop,
to ease debugging of bootloaders. to ease debugging of bootloaders.
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment