Skip to content

Instantly share code, notes, and snippets.

View DanielRIOT's full-sized avatar

Daniel de Kock DanielRIOT

View GitHub Profile
@DanielRIOT
DanielRIOT / 1000-bpi-R64-console-mdt.patch
Created April 17, 2020 09:44
Bananapi R64 5.4 kernel dts patch
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
@@ -22,7 +22,7 @@
chosen {
stdout-path = "serial0:115200n8";
- bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n1 swiotlb=512";
+ bootargs = "console=ttyS0,115200n1 rootfstype=squashfs earlyprintk block2mtd.block2mtd=/dev/mmcblk0,65536,eMMC,5 mtdparts=eMMC:768k(preloader)ro,512k(uboot),512k(uboot-env),256k(Factory),64M(firmware),2048M(usrdata)";
};
@DanielRIOT
DanielRIOT / ar9331_arduino-yun.dts
Created January 13, 2020 13:45
Arduino yun openwrt 19 ATH79 port devicetree
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "ar9331.dtsi"
/*
ar9331 GPIO : function
@DanielRIOT
DanielRIOT / gist:abde97bc9138bd23b3dec33e3203b7b1
Last active April 10, 2019 07:59
BBB SPI 1 with WF200 WIFI NCP
/* SPI1
* D1 Output and D0 Input
Wkup : 1_17 : P9.23
Resetn : 3_21 : P9.25
Wirq : 3_19 : P9.27
*/
/dts-v1/;
/plugin/;
[ 593.104981] do_page_fault(): sending SIGSEGV to sh for invalid read access from 00004596
[ 593.197570] epc = 00428f73 in busybox[400000+49000]
[ 593.265560] ra = 00428f73 in busybox[400000+49000]
[ 593.364304] do_page_fault(): sending SIGSEGV to ubusd for invalid write access to 00415000
[ 593.459328] epc = 77f53dc0 in libc.so[77ee2000+94000]
[ 593.529765] ra = 0040161b in ubusd[400000+4000]
root@OpenWrt:/usr/sbin# channel 3
[ 600.531440] do_page_fault(): sending SIGSEGV to channel for invalid read access from 7ff2c014
[ 600.630123] epc = 77faf9ec in libc.so[77f2a000+94000]
[ 0.000000] Linux version 4.14.101 (openwrt@openwrt-VirtualBox) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9275-27a30a0)) #0 Mon Feb 25 14:49:16 2019
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] MIPS: machine is RIOT Albatross
[ 0.000000] SoC: Atheros AR9330 rev 1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
hard crash after channel change :
[ 93.594907] CPU 0 Unable to handle kernel paging request at virtual address ffffd11c, epc == 830f7004, ra == 830f7000
[ 93.605677] Oops[#1]:
[ 93.608229] CPU: 0 PID: 1580 Comm: uci Not tainted 4.14.101 #0
[ 93.615011] task: 838f9b80 task.stack: 82dce000
[ 93.620268] $ 0 : 00000000 00000001 00000000 00000020
[ 93.626346] $ 4 : 00000001 08100000 80680000 80653f70
[ 93.632421] $ 8 : 83957614 8006fc68 80137bf4 0000001c
[ 93.638497] $12 : 7fcbbec8 77faa2c0 00400d71 00000002