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
3d1e8a9d
Commit
3d1e8a9d
authored
21 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
TRAB auto-update: Base decision if we have to strip the image
header on image type as encoded in the header
parent
42d1f039
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
+3
-0
3 additions, 0 deletions
CHANGELOG
README
+2
-2
2 additions, 2 deletions
README
board/trab/auto_update.c
+6
-6
6 additions, 6 deletions
board/trab/auto_update.c
with
11 additions
and
8 deletions
CHANGELOG
+
3
−
0
View file @
3d1e8a9d
...
...
@@ -2,6 +2,9 @@
Changes for U-Boot 1.0.0:
======================================================================
* TRAB auto-update: Base decision if we have to strip the image
header on image type as encoded in the header
* Patches by Xianghua Xiao, 15 Oct 2003:
- Added Motorola CPU 8540/8560 support (cpu/85xx)
...
...
This diff is collapsed.
Click to expand it.
README
+
2
−
2
View file @
3d1e8a9d
...
...
@@ -2325,8 +2325,8 @@ defines the following image properties:
LynxOS, pSOS, QNX, RTEMS, ARTOS;
Currently supported: Linux, NetBSD, VxWorks, QNX, RTEMS, ARTOS, LynxOS).
* Target CPU Architecture (Provisions for Alpha, ARM, Intel x86,
IA64, MIPS,
MIP
S, PowerPC, IBM S390, SuperH, Sparc, Sparc 64 Bit;
Currently supported: PowerPC).
IA64, MIPS,
NIO
S, PowerPC, IBM S390, SuperH, Sparc, Sparc 64 Bit;
Currently supported:
ARM, Intel x86, MIPS, NIOS,
PowerPC).
* Compression Type (uncompressed, gzip, bzip2)
* Load Address
* Entry Point
...
...
This diff is collapsed.
Click to expand it.
board/trab/auto_update.c
+
6
−
6
View file @
3d1e8a9d
...
...
@@ -352,8 +352,12 @@ au_do_update(int idx, long sz)
debug
(
"flash_sect_erase(%lx, %lx);
\n
"
,
start
,
end
);
flash_sect_erase
(
start
,
end
);
wait_ms
(
100
);
/* strip the header - except for the kernel and app */
if
(
idx
==
IDX_FIRMWARE
||
idx
==
IDX_DISK
)
{
/* strip the header - except for the kernel and ramdisk */
if
(
hdr
->
ih_type
==
IH_TYPE_KERNEL
||
hdr
->
ih_type
==
IH_TYPE_RAMDISK
)
{
addr
=
(
char
*
)
hdr
;
off
=
sizeof
(
*
hdr
);
nbytes
=
sizeof
(
*
hdr
)
+
ntohl
(
hdr
->
ih_size
);
}
else
{
addr
=
(
char
*
)((
char
*
)
hdr
+
sizeof
(
*
hdr
));
#ifdef AU_UPDATE_TEST
/* copy it to where Linux goes */
...
...
@@ -362,10 +366,6 @@ au_do_update(int idx, long sz)
#endif
off
=
0
;
nbytes
=
ntohl
(
hdr
->
ih_size
);
}
else
{
addr
=
(
char
*
)
hdr
;
off
=
sizeof
(
*
hdr
);
nbytes
=
sizeof
(
*
hdr
)
+
ntohl
(
hdr
->
ih_size
);
}
/* copy the data from RAM to FLASH */
...
...
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