• Boris Brezillon's avatar
    Add a tool to generate raw NAND images · e25f6e90
    Boris Brezillon authored
    
    
    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>
    e25f6e90
nand-image-builder.c 28.6 KB