Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
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
Florian Mayer
u-boot
Commits
f953d99f
Commit
f953d99f
authored
16 years ago
by
Kumar Gala
Committed by
Wolfgang Denk
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fdt: added the ability to set initrd start/end via chosen command
Signed-off-by:
Kumar Gala
<
galak@kernel.crashing.org
>
parent
ffa4bafa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/cmd_fdt.c
+17
-4
17 additions, 4 deletions
common/cmd_fdt.c
with
17 additions
and
4 deletions
common/cmd_fdt.c
+
17
−
4
View file @
f953d99f
...
...
@@ -417,9 +417,21 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
ft_board_setup
(
working_fdt
,
gd
->
bd
);
#endif
/* Create a chosen node */
else
if
(
argv
[
1
][
0
]
==
'c'
)
fdt_chosen
(
working_fdt
,
0
,
0
,
1
);
else
{
else
if
(
argv
[
1
][
0
]
==
'c'
)
{
unsigned
long
initrd_start
=
0
,
initrd_end
=
0
;
if
((
argc
!=
2
)
&&
(
argc
!=
4
))
{
printf
(
"Usage:
\n
%s
\n
"
,
cmdtp
->
usage
);
return
1
;
}
if
(
argc
==
4
)
{
initrd_start
=
simple_strtoul
(
argv
[
2
],
NULL
,
16
);
initrd_end
=
simple_strtoul
(
argv
[
3
],
NULL
,
16
);
}
fdt_chosen
(
working_fdt
,
initrd_start
,
initrd_end
,
1
);
}
else
{
/* Unrecognized command */
printf
(
"Usage:
\n
%s
\n
"
,
cmdtp
->
usage
);
return
1
;
...
...
@@ -798,7 +810,8 @@ U_BOOT_CMD(
"fdt rsvmem print - Show current mem reserves
\n
"
"fdt rsvmem add <addr> <size> - Add a mem reserve
\n
"
"fdt rsvmem delete <index> - Delete a mem reserves
\n
"
"fdt chosen - Add/update the /chosen branch in the tree
\n
"
"fdt chosen [<start> <end>] - Add/update the /chosen branch in the tree
\n
"
" <start>/<end> - initrd start/end addr
\n
"
"NOTE: If the path or property you are setting/printing has a '#' character
\n
"
" or spaces, you MUST escape it with a
\\
character or quote it with
\"
.
\n
"
);
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