Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MMC U-Boot Custodian Tree
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
U-Boot
Custodians
MMC U-Boot Custodian Tree
Commits
3c4eb088
Commit
3c4eb088
authored
19 years ago
by
Markus Klotzbücher
Committed by
Markus Klotzbcher
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Some minor fixes to environment in NAND code.
parent
9c575e51
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/cmd_nvedit.c
+6
-2
6 additions, 2 deletions
common/cmd_nvedit.c
common/env_nand.c
+1
-1
1 addition, 1 deletion
common/env_nand.c
with
7 additions
and
3 deletions
common/cmd_nvedit.c
+
6
−
2
View file @
3c4eb088
...
...
@@ -532,7 +532,9 @@ int getenv_r (char *name, char *buf, unsigned len)
#if defined(CFG_ENV_IS_IN_NVRAM) || defined(CFG_ENV_IS_IN_EEPROM) || \
((CONFIG_COMMANDS & (CFG_CMD_ENV|CFG_CMD_FLASH)) == \
(CFG_CMD_ENV|CFG_CMD_FLASH))
(CFG_CMD_ENV|CFG_CMD_FLASH)) || \
((CONFIG_COMMANDS & (CFG_CMD_ENV|CFG_CMD_NAND)) == \
(CFG_CMD_ENV|CFG_CMD_NAND))
int
do_saveenv
(
cmd_tbl_t
*
cmdtp
,
int
flag
,
int
argc
,
char
*
argv
[])
{
extern
char
*
env_name_spec
;
...
...
@@ -588,7 +590,9 @@ U_BOOT_CMD(
#if defined(CFG_ENV_IS_IN_NVRAM) || defined(CFG_ENV_IS_IN_EEPROM) || \
((CONFIG_COMMANDS & (CFG_CMD_ENV|CFG_CMD_FLASH)) == \
(CFG_CMD_ENV|CFG_CMD_FLASH))
(CFG_CMD_ENV|CFG_CMD_FLASH)) || \
((CONFIG_COMMANDS & (CFG_CMD_ENV|CFG_CMD_NAND)) == \
(CFG_CMD_ENV|CFG_CMD_NAND))
U_BOOT_CMD
(
saveenv
,
1
,
0
,
do_saveenv
,
"saveenv - save environment variables to persistent storage
\n
"
,
...
...
This diff is collapsed.
Click to expand it.
common/env_nand.c
+
1
−
1
View file @
3c4eb088
...
...
@@ -115,7 +115,7 @@ int saveenv(void)
int
total
,
ret
=
0
;
puts
(
"Erasing Nand..."
);
if
(
nand_erase
(
&
nand_info
[
0
],
CFG_
NEW
_OFFSET
,
CFG_ENV_SIZE
))
if
(
nand_erase
(
&
nand_info
[
0
],
CFG_
ENV
_OFFSET
,
CFG_ENV_SIZE
))
return
1
;
puts
(
"Writing to Nand... "
);
...
...
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
register
or
sign in
to comment