public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mvebu: clearfog: add support for emmc boot
@ 2023-10-25  8:22 Josua Mayer
  2023-10-25  8:22 ` [PATCH v2 1/2] arm: mvebu: allow additional 4096 offset for bootable mmc image Josua Mayer
  2023-10-25  8:22 ` [PATCH v2 2/2] cmd: mvebu/bubt: move eMMC data-partition uboot from LBA-0 to 4096 Josua Mayer
  0 siblings, 2 replies; 7+ messages in thread
From: Josua Mayer @ 2023-10-25  8:22 UTC (permalink / raw)
  To: u-boot; +Cc: sr, sjg, kabel, Josua Mayer

On Armada 388 booting from eMMC is different to SD-Card in two major ways:

- Environment location
- Sectors scanned by Boot-ROM

This patchset first makes it possible to select offset 4096 for
eMMC partition. Here U-Boot can be placed to avoid conflict
conflict with MBR.

Secondly the bubt command is updated to use LBA-4096 for eMMC data
partition only, keeping previous values for SD and boot0/1 unchanged

Changes since v1:

- New defconfigs for environment location are skipped in this version,
  pending further research if it can be auto-detected.

- invert logic of if statement allowing it to compile both with,
  and without CONFIG_SUPPORT_EMMC_BOOT defined.
  Reported by Stefan Roese with turris_mox_defconfig, thanks!

Josua Mayer (2):
  arm: mvebu: allow additional 4096 offset for bootable mmc image
  cmd: mvebu/bubt: move eMMC data-partition uboot from LBA-0 to 4096

 arch/arm/mach-mvebu/spl.c |  5 +++--
 cmd/mvebu/bubt.c          | 11 +++++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

-- 
2.35.3


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-10-27  6:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25  8:22 [PATCH v2 0/2] mvebu: clearfog: add support for emmc boot Josua Mayer
2023-10-25  8:22 ` [PATCH v2 1/2] arm: mvebu: allow additional 4096 offset for bootable mmc image Josua Mayer
2023-10-26  7:10   ` Stefan Roese
2023-10-27  6:49     ` Stefan Roese
2023-10-25  8:22 ` [PATCH v2 2/2] cmd: mvebu/bubt: move eMMC data-partition uboot from LBA-0 to 4096 Josua Mayer
2023-10-26  7:10   ` Stefan Roese
2023-10-27  6:49     ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox