first commit
This commit is contained in:
24
external/config/templates/fel-hooks.sh.example
vendored
Normal file
24
external/config/templates/fel-hooks.sh.example
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# fel-hooks.sh.example -- this file is an example how
|
||||
# userpatches/fel-hooks.sh could be implemented.
|
||||
#
|
||||
# The following example assumes you use a Gembird power switch connected
|
||||
# through USB to be able to power cycle the board you want to fel boot. You
|
||||
# need the sispmctl package and use 'sispmctl -s' to get the ID of your
|
||||
# power switch.
|
||||
|
||||
fel_pre_load() {
|
||||
# power cycle socket 1 of Gembird power switch
|
||||
sispmctl -D01:01:51:23:cb -q -f1
|
||||
# 5 seconds delay since PSUs don't like be being power cycled too fast
|
||||
sleep 5
|
||||
sispmctl -D01:01:51:23:cb -q -o1
|
||||
# 3 seconds delay since the SoC has to initialise
|
||||
sleep 3
|
||||
} # fel_pre_load
|
||||
|
||||
fel_post_prepare() {
|
||||
# currently empty - sun8i-default tweaks were converted into u-boot patches
|
||||
echo "calling fel_post_prepare()"
|
||||
} # fel_post_prepare
|
||||
Reference in New Issue
Block a user