Re: [PATCH] CI: Update test/nokia_rx51_test.sh to use prebuilt images

2023-02-21 Thread Pali Rohár
On Tuesday 21 February 2023 11:22:29 Tom Rini wrote: > From: Pali Rohár > > Now that the Dockerfile creates images which have the binaries we > require included, have CI make symlinks for them and update the existing > script to support this. > > Signed-off-by: Tom Rini &g

[PATCH RFC u-boot-mvebu 01/59] tools: kwbimage: Fix generating, verifying and extracting SDIO kwbimage

2023-02-21 Thread Pali Rohár
idate data checksum of v1 images") Fixes: aa6943ca3122 ("kwbimage: Add support for extracting images via dumpimage tool") Signed-off-by: Pali Rohár --- tools/kwbimage.c | 29 - 1 file changed, 29 deletions(-) diff --git a/tools/kwbimage.c b/tools/kwb

[PATCH RFC u-boot-mvebu 08/59] cmd: mvebu/bubt: Fix parsing SATA kwbimage

2023-02-21 Thread Pali Rohár
k for A38x image data checksum") Signed-off-by: Pali Rohár --- cmd/mvebu/bubt.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index 6bb84da03ed6..2bcdf145f64a 100644 --- a/cmd/mvebu/bubt.c +++ b/cmd/mvebu/bubt.c @@ -738

[PATCH RFC u-boot-mvebu 02/59] tools: kwboot: Fix parsing SDIO kwbimage

2023-02-21 Thread Pali Rohár
srcaddr in bytes. This change fixes loading of SDIO images via kwboot over UART. Fixes: 792e42355083 ("tools: kwboot: Patch source address in image header") Signed-off-by: Pali Rohár --- tools/kwboot.c | 4 1 file changed, 4 deletions(-) diff --git a/tools/kwboot.c b/tools/kwbo

[PATCH RFC u-boot-mvebu 04/59] cmd: mvebu/bubt: Fix parsing SDIO kwbimage

2023-02-21 Thread Pali Rohár
cksum") Signed-off-by: Pali Rohár --- cmd/mvebu/bubt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index 1efbe2e607ca..6bb84da03ed6 100644 --- a/cmd/mvebu/bubt.c +++ b/cmd/mvebu/bubt.c @@ -747,9 +747,6 @@ static int check_image_header(void)

[PATCH RFC u-boot-mvebu 06/59] tools: kwboot: Fix parsing SATA kwbimage

2023-02-21 Thread Pali Rohár
as relative offset to the main header. This change fixes loading of SATA images via kwboot over UART. Fixes: 792e42355083 ("tools: kwboot: Patch source address in image header") Signed-off-by: Pali Rohár --- tools/kwboot.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) di

[PATCH RFC u-boot-mvebu 09/59] arm: mvebu: spl: Remove checks for BOOT_DEVICE_MMC2 and BOOT_DEVICE_MMC2_2

2023-02-21 Thread Pali Rohár
BOOT_DEVICE_MMC2 and BOOT_DEVICE_MMC2_2 are representing mmc dev 1 but all Armada SoCs have only one mmc controller. So remove references to non-existent second mmc controller. Fixes: f830703f4284 ("arm: mvebu: Check that kwbimage blockid matches boot mode") Signed-off-by: Pali Rohár

[PATCH RFC u-boot-mvebu 26/59] cmd: mvebu/bubt: Check also A8K boot image checksum

2023-02-21 Thread Pali Rohár
Signed-off-by: Pali Rohár --- cmd/mvebu/bubt.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index 1b08ca9298c2..74ea037dda98 100644 --- a/cmd/mvebu/bubt.c +++ b/cmd/mvebu/bubt.c @@ -725,9 +725,8 @@ static int

[PATCH RFC u-boot-mvebu 18/59] tools: kwboot: Fix patching of SPI/NOR XIP images

2023-02-21 Thread Pali Rohár
ation address to DDR area for SPI image") Signed-off-by: Pali Rohár --- tools/kwboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index f624edc7798f..cb31d5b858ce 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -2022

[PATCH RFC u-boot-mvebu 24/59] cmd: mvebu/bubt: Mark all local symbols as static

2023-02-21 Thread Pali Rohár
There is no need to export these local functions and structures. Signed-off-by: Pali Rohár --- cmd/mvebu/bubt.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index 72ed87b89ec3..820d342ae100 100644 --- a/cmd/mvebu/bubt.c +++ b

[PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-21 Thread Pali Rohár
changes are untested, hence this patch series is just RFC. So please test changes before applying, idealy on SPI, SATA and SD/MMC. Nevertheless all patches on github passed CI testing in this PR: https://github.com/u-boot/u-boot/pull/275 Pali Rohár (59): tools: kwbimage: Fix generating, verifying

[PATCH RFC u-boot-mvebu 07/59] arm: mvebu: spl: Fix parsing SATA kwbimage

2023-02-21 Thread Pali Rohár
is needed to interpret srcaddr as relative offset to the main header. This change fixes booting of U-Boot proper from SPL code in SATA image. Fixes: 2226ca173486 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header") Signed-off-by: Pali Rohár --- arch/arm/

[PATCH RFC u-boot-mvebu 20/59] cmd: mvebu/bubt: Add support for selecting eMMC HW partition

2023-02-21 Thread Pali Rohár
Support for burning into the correct eMMC HW boot partition was broken and removed in commit 96be2f072768 ("mvebu: bubt: Drop dead code"). Reimplement this functionality and bring it back again. Fixes: 96be2f072768 ("mvebu: bubt: Drop dead code") Signed-off-by: Pali Rohár -

[PATCH RFC u-boot-mvebu 29/59] cmd: mvebu/bubt: Fix warnings: unused variable 'secure_mode' and 'fuse_read_u64' defined but not used

2023-02-21 Thread Pali Rohár
'secure_mode' and 'fuse_read_u64' are used only on A38x and A37xx. Fixes: f7b0bbca2b62 ("cmd: mvebu/bubt: Check for A38x/A37xx OTP secure bits and secure boot") Signed-off-by: Pali Rohár --- cmd/mvebu/bubt.c | 7 +-- 1 file changed, 5 insertions(+), 2 deleti

[PATCH RFC u-boot-mvebu 28/59] cmd: mvebu/bubt: Better guess default MVEBU_*_BOOT option

2023-02-21 Thread Pali Rohár
For 32-bit Armada boards which use SPL we can determinate boot device from existing MVEBU_SPL_BOOT_DEVICE_* option. For all other boards (e.g. 64-bit Armada) default option still needs to be set manually. Signed-off-by: Pali Rohár --- cmd/mvebu/Kconfig | 4 1 file changed, 4 insertions

[PATCH RFC u-boot-mvebu 13/59] tools: kwboot: Add more documentation references

2023-02-21 Thread Pali Rohár
Add reference to Avanta Boot Flow documentation, BobCat2, AlleyCat3 and PONCat3 BootROM Firmware documentation and links to public Marvell tools: hdrparser.c and doimage.c Signed-off-by: Pali Rohár --- tools/kwboot.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/tools

[PATCH RFC u-boot-mvebu 12/59] arm: mvebu: spl: Fix support for loading U-Boot proper from SD card

2023-02-21 Thread Pali Rohár
eader") Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/Kconfig | 1 + arch/arm/mach-mvebu/spl.c | 40 - 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index 5303b1cbb965..28

[PATCH RFC u-boot-mvebu 49/59] tools: kwbimage: Add support for creating an image with no data

2023-02-21 Thread Pali Rohár
equire any initialization). Signed-off-by: Pali Rohár --- tools/kwbimage.c | 28 +--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 7ebb625d03b9..309657a5637b 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -1887

[PATCH RFC u-boot-mvebu 30/59] cmd: mvebu/bubt: Enable command by default

2023-02-21 Thread Pali Rohár
This makes updating of u-boot/firmware on Marvell boards easier. Signed-off-by: Pali Rohár --- cmd/mvebu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/mvebu/Kconfig b/cmd/mvebu/Kconfig index 029f722096b1..e83a98294912 100644 --- a/cmd/mvebu/Kconfig +++ b/cmd/mvebu/Kconfig

[PATCH RFC u-boot-mvebu 54/59] arm: mvebu: clearfog: Add defconfig for SATA booting

2023-02-21 Thread Pali Rohár
This new clearfog_sata_defconfig file is copy of existing clearfog_defconfig file and changed to instruct build system to generate final kwbimage for SATA booting. This change is more readable via git option --find-copies-harder. Signed-off-by: Pali Rohár --- configs/{clearfog_defconfig

[PATCH RFC u-boot-mvebu 39/59] tools: kwbimage: Print binary image offset as size

2023-02-21 Thread Pali Rohár
Use for it pretty print function: genimg_print_size(). This makes it more human readable, like other offset and sizes printed by this tool. Signed-off-by: Pali Rohár --- tools/kwbimage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/kwbimage.c b/tools

[PATCH RFC u-boot-mvebu 45/59] tools: mkimage: Do not fill legacy_img_hdr for non-legacy XIP images

2023-02-21 Thread Pali Rohár
Skip filling legacy_img_hdr structure for XIP images which do not use legacy_img_hdr structure header. Adding unwanted header to other image formats, like kwbimage cause generation of broken image. Signed-off-by: Pali Rohár --- tools/mkimage.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH RFC u-boot-mvebu 59/59] doc/kwboot.1: Update example description

2023-02-21 Thread Pali Rohár
Mention fact about changing baudrate back when -B is used. Signed-off-by: Pali Rohár --- doc/kwboot.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/kwboot.1 b/doc/kwboot.1 index a528fbbe8c38..5cda3b4d88a8 100644 --- a/doc/kwboot.1 +++ b/doc/kwboot.1 @@ -159,7 +159,8

[PATCH RFC u-boot-mvebu 22/59] cmd: mvebu/bubt: Add support for reading image from the SATA disk partition

2023-02-21 Thread Pali Rohár
: Pali Rohár --- cmd/mvebu/bubt.c | 39 +-- doc/mvebu/cmd/bubt.txt | 2 +- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index 1d51fde579b5..df6b73c6a172 100644 --- a/cmd/mvebu/bubt.c +++ b/cmd/mvebu/bubt.c

