94d5efbc96
This port uses the Android bootloader (kernelflinger) instead of Gummiboot or rEFInd,... just in case if people still want to easily reflash Android later without going through some DNX Fastboot, Intel Flash Tool blah blah. Chuwi violates GPLv2 by not releasing the kernel sources of Android to the public. This port uses Linux mainline (5.1-rc7), and almost everything works properly, so thankfully we don't have to use the 3.10 kernel which is outdated and EOL. [ci:skip-build]: kernel takes more than an hour to compile on CI. ollieparanoid made sure that everything builds.
14 lines
490 B
Bash
14 lines
490 B
Bash
#!/bin/sh
|
|
|
|
# If the device is booted from kernelflinger bootloader,
|
|
# there is a watchdog running as soon the device load it's kernel.
|
|
#
|
|
# When watchdog is running, the system will reboot after 100 seconds,
|
|
#
|
|
# The script below will run "Magic Close", which will stop the timer. (thanks lambdadroid)
|
|
# http://lxr.free-electrons.com/source/Documentation/watchdog/watchdog-api.txt
|
|
|
|
# snip from device-nokia-n9 (initfs-hook.sh)
|
|
for wd in /dev/watchdog*; do
|
|
[ -c $wd ] && echo V > $wd
|
|
done
|