Skip to content

RFC arm: mvebu: Various fixes

Pali Rohár u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest59 patches 53 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/59tools: kwbimage: Fix generating, verifying and extracting SDIO kwbimagetools/kwbimage.c+0 -290 replies
2/59tools: kwboot: Fix parsing SDIO kwbimagetools/kwboot.c+0 -40 replies
3/59arm: mvebu: spl: Fix parsing SDIO kwbimagearch/arm/mach-mvebu/spl.c+0 -80 replies
4/59cmd: mvebu/bubt: Fix parsing SDIO kwbimagecmd/mvebu/bubt.c+0 -30 replies
5/59tools: kwbimage: Fix generating, verifying and extracting SATA kwbimagetools/kwbimage.c+7 -170 replies
6/59tools: kwboot: Fix parsing SATA kwbimagetools/kwboot.c+1 -40 replies
7/59arm: mvebu: spl: Fix parsing SATA kwbimagearch/arm/mach-mvebu/spl.c+2 -110 replies
8/59cmd: mvebu/bubt: Fix parsing SATA kwbimagecmd/mvebu/bubt.c+1 -70 replies
9/59arm: mvebu: spl: Remove checks for BOOT_DEVICE_MMC2 and BOOT_DEVICE_MMC2_2arch/arm/mach-mvebu/spl.c+1 -30 replies
10/59arm: mvebu: spl: Load proper U-Boot from selected eMMC boot partitionarch/arm/mach-mvebu/Kconfig arch/arm/mach-mvebu/spl.c+8 -10 replies
11/59spl: mmc: Allow to disable SYS_MMCSD_FS_BOOT_PARTITIONcommon/spl/Kconfig common/spl/spl_mmc.c+12 -90 replies
12/59arm: mvebu: spl: Fix support for loading U-Boot proper from SD cardarch/arm/mach-mvebu/Kconfig arch/arm/mach-mvebu/spl.c+32 -90 replies
13/59tools: kwboot: Add more documentation referencestools/kwboot.c+19 -00 replies
14/59tools: kwboot: Add image type documentationtools/kwboot.c+62 -00 replies
15/59tools: kwboot: Fix parsing UART image without data checksumtools/kwboot.c+13 -21 reply
16/59tools: kwboot: Validate optional kwbimage v1 headerstools/kwboot.c+8 -00 replies
17/59tools: kwboot: Add check that kwbimage contains DDR init codetools/kwboot.c+48 -00 replies
18/59tools: kwboot: Fix patching of SPI/NOR XIP imagestools/kwboot.c+2 -20 replies
19/59tools: kwboot: Show image type and error parsing reasonstools/kwboot.c+34 -51 reply
20/59cmd: mvebu/bubt: Add support for selecting eMMC HW partitioncmd/mvebu/bubt.c doc/mvebu/cmd/bubt.txt+63 -115 replies
21/59cmd: mvebu/bubt: Add support for writing image to SATA diskcmd/mvebu/Kconfig cmd/mvebu/bubt.c doc/mvebu/cmd/bubt.txt+121 -20 replies
22/59cmd: mvebu/bubt: Add support for reading image from the SATA disk partitioncmd/mvebu/bubt.c doc/mvebu/cmd/bubt.txt+38 -30 replies
23/59cmd: mvebu/bubt: Rename variable image_size to hdr_sizecmd/mvebu/bubt.c+5 -50 replies
24/59cmd: mvebu/bubt: Mark all local symbols as staticcmd/mvebu/bubt.c+4 -40 replies
25/59cmd: mvebu/bubt: Do not modify image in A8K check_image_header()cmd/mvebu/bubt.c+1 -50 replies
26/59cmd: mvebu/bubt: Check also A8K boot image checksumcmd/mvebu/bubt.c+11 -30 replies
27/59cmd: mvebu/bubt: Set correct default image name for 32-bit Armada SoCscmd/mvebu/Kconfig+1 -00 replies
28/59cmd: mvebu/bubt: Better guess default MVEBU_*_BOOT optioncmd/mvebu/Kconfig+4 -00 replies
29/59cmd: mvebu/bubt: Fix warnings: unused variable 'secure_mode' and 'fuse_read_u64' defined but not usedcmd/mvebu/bubt.c+5 -20 replies
30/59cmd: mvebu/bubt: Enable command by defaultcmd/mvebu/Kconfig+1 -00 replies
31/59tools: kwbimage: Fix dumping register set / DATA commandstools/kwbimage.c+11 -80 replies
32/59tools: kwbimage: Fix endianity when dumping NAND_PAGE_SIZEtools/kwbimage.c+1 -10 replies
33/59tools: kwbimage: Fix dumping NAND_BADBLK_LOCATIONtools/kwbimage.c+1 -10 replies
34/59tools: kwbimage: Fix dumping NAND_BLKSZtools/kwbimage.c+8 -20 replies
35/59tools: kwbimage: Fix generating of kwbimage v0 header checksumtools/kwbimage.c+3 -20 replies
36/59tools: kwbimage: Fix endianity when printing kwbimage headertools/kwbimage.c+3 -30 replies
37/59tools: kwbimage: Reject mkimage -F optiontools/kwbimage.c+1 -10 replies
38/59tools: kwbimage: Add support for dumping NAND_BLKSZ for v0 imagestools/kwbimage.c+1 -10 replies
39/59tools: kwbimage: Print binary image offset as sizetools/kwbimage.c+3 -30 replies
40/59tools: kwbimage: Print image data offset when printing kwbimage headertools/kwbimage.c+6 -00 replies
41/59tools: kwbimage: Simplify add_secure_header_v1()tools/kwbimage.c+5 -100 replies
42/59tools: kwbimage: Rename imagesz to dataofftools/kwbimage.c+10 -100 replies
43/59tools: kwbimage: Fix generating secure boot data image signaturetools/kwbimage.c+1 -10 replies
44/59tools: kwbimage: Fix invalid secure boot header signaturetools/kwbimage.c+14 -270 replies
45/59tools: mkimage: Do not fill legacy_img_hdr for non-legacy XIP imagestools/mkimage.c+3 -10 replies
46/59tools: kwbimage: Add support for XIP SPI/NOR imagestools/kwbimage.c+89 -70 replies
47/59tools: mkimage: Print human readable error when -d is not specifiedtools/mkimage.c+5 -00 replies
48/59tools: mkimage: Do not try to open datafile when it is skippedtools/mkimage.c+1 -10 replies
49/59tools: kwbimage: Add support for creating an image with no datatools/kwbimage.c+25 -30 replies
50/59arm: mvebu: Add support for generating NAND kwbimagearch/arm/mach-mvebu/Kconfig arch/arm/mach-mvebu/Makefile arch/arm/mach-mvebu/kwbimage.cfg.in +1 more+31 -10 replies
51/59arm: mvebu: Add support for generating PEX kwbimagearch/arm/mach-mvebu/Kconfig arch/arm/mach-mvebu/Makefile+7 -00 replies
52/59arm: mvebu: Fix description of MVEBU_SPL_BOOT_DEVICE_(SPI|MMC) optionsarch/arm/mach-mvebu/Kconfig+2 -20 replies
53/59arm: mvebu: db-88f6820-amc: Add defconfig for NAND bootingconfigs/db-88f6820-amc_nand_defconfig+5 -10 replies
54/59arm: mvebu: clearfog: Add defconfig for SATA bootingconfigs/clearfog_sata_defconfig+1 -10 replies
55/59arm: mvebu: Remove A39x relictsarch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.h arch/arm/mach-mvebu/serdes/a38x/sys_env_lib.c +1 more+8 -440 replies
56/59arm: mvebu: Fix comment about CPU_ATTR_BOOTROM mappingarch/arm/mach-mvebu/cpu.c+1 -10 replies
57/59arm: mvebu: Define env_sf_get_env_addr() also for Proper U-Bootarch/arm/mach-mvebu/cpu.c arch/arm/mach-mvebu/include/mach/cpu.h arch/arm/mach-mvebu/spl.c+14 -133 replies
58/59arm: mvebu: Define SPL memory mapsarch/arm/mach-mvebu/include/mach/cpu.h+16 -00 replies
59/59doc/kwboot.1: Update example descriptiondoc/kwboot.1+2 -10 replies