[PATCH RFC u-boot-mvebu 43/59] tools: kwbimage: Fix generating secure boot data image signature

2023-02-21 Thread Pali Rohár
gated also into the add_secure_header_v1() function. Fix this issue by decreasing size of buffer by 4 bytes from which is calculated secure boot data image signature. Fixes: 37cb9c15d70d ("tools: kwbimage: Simplify aligning and calculating checksum") Signed-off-by: Pali Rohár --- tools/

[PATCH RFC u-boot-mvebu 56/59] arm: mvebu: Fix comment about CPU_ATTR_BOOTROM mapping

2023-02-21 Thread Pali Rohár
Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c index 1f8cdf8744e6..c5089a91c747 100644 --- a/arch/arm/mach-mvebu/cpu.c +++ b/arch/arm/mach-mvebu/cpu.c @@ -25,7 +25,7

[PATCH RFC u-boot-mvebu 47/59] tools: mkimage: Print human readable error when -d is not specified

2023-02-21 Thread Pali Rohár
add a check for this and if it happens then show human readable message that option -d was not specified. Signed-off-by: Pali Rohár --- tools/mkimage.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/mkimage.c b/tools/mkimage.c index 955a1f39a419..c53768f8d8de 100644 --- a/tools/mkim

[PATCH RFC u-boot-mvebu 53/59] arm: mvebu: db-88f6820-amc: Add defconfig for NAND booting

