Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
2a58817a
Commit
2a58817a
authored
Sep 27, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. UBI VID header offset to 512 (was 2048)
2. Increased size of rootfs on NAND to 320MB
parent
3174751e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
update_nand.php
src/update/update_nand.php
+3
-2
No files found.
src/update/update_nand.php
View file @
2a58817a
...
@@ -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
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment