From 10460289cbbc1f2bc83284d2aa0d3369da8bd53e Mon Sep 17 00:00:00 2001 From: Serhii Voloshynov Date: Tue, 23 Jun 2020 14:35:15 +0300 Subject: add user data partition --- contrib/uboot-setenv-mtcdt.ttl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'contrib/uboot-setenv-mtcdt.ttl') diff --git a/contrib/uboot-setenv-mtcdt.ttl b/contrib/uboot-setenv-mtcdt.ttl index d67f635..2b5dc54 100644 --- a/contrib/uboot-setenv-mtcdt.ttl +++ b/contrib/uboot-setenv-mtcdt.ttl @@ -14,6 +14,7 @@ EKERN = 'nand erase.part kernel' ECONF = 'nand erase.part config' EOEM = 'nand erase.part oem' EROOT = 'nand erase.part rootfs' +EUSER = 'nand erase.part user' TBOOT = 'tftpb ${tftpaddr} ${bootstrap_file} && run erase_bootstrap && nand write.jffs2 ${fileaddr} bootstrap ${filesize}' TUBOOT = 'tftpb ${tftpaddr} ${uboot_file} && run erase_uboot && nand write.jffs2 ${fileaddr} u-boot ${filesize}' TUBOOTE1 = 'tftpb ${tftpaddr} ${uboot_env1_file} && run erase_uboot_env1 && nand write.jffs2 ${fileaddr} u-boot-env1 ${filesize}' @@ -21,7 +22,7 @@ TUBOOTE2 = 'tftpb ${tftpaddr} ${uboot_env2_file} && run erase_uboot_env2 && nand TKERN = 'tftpb ${tftpaddr} ${kernel_file} && run erase_kernel && nand write.jffs2 ${fileaddr} kernel ${filesize}' TCONF = 'tftpb ${tftpaddr} ${config_file} && run erase_config && nand write.jffs2 ${fileaddr} config ${filesize}' TOEM = 'tftpb ${tftpaddr} ${oem_file} && run erase_oem && nand write.jffs2 ${fileaddr} oem ${filesize}' -TROOT = 'tftpb ${tftpaddr} ${rootfs_file} && run erase_rootfs && nand write.jffs2 ${fileaddr} rootfs ${filesize}' +TROOT = 'tftpb ${tftpaddr} ${rootfs_file} && run erase_rootfs && run erase_user_data && nand write.jffs2 ${fileaddr} rootfs ${filesize}' KRB = 'run tftp_kernel && run tftp_rootfs && boot' RB = 'run tftp_rootfs && boot' @@ -51,7 +52,7 @@ sendln 'setenv ethact macb0' wait P sendln 'setenv mtdids nand0=nand0' wait P -sendln 'setenv mtdparts mtdparts=nand0:256k(bootstrap),512k(u-boot),640k(u-boot-env1),640k(u-boot-env2),6M(kernel),8M(config),8M(oem),-(rootfs)' +sendln 'setenv mtdparts mtdparts=nand0:256k(bootstrap),512k(u-boot),640k(u-boot-env1),640k(u-boot-env2),6M(kernel),8M(config),8M(oem),128M(rootfs),-(user)' wait P sendln 'setenv bootstrap_file oe_bootstrap_pmecc_padded.bin' wait P @@ -117,6 +118,8 @@ sendln 'setenv erase_oem ' 39 EOEM 39 wait P sendln 'setenv erase_rootfs ' 39 EROOT 39 wait P +sendln 'setenv erase_user_data ' 39 EUSER 39 +wait P sendln 'setenv tftp_bootstrap ' 39 TBOOT 39 wait P sendln 'setenv tftp_uboot ' 39 TUBOOT 39 -- cgit v1.2.3