Skip to content

Instantly share code, notes, and snippets.

View kristrev's full-sized avatar

Kristian Evensen kristrev

  • Celerway Communication
  • Oslo, Norway
View GitHub Profile
@kristrev
kristrev / gist:8e8564ead93248de0c5b0fe8e9292689
Created May 30, 2018 16:15
WE1326 interrupt mapping patch
diff --git a/target/linux/ramips/dts/ZBT-WE1326.dts b/target/linux/ramips/dts/ZBT-WE1326.dts
index 6cbab66307..72707192a2 100644
--- a/target/linux/ramips/dts/ZBT-WE1326.dts
+++ b/target/linux/ramips/dts/ZBT-WE1326.dts
@@ -84,6 +84,9 @@
&pcie {
status = "okay";
+ interrupt-map = <0x10000 0 0 1 &gic GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>,
+ <0x20000 0 0 1 &gic GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
@kristrev
kristrev / gist:7705450
Created November 29, 2013 13:04
usbmon output + Atheros AR9344 USB problem
This file has been truncated, but you can view the full file.
86b03c00 1391330649 S Co:1:115:0 s 21 00 0000 0004 0012 18 = 01110000 03010000 01200005 00100200 ff00
86b03c00 1391331499 C Co:1:115:0 0 18 >
86b1dc00 1391334239 C Ii:1:115:6 0:16 8 = a1010000 04000000
86b03d80 1391334247 S Ci:1:115:0 s a1 01 0000 0004 1000 4096 <
86b1dc00 1391334266 S Ii:1:115:6 -150:16 64 <
86b03d80 1391334988 C Ci:1:115:0 0 58 = 01390080 03010200 0120002d 00020400 00000000 010200a7 05110400 01005905
86b03c00 1391352275 S Co:1:115:0 s 21 00 0000 0004 000d 13 = 010c0000 03010000 004d0000 00
86b03c00 1391353134 C Co:1:115:0 0 13 >
86b1dc00 1391354247 C Ii:1:115:6 0:16 8 = a1010000 04000000
86b03d80 1391354256 S Ci:1:115:0 s a1 01 0000 0004 1000 4096 <
@kristrev
kristrev / usb_error.log
Created November 30, 2012 17:12
usb_modeswitch output when connected through hub
USB_ModeSwitch log from Fri Nov 30 18:00:05 CET 2012
Raw args from udev: /2-1.1.1
Using global config file: /etc/usb_modeswitch.conf
Called by new rules file - remember to check class of first interface ...
Using top device dir /sys/bus/usb/devices/2-1.1
Warning: USB attribute "manufacturer" not found
Check class of first interface ...
Device is not in install mode. Exiting