Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uboot-i9100
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
Model registry
Operate
Environments
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
onny
uboot-i9100
Commits
d9a405aa
Commit
d9a405aa
authored
21 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Use IH_TYPE_FILESYSTEM for TRAB "disk" images.
parent
147031ae
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
CHANGELOG
+2
-0
2 additions, 0 deletions
CHANGELOG
board/trab/auto_update.c
+13
-5
13 additions, 5 deletions
board/trab/auto_update.c
with
15 additions
and
5 deletions
CHANGELOG
+
2
−
0
View file @
d9a405aa
...
...
@@ -2,6 +2,8 @@
Changes for U-Boot 1.0.0:
======================================================================
* Use IH_TYPE_FILESYSTEM for TRAB "disk" images.
* Fix build problems under FreeBSD
* Add generic filesystem image type
...
...
This diff is collapsed.
Click to expand it.
board/trab/auto_update.c
+
13
−
5
View file @
d9a405aa
...
...
@@ -254,9 +254,11 @@ au_check_valid(int idx, long nbytes)
printf
(
"Image %s wrong type
\n
"
,
aufile
[
idx
]);
return
-
1
;
}
if
((
idx
==
IDX_DISK
||
idx
==
IDX_APP
)
&&
(
hdr
->
ih_type
!=
IH_TYPE_RAMDISK
))
{
if
((
idx
==
IDX_DISK
)
&&
(
hdr
->
ih_type
!=
IH_TYPE_FILESYSTEM
))
{
printf
(
"Image %s wrong type
\n
"
,
aufile
[
idx
]);
return
-
1
;
}
if
((
idx
==
IDX_APP
)
&&
(
hdr
->
ih_type
!=
IH_TYPE_RAMDISK
))
{
printf
(
"Image %s wrong type
\n
"
,
aufile
[
idx
]);
return
-
1
;
}
...
...
@@ -269,8 +271,14 @@ au_check_valid(int idx, long nbytes)
/* special case for prepare.img */
if
(
idx
==
IDX_PREPARE
)
return
0
;
/* check the size does not exceed space in flash */
if
((
ausize
[
idx
]
!=
0
)
&&
(
ausize
[
idx
]
<
ntohl
(
hdr
->
ih_size
)))
{
/* recycle checksum */
checksum
=
ntohl
(
hdr
->
ih_size
);
/* for kernel and app the image header must also fit into flash */
if
(
idx
!=
IDX_DISK
)
checksum
+=
sizeof
(
*
hdr
);
/* check the size does not exceed space in flash. HUSH scripts */
/* all have ausize[] set to 0 */
if
((
ausize
[
idx
]
!=
0
)
&&
(
ausize
[
idx
]
<
checksum
))
{
printf
(
"Image %s is bigger than FLASH
\n
"
,
aufile
[
idx
]);
return
-
1
;
}
...
...
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