Reviews trailers per patch

None of the 59 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTony DinhMartin RowePali Rohár
SeriesT-b T-b A-b
1/59
2/59
3/59
4/59
5/59
6/59
7/59
8/59
9/59
10/59
11/59
12/59
13/59
14/59
15/59T-b
16/59
17/59
18/59
19/59T-b
20/59
21/59
22/59
23/59
24/59
25/59
26/59
27/59
28/59
29/59
30/59
31/59
32/59
33/59
34/59
35/59
36/59
37/59
38/59
39/59
40/59
41/59
42/59
43/59
44/59
45/59
46/59
47/59
48/59
49/59
50/59
51/59
52/59
53/59
54/59
55/59
56/59
57/59
58/59
59/59

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

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

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 information are included in documentation patch for kwboot. Most of the 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 and extracting SDIO
kwbimage
tools: kwboot: Fix parsing SDIO kwbimage
arm: mvebu: spl: Fix parsing SDIO kwbimage
cmd: mvebu/bubt: Fix parsing SDIO kwbimage
tools: kwbimage: Fix generating, verifying and extracting SATA
kwbimage
tools: kwboot: Fix parsing SATA kwbimage
arm: mvebu: spl: Fix parsing SATA kwbimage
cmd: mvebu/bubt: Fix parsing SATA kwbimage
arm: mvebu: spl: Remove checks for BOOT_DEVICE_MMC2 and

    BOOT_DEVICE_MMC2_2

