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
6339a8fe
Commit
6339a8fe
authored
May 02, 2013
by
Henrik Nordstrom
Browse files
fel-gpio: Fail on errors after initialization as well
parent
031155fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
fel-gpio
View file @
6339a8fe
#!/bin/sh
#!/bin/sh
-e
pio_to_sram
=
0x2000
sram_to_pio
=
0x2004
set
-e
if
[
-f
fel-pio.bin
]
;
then
./fel write 0x2000 fel-pio.bin
else
...
...
@@ -15,7 +14,6 @@ fi
./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
...
...
@@ -23,6 +21,6 @@ while read cmd; do
./fel exe 0x2000
./fel
read
0x3000 0x228 pio.reg
./pio
-i
pio.reg print
>
pio.new
diff
-U0
pio.old pio.new
diff
-U0
pio.old pio.new
||
true
mv
-f
pio.new pio.old
done
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