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
c5fcedec
Commit
c5fcedec
authored
May 16, 2013
by
Henrik Nordstrom
Browse files
usb-boot: Script for FEL USB booting
parent
6963d520
Changes
2
Hide whitespace changes
Inline
Side-by-side
README
View file @
c5fcedec
...
...
@@ -26,11 +26,17 @@ fel:
th CPU. You activate FEL mode by pushing the usboot/recovery
button at poweron.
usb-boot:
Simple wrapper around felboot and fel to automate USB booting in FEL mode
fel-gpio:
Simple wrapper around fel-pio and fel to allos GPIO manipulations
via FEL
felboot:
ARM native board initialization for FEL mode
fel-pio
.bin
:
fel-pio:
ARM native helper for fel-gpio
pio:
...
...
usb-boot
0 → 100755
View file @
c5fcedec
#!/bin/sh -e
if
[
$#
-lt
2
]
;
then
echo
"Usage:
$0
board u-boot.bin [kernel script.bin [initramfs]]"
exit
1
fi
board
=
$1
uboot
=
$2
kernel
=
$3
scriptbin
=
$4
initramfs
=
$5
fel
()
{
echo
fel
"
$@
"
./fel
$@
}
felboot
=
felboot/fel-boot-
${
board
}
.bin
if
[
!
-f
$felboot
]
;
then
felboot
=
bin/fel-boot-
${
board
}
.bin
fi
if
[
!
-f
$felboot
]
;
then
echo
"ERROR: Can't find fel-boot binary for
${
board
}
"
exit
1
fi
fel write 0x2000
$felboot
fel exe 0x2000
if
[
-n
"
$uboot
"
]
;
then
fel write 0x4a000000
$uboot
fi
if
[
-n
"
$kernel
"
]
;
then
if
[
-n
"
$sciptbin
"
]
;
then
fel write 0x43000000
$scriptbin
fi
fel write 0x44000000
$kernel
if
[
-n
"
$initramfs
"
]
;
then
fel write 0x4c000000
$initramfs
fi
fi
fel exe 0x4a000000
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