2023-02-21 Thread Pali Rohár
. This change is more readable via git option --find-copies-harder. Signed-off-by: Pali Rohár --- ...-88f6820-amc_defconfig => db-88f6820-amc_nand_defconfig} | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) copy configs/{db-88f6820-amc_defconfig => db-88f6820-amc_nand_defconfi

[PATCH RFC u-boot-mvebu 32/59] tools: kwbimage: Fix endianity when dumping NAND_PAGE_SIZE

2023-02-21 Thread Pali Rohár
Fixes: 1a8e6b63e24f ("tools: kwbimage: Dump kwbimage config file on '-p -1' option") Signed-off-by: Pali Rohár --- tools/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 1719b0415da1..a6f6f1578c7

[PATCH RFC u-boot-mvebu 41/59] tools: kwbimage: Simplify add_secure_header_v1()

2023-02-21 Thread Pali Rohár
To make add_secure_header_v1() function more readable, call it directly with arguments: header pointer with header size and data image pointer with data image size. No functional change. Signed-off-by: Pali Rohár --- tools/kwbimage.c | 15 +-- 1 file changed, 5 insertions(+), 10

[PATCH RFC u-boot-mvebu 57/59] arm: mvebu: Define env_sf_get_env_addr() also for Proper U-Boot

2023-02-21 Thread Pali Rohár
cpu.c to be available in Proper U-Boot too. Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/cpu.c | 9 + arch/arm/mach-mvebu/include/mach/cpu.h | 5 + arch/arm/mach-mvebu/spl.c | 13 - 3 files changed, 14 insertions(+), 13 deletions(-) diff

[PATCH RFC u-boot-mvebu 58/59] arm: mvebu: Define SPL memory maps

2023-02-21 Thread Pali Rohár
In SPL are active memory maps set by the BootROM. Define them in cpu.h file to the correct values. Some peripherals are not mapped at all. Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/include/mach/cpu.h | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/mach

[PATCH RFC u-boot-mvebu 14/59] tools: kwboot: Add image type documentation

2023-02-21 Thread Pali Rohár
Add information of all available image types and where they should be stored. Storage location offsets where documented from the disassembly of the A385 BootROM image dump. Signed-off-by: Pali Rohár --- tools/kwboot.c | 62 ++ 1 file changed, 62

[PATCH RFC u-boot-mvebu 17/59] tools: kwboot: Add check that kwbimage contains DDR init code

2023-02-21 Thread Pali Rohár
some cases it is possible to load very small image into L2SRAM and when DDR init code is not required. So check for L2SRAM load address and skip DDR init code check in this case. Signed-off-by: Pali Rohár --- tools/kwboot.c | 48 1 file changed

[PATCH RFC u-boot-mvebu 34/59] tools: kwbimage: Fix dumping NAND_BLKSZ

2023-02-21 Thread Pali Rohár
page size (16 KB for a 512B page or small page NAND and 64 KB for a large page NAND flash). Fixes: 1a8e6b63e24f ("tools: kwbimage: Dump kwbimage config file on '-p -1' option") Signed-off-by: Pali Rohár --- tools/kwbimage.c | 10 -- 1 file changed, 8 insertions(+),

[PATCH RFC u-boot-mvebu 19/59] tools: kwboot: Show image type and error parsing reasons

2023-02-21 Thread Pali Rohár
Show image type and version during parsing of kwbimage. And show reasons in error messages when parsing failed. This can help to debug issues with invalid images. Signed-off-by: Pali Rohár --- tools/kwboot.c | 39 ++- 1 file changed, 34 insertions(+), 5

[PATCH RFC u-boot-mvebu 23/59] cmd: mvebu/bubt: Rename variable image_size to hdr_size

2023-02-21 Thread Pali Rohár
Variable image_size contains size of the header, not size of the whole image. Rename this variable to reflect content. Signed-off-by: Pali Rohár --- cmd/mvebu/bubt.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index

[PATCH RFC u-boot-mvebu 52/59] arm: mvebu: Fix description of MVEBU_SPL_BOOT_DEVICE_(SPI|MMC) options

2023-02-21 Thread Pali Rohár
MMC and SD compatible devices. Not for SDIO devices. In most cases used for eMMC or SD card. Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index 5abcdc4972ab

[PATCH RFC u-boot-mvebu 55/59] arm: mvebu: Remove A39x relicts

2023-02-21 Thread Pali Rohár
Signed-off-by: Pali Rohár --- .../serdes/a38x/high_speed_env_spec.c | 4 +-- .../serdes/a38x/high_speed_env_spec.h | 4 +-- arch/arm/mach-mvebu/serdes/a38x/sys_env_lib.c | 14 +++-- arch/arm/mach-mvebu/serdes/a38x/sys_env_lib.h | 30 --- 4 files changed, 8

[PATCH RFC u-boot-mvebu 44/59] tools: kwbimage: Fix invalid secure boot header signature

2023-02-21 Thread Pali Rohár
: 2b0980c24027 ("tools: kwbimage: Fill the real header size into the main header") Signed-off-by: Pali Rohár --- tools/kwbimage.c | 41 ++--- 1 file changed, 14 insertions(+), 27 deletions(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index a8a59c1

[PATCH RFC u-boot-mvebu 40/59] tools: kwbimage: Print image data offset when printing kwbimage header

2023-02-21 Thread Pali Rohár
For all images except SATA is data offset in bytes. For SATA it is in LBA format (number of sectors). This is how Marvell BootROM interprets it. Signed-off-by: Pali Rohár --- tools/kwbimage.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index

[PATCH RFC u-boot-mvebu 31/59] tools: kwbimage: Fix dumping register set / DATA commands

2023-02-21 Thread Pali Rohár
1' option") Signed-off-by: Pali Rohár --- tools/kwbimage.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 67b45503e466..1719b0415da1 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -2148,6 +

[PATCH RFC u-boot-mvebu 51/59] arm: mvebu: Add support for generating PEX kwbimage

2023-02-21 Thread Pali Rohár
CONFIG_SPL_BOOTROM_SUPPORT option) and BootROM then start executing U-Boot proper. Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/Kconfig | 4 arch/arm/mach-mvebu/Makefile | 3 +++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig

[PATCH RFC u-boot-mvebu 38/59] tools: kwbimage: Add support for dumping NAND_BLKSZ for v0 images

2023-02-21 Thread Pali Rohár
: f76ae2571fe0 ("tools: kwbimage: Add support for dumping extended and binary v0 headers") Signed-off-by: Pali Rohár --- tools/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 0c3b40d075e9..eb99ac944d24 100644 -

[PATCH RFC u-boot-mvebu 36/59] tools: kwbimage: Fix endianity when printing kwbimage header

2023-02-21 Thread Pali Rohár
All fields in kwbimage header are in little endian format. Signed-off-by: Pali Rohár --- tools/kwbimage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 1128c934dda9..97be3bed79cb 100644 --- a/tools/kwbimage.c +++ b/tools

[PATCH RFC u-boot-mvebu 16/59] tools: kwboot: Validate optional kwbimage v1 headers

2023-02-21 Thread Pali Rohár
Before starting parsing of kwbimage, first validate that all optional v1 headers and correct. This prevents kwboot crashes on invalid input. Signed-off-by: Pali Rohár --- tools/kwboot.c | 8 1 file changed, 8 insertions(+) diff --git a/tools/kwboot.c b/tools/kwboot.c index

[PATCH RFC u-boot-mvebu 48/59] tools: mkimage: Do not try to open datafile when it is skipped

2023-02-21 Thread Pali Rohár
When mkimage was instructed to skip datafile via option -s then do not try to validate or open datafile as it does not have to exist or to be specified via -d option. This change allows to use -s option for skipping datafile when -d option for datafile was not specified. Signed-off-by: Pali

[PATCH RFC u-boot-mvebu 03/59] arm: mvebu: spl: Fix parsing SDIO kwbimage

2023-02-21 Thread Pali Rohár
BootROM, it is needed to interpret srcaddr in bytes. This change fixes booting of U-Boot proper from SPL code stored in SDIO image. Fixes: 2226ca173486 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header") Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu

[PATCH RFC u-boot-mvebu 15/59] tools: kwboot: Fix parsing UART image without data checksum

2023-02-21 Thread Pali Rohár
) and for compatibility with the rest of the code manually insert data checksum into the in-memory image after the executable code, without overwriting it. This should allow to boot UART images generated by Marvell tools. Signed-off-by: Pali Rohár --- tools/kwboot.c | 15 +-- 1 file

[PATCH RFC u-boot-mvebu 10/59] arm: mvebu: spl: Load proper U-Boot from selected eMMC boot partition

