mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-28 16:48:18 +00:00

Convert boards to use text based env. This is the first stage of conversion, common inclusions should be converted next. Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com> # Toradex Apalis TK1 Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
9 lines
246 B
Bash
9 lines
246 B
Bash
uboot_hwpart=1
|
|
uboot_blk=0
|
|
|
|
set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff &&
|
|
setexpr blkcnt ${blkcnt} / 0x200
|
|
update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} &&
|
|
mmc write ${loadaddr} ${uboot_blk} ${blkcnt}
|
|
|
|
boot_script_dhcp=boot.scr
|