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
f8883cb1
Commit
f8883cb1
authored
20 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Fix byteorder problem in usbboot and scsiboot commands.
parent
20a80418
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG
+2
-0
2 additions, 0 deletions
CHANGELOG
common/cmd_scsi.c
+2
-2
2 additions, 2 deletions
common/cmd_scsi.c
common/cmd_usb.c
+2
-2
2 additions, 2 deletions
common/cmd_usb.c
with
6 additions
and
4 deletions
CHANGELOG
+
2
−
0
View file @
f8883cb1
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
Changes for U-Boot 1.1.3:
Changes for U-Boot 1.1.3:
======================================================================
======================================================================
* Fix byteorder problem in usbboot and scsiboot commands.
* Patch by Cajus Hahn, 04 Feb 2005:
* Patch by Cajus Hahn, 04 Feb 2005:
- don't insist on leading '/' for filename in ext2load
- don't insist on leading '/' for filename in ext2load
- set default partition to useful value (1) in ext2load
- set default partition to useful value (1) in ext2load
...
...
This diff is collapsed.
Click to expand it.
common/cmd_scsi.c
+
2
−
2
View file @
f8883cb1
...
@@ -269,7 +269,7 @@ int do_scsiboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
...
@@ -269,7 +269,7 @@ int do_scsiboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
hdr
=
(
image_header_t
*
)
addr
;
hdr
=
(
image_header_t
*
)
addr
;
if
(
hdr
->
ih_magic
==
IH_MAGIC
)
{
if
(
ntohl
(
hdr
->
ih_magic
)
==
IH_MAGIC
)
{
printf
(
"
\n
** Bad Magic Number **
\n
"
);
printf
(
"
\n
** Bad Magic Number **
\n
"
);
return
1
;
return
1
;
}
}
...
@@ -283,7 +283,7 @@ int do_scsiboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
...
@@ -283,7 +283,7 @@ int do_scsiboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
}
print_image_hdr
(
hdr
);
print_image_hdr
(
hdr
);
cnt
=
(
hdr
->
ih_size
+
sizeof
(
image_header_t
));
cnt
=
(
ntohl
(
hdr
->
ih_size
)
+
sizeof
(
image_header_t
));
cnt
+=
info
.
blksz
-
1
;
cnt
+=
info
.
blksz
-
1
;
cnt
/=
info
.
blksz
;
cnt
/=
info
.
blksz
;
cnt
-=
1
;
cnt
-=
1
;
...
...
This diff is collapsed.
Click to expand it.
common/cmd_usb.c
+
2
−
2
View file @
f8883cb1
...
@@ -387,7 +387,7 @@ int do_usbboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
...
@@ -387,7 +387,7 @@ int do_usbboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
hdr
=
(
image_header_t
*
)
addr
;
hdr
=
(
image_header_t
*
)
addr
;
if
(
hdr
->
ih_magic
!=
IH_MAGIC
)
{
if
(
ntohl
(
hdr
->
ih_magic
)
!=
IH_MAGIC
)
{
printf
(
"
\n
** Bad Magic Number **
\n
"
);
printf
(
"
\n
** Bad Magic Number **
\n
"
);
return
1
;
return
1
;
}
}
...
@@ -402,7 +402,7 @@ int do_usbboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
...
@@ -402,7 +402,7 @@ int do_usbboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
print_image_hdr
(
hdr
);
print_image_hdr
(
hdr
);
cnt
=
(
hdr
->
ih_size
+
sizeof
(
image_header_t
));
cnt
=
(
ntohl
(
hdr
->
ih_size
)
+
sizeof
(
image_header_t
));
cnt
+=
info
.
blksz
-
1
;
cnt
+=
info
.
blksz
-
1
;
cnt
/=
info
.
blksz
;
cnt
/=
info
.
blksz
;
cnt
-=
1
;
cnt
-=
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