Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
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
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Broadcom
broadcom-utils
Commits
bdb87d40
Commit
bdb87d40
authored
Jun 1, 2020
by
Ronny Nilsson
Browse files
Options
Downloads
Patches
Plain Diff
brcm_fw_tool: typo fix
parent
398bbf5f
Branches
Branches containing commit
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
+17
-17
17 additions, 17 deletions
brcm_fw_tool/image-ubi.c
with
17 additions
and
17 deletions
brcm_fw_tool/image-ubi.c
+
17
−
17
View file @
bdb87d40
...
...
@@ -571,10 +571,10 @@ static struct metaInfo_t* meta_by_id(int id)
static
int
meta_find_all
(
void
)
{
struct
ubi_vol_info
volInfo
;
int
i
,
volId
,
res
,
me
d
aIdx
;
int
i
,
volId
,
res
,
me
t
aIdx
;
res
=
0
;
me
d
aIdx
=
0
;
me
t
aIdx
=
0
;
volId
=
devInfo
.
lowest_vol_id
-
1
;
for
(
i
=
0
;
i
<
devInfo
.
vol_count
&&
volId
<
UBI_MAX_VOLUMES
;
i
++
)
{
...
...
@@ -591,40 +591,40 @@ static int meta_find_all(void)
case
METAVOLID1
:
case
METAVOLID2
:
case
METAVOLID3
:
metaInfos
[
me
d
aIdx
].
found
=
1
;
metaInfos
[
me
d
aIdx
].
volInfo
=
volInfo
;
metaInfos
[
me
d
aIdx
].
nodePath
=
ubi_path_by_id
(
devInfo
.
dev_num
,
METAINVALID
);
metaInfos
[
me
d
aIdx
].
volPath
=
ubi_path_by_id
(
devInfo
.
dev_num
,
volInfo
.
vol_id
);
metaInfos
[
me
t
aIdx
].
found
=
1
;
metaInfos
[
me
t
aIdx
].
volInfo
=
volInfo
;
metaInfos
[
me
t
aIdx
].
nodePath
=
ubi_path_by_id
(
devInfo
.
dev_num
,
METAINVALID
);
metaInfos
[
me
t
aIdx
].
volPath
=
ubi_path_by_id
(
devInfo
.
dev_num
,
volInfo
.
vol_id
);
switch
(
META2ROOTFS
(
metaInfos
[
me
d
aIdx
].
volInfo
.
vol_id
))
{
switch
(
META2ROOTFS
(
metaInfos
[
me
t
aIdx
].
volInfo
.
vol_id
))
{
case
ROOTFS0
:
metaInfos
[
me
d
aIdx
].
flashBank
=
0
;
metaInfos
[
me
t
aIdx
].
flashBank
=
0
;
break
;
case
ROOTFS1
:
metaInfos
[
me
d
aIdx
].
flashBank
=
1
;
metaInfos
[
me
t
aIdx
].
flashBank
=
1
;
break
;
default:
metaInfos
[
me
d
aIdx
].
flashBank
=
-
1
;
metaInfos
[
me
t
aIdx
].
flashBank
=
-
1
;
break
;
}
if
(
meta_find_seqno
(
metaInfos
+
me
d
aIdx
))
{
if
(
meta_find_seqno
(
metaInfos
+
me
t
aIdx
))
{
if
(
verbose
)
{
printf
(
"Found %s in %s but it's corrupt.
\n
"
,
volInfo
.
name
,
metaInfos
[
me
d
aIdx
].
volPath
);
volInfo
.
name
,
metaInfos
[
me
t
aIdx
].
volPath
);
}
}
else
if
(
verbose
)
{
printf
(
"Found %s in %s, committed %d, seq %d, bank %d
\n
"
,
volInfo
.
name
,
metaInfos
[
me
d
aIdx
].
volPath
,
metaInfos
[
me
d
aIdx
].
committed
,
metaInfos
[
me
d
aIdx
].
seqNo
,
metaInfos
[
me
d
aIdx
].
flashBank
);
volInfo
.
name
,
metaInfos
[
me
t
aIdx
].
volPath
,
metaInfos
[
me
t
aIdx
].
committed
,
metaInfos
[
me
t
aIdx
].
seqNo
,
metaInfos
[
me
t
aIdx
].
flashBank
);
}
if
(
me
d
aIdx
<
MAX_METAS
)
me
d
aIdx
++
;
if
(
me
t
aIdx
<
MAX_METAS
)
me
t
aIdx
++
;
break
;
default:
...
...
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