Skip to content

Instantly share code, notes, and snippets.

# Backup and restore UBI partitions and volumes
# Tested on Arris RAC2V1A router
BusyBox v1.22.1 (2018-03-01 14:46:14 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
MM NM MMMMMMM M M
$MMMMM MMMMM MMMMMMMMMMM MMM MMM
MMMMMMMM MM MMMMM. MMMMM:MMMMMM: MMMM MMMMM
@Lanchon
Lanchon / TRENDNET-811DRU-GPIOs.md
Last active October 14, 2019 01:27
TRENDNET 811DRU GPIOs

TRENDNET TEW811DRU GPIOs

 0:    =0
 1: O: /LED_24G
 2: O: /LED_5G
 3: O: /LED_POWER_BOOTING
 4:    =0
 5:    =0
 6: O: /LED_POWER
@Lanchon
Lanchon / NETGEAR-AC1450-GPIOs.md
Created September 28, 2019 07:30
NETGEAR AC1450 GPIOs

NETGEAR AC1450 GPIOs

 0:    =0
 1: O:  LED_NETGEAR_LOGO
 2: O: /LED_POWER_GREEN
 3: O: /LED_POWER_AMBER
 4: I: /BTN_WPS_SETUP
 5: I: /BTN_WIFI_TOGGLE
 6: I: /BTN_RESET
@Lanchon
Lanchon / l4m-install.md
Last active May 24, 2018 06:04
LineageOS for microG Installation
@Lanchon
Lanchon / PackageParser.java
Last active July 7, 2023 12:39
Sample DexPatcher framework patch to implement microG-style signature spoofing
/*
* Copyright (C) 2014 Marvin W <https://github.com/mar-v-in>
* Copyright (C) 2016 Lanchon <https://github.com/Lanchon>
*
* This is Marvin's work converted to a DexPatcher patch by Lanchon.
*
* https://gerrit.omnirom.org/#/c/8672/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@Lanchon
Lanchon / isorec.patch
Created January 12, 2016 03:17
IsoRec Patch - Isolated Recovery for the Galaxy S2 Family - CM/android_kernel_samsung_smdk4412
diff --git a/usr/galaxys2_initramfs_files/init b/usr/galaxys2_initramfs_files/init
index 32eacfb..cb3da8e 100755
--- a/usr/galaxys2_initramfs_files/init
+++ b/usr/galaxys2_initramfs_files/init
@@ -12,8 +12,24 @@ busybox mount -t sysfs sysfs /sys
load_image=/stage1/boot.cpio
if busybox grep -q bootmode=2 /proc/cmdline ; then
- # recovery boot
- load_image=/stage1/recovery.cpio
@Lanchon
Lanchon / stm32cubemx-linux.md
Last active September 5, 2024 11:06
Installing STM32CubeMX on Linux

Installing STM32CubeMX on Linux

The STM32CubeMX tool is written in portable java, but unfortunately it is distributed as a Windows executable embedded in a Windows installer.

To install it on Linux:

  1. sudo java -jar SetupSTM32CubeMX-4.11.0.exe
  2. install the tool somewhere in your home, eg: /home/you/stm32/cubemx
  3. sudo chown -R you:you /home/you/stm32/cubemx
@Lanchon
Lanchon / CM11-M10 sdcard.c objdump (i9100)
Created October 2, 2014 05:07
CM11-M10 sdcard.c objdump (i9100)
sdcard: file format elf32-littlearm
Disassembly of section .plt:
00000f68 <__libc_init@plt-0x14>:
f68: e52de004 .word 0xe52de004
f6c: e59fe004 .word 0xe59fe004
f70: e08fe00e .word 0xe08fe00e
@Lanchon
Lanchon / CM11-M10 sdcard.c listing (i9100)
Created October 2, 2014 05:06
CM11-M10 sdcard.c listing (i9100)
ARM GAS /tmp/ccMR8LsA.s page 1
1 .syntax unified
2 .cpu cortex-a9
3 .eabi_attribute 27, 3
4 .fpu neon
5 .eabi_attribute 20, 1
6 .eabi_attribute 21, 1
7 .eabi_attribute 23, 3
@Lanchon
Lanchon / CM11-M10 sdcard.c objdump
Created October 1, 2014 20:04
CM11-M10 sdcard.c objdump
sdcard: file format elf32-littlearm
Disassembly of section .plt:
00000f68 <__libc_init@plt-0x14>:
f68: e52de004 .word 0xe52de004
f6c: e59fe004 .word 0xe59fe004
f70: e08fe00e .word 0xe08fe00e