Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=Octoprint tunel to tasemnice
After=network.target
[Service]
User=autossh
Type=forking
Environment=AUTOSSH_LOGFILE=/home/autossh/autossh.log AUTOSSH_PIDFILE=/home/autossh/autossh.pid
PIDFile=/home/autossh/autossh.pid
ExecStart=/usr/bin/autossh -f -M 10984 -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -R 6661:localhost:80 -N printers@tasemnice.eu
@Tasssadar
Tasssadar / hammerhead-aosp-Implement-kexec-hardboot.patch
Last active January 7, 2022 17:27
Kexec-hardboot patch for hammerhead
From a550e9f996b20ea00866bf115f95b5aeb122de0c Mon Sep 17 00:00:00 2001
From: Vojtech Bocek <vbocek@gmail.com>
Date: Fri, 6 Dec 2013 22:56:29 +0100
Subject: [PATCH] Implement kexec-hardboot
"Allows hard booting (i.e., with a full hardware reboot) to a kernel
previously loaded in memory by kexec. This works around the problem of
soft-booted kernel hangs due to improper device shutdown and/or
reinitialization."
More info in /arch/arm/Kconfig.
@Tasssadar
Tasssadar / atags_print.c
Created November 24, 2013 18:02
A little C program to dump contents of /proc/atags - count, size and md5 checksums
#ifndef _DMADORE_MD5_H
#define _DMADORE_MD5_H
struct md5_ctx {
/* The four chaining variables */
unsigned long buf[4];
/* Count number of message bits */
unsigned long bits[2];
/* Data being fed in */
unsigned long in[16];
@Tasssadar
Tasssadar / m7-cm102-Implement-kexec-hardboot.patch
Last active January 7, 2022 17:27
Kexec-hardboot for HTC One (M7)
From 074ac0e9087ab1ecf95bba019787b4aa4b82bef6 Mon Sep 17 00:00:00 2001
From: Vojtech Bocek <vbocek@gmail.com>
Date: Fri, 27 Sep 2013 20:47:54 +0200
Subject: [PATCH] Implement kexec-hardboot
"Allows hard booting (i.e., with a full hardware reboot) to a kernel
previously loaded in memory by kexec. This works around the problem of
soft-booted kernel hangs due to improper device shutdown and/or
reinitialization."
More info in /arch/arm/Kconfig.
@Tasssadar
Tasssadar / flo-aosp-Implement-kexec-hardboot-2.patch
Last active January 7, 2022 17:13
Kexec-hardboot patch for Nexus 7 (2013), the flo
From fb20bb58ba93d13c52f532e1ad445d764e1144e8 Mon Sep 17 00:00:00 2001
From: Vojtech Bocek <vbocek@gmail.com>
Date: Wed, 25 Sep 2013 22:18:49 +0200
Subject: [PATCH] Implement kexec-hardboot
"Allows hard booting (i.e., with a full hardware reboot) to a kernel
previously loaded in memory by kexec. This works around the problem of
soft-booted kernel hangs due to improper device shutdown and/or
reinitialization."
More info in /arch/arm/Kconfig.
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 3c3b868..5903cec 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1993,6 +1993,32 @@ config ATAGS_PROC
Should the atags used to boot the kernel be exported in an "atags"
file in procfs. Useful with kexec.
+config KEXEC_HARDBOOT
+ bool "Support hard booting to a kexec kernel"
@Tasssadar
Tasssadar / shamu-aosp-Implement-kexec-hardboot_v1.patch
Created March 28, 2015 17:23
Kexec-hardboot patch for Shamu
From d12d6a5300dafba36474cb308a99339d1096842e Mon Sep 17 00:00:00 2001
From: Vojtech Bocek <vbocek@gmail.com>
Date: Thu, 5 Mar 2015 16:51:25 +0100
Subject: [PATCH] Implement kexec-hardboot
"Allows hard booting (i.e., with a full hardware reboot) to a kernel
previously loaded in memory by kexec. This works around the problem of
soft-booted kernel hangs due to improper device shutdown and/or
reinitialization."
More info in /arch/arm/Kconfig.
@Tasssadar
Tasssadar / mako-aosp-Implement-kexec-hardboot.patch
Last active January 7, 2022 17:10
kexec-hardboot for LG Nexus 4 (mako)
From a5c71c50da839c6932af1903bcc0036daa033f7e Mon Sep 17 00:00:00 2001
From: Vojtech Bocek <vbocek@gmail.com>
Date: Mon, 30 Sep 2013 18:02:43 +0200
Subject: [PATCH] Implement kexec-hardboot
"Allows hard booting (i.e., with a full hardware reboot) to a kernel
previously loaded in memory by kexec. This works around the problem of
soft-booted kernel hangs due to improper device shutdown and/or
reinitialization."
More info in /arch/arm/Kconfig.
From: Mike Kasick <mike@kasick.org>
Date: Mon, 12 Sep 2011 16:59:13 -0400
Add --load-hardboot option and support KEXEC_HARDBOOT flag.
diff --git a/jni/kexec/kexec-syscall.h b/jni/kexec/kexec-syscall.h
--- a/jni/kexec/kexec-syscall.h
+++ b/jni/kexec/kexec-syscall.h
@@ -78,6 +78,7 @@
@Tasssadar
Tasssadar / gen_uri_linux.patch
Last active December 18, 2020 15:31
Patch JEB 3.8+ GenRegisterJebUriScheme.py to generate registrator also on Linux
--- GenRegisterJebUriScheme.py.orig 2020-01-08 09:41:43.260903761 +0100
+++ GenRegisterJebUriScheme.py 2020-01-08 14:15:01.278159846 +0100
@@ -1,7 +1,7 @@
'''
Generate a platform-dependant script used to register the custom URI handler 'jeb:',
which can be used to execute JEB from other applications.
-TODO: only Windows is implemented; add Linux and macOS
+TODO: only Windows and Linux is implemented; add macOS
How to use: