DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH 2/3] v7a: barebox: am335x-mlo: disable MTD
Date: Tue,  1 Apr 2025 14:15:55 +0200	[thread overview]
Message-ID: <20250401121556.787399-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250401121556.787399-1-a.fatoum@pengutronix.de>

We currently configure the MLO image to support SPI-NOR and NAND flash,
but we only generate SD/eMMC images for am335x platforms.

The MLO first stage always boots from the same boot medium it came from
and thus the MTD support is unused. barebox v2025.03.0 got big enough
that it breaks our config, thus lets disable MTD for now.

There are already fixes to get the size down queued for the next
release, so this commit can be reverted in future.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 .../platform-v7a/barebox-am335x-mlo.config    | 60 +------------------
 1 file changed, 1 insertion(+), 59 deletions(-)

diff --git a/configs/platform-v7a/barebox-am335x-mlo.config b/configs/platform-v7a/barebox-am335x-mlo.config
index c9cb8a914155..ad87ca07cf23 100644
--- a/configs/platform-v7a/barebox-am335x-mlo.config
+++ b/configs/platform-v7a/barebox-am335x-mlo.config
@@ -234,14 +234,12 @@ CONFIG_OFDEVICE=y
 CONFIG_OF_GPIO=y
 # CONFIG_OF_OVERLAY is not set
 # CONFIG_AIODEV is not set
-CONFIG_ARM_AMBA=y
 
 #
 # serial drivers
 #
 # CONFIG_SERIAL_DEV_BUS is not set
 # CONFIG_DRIVER_SERIAL_ARM_DCC is not set
-# CONFIG_SERIAL_AMBA_PL011 is not set
 CONFIG_DRIVER_SERIAL_NS16550=y
 # CONFIG_DRIVER_SERIAL_NS16550_OMAP_TTYS is not set
 # CONFIG_DRIVER_SERIAL_CADENCE is not set
@@ -260,59 +258,7 @@ CONFIG_DRIVER_SPI_OMAP3=y
 # end of SPI drivers
 
 # CONFIG_I2C is not set
-CONFIG_MTD=y
-# CONFIG_MTD_WRITE is not set
-# CONFIG_MTD_OOB_DEVICE is not set
-# CONFIG_MTD_RAW_DEVICE is not set
-# CONFIG_MTD_CONCAT is not set
-
-#
-# MTD debug options
-#
-# CONFIG_MTD_PEB_DEBUG is not set
-
-#
-# Self contained MTD devices
-#
-# CONFIG_MTD_DATAFLASH is not set
-CONFIG_MTD_M25P80=y
-# CONFIG_MTD_DOCG3 is not set
-# CONFIG_MTD_MTDRAM is not set
-# end of Self contained MTD devices
-
-# CONFIG_DRIVER_CFI is not set
-
-#
-# NAND
-#
-CONFIG_MTD_NAND_CORE=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_NAND=y
-# CONFIG_MTD_NAND_ECC_SOFT is not set
-# CONFIG_NAND_ECC_HW_SYNDROME is not set
-
-#
-# Raw/parallel NAND flash controllers
-#
-CONFIG_NAND_OMAP_GPMC=y
-# CONFIG_MTD_NAND_OMAP_ELM is not set
-# CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC is not set
-# CONFIG_MTD_NAND_DENALI is not set
-
-#
-# ECC engine support
-#
-CONFIG_MTD_NAND_ECC=y
-CONFIG_MTD_NAND_ECC_SW_HAMMING=y
-# CONFIG_MTD_NAND_ECC_SW_BCH is not set
-# end of ECC engine support
-# end of NAND
-
-CONFIG_MTD_SPI_NOR=y
-# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
-# CONFIG_SPI_CADENCE_QUADSPI is not set
-# CONFIG_SPI_SYNOPSYS_OCTALSPI_NOR is not set
-# CONFIG_MTD_UBI is not set
+# CONFIG_MTD is not set
 CONFIG_DISK=y
 # CONFIG_DISK_WRITE is not set
 
@@ -350,7 +296,6 @@ CONFIG_MCI=y
 # CONFIG_MCI_SUNXI_SMHC is not set
 # CONFIG_MCI_ROCKCHIP_DWCMSHC is not set
 CONFIG_MCI_OMAP_HSMMC=y
-# CONFIG_MCI_MMCI is not set
 # CONFIG_MCI_ARASAN is not set
 # CONFIG_MCI_AM654 is not set
 # CONFIG_MCI_SPI is not set
@@ -419,7 +364,6 @@ CONFIG_GPIOLIB=y
 # CONFIG_GPIO_74XX_MMIO is not set
 # CONFIG_GPIO_GENERIC_PLATFORM is not set
 CONFIG_GPIO_OMAP=y
-# CONFIG_GPIO_PL061 is not set
 # CONFIG_GPIO_DESIGNWARE is not set
 # CONFIG_GPIO_SIFIVE is not set
 # CONFIG_GPIO_LATCH is not set
@@ -545,7 +489,6 @@ CONFIG_FS_RAMFS=y
 CONFIG_FS_FAT=y
 # CONFIG_FS_FAT_WRITE is not set
 CONFIG_FS_FAT_LFN=y
-# CONFIG_FS_JFFS2 is not set
 # CONFIG_FS_BPKFS is not set
 # CONFIG_FS_UIMAGEFS is not set
 # CONFIG_FS_PSTORE is not set
@@ -591,7 +534,6 @@ CONFIG_XZ_DEC_ARM64=y
 # CONFIG_BASE64 is not set
 # CONFIG_LZO_DECOMPRESS is not set
 CONFIG_XYMODEM=y
-CONFIG_LIBFDT=y
 # CONFIG_ALLOW_PRNG_FALLBACK is not set
 # CONFIG_CRC_CCITT is not set
 # CONFIG_CRC8 is not set
-- 
2.39.5




  reply	other threads:[~2025-04-01 12:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-01 12:15 [DistroKit] [PATCH 1/3] v7a: barebox: version bump v2024.12.0 → v2025.03.0 Ahmad Fatoum
2025-04-01 12:15 ` Ahmad Fatoum [this message]
2025-04-01 12:15 ` [DistroKit] [PATCH 3/3] v8a: barebox: update to " Ahmad Fatoum
2025-04-01 18:47 ` [DistroKit] [PATCH 1/3] v7a: barebox: " Robert Schwebel

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=20250401121556.787399-2-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.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