2023-02-21 Thread Pali Rohár
roper binary in SPL code based on kwbimage header") Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/Kconfig | 1 + arch/arm/mach-mvebu/spl.c | 8 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index 59

[PATCH RFC u-boot-mvebu 50/59] arm: mvebu: Add support for generating NAND kwbimage

2023-02-21 Thread Pali Rohár
generating final kwbimage. CONFIG_MVEBU_SPL_NAND_BADBLK_LOCATION is a new mvebu specific Kconfig option which is set into kwbimage NAND_BADBLK_LOCATION header field. Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/Kconfig | 13 + arch/arm/mach-mvebu/Makefile| 10

[PATCH RFC u-boot-mvebu 25/59] cmd: mvebu/bubt: Do not modify image in A8K check_image_header()

2023-02-21 Thread Pali Rohár
Change checksum verification code so it does require to modify image. Signed-off-by: Pali Rohár --- cmd/mvebu/bubt.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index 820d342ae100..1b08ca9298c2 100644 --- a/cmd/mvebu/bubt.c +++ b

[PATCH RFC u-boot-mvebu 37/59] tools: kwbimage: Reject mkimage -F option

2023-02-21 Thread Pali Rohár
mkimage -F option (re-sign existing FIT image) signaled by fflag is not supported by kwbimage. So mark its usage as invalid parameter. Signed-off-by: Pali Rohár --- tools/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index

[PATCH RFC u-boot-mvebu 42/59] tools: kwbimage: Rename imagesz to dataoff

2023-02-21 Thread Pali Rohár
Variable imagesz in functions image_create_v0(), image_create_v1() and kwbimage_set_header() stores offset to data from the beginning of the main header. So it is not image size. Signed-off-by: Pali Rohár --- tools/kwbimage.c | 20 ++-- 1 file changed, 10 insertions(+), 10

[PATCH RFC u-boot-mvebu 05/59] tools: kwbimage: Fix generating, verifying and extracting SATA kwbimage

2023-02-21 Thread Pali Rohár
ksum of v1 images") Fixes: aa6943ca3122 ("kwbimage: Add support for extracting images via dumpimage tool") Signed-off-by: Pali Rohár --- tools/kwbimage.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c

[PATCH RFC u-boot-mvebu 11/59] spl: mmc: Allow to disable SYS_MMCSD_FS_BOOT_PARTITION

2023-02-21 Thread Pali Rohár
limitations. Signed-off-by: Pali Rohár --- common/spl/Kconfig | 9 + common/spl/spl_mmc.c | 12 +++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index d774c930a80b..fdee0bd06936 100644 --- a/common/spl/Kconfig +++ b

[PATCH RFC u-boot-mvebu 21/59] cmd: mvebu/bubt: Add support for writing image to SATA disk

2023-02-21 Thread Pali Rohár
6828311A-BA55-42A4-BCDE-A89BB5EDECAE (Marvell Armada 3700 Boot partition). Signed-off-by: Pali Rohár --- cmd/mvebu/Kconfig | 12 + cmd/mvebu/bubt.c | 109 - doc/mvebu/cmd/bubt.txt | 2 +- 3 files changed, 121 insertions(+), 2 deletions

[PATCH RFC u-boot-mvebu 27/59] cmd: mvebu/bubt: Set correct default image name for 32-bit Armada SoCs

2023-02-21 Thread Pali Rohár
32-bit Armada SoCs uses u-boot binary packed in kwbimage format. Name of the image is in CONFIG_BUILD_TARGET option. So use it as a default option in Kconfig. Signed-off-by: Pali Rohár --- cmd/mvebu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/mvebu/Kconfig b/cmd/mvebu

[PATCH RFC u-boot-mvebu 33/59] tools: kwbimage: Fix dumping NAND_BADBLK_LOCATION

2023-02-21 Thread Pali Rohár
images there is always nandbadblklocation field. Fixes: 1a8e6b63e24f ("tools: kwbimage: Dump kwbimage config file on '-p -1' option") Signed-off-by: Pali Rohár --- tools/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kwbimage.c b/to

[PATCH RFC u-boot-mvebu 35/59] tools: kwbimage: Fix generating of kwbimage v0 header checksum

2023-02-21 Thread Pali Rohár
80 ("tools: kwbimage: Properly set srcaddr in kwbimage v0") Signed-off-by: Pali Rohár --- tools/kwbimage.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index b6deb978f611..1128c934dda9 100644 --- a/tools/kwbimage.c +++ b/tools/k

[PATCH RFC u-boot-mvebu 46/59] tools: kwbimage: Add support for XIP SPI/NOR images

2023-02-21 Thread Pali Rohár
(used for parallel NOR) at 0xD800-0xDFFF. Add support for generating XIP kwbimages by mkimage -x flag and mark xflag as valid option in kwbimage.c. Signed-off-by: Pali Rohár --- tools/kwbimage.c | 96 1 file changed, 89 insertions(+), 7

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-21 Thread Pali Rohár
On Tuesday 21 February 2023 15:06:16 Tony Dinh wrote: > Hi Pali, > > On Tue, Feb 21, 2023 at 12:22 PM Pali Rohár wrote: > > > > This patch series contains various improvements and fixes for existing > > logical errors. Boot phase was adjusted to match behavior o

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-21 Thread Pali Rohár
On Tuesday 21 February 2023 21:45:07 Tony Dinh wrote: > Hi Pali, > > On Tue, Feb 21, 2023 at 3:14 PM Pali Rohár wrote: > > > > On Tuesday 21 February 2023 15:06:16 Tony Dinh wrote: > > > Hi Pali, > > > > > > On Tue, Feb 21, 2023 at 12:22 PM Pali

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-22 Thread Pali Rohár
pinctrl-0 = <µsom_sdhci_pins > &clearfog_sdhci_cd_pins>; > > On Wed, 22 Feb 2023 at 07:58, Pali Rohár wrote: > > > > On Tuesday 21 February 2023 21:45:07 Tony Dinh wrote: > > > Hi Pali,

Re: [PATCH RFC u-boot-mvebu 20/59] cmd: mvebu/bubt: Add support for selecting eMMC HW partition

2023-02-22 Thread Pali Rohár
On Wednesday 22 February 2023 10:55:54 Stefan Roese wrote: > Hi Pali, > > On 2/21/23 21:18, Pali Rohár wrote: > > Support for burning into the correct eMMC HW boot partition was broken and > > removed in commit 96be2f072768 ("mvebu: bubt: Drop dead code"). Reimple

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-22 Thread Pali Rohár
On Wednesday 22 February 2023 21:20:58 Martin Rowe wrote: > Hi > > > Could you send a patch which adds appropriate defconfig file for SPI > > boot? So this configuration would be tested in U-Boot CI automatically. > > Will do. Does it need to be the same as the other defconfigs > otherwise? I sug

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-22 Thread Pali Rohár
On Wednesday 22 February 2023 14:16:36 Tony Dinh wrote: > Hi Pali, > > On Tue, Feb 21, 2023 at 11:58 PM Pali Rohár wrote: > > > > On Tuesday 21 February 2023 21:45:07 Tony Dinh wrote: > > > Hi Pali, > > > > > > On Tue, Feb 21, 2023 at 3:14 PM

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-22 Thread Pali Rohár
On Wednesday 22 February 2023 15:16:06 Tony Dinh wrote: > Hi Pali, > > On Wed, Feb 22, 2023 at 3:06 PM Pali Rohár wrote: > > > > On Wednesday 22 February 2023 14:16:36 Tony Dinh wrote: > > > Hi Pali, > > > > > > On Tue, Feb 21, 2023 at 11:58 PM

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-22 Thread Pali Rohár
On Wednesday 22 February 2023 16:17:32 Tony Dinh wrote: > Hi Pali, > > On Wed, Feb 22, 2023 at 3:40 PM Pali Rohár wrote: > > > > On Wednesday 22 February 2023 15:16:06 Tony Dinh wrote: > > > Hi Pali, > > > > > > On Wed, Feb 22, 2023 at 3:06 PM Pa

Re: [PATCH RFC u-boot-mvebu 20/59] cmd: mvebu/bubt: Add support for selecting eMMC HW partition

2023-02-22 Thread Pali Rohár
On Thursday 23 February 2023 07:17:26 Stefan Roese wrote: > Hi Pali, > > On 2/22/23 19:06, Pali Rohár wrote: > > On Wednesday 22 February 2023 10:55:54 Stefan Roese wrote: > > > Hi Pali, > > > > > > On 2/21/23 21:18, Pali Rohár wrote: > > >

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-22 Thread Pali Rohár
On Wednesday 22 February 2023 11:59:35 Martin Rowe wrote: > A388 Clearfog Base (SD card model): > - MMC from SD card works > - UART works > - SATA with new defconfig works > - SPI (if you select MVEBU_SPL_BOOT_DEVICE_SPI yourself) works > A388 Clearfog Pro (eMMC model): > - MMC from eMMC works, but

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-23 Thread Pali Rohár
On Thursday 23 February 2023 12:11:46 Martin Rowe wrote: > > > > Have you tried booting from eMMC boot partition or eMMC user data > > > > partition? Because all 3 options should work, but I'm not fully sure if > > > > BootROM choose partition from eMMC register or if tries all 3 in some > > > > or

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-24 Thread Pali Rohár
On Friday 24 February 2023 06:27:49 Martin Rowe wrote: > > > boot0 - zeroed > > > boot1 - u-boot (with local version 'boot1') > > > user - u-boot (with local version 'user') > > Can you check if boot_ack argument has some effect on the initial > > choice? Or if completely disabling boot partitions

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-24 Thread Pali Rohár
On Friday 24 February 2023 15:07:43 Martin Rowe wrote: > [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting > > This new clearfog_spi_defconfig file is copy of existing > clearfog_defconfig file and changed to instruct build system to > generate final kwbimage for SPI booting and to s

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-24 Thread Pali Rohár
On Saturday 25 February 2023 11:42:20 Martin Rowe wrote: > This new clearfog_spi_defconfig file is copy of existing > clearfog_defconfig file and changed to instruct build system to > generate final kwbimage for SPI booting and to store the > environment in SPI as well. > > Signed-off-by: Martin R

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-25 Thread Pali Rohár
On Saturday 25 February 2023 11:47:07 Martin Rowe wrote: > > While I haven't tested this patchset - I have tested SPI booting with > > v2022.01 after applying lots of patches. > > I found that the magic value reported by bootrom when booting from SPI will > > be 0x34 on clearfog. > > The current

Re: [PATCH] CI: Update test/nokia_rx51_test.sh to use prebuilt images

2023-02-25 Thread Pali Rohár
On Saturday 25 February 2023 13:23:33 Tom Rini wrote: > On Tue, Feb 21, 2023 at 11:22:29AM -0500, Tom Rini wrote: > > > From: Pali Rohár > > > > Now that the Dockerfile creates images which have the binaries we > > require included, have CI make symlinks fo

Re: [PATCH RFC u-boot-mvebu 57/59] arm: mvebu: Define env_sf_get_env_addr() also for Proper U-Boot

2023-02-25 Thread Pali Rohár
On Friday 24 February 2023 19:58:37 Tony Dinh wrote: > Hi Pali, > > On Tue, Feb 21, 2023 at 12:22 PM Pali Rohár wrote: > > > > Proper U-Boot moves SPI0 CS0 Flash mapping from 0xD400 to 0xF400 > > and change its size from 64 MB to 8 MB. Definitions are a

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-25 Thread Pali Rohár
On Saturday 25 February 2023 01:18:26 Martin Rowe wrote: > > When generating this patch, use git options -M, -C and > > --find-copies-harder. It will detect that you created this file as copy > > from other file and generate better diff. > > Will do. > > This thread has gotten quite long! I've: >

Re: [PATCH] CI: Update test/nokia_rx51_test.sh to use prebuilt images

2023-02-25 Thread Pali Rohár
On Saturday 25 February 2023 13:48:25 Tom Rini wrote: > On Sat, Feb 25, 2023 at 07:35:28PM +0100, Pali Rohár wrote: > > On Saturday 25 February 2023 13:23:33 Tom Rini wrote: > > > On Tue, Feb 21, 2023 at 11:22:29AM -0500, Tom Rini wrote: > > > > > > > From

Re: [PATCH] arm: mvebu: Enable NAND flash for Thecus N2350 board

2023-02-25 Thread Pali Rohár
On Friday 24 February 2023 19:23:23 Tony Dinh wrote: > Enable 512MB PXA3XX NAND flash when u-boot is running. > > Signed-off-by: Tony Dinh Acked-by: Pali Rohár > --- > > configs/n2350_defconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/config

Re: [PATCH 1/2] arm: mvebu: clearfog: Fix MMC detection

2023-02-25 Thread Pali Rohár
etter option for ignoring card-detect pin in u-boot, so: Acked-by: Pali Rohár > --- > configs/clearfog_defconfig | 3 +-- > configs/clearfog_sata_defconfig | 8 > 2 files changed, 5 insertions(+), 6 deletions(-) > > diff --git a/configs/clearfog_defconfig b/conf

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-25 Thread Pali Rohár
On Saturday 25 February 2023 11:51:28 Josua Mayer wrote: > While I haven't tested this patchset Are you going to test it? > I have tested SPI booting with > v2022.01 after applying lots of patches. > I found that the magic value reported by bootrom when booting from SPI will > be 0x34 on clearfog

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-25 Thread Pali Rohár
On Tuesday 21 February 2023 21:18:26 Pali Rohár wrote: > This patch series contains various improvements and fixes for existing > logical errors. Boot phase was adjusted to match behavior of Armada 385 > BootROM by inspecting and disassembling of BootROM binary dump itself. > Important

Re: [PATCH 1/2] arm: mvebu: clearfog: Fix MMC detection

2023-02-25 Thread Pali Rohár
On Saturday 25 February 2023 22:49:56 Pali Rohár wrote: > On Saturday 25 February 2023 11:42:19 Martin Rowe wrote: > > A388 Clearfog MMC is either SD Card or eMMC with different behaviour for > > both. Setting MMC_BROKEN_CD allows both to correctly detect MMC. > > > >

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-26 Thread Pali Rohár
On Sunday 26 February 2023 01:56:23 Martin Rowe wrote: > On Sat, 25 Feb 2023 at 21:16, Pali Rohár wrote: > > I think that the remaining part is to patch linux DTB file at runtime > > for emmc support. So if u-boot mmc device is of eMMC type then fixup > > linux dtb file

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-26 Thread Pali Rohár
On Saturday 25 February 2023 20:56:10 Tony Dinh wrote: > Hi Martin, > > On Sat, Feb 25, 2023 at 6:17 PM Martin Rowe wrote: > > > > > > > I'm not sure how to run proper timing tests on the process, but > > > > > stopwatch timing just between seeing "Trying to boot" and "U-Boot > > > > > 2023.04-rc

Re: [PATCH 1/2] arm: mvebu: clearfog: Fix MMC detection

2023-02-26 Thread Pali Rohár
On Sunday 26 February 2023 01:45:16 Martin Rowe wrote: > On Sat, 25 Feb 2023 at 22:14, Pali Rohár wrote: > > On Saturday 25 February 2023 22:49:56 Pali Rohár wrote: > > > On Saturday 25 February 2023 11:42:19 Martin Rowe wrote: > > > > A388 Clearfog MMC is either

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-27 Thread Pali Rohár
On Monday 27 February 2023 08:44:30 Stefan Roese wrote: > Hi Pali, > > On 2/25/23 23:00, Pali Rohár wrote: > > On Tuesday 21 February 2023 21:18:26 Pali Rohár wrote: > > > This patch series contains various improvements and fixes for existing > > > logical errors.

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-28 Thread Pali Rohár
On Mon, Feb 27, 2023 at 1:57 PM Tony Dinh wrote: > > > > > > > > Hi Stefan, > > > > > > > > On Sun, Feb 26, 2023 at 11:40 PM Stefan Roese wrote: > > > > > > > > > > Hi Tony, > > > > > > > > >

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-28 Thread Pali Rohár
On Tuesday 28 February 2023 08:03:47 Stefan Roese wrote: > Hi Martin, > Hi Pali, > > On 2/27/23 12:29, Martin Rowe wrote: > > On Mon, 27 Feb 2023 at 08:04, Pali Rohár > <mailto:p...@kernel.org>> wrote: > > > > On Monday 27 February 2023 08:44

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-28 Thread Pali Rohár
On Tuesday 28 February 2023 11:01:55 Stefan Roese wrote: > Hi Pali, > > On 2/28/23 10:54, Pali Rohár wrote: > > On Tuesday 28 February 2023 08:03:47 Stefan Roese wrote: > > > Hi Martin, > > > Hi Pali, > > > > > > On 2/27/23 12:29, Martin Row

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-28 Thread Pali Rohár
On Tuesday 28 February 2023 11:10:21 Pali Rohár wrote: > On Tuesday 28 February 2023 11:01:55 Stefan Roese wrote: > > Hi Pali, > > > > On 2/28/23 10:54, Pali Rohár wrote: > > > On Tuesday 28 February 2023 08:03:47 Stefan Roese wrote: > > > > Hi Martin, &g

Re: [PATCH] README.mpc85xx-sd-spi-boot: Suggest the NXP boot format github repo

2023-02-28 Thread Pali Rohár
On Friday 13 January 2023 09:10:18 Fabio Estevam wrote: > On Fri, Jan 13, 2023 at 4:53 AM Pali Rohár wrote: > > > > you can browse it online at: > > > -https://source.codeaurora.org/external/qoriq/qoriq-yocto-sdk/boot-format > > > +https://github.com/nxp-qoriq-y

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-28 Thread Pali Rohár
On Tuesday 28 February 2023 10:48:24 Pali Rohár wrote: > On Monday 27 February 2023 17:17:31 Tony Dinh wrote: > > Hi Pali, > > > > On Mon, Feb 27, 2023 at 4:42 PM Tony Dinh wrote: > > > > > > Hi Pali, > > > > > > On Mon, Feb 27,

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-28 Thread Pali Rohár
On Tuesday 28 February 2023 13:51:24 Tony Dinh wrote: > Hi Pali, > > On Tue, Feb 28, 2023 at 10:52 AM Pali Rohár wrote: > > > > On Tuesday 28 February 2023 10:48:24 Pali Rohár wrote: > > > On Monday 27 February 2023 17:17:31 Tony Dinh wrote: > > > > Hi

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-28 Thread Pali Rohár
On Tuesday 28 February 2023 11:16:03 Stefan Roese wrote: > Hi Pali, > > On 2/28/23 11:10, Pali Rohár wrote: > > On Tuesday 28 February 2023 11:01:55 Stefan Roese wrote: > > > Hi Pali, > > > > > > On 2/28/23 10:54, Pali Rohár wrote: > > > > O

Re: [PATCH v2] board: rockchip: Add rk3588 evb

2023-03-02 Thread Pali Rohár
Hello! I'm not rockchip maintainer, so please do not send me rockchip patches unless it is something for which I really should take an attention. On Thursday 02 March 2023 15:12:57 Kever Yang wrote: > rk3588 evb1 v10 is a evalution board from Rockchip, it is a dev board for > rockchip and also a r

Re: [PATCH] doc: Add documentation for CZ.NIC Turris routers

2023-03-04 Thread Pali Rohár
Ping again? Or silence means no care from CZ.NIC side? On Tuesday 31 January 2023 19:53:23 Pali Rohár wrote: > Gentle ping? Does CZ.NIC care about Turris routers and u-boot support? > > On Monday 07 November 2022 21:28:31 Pali Rohár wrote: > > Hello! Just beware of these tw

[PATCH RFC u-boot-mvebu 1/2] tools: kwboot: Fix MMC HW boot partitions info

2023-03-04 Thread Pali Rohár
Boot configuration stored in EXT_CSC register is completely ignored by BootROM. Fixes: fa03279e198d ("tools: kwboot: Add image type documentation") Signed-off-by: Pali Rohár --- tools/kwboot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/kwboot

  1   2   3   4   5   6   7   8   9   10   >