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
4820fae9
Commit
4820fae9
authored
Apr 09, 2013
by
Angus Gratton
Browse files
fel-gpio: Error out if the FEL device can't be contacted
parent
033706af
Changes
1
Hide whitespace changes
Inline
Side-by-side
fel-gpio
View file @
4820fae9
...
...
@@ -3,6 +3,7 @@
pio_to_sram
=
0x2000
sram_to_pio
=
0x2004
set
-e
if
[
-f
fel-pio.bin
]
;
then
./fel write 0x2000 fel-pio.bin
else
...
...
@@ -13,6 +14,8 @@ fi
./fel
read
0x3000 0x228 pio.reg
./pio
-i
pio.reg print
>
pio.old
cat
pio.old | fgrep
-v
'<0><0><0><0>'
set
+e
while
read
cmd
;
do
./pio
-i
pio.reg
-o
pio.reg
$cmd
./fel write 0x3000 pio.reg
...
...
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