summaryrefslogtreecommitdiff
path: root/recipes-images/images/files/colibri-imx6ull/update/colibri-imx6ull_bin/flash_eth.scr
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2018-12-16 10:37:46 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2019-03-06 13:44:33 +0100
commitc73402f49cc0dd0e76cdea25db14ffebf3452104 (patch)
treec3ed70080b0d02e364a13940014df2cee31ad47f /recipes-images/images/files/colibri-imx6ull/update/colibri-imx6ull_bin/flash_eth.scr
parent4a9030893315b99967e83f06c815a5120101f44f (diff)
image-fstype: rework files installation
This adds a new recipe tdx-updater which provides the files needed by tdx-image-fstype.inc rather than copying them in a non OE way in tdx-image-fstype.inc. This required to restructure the layout in files. An additional update directory is inserted. Also in each of the overrides directories a symlink to library is created. This now allows to build legacy update images with a custom machine configuration if one adds the relevant machine override, e.g. for a machine targeting a colibri-imx6 module: MACHINEOVERRIDES .= ":colibri-imx6" Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-images/images/files/colibri-imx6ull/update/colibri-imx6ull_bin/flash_eth.scr')
-rw-r--r--recipes-images/images/files/colibri-imx6ull/update/colibri-imx6ull_bin/flash_eth.scr15
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-images/images/files/colibri-imx6ull/update/colibri-imx6ull_bin/flash_eth.scr b/recipes-images/images/files/colibri-imx6ull/update/colibri-imx6ull_bin/flash_eth.scr
new file mode 100644
index 0000000..c65c1d3
--- /dev/null
+++ b/recipes-images/images/files/colibri-imx6ull/update/colibri-imx6ull_bin/flash_eth.scr
@@ -0,0 +1,15 @@
+setenv create_bcb 'nand erase.part mx6ull-bcb && writebcb 80000 200000'
+setenv recreate_bcb 'nand read ${fdt_addr_r} 0x800 0x800 && run create_bcb && nand write ${fdt_addr_r} 0x800 0x800'
+
+setenv prepare_kernel_fdt 'ubi create kernel 0x800000 static && ubi create dtb 0x20000 static'
+setenv prepare_rootfs 'ubi create rootfs 0 dynamic'
+setenv prepare_ubi 'ubi part ubi && if ubi check rootfs; then else run prepare_kernel_fdt && && run prepare_rootfs; fi'
+
+setenv update_uboot 'tftpboot ${fdt_addr_r} ${board_name}/u-boot-nand.imx && nand erase.part u-boot1 && nand write ${fdt_addr_r} u-boot1 ${filesize} && nand erase.part u-boot2 && nand write ${fdt_addr_r} u-boot2 ${filesize}'
+setenv update_kernel 'tftpboot ${fdt_addr_r} ${board_name}/zImage && ubi write ${fdt_addr_r} kernel ${filesize}'
+setenv update_fdt 'tftpboot ${fdt_addr_r} ${board_name}/imx6ull-colibri${variant}-${fdt_board}.dtb && ubi write ${fdt_addr_r} dtb ${filesize}'
+setenv update_rootfs 'tftpboot ${fdt_addr_r} ${board_name}/ubifs.img && ubi write ${fdt_addr_r} rootfs ${filesize}'
+
+setenv update 'mtdparts default && run update_uboot && run prepare_ubi && run update_kernel && run update_fdt && run update_rootfs && reset'
+
+echo 'enter "run update" to update the entire module'