Commit 2a58817a authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

1. UBI VID header offset to 512 (was 2048)

2. Increased size of rootfs on NAND to 320MB
parent 3174751e
...@@ -45,7 +45,6 @@ $UPDATE_LIST = array( ...@@ -45,7 +45,6 @@ $UPDATE_LIST = array(
array(0,"uImage", "/dev/mtd3","0 128"), array(0,"uImage", "/dev/mtd3","0 128"),
array(1,"rootfs.tar.gz", "",""), array(1,"rootfs.tar.gz", "",""),
//array(0,"rootfs.ubi", "/dev/mtd4","0 2048","-s 2048 -O 2048"), //array(0,"rootfs.ubi", "/dev/mtd4","0 2048","-s 2048 -O 2048"),
//array(0,"rootfs.ubi", "/dev/mtd4","0 2560","-s 2048 -O 2048"),
array(0,"rootfs.ubi", "/dev/mtd4","0 2560","-s 512 -O 512"), array(0,"rootfs.ubi", "/dev/mtd4","0 2560","-s 512 -O 512"),
array(1,"rootfs.ubifs", "/dev/mtd4","/dev/ubi_ctrl -m 4","ubiupdatevol /dev/ubi0_0"), array(1,"rootfs.ubifs", "/dev/mtd4","/dev/ubi_ctrl -m 4","ubiupdatevol /dev/ubi0_0"),
); );
...@@ -171,7 +170,9 @@ function nandflash($list){ ...@@ -171,7 +170,9 @@ function nandflash($list){
exec("flash_unlock ${e[2]} >> $FLASH_LOG"); exec("flash_unlock ${e[2]} >> $FLASH_LOG");
$flash_erase_args = get_flash_erase_args($e[2],$e[3]); $flash_erase_args = get_flash_erase_args($e[2],$e[3]);
exec("flash_erase ${e[2]} $flash_erase_args >> $FLASH_LOG"); exec("flash_erase ${e[2]} $flash_erase_args >> $FLASH_LOG");
exec("nandwrite -n ${e[2]} -p $UPDATE_DIR/${e[1]} >> $FLASH_LOG"); // -n - write without ecc
//exec("nandwrite -n ${e[2]} -p $UPDATE_DIR/${e[1]} >> $FLASH_LOG");
exec("nandwrite ${e[2]} -p $UPDATE_DIR/${e[1]} >> $FLASH_LOG");
}else{ }else{
if (!is_dir($NAND_PATH)) { if (!is_dir($NAND_PATH)) {
exec("flash_unlock ${e[2]} >> $FLASH_LOG"); exec("flash_unlock ${e[2]} >> $FLASH_LOG");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment