Is there a way to remove the uboot env partition on SPI flash?
I always want uboot to use the “default env” that is part of uboot.bin.
I want only uboot.bin on SPI flash and no separate uboot env partition on flash.
Sorry, since you didn’t mention which board, this is a more of a generic answer…
From u-boot, open “Environment”
.config - U-Boot 2022.04 Configuration
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌─────────────────────────────────────────────── U-Boot 2022.04 Configuration ───────────────────────────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus ---> (or empty submenus ----). Highlighted letters are hotkeys. │
│ Pressing <Y> includes, <N> excludes, <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. │
│ Legend: [*] built-in [ ] excluded <M> module < > module capable │
│ │
│ ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ *** Compiler: arm-linux-gnueabihf-gcc (Debian 10.2.1-6) 10.2.1 20210110 *** │ │
│ │ Architecture select (ARM architecture) ---> │ │
│ │ [*] Skip the calls to certain low level initialization functions │ │
│ │ [ ] Skip the calls to certain low level initialization functions │ │
│ │ [ ] Skip the calls to certain low level initialization functions │ │
│ │ [ ] Skip the call to lowlevel_init during early boot ONLY │ │
│ │ [ ] Skip the call to lowlevel_init during early boot ONLY │ │
│ │ ARM architecture ---> │ │
│ │ General setup ---> │ │
│ │ API ---> │ │
│ │ Boot options ---> │ │
│ │ Console ---> │ │
│ │ Logging ---> │ │
│ │ Init options ---> │ │
│ │ Security support ---> │ │
│ │ Update support ---> │ │
│ │ Blob list ---> │ │
│ │ SPL / TPL ---> │ │
│ │ [ ] FDT tools for simplefb support │ │
│ │ Command line interface ---> │ │
│ │ Partition Types ---> │ │
│ │ Device Tree Control ---> │ │
│ │ Environment ---> │ │
│ │ [*] Networking support ---> │ │
│ │ Device Drivers ---> │ │
│ │ File systems ---> │ │
│ │ Library routines ---> │ │
│ │ [ ] Unit tests ---- │ │
│ │ [ ] Unit tests in SPL │ │
│ │ Tools options ---> │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ <Select> < Exit > < Help > < Save > < Load > │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Then just select where you want the env files…
.config - U-Boot 2022.04 Configuration
> Environment ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌─────────────────────────────────────────────────────── Environment ────────────────────────────────────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus ---> (or empty submenus ----). Highlighted letters are hotkeys. │
│ Pressing <Y> includes, <N> excludes, <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. │
│ Legend: [*] built-in [ ] excluded <M> module < > module capable │
│ │
│ ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ () Environment file to use │ │
│ │ [*] Enable overwriting environment │ │
│ │ [ ] Environment is not stored │ │
│ │ [ ] Environment in EEPROM │ │
│ │ [ ] Environment is in a FAT filesystem │ │
│ │ [*] Environment is in a EXT4 filesystem │ │
│ │ [ ] Environment in flash memory │ │
│ │ [ ] Environment in an MMC device │ │
│ │ [ ] Environment in a NAND device │ │
│ │ [ ] Environment in a non-volatile RAM │ │
│ │ [ ] Environment is in OneNAND │ │
│ │ [ ] Environment is in remote memory space │ │
│ │ [ ] Environment is in SPI flash │ │
│ │ [ ] Enable redundant environment support │ │
│ │ (mmc) Name of the block device for the environment │ │
│ │ (0:1) Device and partition for where to store the environemt in EXT4 │ │
│ │ (/boot/uboot.env) Name of the EXT4 file to use for the environment │ │
│ │ (0x20000) Environment Size │ │
│ │ [*] Relocate gd->env_addr │ │
│ │ [ ] Create default environment from file │ │
│ │ [*] Add run-time information to the environment │ │
│ │ [ ] Amend environment by FDT properties │ │
│ │ [ ] Always append the environment with new data │ │
│ │ [ ] Permit write access only to listed variables │ │
│ │ [ ] Block forced environment operations │ │
│ │ [*] SPL Environment is not stored │ │
│ │ [*] Add a 'ver' environment variable with the U-Boot version │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ <Select> < Exit > < Help > < Save > < Load > │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Regards,
CONFIG_ENV_IS_NOWHERE