diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2016-08-17 15:12:40 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2016-09-28 14:14:23 -0700 |
commit | 2e01657c7435ad629731f2be3ca842773ff3b939 (patch) | |
tree | 4040d50f1dda3199c32d2ae21062424de882bd05 /recipes-images/images/files/colibri-t20 | |
parent | 4b914089531c92620d4a2f7b5e04c65c4b4d5753 (diff) |
images: mv all files into recipes-image/image
This requires to adjust the path to include files, e.g.:
-require recipes/images/trdx-image-fstype.inc
+require recipes-images/images/trdx-image-fstype.inc
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'recipes-images/images/files/colibri-t20')
20 files changed, 205 insertions, 0 deletions
diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-hsmmc.bct b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-hsmmc.bct Binary files differnew file mode 100644 index 0000000..bcef8b1 --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-hsmmc.bct diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-hsmmc.img.cfg b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-hsmmc.img.cfg new file mode 100644 index 0000000..6fc664d --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-hsmmc.img.cfg @@ -0,0 +1,22 @@ +# Copyright (C) 2015 Toradex, Inc. +# +# This software is provided 'as-is', without any express or implied +# warranty. In no event will the authors be held liable for any damages +# arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute it +# freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not +# claim that you wrote the original software. If you use this software +# in a product, an acknowledgment in the product documentation would be +# appreciated but is not required. +# 2. Altered source versions must be plainly marked as such, and must not be +# misrepresented as being the original software. +# 3. This notice may not be removed or altered from any source distribution. + +Version = 0x00020001; +Bctcopy = 1; +Bctfile = colibri_t20-256-hsmmc.bct; +BootLoader = u-boot-dtb-tegra.bin,0x00108000,0x00108000,Complete; diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v11-nand.bct b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v11-nand.bct Binary files differnew file mode 100644 index 0000000..7ddd5d8 --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v11-nand.bct diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v11-nand.img.cfg b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v11-nand.img.cfg new file mode 100644 index 0000000..3ce017e --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v11-nand.img.cfg @@ -0,0 +1,22 @@ +# Copyright (C) 2015 Toradex, Inc. +# +# This software is provided 'as-is', without any express or implied +# warranty. In no event will the authors be held liable for any damages +# arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute it +# freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not +# claim that you wrote the original software. If you use this software +# in a product, an acknowledgment in the product documentation would be +# appreciated but is not required. +# 2. Altered source versions must be plainly marked as such, and must not be +# misrepresented as being the original software. +# 3. This notice may not be removed or altered from any source distribution. + +Version = 0x00020001; +Bctcopy = 1; +Bctfile = colibri_t20-256-v11-nand.bct; +BootLoader = u-boot-dtb-tegra.bin,0x00108000,0x00108000,Complete; diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v12-nand.bct b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v12-nand.bct Binary files differnew file mode 100644 index 0000000..365877f --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v12-nand.bct diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v12-nand.img.cfg b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v12-nand.img.cfg new file mode 100644 index 0000000..41ed535 --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-256-v12-nand.img.cfg @@ -0,0 +1,22 @@ +# Copyright (C) 2015 Toradex, Inc. +# +# This software is provided 'as-is', without any express or implied +# warranty. In no event will the authors be held liable for any damages +# arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute it +# freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not +# claim that you wrote the original software. If you use this software +# in a product, an acknowledgment in the product documentation would be +# appreciated but is not required. +# 2. Altered source versions must be plainly marked as such, and must not be +# misrepresented as being the original software. +# 3. This notice may not be removed or altered from any source distribution. + +Version = 0x00020001; +Bctcopy = 1; +Bctfile = colibri_t20-256-v12-nand.bct; +BootLoader = u-boot-dtb-tegra.bin,0x00108000,0x00108000,Complete; diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-hsmmc.bct b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-hsmmc.bct Binary files differnew file mode 100644 index 0000000..09eb434 --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-hsmmc.bct diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-hsmmc.img.cfg b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-hsmmc.img.cfg new file mode 100644 index 0000000..60760fc --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-hsmmc.img.cfg @@ -0,0 +1,22 @@ +# Copyright (C) 2015 Toradex, Inc. +# +# This software is provided 'as-is', without any express or implied +# warranty. In no event will the authors be held liable for any damages +# arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute it +# freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not +# claim that you wrote the original software. If you use this software +# in a product, an acknowledgment in the product documentation would be +# appreciated but is not required. +# 2. Altered source versions must be plainly marked as such, and must not be +# misrepresented as being the original software. +# 3. This notice may not be removed or altered from any source distribution. + +Version = 0x00020001; +Bctcopy = 1; +Bctfile = colibri_t20-512-hsmmc.bct; +BootLoader = u-boot-dtb-tegra.bin,0x00108000,0x00108000,Complete; diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v11-nand.bct b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v11-nand.bct Binary files differnew file mode 100644 index 0000000..5d68994 --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v11-nand.bct diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v11-nand.img.cfg b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v11-nand.img.cfg new file mode 100644 index 0000000..992f47a --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v11-nand.img.cfg @@ -0,0 +1,22 @@ +# Copyright (C) 2015 Toradex, Inc. +# +# This software is provided 'as-is', without any express or implied +# warranty. In no event will the authors be held liable for any damages +# arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute it +# freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not +# claim that you wrote the original software. If you use this software +# in a product, an acknowledgment in the product documentation would be +# appreciated but is not required. +# 2. Altered source versions must be plainly marked as such, and must not be +# misrepresented as being the original software. +# 3. This notice may not be removed or altered from any source distribution. + +Version = 0x00020001; +Bctcopy = 1; +Bctfile = colibri_t20-512-v11-nand.bct; +BootLoader = u-boot-dtb-tegra.bin,0x00108000,0x00108000,Complete; diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v12-nand.bct b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v12-nand.bct Binary files differnew file mode 100644 index 0000000..f9db8fc --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v12-nand.bct diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v12-nand.img.cfg b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v12-nand.img.cfg new file mode 100644 index 0000000..cb96289 --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/colibri_t20-512-v12-nand.img.cfg @@ -0,0 +1,22 @@ +# Copyright (C) 2015 Toradex, Inc. +# +# This software is provided 'as-is', without any express or implied +# warranty. In no event will the authors be held liable for any damages +# arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute it +# freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not +# claim that you wrote the original software. If you use this software +# in a product, an acknowledgment in the product documentation would be +# appreciated but is not required. +# 2. Altered source versions must be plainly marked as such, and must not be +# misrepresented as being the original software. +# 3. This notice may not be removed or altered from any source distribution. + +Version = 0x00020001; +Bctcopy = 1; +Bctfile = colibri_t20-512-v12-nand.bct; +BootLoader = u-boot-dtb-tegra.bin,0x00108000,0x00108000,Complete; diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/flash_blk.scr b/recipes-images/images/files/colibri-t20/colibri-t20_bin/flash_blk.scr new file mode 100644 index 0000000..54c3d4d --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/flash_blk.scr @@ -0,0 +1,34 @@ +test -n ${interface} || setenv interface mmc + +test -n ${hw-version} || if test $lnxoffset = 0x1200000; then setenv hw-version v11; else setenv hw-version v12; fi + +setenv check_configblock 'setexpr toradex_oui_addr $loadaddr + 8; nand read $loadaddr 0x300000 0x64; crc32 -v $toradex_oui_addr 3 94305232' + +setenv migrate_1 'nand read $loadaddr 0x15C0000 0x40; crc32 -v $toradex_oui_addr 3 94305232 && nand erase.part cfgblock && nand write $loadaddr 0x300000 0x64' +setenv migrate_2 'nand read $loadaddr 0x1C80000 0x40; crc32 -v $toradex_oui_addr 3 94305232 && nand erase.part cfgblock && nand write $loadaddr 0x300000 0x64' +setenv migrate_3 'nand read $loadaddr 0x7380000 0x40; crc32 -v $toradex_oui_addr 3 94305232 && nand erase.part cfgblock && nand write $loadaddr 0x300000 0x64' +setenv migrate_4 'nand read $loadaddr 0x7900000 0x40; crc32 -v $toradex_oui_addr 3 94305232 && nand erase.part cfgblock && nand write $loadaddr 0x300000 0x64' +setenv migrate_configblock 'setexpr toradex_oui_addr $loadaddr + 8; run migrate_1; run migrate_2; run migrate_3; run migrate_4' + +# Migrate to UBI volume based boot schema +setenv prepare_kernel_fdt 'ubi create kernel 0x800000 static && ubi create dtb 0x20000 static' +setenv prepare_rootfs 'ubi create rootfs - dynamic' +setenv prepare_ubi 'ubi part ubi && if ubi check rootfs; then if ubi check kernel; then else ubi remove rootfs && run prepare_kernel_fdt && run prepare_rootfs; fi; else run prepare_kernel_fdt && run prepare_rootfs; fi' + +setenv update_configblock 'load ${interface} 0:1 ${loadaddr} ${board_name}/configblock.bin && nand erase.part cfgblock && nand write ${loadaddr} cfgblock ${filesize}' +setenv update_uboot 'fatload ${interface} 0:1 ${loadaddr} ${board_name}/${board_name}-${ram-size}-${hw-version}-nand.img && nand erase 0x0 0x300000 && nand write ${loadaddr} 0x0 ${filesize}' + +setenv update_kernel 'fatload ${interface} 0:1 ${loadaddr} ${board_name}/zImage && ubi write ${loadaddr} kernel ${filesize}' +#Writting data to invalidate current device tree +setenv update_fdt 'mw.w ${loadaddr} 0xFF 16 && ubi write ${loadaddr} dtb 16 && fatload ${interface} 0:1 ${loadaddr} ${board_name}/${soc}-colibri-${fdt_board}.dtb && +ubi write ${loadaddr} dtb ${filesize}' +setenv update_rootfs 'fatload ${interface} 0:1 ${loadaddr} ${board_name}/ubifs_${leb-size}.img && ubi write ${loadaddr} rootfs ${filesize}' + +setenv echo_v2.3b7 echo "successfully updated U-Boot," \${note} "power-cycle and enter \"run setupdate\; run migrate_v2.3b7\" to complete update" +setenv migrate_v2.3b7 'run migrate_configblock; nand erase.part ubi; run update_new' +setenv update_v2.3b7 'setenv ram-size 256; run update_uboot && setenv note "wait a sec," && run echo_v2.3b7 && md 0x1ffffffc 1 && setenv ram-size 512 && run update_uboot && setenv note && run echo_v2.3b7' + +setenv update_new 'run check_configblock || run migrate_configblock; run update_uboot; run prepare_ubi && run update_kernel && run update_rootfs && run update_fdt; reset' +setenv update 'if test -v $ver; then run update_new; else run update_v2.3b7; fi' + +echo 'enter "run update" to update the entire module' diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/flash_eth.scr b/recipes-images/images/files/colibri-t20/colibri-t20_bin/flash_eth.scr new file mode 100644 index 0000000..bc4360d --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/flash_eth.scr @@ -0,0 +1,33 @@ +test -n ${hw-version} || if test $lnxoffset = 0x1200000; then setenv hw-version v11; else setenv hw-version v12; fi + +setenv check_configblock 'setexpr toradex_oui_addr $loadaddr + 8; nand read $loadaddr 0x300000 0x64; crc32 -v $toradex_oui_addr 3 94305232' + +setenv migrate_1 'nand read $loadaddr 0x15C0000 0x40; crc32 -v $toradex_oui_addr 3 94305232 && nand erase.part cfgblock && nand write $loadaddr 0x300000 0x64' +setenv migrate_2 'nand read $loadaddr 0x1C80000 0x40; crc32 -v $toradex_oui_addr 3 94305232 && nand erase.part cfgblock && nand write $loadaddr 0x300000 0x64' +setenv migrate_3 'nand read $loadaddr 0x7380000 0x40; crc32 -v $toradex_oui_addr 3 94305232 && nand erase.part cfgblock && nand write $loadaddr 0x300000 0x64' +setenv migrate_4 'nand read $loadaddr 0x7900000 0x40; crc32 -v $toradex_oui_addr 3 94305232 && nand erase.part cfgblock && nand write $loadaddr 0x300000 0x64' +setenv migrate_configblock 'setexpr toradex_oui_addr $loadaddr + 8; run migrate_1; run migrate_2; run migrate_3; run migrate_4' + +# Migrate to UBI volume based boot schema +setenv prepare_kernel_fdt 'ubi create kernel 0x800000 static && ubi create dtb 0x20000 static' +setenv prepare_rootfs 'ubi create rootfs - dynamic' +setenv prepare_ubi 'ubi part ubi && if ubi check rootfs; then if ubi check kernel; then else ubi remove rootfs && run prepare_kernel_fdt && run prepare_rootfs; fi; else run prepare_kernel_fdt && run prepare_rootfs; fi' + +setenv update_configblock 'tftpboot ${loadaddr} ${board_name}/configblock.bin && nand erase.part cfgblock && nand write ${loadaddr} cfgblock ${filesize}' +setenv update_uboot 'tftpboot ${loadaddr} ${board_name}/${board_name}-${ram-size}-${hw-version}-nand.img && nand erase 0x0 0x300000 && nand write ${loadaddr} 0x0 ${filesize}' + +setenv update_rootfs 'tftpboot ${loadaddr} ${board_name}/ubifs_${leb-size}.img && run prepare_rootfs && ubi write ${loadaddr} rootfs ${filesize}' +setenv update_kernel 'tftpboot ${loadaddr} ${board_name}/zImage && ubi write ${loadaddr} kernel ${filesize}' +#Writting data to invalidate current device tree +setenv update_fdt 'mw.w ${loadaddr} 0xFF 16 && ubi write ${loadaddr} dtb 16 && tftpboot ${loadaddr} ${board_name}/${soc}-colibri-${fdt_board}.dtb && +ubi write ${loadaddr} dtb ${filesize}' +setenv update_rootfs 'tftpboot ${loadaddr} ${board_name}/ubifs_${leb-size}.img && ubi write ${loadaddr} rootfs ${filesize}' + +setenv echo_v2.3b7 echo "successfully updated U-Boot," \${note} "power-cycle and enter \"run setupdate\; run migrate_v2.3b7\" to complete update" +setenv migrate_v2.3b7 'run migrate_configblock; nand erase.part ubi; run update_new' +setenv update_v2.3b7 'setenv ram-size 256; run update_uboot && setenv note "wait a sec," && run echo_v2.3b7 && md 0x1ffffffc 1 && setenv ram-size 512 && run update_uboot && setenv note && run echo_v2.3b7' + +setenv update_new 'run check_configblock || run migrate_configblock; run update_uboot; run prepare_ubi && run update_kernel && run update_rootfs && run update_fdt; reset' +setenv update 'if test -v $ver; then run update_new; else run update_v2.3b7; fi' + +echo 'enter "run update" to update the entire module' diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/fwd_blk.scr b/recipes-images/images/files/colibri-t20/colibri-t20_bin/fwd_blk.scr new file mode 120000 index 0000000..5954646 --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/fwd_blk.scr @@ -0,0 +1 @@ +../../library/fwd_blk.scr
\ No newline at end of file diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/fwd_eth.scr b/recipes-images/images/files/colibri-t20/colibri-t20_bin/fwd_eth.scr new file mode 120000 index 0000000..decc214 --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/fwd_eth.scr @@ -0,0 +1 @@ +../../library/fwd_eth.scr
\ No newline at end of file diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/fwd_mmc.scr b/recipes-images/images/files/colibri-t20/colibri-t20_bin/fwd_mmc.scr new file mode 120000 index 0000000..3848cfa --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/fwd_mmc.scr @@ -0,0 +1 @@ +../../library/fwd_mmc.scr
\ No newline at end of file diff --git a/recipes-images/images/files/colibri-t20/colibri-t20_bin/mk-u-boot-scripts.sh b/recipes-images/images/files/colibri-t20/colibri-t20_bin/mk-u-boot-scripts.sh new file mode 120000 index 0000000..ce71dbd --- /dev/null +++ b/recipes-images/images/files/colibri-t20/colibri-t20_bin/mk-u-boot-scripts.sh @@ -0,0 +1 @@ +../../library/mk-u-boot-scripts.sh
\ No newline at end of file diff --git a/recipes-images/images/files/colibri-t20/tegra-uboot-flasher/genext3fs.sh b/recipes-images/images/files/colibri-t20/tegra-uboot-flasher/genext3fs.sh new file mode 120000 index 0000000..cc716db --- /dev/null +++ b/recipes-images/images/files/colibri-t20/tegra-uboot-flasher/genext3fs.sh @@ -0,0 +1 @@ +../../library/genext3fs.sh
\ No newline at end of file diff --git a/recipes-images/images/files/colibri-t20/update.sh b/recipes-images/images/files/colibri-t20/update.sh new file mode 120000 index 0000000..6ebea84 --- /dev/null +++ b/recipes-images/images/files/colibri-t20/update.sh @@ -0,0 +1 @@ +../library/tegra/update.sh
\ No newline at end of file |