Skip to content

Instantly share code, notes, and snippets.

@Tasssadar
Tasssadar / hammerhead-aosp-Implement-kexec-hardboot.patch
Last active Jan 7, 2022
Kexec-hardboot patch for hammerhead
View hammerhead-aosp-Implement-kexec-hardboot.patch
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 Nov 24, 2013
A little C program to dump contents of /proc/atags - count, size and md5 checksums
View atags_print.c
#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 Jan 7, 2022
Kexec-hardboot for HTC One (M7)
View m7-cm102-Implement-kexec-hardboot.patch
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 Jan 7, 2022
Kexec-hardboot patch for Nexus 7 (2013), the flo
View flo-aosp-Implement-kexec-hardboot-2.patch
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.
View n7_hardboot.diff
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"
View shamu-aosp-Implement-kexec-hardboot_v1.patch
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 Jan 7, 2022
kexec-hardboot for LG Nexus 4 (mako)
View mako-aosp-Implement-kexec-hardboot.patch
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.
View hardboot-kexec.diff
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 Dec 18, 2020
Patch JEB 3.8+ GenRegisterJebUriScheme.py to generate registrator also on Linux
View gen_uri_linux.patch
--- 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:
View index.php
<?php
if(array_key_exists("s", $_GET)) {
$expr_get = $_GET["s"];
} else {
$expr_get = "";
}
function search($expr) {
$db = new SQLite3('socky.sqlite');