This is my first time with the beaglebone black. I’m trying to install u-boot from scratch but, when I try to save environment variables using u-boot command line, I get the error “Saving Environment to FAT… ** Bad device specification mmc 0 **”.
Steps followed so far:
Build toolchain using crosstool-ng.
Checkout uboot v2023.04.
Select configuration for beaglebone black: make am335x_evm_defconfig
Make the configuration: make DEVICE_TREE=am335x-boneblack
Copy MLO and u-boot.img files into BOOT partition of sd card.
Log from serial line when u-boot is executed:
U-Boot SPL 2023.04 (Jan 29 2024 - 20:18:18 +0100) Trying to boot from MMC1 U-Boot 2023.04 (Jan 29 2024 - 20:18:18 +0100) CPU : AM335X-GP rev 2.1 Model: TI AM335x BeagleBone Black DRAM: 512 MiB Core: 160 devices, 18 uclasses, devicetree: separate WDT: Started wdt@44e35000 with servicing every 1000ms (60s timeout) NAND: 0 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*Loading Environment from FAT… ** Bad device specification mmc 0 *** not set. Validating first E-fuse MAC Net: eth2: ethernet@4a100000, eth3: usb_ether
Whenever I try to use saveenv command always get the ** Bad device specification mmc 0 ** error message.
I tested it with two different sd cards (both same type, MicroSDHC 32GB UHS-I U1 A1 Class 10, 16GB and 32GB respectively).
What am I missing? Do I need to enable specific options in u-boot config to support such SD cards?
However I still get the message “Saving Environment to EXT4… ** Bad device specification mmc 0 *". I also tried to list the mmc 0:1 partition using the command ls mmc 0:1 * and got the error " Bad device specification mmc 0 **”.
This is how i formated the sd card:
I also tried to change CONFIG_ENV_IS_IN_FAT and mmc device partition number with different values but same error message about bad device specification. Do not know how to continue to be honest.