OSD3358 custom board based upon Beaglebone Black rev-c with microSD card and eMMC. I boot from microSD card and stop uboot. I created a new variable, changed the environment ‘bootdelay=1’ and run saveenv.
U-Boot SPL 2019.04 (May 05 2020 - 23:45:56 -0500)
Trying to boot from MMC2
Loading Environment from EXT4... OK
U-Boot 2019.04 (May 05 2020 - 23:45:56 -0500)
CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Global external warm reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... OK
Board: BeagleBone Black
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net: eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 0 seconds
=> setenv bootdelay_orig ${bootdelay}
=> pri bootdelay_orig
bootdelay_orig=0
=> setenv bootdelay '1'
=> pri bootdelay
bootdelay=1
=> saveenv
Saving Environment to EXT4... File System is consistent
file found, deleting
update journal finished
File System is consistent
update journal finished
done
OK
=>
The SD and eMMC has the same partitioning, uboot, kernel and rootfs, but the uboot environments are different because of the above changes. I want to copy the saved environment file from the SD card to the eMMC.
I press reset, boot from SD, login to linux (4.19.106) and cd to the /boot folder. I have not tried copying the /boot/uboot.env file because the date of the file is ‘1970’ and the file size did not increase with the added variable.
root@arm:/boot# ls -a -l
total 39988
drwxr-xr-x 4 root root 4096 May 13 2020 .
drwxr-xr-x 21 root root 4096 Feb 11 03:36 ..
drwxr-xr-x 5 root root 4096 Jul 17 2020 dtbs
drwxr-xr-x 2 root root 4096 Feb 10 16:30 uboot
-rwxr-xr-x 1 root root 131072 Jan 1 1970 uboot.env
-rw-r--r-- 1 root root 980 Jul 17 2020 uEnv.txt
-rwxr-xr-x 1 root root 8069632 Jul 29 2020 vmlinuz-4.19.106-bone49
After booting from the SD, I can mount the eMMC and change to eMMC’s boot directory.
Is the /boot/uboot.env file the correct file to copy from /boot on the SD to /boot on the eMMC?
If it is the file I want then why didn’t the file size change?
Why is the date wrong?
In the future, I want to copy the production uboot.env to my embedded custom board during the commissioning process.
Thank you,