it builds (without watchdog)
This commit is contained in:
1 parent
85a0959a06
commit
d9c2631d45
3 files changed
+19
-3
No files matched your search
@@ -44,7 +44,7 @@ define Device/generic-mf68e
|
||||
DEVICE_VENDOR := Generic
|
||||
DEVICE_MODEL := MF68E
|
||||
FILESYSTEMS := squashfs
|
||||
CMDLINE := "earlycon console=ttyMSM0,115200 quiet loglevel=0 vt.global_cursor_default=0 vt.cur_default=0 root=/dev/mmcblk0p14 rootfstype=squashfs rootwait"
|
||||
CMDLINE := "earlycon console=ttyMSM0,115200 quiet loglevel=0 vt.global_cursor_default=0 vt.cur_default=0 root=/dev/mmcblk0p14 rootfstype=squashfs rootwait nowatchdog"
|
||||
DEVICE_PACKAGES := configs-mf68e wpad-basic-wolfssl rmtfs uci-usb-gadget \
|
||||
block-mount f2fs-tools prepare-rootfs-data \
|
||||
msm-firmware-dumper kmod-fbtft-gc9107 router-display
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- /dev/null
|
||||
+++ b/arch/arm64/boot/dts/qcom/msm8916-generic-mf68e.dts
|
||||
@@ -0,0 +1,165 @@
|
||||
@@ -0,0 +1,173 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-only
|
||||
+
|
||||
+/dts-v1/;
|
||||
@@ -166,3 +166,11 @@
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&pm8916_0 {
|
||||
+ pon@800 {
|
||||
+ watchdog {
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
@@ -38,7 +38,15 @@ SECONDS=3
|
||||
|
||||
[ "${ACTION}" = "released" ] && [ "${SEEN}" -ge "${SECONDS}" ] && {
|
||||
logger "Power held for ${SEEN}s: Shutting down system"
|
||||
poweroff &
|
||||
|
||||
# Apaga el backlight
|
||||
echo 1 > /sys/class/backlight/*/brightness 2>/dev/null || true
|
||||
|
||||
# Apaga el framebuffer
|
||||
echo 1 > /sys/class/graphics/fb0/blank 2>/dev/null || true
|
||||
|
||||
sync
|
||||
poweroff
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user