public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: Martin Rowe <martin.p.rowe@gmail.com>,
	Tony Dinh <mibodhi@gmail.com>, Stefan Roese <sr@denx.de>,
	Chris Packham <judge.packham@gmail.com>,
	Baruch Siach <baruch@tkos.co.il>
Cc: u-boot@lists.denx.de
Subject: [PATCH u-boot-mvebu 0/7] arm: mvebu: Boot support for 4K Native disks
Date: Wed, 29 Mar 2023 21:25:51 +0200	[thread overview]
Message-ID: <20230329192558.12417-1-pali@kernel.org> (raw)

This patch series allows to build SATA kwbimage for disks which do not
have sector size 512 bytes long. For example 4K Native disks.

SATA kwbimage differs from other kwbimage types in that way, that offset
in its header is stored in SATA sectors units instead of byte units.
Therefore image generator needs to know sector size of the target SATA
disk. Currently both kwbimage and mkimage has hardcoded SATA sector size
to 512 bytes.

This patch series allows to specify custom SATA sector size via a new
config option CONFIG_MVEBU_SPL_SATA_BLKSZ. And add autodetection of the
sector size into kwboot to allow parsing such images.

Maximal theoretical sector size is 32 kB because ATA IDENTIFY command
returns sector size as 16-bit number and sector size should be power
of two.

Pali Rohár (7):
  arm: mvebu: spl: Do not hardcode SATA block size to 512
  cmd: mvebu/bubt: a38x: Do not hardcode SATA block size to 512
  tools: imagetool: Extend print_header() by params argument
  tools: kwbimage: Simplify align code
  tools: kwbimage: Add support for SATA images with non-512 byte block
    size
  tools: kwboot: Add support for parsing SATA images with non-512 block
    size
  arm: mvebu: spl: Allow to build SATA kwbimage for 4K Native disks

 arch/arm/mach-mvebu/Kconfig         |  10 ++
 arch/arm/mach-mvebu/Makefile        |   5 +
 arch/arm/mach-mvebu/kwbimage.cfg.in |   3 +
 arch/arm/mach-mvebu/spl.c           |  11 ++-
 cmd/mvebu/bubt.c                    |   7 +-
 tools/aisimage.c                    |   2 +-
 tools/atmelimage.c                  |   2 +-
 tools/default_image.c               |   7 +-
 tools/fit_common.c                  |   5 +
 tools/fit_common.h                  |   2 +
 tools/fit_image.c                   |   2 +-
 tools/gpimage.c                     |   2 +-
 tools/imagetool.c                   |   4 +-
 tools/imagetool.h                   |   2 +-
 tools/imx8image.c                   |   2 +-
 tools/imx8mimage.c                  |   2 +-
 tools/imximage.c                    |   2 +-
 tools/kwbimage.c                    | 144 ++++++++++++++++++----------
 tools/kwboot.c                      |  35 ++++++-
 tools/lpc32xximage.c                |   2 +-
 tools/mkimage.c                     |   2 +-
 tools/mtk_image.c                   |   2 +-
 tools/mxsimage.c                    |   2 +-
 tools/omapimage.c                   |   2 +-
 tools/pblimage.c                    |   2 +-
 tools/rkcommon.c                    |   2 +-
 tools/rkcommon.h                    |   2 +-
 tools/socfpgaimage.c                |   2 +-
 tools/stm32image.c                  |   2 +-
 tools/sunxi_egon.c                  |   2 +-
 tools/sunxi_toc0.c                  |   2 +-
 tools/ublimage.c                    |   2 +-
 tools/vybridimage.c                 |   2 +-
 tools/zynqimage.c                   |   2 +-
 tools/zynqmpimage.c                 |   2 +-
 tools/zynqmpimage.h                 |   2 +-
 36 files changed, 199 insertions(+), 84 deletions(-)

-- 
2.20.1


             reply	other threads:[~2023-03-29 19:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-29 19:25 Pali Rohár [this message]
2023-03-29 19:25 ` [PATCH u-boot-mvebu 1/7] arm: mvebu: spl: Do not hardcode SATA block size to 512 Pali Rohár
2023-03-29 19:25 ` [PATCH u-boot-mvebu 2/7] cmd: mvebu/bubt: a38x: " Pali Rohár
2023-04-11 12:33   ` Stefan Roese
2023-04-11 18:35     ` Pali Rohár
2023-04-11 18:35   ` [PATCH v2 u-boot-mvebu] " Pali Rohár
2023-03-29 19:25 ` [PATCH u-boot-mvebu 3/7] tools: imagetool: Extend print_header() by params argument Pali Rohár
2023-03-30  9:17   ` Simon Glass
2023-03-29 19:25 ` [PATCH u-boot-mvebu 4/7] tools: kwbimage: Simplify align code Pali Rohár
2023-03-29 19:25 ` [PATCH u-boot-mvebu 5/7] tools: kwbimage: Add support for SATA images with non-512 byte block size Pali Rohár
2023-03-29 19:25 ` [PATCH u-boot-mvebu 6/7] tools: kwboot: Add support for parsing SATA images with non-512 " Pali Rohár
2023-03-29 19:25 ` [PATCH u-boot-mvebu 7/7] arm: mvebu: spl: Allow to build SATA kwbimage for 4K Native disks Pali Rohár
2023-03-30 10:31   ` Martin Rowe
2023-03-30 20:26 ` [PATCH u-boot-mvebu 0/7] arm: mvebu: Boot support " Tony Dinh
2023-04-14  6:06 ` Stefan Roese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230329192558.12417-1-pali@kernel.org \
    --to=pali@kernel.org \
    --cc=baruch@tkos.co.il \
    --cc=judge.packham@gmail.com \
    --cc=martin.p.rowe@gmail.com \
    --cc=mibodhi@gmail.com \
    --cc=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox