mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 12:33:41 +00:00
afdfcb11f9
Renesas RZ/N1 devices contain BootROM code that loads a custom SPKG image from QSPI, NAND or USB DFU. Support this format in mkimage tool. SPKGs can optionally be signed, however creation of signed SPKG is not currently supported. Example of how to use it: tools/mkimage -n board/schneider/rzn1-snarc/spkgimage.cfg \ -T spkgimage -a 0x20040000 -e 0x20040000 \ -d u-boot.bin u-boot.bin.spkg The config file (spkgimage.cfg in this example) contains additional parameters such as NAND ECC settings. Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
26 lines
556 B
INI
26 lines
556 B
INI
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2022 Schneider Electric
|
|
#
|
|
# SPKG image header, for booting on RZ/N1
|
|
|
|
# b[35:32] SPKG version
|
|
VERSION 1
|
|
|
|
# b[42:41] ECC Block size: 0=256 bytes, 1=512 bytes, 2=1024 bytes
|
|
NAND_ECC_BLOCK_SIZE 1
|
|
|
|
# b[45] NAND enable (boolean)
|
|
NAND_ECC_ENABLE 1
|
|
|
|
# b[50:48] ECC Scheme: 0=BCH2 1=BCH4 2=BCH8 3=BCH16 4=BCH24 5=BCH32
|
|
NAND_ECC_SCHEME 3
|
|
|
|
# b[63:56] ECC bytes per block
|
|
NAND_BYTES_PER_ECC_BLOCK 28
|
|
|
|
# Provide dummy BLp header (boolean)
|
|
ADD_DUMMY_BLP 1
|
|
|
|
# Pad the image to a multiple of
|
|
PADDING 64K
|