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
6004127d
Commit
6004127d
authored
May 23, 2013
by
Henrik Nordstrom
Browse files
usb-boot: Handle variable arguments
parent
05cdc60e
Changes
3
Show whitespace changes
Inline
Side-by-side
bin/fel-boot-mele_a1000.bin
0 → 100755
View file @
6004127d
File added
felboot/main.c
View file @
6004127d
...
@@ -55,14 +55,14 @@ int sunxi_mmc_init(void)
...
@@ -55,14 +55,14 @@ int sunxi_mmc_init(void)
return
-
1
;
return
-
1
;
}
}
int
status_led_set
(
void
)
void
status_led_set
(
int
led
,
int
state
)
{
{
return
-
1
;
return
;
}
}
void
sunxi_board_init
(
void
)
void
sunxi_board_init
(
void
)
{
{
int
power_failed
=
1
;
int
power_failed
=
0
;
int
ramsize
;
int
ramsize
;
timer_init
();
timer_init
();
...
...
usb-boot
View file @
6004127d
...
@@ -4,8 +4,8 @@ if [ $# -lt 2 ]; then
...
@@ -4,8 +4,8 @@ if [ $# -lt 2 ]; then
echo
"Usage:
$0
board u-boot.bin [boot.scr|-] [kernel script.bin [initramfs]]"
echo
"Usage:
$0
board u-boot.bin [boot.scr|-] [kernel script.bin [initramfs]]"
exit
1
exit
1
fi
fi
board
=
$1
;
shift
board
=
$1
;
shift
||
(
echo
"ERROR: Board must be specified"
;
exit
1
;
)
uboot
=
$1
;
shift
uboot
=
$1
;
shift
||
(
echo
"ERROR: u-boot.bin must be specified"
;
exit
1
;
)
bootscr
=
$tob
/felboot/ramboot.scr
bootscr
=
$tob
/felboot/ramboot.scr
if
[
!
-f
$bootscr
]
;
then
if
[
!
-f
$bootscr
]
;
then
bootscr
=
$top
/bin/ramboot.scr
bootscr
=
$top
/bin/ramboot.scr
...
@@ -14,9 +14,9 @@ case "$1" in
...
@@ -14,9 +14,9 @@ case "$1" in
*
.scr
)
bootscr
=
"
$1
"
;
shift
*
.scr
)
bootscr
=
"
$1
"
;
shift
;;
;;
esac
esac
kernel
=
$1
;
shift
kernel
=
$1
;
shift
||
true
scriptbin
=
$1
;
shift
scriptbin
=
$1
;
shift
||
true
initramfs
=
$1
;
shift
initramfs
=
$1
;
shift
||
true
fel
()
{
fel
()
{
echo
fel
"
$@
"
echo
fel
"
$@
"
$top
/fel
$@
$top
/fel
$@
...
...
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