mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-16 03:41:26 +00:00
24 lines
806 B
Bash
24 lines
806 B
Bash
#!/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
|