That’s to reset it back to what mine shipped with. The salient bits are:
– setenv bootcmd 'run get_images; run set_bootargs; booti $kernel_addr $ramfs_addr $fdt_addr'
– setenv get_images 'mmc dev 0; fatload mmc 0 $kernel_addr $image_name; fatload mmc 0 $fdt_addr $fdt_name; run get_ramfs'
– setenv get_ramfs 'if test "${ramfs_name}" != "-"; then setenv ramfs_addr 0x3000000; tftp $ramfs_addr $ramfs_name; else setenv ramfs_addr -;fi'
– setenv fdt_name 'armada-3720-community.dtb'
– setenv image_name 'Image'
– setenv root 'root=/dev/mmcblk0p2 rw'
You’d think that the way to get to defaults would be env default -a
, but that actually went and changed a bunch of other things on me that I wasn’t expecting: It reset my ethaddr
, changed the fdt_name
to fdt.dtb
, and my get_images
to tftp $kernel_addr $image_name; tftp $fdt_addr $fdt_name; run get_ramfs
… so the defaults that are cooked into u-boot aren’t actually what I had in my out-of-the-box configuration.
(My u-boot version is U-Boot 2015.01-armada-17.02.0-g48dc978 (May 18 2017 - 17:28:01)
)