Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
B
broadcom-utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Broadcom
broadcom-utils
Commits
e4d484cf
This project is archived. Its data is
read-only
.
Commit
e4d484cf
authored
May 18, 2020
by
Ronny Nilsson
Browse files
Options
Downloads
Patches
Plain Diff
brcm_fw_tool: comments
parent
c6498b82
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
brcm_fw_tool/image-ubi.c
+5
-5
5 additions, 5 deletions
brcm_fw_tool/image-ubi.c
with
5 additions
and
5 deletions
brcm_fw_tool/image-ubi.c
+
5
−
5
View file @
e4d484cf
...
@@ -75,7 +75,7 @@ struct metaInfo_t {
...
@@ -75,7 +75,7 @@ struct metaInfo_t {
char
*
nodePath
;
// UBI node character device path.
char
*
nodePath
;
// UBI node character device path.
char
*
volPath
;
// UBI volume character device path.
char
*
volPath
;
// UBI volume character device path.
int
seqNo
;
// Broadcom sequence number.
int
seqNo
;
// Broadcom sequence number.
int
committed
;
// True when volume is "commited".
int
committed
;
// True when volume is "commit
t
ed".
struct
ubi_vol_info
volInfo
;
struct
ubi_vol_info
volInfo
;
};
};
...
@@ -509,7 +509,7 @@ static int meta_find_seqno(struct metaInfo_t *metaInfo)
...
@@ -509,7 +509,7 @@ static int meta_find_seqno(struct metaInfo_t *metaInfo)
goto
out
;
goto
out
;
}
}
// Is the volume "commited"?
// Is the volume "commit
t
ed"?
if
(
parse_ubi
(
NULL
,
inBuf
,
0
,
1
,
metaInfo
->
volInfo
.
leb_size
,
-
1
,
ubiStr1
,
if
(
parse_ubi
(
NULL
,
inBuf
,
0
,
1
,
metaInfo
->
volInfo
.
leb_size
,
-
1
,
ubiStr1
,
outBuf
,
NULL
,
0
,
ubi_read_blk
,
NULL
,
NULL
,
NULL
,
inFd
)
==
1
&&
outBuf
,
NULL
,
0
,
ubi_read_blk
,
NULL
,
NULL
,
NULL
,
inFd
)
==
1
&&
*
committed
==
'1'
)
{
*
committed
==
'1'
)
{
...
@@ -797,8 +797,9 @@ static int meta_manage_vols(int readonly, int forcedBank)
...
@@ -797,8 +797,9 @@ static int meta_manage_vols(int readonly, int forcedBank)
forcedBank
=
METAVOLID0
;
forcedBank
=
METAVOLID0
;
}
}
/* Decide which old meta volume to erase and which to create fresh.
/* Decide with a state machine which old meta volume to
* Either of: "next subsequent" or "user forced". */
* erase and which to create fresh. Either of:
* "next subsequent" or "user forced". */
switch
(
forcedBank
>=
0
?
forcedBank
:
metaInfos
[
highMeta
].
volInfo
.
vol_id
)
{
switch
(
forcedBank
>=
0
?
forcedBank
:
metaInfos
[
highMeta
].
volInfo
.
vol_id
)
{
case
METAINVALID
:
case
METAINVALID
:
case
METAVOLID0
:
case
METAVOLID0
:
...
@@ -961,6 +962,5 @@ int gen_image_ubi(char *sequence_number)
...
@@ -961,6 +962,5 @@ int gen_image_ubi(char *sequence_number)
libubi
=
NULL
;
libubi
=
NULL
;
}
}
return
res
;
return
res
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment