Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
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
Service Desk
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
Jack Humbert
reform-boundary-uboot
Commits
38b99261
Commit
38b99261
authored
21 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Add zero-copy ramdisk support (requires corresponding kernel support!)
parent
4c3b21a5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG
+2
-0
2 additions, 0 deletions
CHANGELOG
README
+8
-0
8 additions, 0 deletions
README
common/cmd_bootm.c
+8
-0
8 additions, 0 deletions
common/cmd_bootm.c
with
18 additions
and
0 deletions
CHANGELOG
+
2
−
0
View file @
38b99261
...
...
@@ -2,6 +2,8 @@
Changes since U-Boot 0.3.1:
======================================================================
* Add zero-copy ramdisk support (requires corresponding kernel support!)
* Patch by Kyle Harris, 20 May 2003:
In preparation for an ixp port, rename cpu/xscale and arch-xscale
into cpu/pxa and arch-pxa.
...
...
This diff is collapsed.
Click to expand it.
README
+
8
−
0
View file @
38b99261
...
...
@@ -1988,6 +1988,14 @@ Some configuration options can be set using Environment Variables:
setenv initrd_high 00c00000
If you set initrd_high to 0xFFFFFFFF, this is an
indication to U-Boot that all addresses are legal
for the Linux kernel, including addresses in flash
memory. In this case U-Boot will NOT COPY the
ramdisk at all. This may be useful to reduce the
boot time on your system, but requires that this
feature is supported by your Linux kernel.
ipaddr - IP address; needed for tftpboot command
loadaddr - Default load address for commands like "bootp",
...
...
This diff is collapsed.
Click to expand it.
common/cmd_bootm.c
+
8
−
0
View file @
38b99261
...
...
@@ -374,6 +374,7 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
ulong
cmd_start
,
cmd_end
;
ulong
initrd_high
;
ulong
data
;
int
initrd_copy_to_ram
=
1
;
char
*
cmdline
;
char
*
s
;
bd_t
*
kbd
;
...
...
@@ -385,6 +386,8 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
* turning the "load high" feature off. This is intentional.
*/
initrd_high
=
simple_strtoul
(
s
,
NULL
,
16
);
if
(
initrd_high
==
~
0
)
initrd_copy_to_ram
=
0
;
}
else
{
/* not set, no restrictions to load high */
initrd_high
=
~
0
;
}
...
...
@@ -567,6 +570,10 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
}
if
(
data
)
{
if
(
!
initrd_copy_to_ram
)
{
/* zero-copy ramdisk support */
initrd_start
=
data
;
initrd_end
=
initrd_start
+
len
;
}
else
{
initrd_start
=
(
ulong
)
kbd
-
len
;
initrd_start
&=
~
(
4096
-
1
);
/* align on page */
...
...
@@ -621,6 +628,7 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
memmove
((
void
*
)
initrd_start
,
(
void
*
)
data
,
len
);
#endif
/* CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG */
printf
(
"OK
\n
"
);
}
}
else
{
initrd_start
=
0
;
initrd_end
=
0
;
...
...
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