Skip to content

Instantly share code, notes, and snippets.

View LeeTroy's full-sized avatar

Troy Lee LeeTroy

View GitHub Profile
#!/bin/bash
INFILE=/dev/null
OUTFILE=/dev/null
function exists {
command -v $1 >/dev/null 2>&1
}
while [ $# -gt 0 ]; do
case "$1" in
@LeeTroy
LeeTroy / disable wdt2.patch
Created October 19, 2021 08:31
disable wdt2
diff --git a/arch/arm/mach-aspeed/ast2600/board_common.c b/arch/arm/mach-aspeed/ast2600/board_common.c
index 99a9e1273a..fcc27683c1 100644
--- a/arch/arm/mach-aspeed/ast2600/board_common.c
+++ b/arch/arm/mach-aspeed/ast2600/board_common.c
@@ -51,6 +51,11 @@ void reset_eth_phy(void)
}
#endif
+static void __maybe_unused disable_wdt2(void)
+{
root@ast2600-default:/proc# demesg
-sh: demesg: command not found
root@ast2600-default:/proc# dmesg
[129430.488554] r9:7ec14004 r8:10c5387d r7:10c5387d r6:ffffffff r5:800f0010 r4:005e9708
[129430.497390] Mem-Info:
[129430.500063] active_anon:9202 inactive_anon:3032 isolated_anon:0
[129430.500063] active_file:73027 inactive_file:88575 isolated_file:0
[129430.500063] unevictable:953 dirty:36872 writeback:31 unstable:0
[129430.500063] slab_reclaimable:6323 slab_unreclaimable:2711
[129430.500063] mapped:1090 shmem:3070 pagetables:566 bounce:0