Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Webb arachsys

View GitHub Profile
@arachsys
arachsys / proto-qmi.diff
Created Feb 27, 2020
Fix openwrt /lib/netifd/proto/qmi.sh to allow direct address configuration of qmi interfaces
View proto-qmi.diff
diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
index 8cbe9e97e7..4aadd57813 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -19,6 +19,7 @@ proto_qmi_init_config() {
proto_config_add_string modes
proto_config_add_string pdptype
proto_config_add_int profile
+ proto_config_add_boolean dhcp
proto_config_add_boolean dhcpv6
@arachsys
arachsys / uqmi.patch
Created Feb 20, 2020
Locking fix for git://git.openwrt.org/project/uqmi.git
View uqmi.patch
diff --git a/dev.c b/dev.c
index bd10207..d14255a 100644
--- a/dev.c
+++ b/dev.c
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <sys/file.h>
#include "uqmi.h"
@arachsys
arachsys / openwrt.patch
Created Feb 20, 2020
My local openwrt diff: cosmetics, uqmi bug-fix, and usleep command in ash
View openwrt.patch
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index cf5166772d..f325630bd7 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -147,13 +147,9 @@ define Package/base-files/install
)
$(VERSION_SED_SCRIPT) \
- $(1)/etc/banner \
- $(1)/etc/openwrt_version \
View gimli.h
#ifndef GIMLI_H
#define GIMLI_H
#include <stddef.h>
#include <stdint.h>
#if defined __has_builtin && __has_builtin(__builtin_shufflevector)
#define gimli_swap(x, ...) __builtin_shufflevector(x, x, __VA_ARGS__)
#elif defined __has_builtin && __has_builtin(__builtin_shuffle)
#define gimli_swap(x, ...) __builtin_shuffle(x, (typeof(x)) { __VA_ARGS__ })
@arachsys
arachsys / 8N70OS_.PGM
Last active Apr 4, 2020
Obtaining a shell on Yamaha Montage
@arachsys
arachsys / khadas-edge.patch
Created Jul 29, 2019
U-Boot device tree and configuration for Khadas Edge
View khadas-edge.patch
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index e985884d9a..c7bb110389 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -108,6 +108,7 @@ dtb-$(CONFIG_ROCKCHIP_RK3399) += \
rk3399-ficus.dtb \
rk3399-firefly.dtb \
rk3399-gru-bob.dtb \
+ rk3399-khadas-edge.dtb \
rk3399-nanopc-t4.dtb \
@arachsys
arachsys / 8N70OS_.PGM
Last active Oct 11, 2020
Fixing CFX PopStudioGrand on Yamaha Montage
@arachsys
arachsys / siginfo.patch
Created Jul 6, 2012
Fix gdb to use siginfo_t instead of struct siginfo
View siginfo.patch
From 0bcbef9314d6679d1fbbb0114683d06de0196623 Mon Sep 17 00:00:00 2001
Message-Id: <0bcbef9314d6679d1fbbb0114683d06de0196623.1341578007.git.chris@arachsys.com>
From: Chris Webb <chris@arachsys.com>
Date: Fri, 6 Jul 2012 13:18:58 +0100
Subject: [PATCH] Replace struct siginfo with siginfo_t
Glibc 2.16.0 removes the undocumented definition of 'struct siginfo' from
<bits/siginfo.h>. This struct is also available as the POSIX-defined
siginfo_t, so replace all uses of struct siginfo with siginfo_t.
@arachsys
arachsys / README
Created Jun 19, 2012
Notes on making a signed software release
View README
Notes on making a signed software release
=========================================
Create a signed tag called NAME-VERSION with
git tag --message=NAME-VERSION --sign NAME-VERSION
Generate a release tar.gz and signature with
git archive --output=NAME-VERSION.tar.gz --prefix=NAME-VERSION/ NAME-VERSION
@arachsys
arachsys / chris.asc
Created Jun 19, 2012
GnuPG public key
View chris.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.12 (GNU/Linux)
mQINBE/V3aEBEADj4c9vkisq/lndiwAc/awV+uXh9KhdZhoZ6M/H2lGOWVcUYfiO
l7hYlrqBhgRFu/i+kuffoQWKAgH02ufw2L5VrL4/kE63CImQqqzzcWet/8QBqCMe
WMa7ugy8z7MKyc9NV9u7W219pR0m3yIwn83HdAUJA6tF5fBINnIybiLIXlHK3FCI
B6DxMzdA9ogBV91t9pkET63NrWX9OUE4OZxk9qYo0fpT1lXRWhlGiSBSiArtqoJ1
NYtoMT61G5LOwa2+xPBVEP7BxkQpfGunFBuwrH0F0zSWzlVDJlmipPvyA1AyKs7D
nHuPHY7GAAjCAQq0qK/hbAWnhDQ5RnEjvf7Cmhqcm+C3YQDVk9H9M33aYphwQHsN
8gjTZqxl4n5L/amoQ86HOD3Qa1EysnE3CJeYHkcDXDEbzIW8WZCKkQbpLFjeuOyT
You can’t perform that action at this time.