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
1cbe6974
Commit
1cbe6974
authored
Nov 30, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments
parent
5f4bb7de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
update_nand.php
src/update/update_nand.php
+22
-1
No files found.
src/update/update_nand.php
View file @
1cbe6974
<?php
/*
FILE NAME : update_software.php
DESCRIPTION: update software on nand flash
REVISION: 1.00
AUTHOR: Oleg Dzhimiev <oleg@elphel.com>
LICENSE: AGPL, see http://www.gnu.org/licenses/agpl.txt
Copyright (C) 2016 Elphel, Inc.
*/
# hardcoded
$UPDATE_DIR
=
"/var/volatile/html/update"
;
...
...
@@ -54,7 +62,20 @@ function verify($v){
$tmp
=
""
;
foreach
(
$UPDATE_LIST
as
$e
){
if
(
$e
[
0
]
==
0
){
$tmp
.=
"<li>${e[1]}</li>"
;
switch
(
$e
[
1
]){
case
"boot.bin"
:
case
"u-boot-dtb.img"
:
case
"devicetree.dtb"
:
$comment
=
"(rarely updated)"
;
break
;
case
"uImage"
:
case
"rootfs.ubi"
:
$comment
=
"(frequently updated)"
;
break
;
default
:
$comment
=
""
;
}
$tmp
.=
"<li><b>${e[1]}</b> <span style='font-size:0.9em;'>${comment}</span></li>"
;
}
}
backup_note
();
...
...
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