Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
1b3efe41
Commit
1b3efe41
authored
Jul 27, 2013
by
Henrik Nordstrom
Browse files
usb-boot: Improve messages somewhat explainign that it wants u-boot SPL FEL
parent
6f5049ff
Changes
1
Show whitespace changes
Inline
Side-by-side
usb-boot
View file @
1b3efe41
#!/bin/sh -e
#!/bin/sh -e
top
=
`
dirname
$0
`
top
=
`
dirname
$0
`
if
[
$#
-lt
2
]
;
then
if
[
$#
-lt
2
]
;
then
echo
"Usage:
$0
board
u-boot.bin [boot.scr|-] [kernel script.bin [initramfs]]"
echo
"Usage:
$0
u-boot-spl.bin
u-boot.bin [boot.scr|-] [kernel script.bin [initramfs]]"
exit
1
exit
1
fi
fi
board
=
$1
;
shift
||
(
echo
"ERROR:
Board
must be specified"
;
exit
1
;
)
board
=
$1
;
shift
||
(
echo
"ERROR:
u-boot-spl.bin
must be specified"
;
exit
1
;
)
uboot
=
$1
;
shift
||
(
echo
"ERROR: u-boot.bin must be specified"
;
exit
1
;
)
uboot
=
$1
;
shift
||
(
echo
"ERROR: u-boot.bin must be specified"
;
exit
1
;
)
bootscr
=
$top
/felboot/ramboot.scr
bootscr
=
$top
/felboot/ramboot.scr
if
[
!
-f
$bootscr
]
;
then
if
[
!
-f
$bootscr
]
;
then
...
@@ -32,7 +32,11 @@ case $board in
...
@@ -32,7 +32,11 @@ case $board in
;;
;;
esac
esac
if
[
!
-f
$felboot
]
;
then
if
[
!
-f
$felboot
]
;
then
echo
"ERROR: Can't find fel-boot binary for
${
board
}
"
echo
"ERROR: Can't find SPL FEL binary
${
board
}
"
exit
1
fi
if
[
`
wc
-c
$felboot
|
cut
'-d '
-f1
`
-gt
15616
]
;
then
echo
"ERROR: SPL FEL binary too large. Must be the FEL version of SPL"
exit
1
exit
1
fi
fi
if
[
!
-f
$bootscr
]
;
then
if
[
!
-f
$bootscr
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment