Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ezynq
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
ezynq
Commits
5c73deff
Commit
5c73deff
authored
Mar 04, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging badblock case
parent
f9dbdd25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
elphel393_nand_spl.c
u-boot-tree/drivers/mtd/nand/elphel393_nand_spl.c
+3
-1
No files found.
u-boot-tree/drivers/mtd/nand/elphel393_nand_spl.c
View file @
5c73deff
...
@@ -28,11 +28,13 @@ static int is_badblock(struct mtd_info *mtd, loff_t offs, int allowbbt)
...
@@ -28,11 +28,13 @@ static int is_badblock(struct mtd_info *mtd, loff_t offs, int allowbbt)
unsigned
long
data_width
=
4
;
unsigned
long
data_width
=
4
;
u8
*
p
;
u8
*
p
;
printf
(
" is_badblock(): offs=0x%08x block=%d page=%d
\n
"
,(
int
)
offs
,
block
,
page
);
debug
(
" is_badblock(): offs=0x%08x block=%d page=%d
\n
"
,(
int
)
offs
,
block
,
page
);
chip
->
cmdfunc
(
mtd
,
NAND_CMD_READOOB
,
0
,
page
);
chip
->
cmdfunc
(
mtd
,
NAND_CMD_READOOB
,
0
,
page
);
p
=
chip
->
oob_poi
;
p
=
chip
->
oob_poi
;
chip
->
read_buf
(
mtd
,
p
,
(
mtd
->
oobsize
-
data_width
));
chip
->
read_buf
(
mtd
,
p
,
(
mtd
->
oobsize
-
data_width
));
printf
(
" is_badblock(): offs=0x%08x block=0x%08x page=0x%08x chip->oob_poi[0]=0x%08x
\n
"
,(
u32
)
offs
,(
u32
)
block
,(
u32
)
page
,(
u32
)
chip
->
oob_poi
[
0
]);
return
chip
->
oob_poi
[
0
]
!=
0xff
;
return
chip
->
oob_poi
[
0
]
!=
0xff
;
}
}
...
...
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