arm: mvebu: spl: Load proper U-Boot from selected eMMC boot partition
spl: mmc: Allow to disable SYS_MMCSD_FS_BOOT_PARTITION
arm: mvebu: spl: Fix support for loading U-Boot proper from SD card
tools: kwboot: Add more documentation references
tools: kwboot: Add image type documentation
tools: kwboot: Fix parsing UART image without data checksum
tools: kwboot: Validate optional kwbimage v1 headers
tools: kwboot: Add check that kwbimage contains DDR init code
tools: kwboot: Fix patching of SPI/NOR XIP images
tools: kwboot: Show image type and error parsing reasons
cmd: mvebu/bubt: Add support for selecting eMMC HW partition
cmd: mvebu/bubt: Add support for writing image to SATA disk
cmd: mvebu/bubt: Add support for reading image from the SATA disk
partition
cmd: mvebu/bubt: Rename variable image_size to hdr_size
cmd: mvebu/bubt: Mark all local symbols as static
cmd: mvebu/bubt: Do not modify image in A8K check_image_header()
cmd: mvebu/bubt: Check also A8K boot image checksum
cmd: mvebu/bubt: Set correct default image name for 32-bit Armada SoCs
cmd: mvebu/bubt: Better guess default MVEBU_*_BOOT option
cmd: mvebu/bubt: Fix warnings: unused variable 'secure_mode' and
'fuse_read_u64' defined but not used
cmd: mvebu/bubt: Enable command by default
tools: kwbimage: Fix dumping register set / DATA commands
tools: kwbimage: Fix endianity when dumping NAND_PAGE_SIZE
tools: kwbimage: Fix dumping NAND_BADBLK_LOCATION
tools: kwbimage: Fix dumping NAND_BLKSZ
tools: kwbimage: Fix generating of kwbimage v0 header checksum
tools: kwbimage: Fix endianity when printing kwbimage header
tools: kwbimage: Reject mkimage -F option
tools: kwbimage: Add support for dumping NAND_BLKSZ for v0 images
tools: kwbimage: Print binary image offset as size
tools: kwbimage: Print image data offset when printing kwbimage header
tools: kwbimage: Simplify add_secure_header_v1()
tools: kwbimage: Rename imagesz to dataoff
tools: kwbimage: Fix generating secure boot data image signature
tools: kwbimage: Fix invalid secure boot header signature
tools: mkimage: Do not fill legacy_img_hdr for non-legacy XIP images
tools: kwbimage: Add support for XIP SPI/NOR images
tools: mkimage: Print human readable error when -d is not specified
tools: mkimage: Do not try to open datafile when it is skipped
tools: kwbimage: Add support for creating an image with no data
arm: mvebu: Add support for generating NAND kwbimage
arm: mvebu: Add support for generating PEX kwbimage
arm: mvebu: Fix description of MVEBU_SPL_BOOT_DEVICE_(SPI|MMC) options
arm: mvebu: db-88f6820-amc: Add defconfig for NAND booting
arm: mvebu: clearfog: Add defconfig for SATA booting
arm: mvebu: Remove A39x relicts
arm: mvebu: Fix comment about CPU_ATTR_BOOTROM mapping
arm: mvebu: Define env_sf_get_env_addr() also for Proper U-Boot
arm: mvebu: Define SPL memory maps
doc/kwboot.1: Update example description

 arch/arm/mach-mvebu/Kconfig                   |  23 +-
 arch/arm/mach-mvebu/Makefile                  |  13 +
 arch/arm/mach-mvebu/cpu.c                     |  11 +-
 arch/arm/mach-mvebu/include/mach/cpu.h        |  21 ++
 arch/arm/mach-mvebu/kwbimage.cfg.in           |   5 +
 .../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 --
 arch/arm/mach-mvebu/spl.c                     |  84 +++--
 cmd/mvebu/Kconfig                             |  18 ++
 cmd/mvebu/bubt.c                              | 253 ++++++++++++---
 common/spl/Kconfig                            |   9 +
 common/spl/spl_mmc.c                          |  12 +-
 ...rfog_defconfig => clearfog_sata_defconfig} |   2 +-
 ...efconfig => db-88f6820-amc_nand_defconfig} |   6 +-
 doc/kwboot.1                                  |   3 +-
 doc/mvebu/cmd/bubt.txt                        |  25 +-
 drivers/mtd/nand/raw/Kconfig                  |   4 +-
 tools/kwbimage.c                              | 297 +++++++++++-------
 tools/kwboot.c                                | 200 +++++++++++-
 tools/mkimage.c                               |  11 +-
 22 files changed, 768 insertions(+), 281 deletions(-)
 copy configs/{clearfog_defconfig => clearfog_sata_defconfig} (98%)
 copy configs/{db-88f6820-amc_defconfig => db-88f6820-amc_nand_defconfig} (92%)
Signature · 1 line
2.20.1