summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorParesh Bhagat <[email protected]>2026-02-11 15:19:19 +0530
committerTom Rini <[email protected]>2026-03-16 10:36:34 -0600
commit948ccdc82f594c1a76ed97a2adee55b21097f03e (patch)
tree77f0822199b78cef312041c9e6568efebc8b381f /configs
parent841856ed9675b26ec517fdd00b5cc0aef8db508e (diff)
configs: Add fragment config for snagfactory tool
Introduce a new fragment configuration in u-boot to enable support for the snagfactory tool [1], used for factory flashing of boards. Snagfactory tool first recovers the board via USB DFU (peripheral boot), and then uses fastboot to flash given binaries/images to MMC or other on-board memory via USB. The fragment config can be used to generate boot binaries for board recovery. This fragment config needs to be added additionally, while building a53 images for USB DFU boot. The fragment config enables configurations to allow flashing via fastboot, manage MMC partitions and boot partitions, customize buffer size and memory usage for fastboot and also integrate OEM commands and UUU compatibility. It sets CONFIG_BOOTCOMMAND to start fastboot mode immediately on startup. It also sets BOOTDELAY to 0 to reduce snagfactory recovery time. Since BOOTCOMMAND and BOOTDELAY configs are being modified, these changes cannot be placed in existing DFU fragment config. Snagfactory used mtd support for flashing both SPI NAND and SPI NOR devices. The fragment config enables mtd in u-boot and also allows SPI flash to be treated as an MTD device. [1]: https://github.com/bootlin/snagboot Signed-off-by: Paresh Bhagat <[email protected]> Signed-off-by: Mahammed Sadik Shaik <[email protected]>
Diffstat (limited to 'configs')
-rw-r--r--configs/am6x_a53_snagfactory.config22
1 files changed, 22 insertions, 0 deletions
diff --git a/configs/am6x_a53_snagfactory.config b/configs/am6x_a53_snagfactory.config
new file mode 100644
index 00000000000..ed136407afb
--- /dev/null
+++ b/configs/am6x_a53_snagfactory.config
@@ -0,0 +1,22 @@
+CONFIG_BOOTCOMMAND="fastboot usb 0;"
+CONFIG_CMD_FASTBOOT=y
+CONFIG_FASTBOOT=y
+CONFIG_USB_FUNCTION_FASTBOOT=y
+CONFIG_FASTBOOT_FLASH=y
+CONFIG_FASTBOOT_UUU_SUPPORT=y
+CONFIG_FASTBOOT_FLASH_MMC=y
+CONFIG_FASTBOOT_OEM_RUN=y
+CONFIG_CMD_PART=y
+CONFIG_CMD_GPT=y
+CONFIG_FASTBOOT_BUF_ADDR=0x82000000
+CONFIG_FASTBOOT_BUF_SIZE=0x7000000
+CONFIG_FASTBOOT_FLASH_MMC_DEV=0
+CONFIG_RANDOM_UUID=y
+CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
+CONFIG_BOOTDELAY=0
+CONFIG_FASTBOOT_MMC_BOOT1_NAME="mmc0boot0"
+CONFIG_FASTBOOT_MMC_BOOT2_NAME="mmc0boot1"
+CONFIG_FASTBOOT_MMC_BOOT_SUPPORT=y
+CONFIG_SPI_FLASH_MTD=y
+CONFIG_CMD_MTD=y
+CONFIG_CMD_MTDPARTS=y