diff options
author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-05-27 10:43:16 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-05-28 14:11:24 +0300 |
commit | d899f31b7fb5c857b159b46c52ce22b3c7b701f5 (patch) | |
tree | 3f307120e120671a7f7e81d04341f428124b1c9c /meta-toradex-extras/recipes/u-boot/u-boot-script-toradex | |
parent | bfbad49ac1d55ec3864ddff6d8c7b4b38fbaf907 (diff) | |
download | meta-boot2qt-d899f31b7fb5c857b159b46c52ce22b3c7b701f5.tar.gz |
toradex: add support for u-boot update on colibri vf
Include flash scripts to boot partition, which can update u-boot
to NAND. Remove kernel and dtb files from boot partition, as they
are read from second partition.
u-boot env changed to boot from MMC by default and kernel
messages removed from tty1.
apalis flash scripts updated to latest version from toradex and
to use both flash_mmc and flash_blk.
Change-Id: I1a58badafa01e2023b9ae058b833eb108c097594
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@theqtcompany.com>
Diffstat (limited to 'meta-toradex-extras/recipes/u-boot/u-boot-script-toradex')
5 files changed, 17 insertions, 2 deletions
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/flash_mmc.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/flash_mmc.scr deleted file mode 100644 index 5b7dc80..0000000 --- a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/flash_mmc.scr +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | setenv update_uboot 'fatload mmc ${drive}:1 ${loadaddr} u-boot.imx && setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200 && mmc dev 0 && mmc write ${loadaddr} 2 ${blkcnt}' | ||
2 | echo 'enter "run update_uboot" to update the uboot' | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_blk.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_blk.scr new file mode 100644 index 0000000..ee87e85 --- /dev/null +++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_blk.scr | |||
@@ -0,0 +1,6 @@ | |||
1 | test -n ${interface} || setenv interface mmc | ||
2 | test -n ${drive} || setenv drive 1 | ||
3 | |||
4 | setenv set_blkcnt 'setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200' | ||
5 | setenv update_uboot 'fatload ${interface} ${drive}:1 ${loadaddr} u-boot.imx && run set_blkcnt && mmc dev 0 0 && mmc write ${loadaddr} 2 ${blkcnt}' | ||
6 | echo 'enter "run update_uboot" to update the uboot' | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_mmc.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_mmc.scr new file mode 100644 index 0000000..207c7db --- /dev/null +++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_mmc.scr | |||
@@ -0,0 +1,6 @@ | |||
1 | #flash_mmc has been renamed to flash_blk, ensure compatibilty when updating from older versions | ||
2 | test -n ${interface} || setenv interface mmc | ||
3 | test -n ${drive} || setenv drive 1 | ||
4 | |||
5 | fatload ${interface} ${drive}:1 ${loadaddr} flash_blk.img | ||
6 | source ${loadaddr} | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr new file mode 100644 index 0000000..5e31380 --- /dev/null +++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr | |||
@@ -0,0 +1,2 @@ | |||
1 | setenv update_uboot 'fatload ${interface} 0:1 ${loadaddr} u-boot-nand.imx && nand erase.part u-boot && nand erase.part u-boot-env && nand write ${loadaddr} u-boot' | ||
2 | echo 'enter "run update_uboot" to update the uboot' | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_mmc.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_mmc.scr new file mode 100644 index 0000000..e0770a0 --- /dev/null +++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_mmc.scr | |||
@@ -0,0 +1,3 @@ | |||
1 | setenv interface mmc | ||
2 | fatload ${interface} 0:1 ${loadaddr} flash_blk.img | ||
3 | source ${loadaddr} | ||