Skip to content

Instantly share code, notes, and snippets.

View chunkeey's full-sized avatar

Christian Lamparter chunkeey

  • Stuttgart, Germany
View GitHub Profile
@chunkeey
chunkeey / SuperIO-NCT6796D-S-on-ASRock-X670E-PG.png
Last active December 30, 2022 19:39
ASRock X670E PG Lightning SuperIO
SuperIO-NCT6796D-S-on-ASRock-X670E-PG.png
From 91eb989abaf875705f6114f374a06f1cb169856f Mon Sep 17 00:00:00 2001
From: Christian Lamparter <chunkeey@gmail.com>
Date: Sun, 28 Apr 2019 23:39:33 +0200
Subject: [PATCH] tpm/tpm_i2c_atmel: support AT97SC3203S chip
The AT97SC3203S is similar to the AT97SC3204T but it can only
do 10 Bytes transfer reliable. This patch introduces a chunked-io
that deals with the oddity of the AT97SC3203S.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
@chunkeey
chunkeey / openwrt-aruba_ap-105.patch
Last active April 27, 2019 17:13
AP-105 OpenWrt Patch
From a87c26d69f18c73463daaa08ab5d3c72961f4527 Mon Sep 17 00:00:00 2001
From: Christian Lamparter <chunkeey@gmail.com>
Date: Sat, 27 Apr 2019 14:21:51 +0200
Subject: [PATCH] ath79: add support for Aruba AP-105
SoC: Atheros AR7161-8C1A @ 680 MHz
RAM: 128MB - 2x Etron Technology EM6AB160TSA-5G
SPI Storage: 16MB - 1x MXIC MX25L12845EMI-10G
Wireless 1: Atheros AR9220-AC1A
Wireless 2: Atheros AR9223-AC1A
@chunkeey
chunkeey / adb-log.txt
Created March 21, 2019 17:54
Recent OpenWrt ADB PKG_MIRROR_HASH fix test
make[1]: Entering directory '/mnt/build/lede/ipq40xx/scripts/config'
make[1]: Leaving directory '/mnt/build/lede/ipq40xx/scripts/config'
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libgnutls', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libopenldap', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libidn2', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libssh2', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
@chunkeey
chunkeey / replace_ucidef_set_led_usbdev.sh
Created February 28, 2019 01:43
Automated ucidef_set_led_usbdev to ucidef_set_led_usbport converted
# cd openwrt-main-directory
ledfiles=$(grep -R "ucidef_set_led_usbdev" target/linux/* | cut -f1 -d: | uniq)
for ledfile in $ledfiles; do
sed 's/ucidef_set_led_usbdev "\([a-zA-Z0-9]*\)" "\([a-zA-Z0-9]*\)" "\([-_~\.\$:@a-zA-Z0-9]*\)" "\([-0-9]*\)\.\([0-9]*\)"/ucidef_set_led_usbport "\1" "\2" "\3" "\4-port\5"/g; s/ucidef_set_led_usbdev "\([a-zA-Z0-9]*\)" "\([a-zA-Z0-9]*\)" "\([-_~\.\$:@a-zA-Z0-9]*\)" "\([0-9]*\)-\([0-9]*\)"/ucidef_set_led_usbport "\1" "\2" "\3" "usb\4-port\5"/g' "$ledfile" > "$ledfile.tmp"
mv "$ledfile.tmp" "$ledfile"
grep ucidef_set_led_usbdev $ledfile && echo "Not quiet done!"
done
@chunkeey
chunkeey / hiveap-330-xzorlzma-zImage.show
Last active February 25, 2019 23:42
HiveAP 330 xz/lzma zImage
commit 753e9317a5501ade1c44fd6ea0abb2c809a0c76c
Author: Christian Lamparter <chunkeey@gmail.com>
Date: Sun Feb 24 22:05:28 2019 +0100
mpc85xx: enable HAVE_KERNEL_XZ to allow lzma/xz'd zImages
The HiveAP's 330 initramfs image failes to boot due to an
gunzip extraction error:
|## Booting kernel from Legacy Image at 05000000 ...
@chunkeey
chunkeey / get_maintainer.pl
Created November 22, 2017 18:28
modified get_maintainer.pl. Extracted from the linux source and adapted to work with the LEDE git repository.
#!/usr/bin/env perl
# (c) 2007, Joe Perches <joe@perches.com>
# created from checkpatch.pl
#
# Print previous commiter information for
# the files modified in a patch or for a file
#
# usage: perl scripts/get_maintainer.pl [OPTIONS] <patch>
# perl scripts/get_maintainer.pl [OPTIONS] -f <file>
#
@chunkeey
chunkeey / poorvpn.sh
Created July 31, 2017 18:35
A one-stop ipsec vpn tester that doesn't require anything other than kmod-ipsec[4{6] and the ipsec-tools' setkey utility
#!/bin/sh -e
# A poor P2P VPN based on IPSEC
# Requirements:
# 1. Be root on this machine
# 2. can connect to a remote server via ssh with root privileges.
# 3. remote server supports IPSEC, has the ipsec-tools installed
#
# Warning: aes-cbc does need a authalgo as well.