Skip to content

Instantly share code, notes, and snippets.

View gtxaspec's full-sized avatar
😾
Support public media!

gtxaspec

😾
Support public media!
View GitHub Profile
aag@mips-development-old:/tmp/dhcpcd$ ./configure --os=linux
configure args: --os=linux
Configuring dhcpcd for ... linux
Found git checkout ... Adding debugging CFLAGS
Enabling INET support
Enabling ARP support
Enabling ARPing support
Enabling IPv4LL support
Enabling INET6 support
Enabling DHCPv6 support
@gtxaspec
gtxaspec / lxc-prox.sh
Last active September 25, 2024 04:45
thingino-lxc env in prox
#!/bin/bash
# Get the current logged-in user
USER_NAME=$(whoami)
VERSION=0.21
PACKAGES="apt-transport-https apt-utils bc bison build-essential ca-certificates ccache cpio curl dialog \
file figlet flex gawk gcc git libncurses-dev lzop make mc nano patchelf qemu-user \
qemu-user-binfmt rsync ssh tftpd-hpa toilet toilet-fonts u-boot-tools unzip wget whiptail xterm"
# Ensure the script is not running as root
@gtxaspec
gtxaspec / WYZEDB3_t30 bootlog.md
Last active September 20, 2024 07:03
Wyze Doorbell Cam WVDB1-2 T30X preproduction WYZEDB3 logs

image

image

image

Bootlog:

isvp_t30# print
baudrate=115200
Ver:240106-T23ZN-SINGLE-b860074-MP
led_status_hide: 0.
riscv set sensor:gc2083 1920x1080
tag::i2c_addr:0x37
tag::reg_addr_size:2
tag::reg_value_size:1
This program was compiled on Mar 4 2024 at 15:39:47.
stream on :61 ms
start init isp :63 ms
iq data addr=0x3f18034
@gtxaspec
gtxaspec / gist:ecd6bd5f4429288a7d1d73dd356e5300
Created September 15, 2024 18:16
sercomm na502 openwrt 22.03.07 working
root@OpenWrt:/# dmesg
[ 0.000000] Linux version 5.10.221 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20341-591b7e93d3) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Mon Jul 15 22:25:54 2024
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is SERCOMM NA502
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2} total 2
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
@gtxaspec
gtxaspec / gist:33b9cc5b8224094681f42e409d6571fd
Last active September 15, 2024 03:18
sercomm na502 snapshot wifi failure
DMESG
root@vera:/etc/config# dmesg
[ 0.000000] Linux version 6.6.50 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r27352-47370eb9ba) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Fri Sep 13 20:17:35 2024
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is SERCOMM NA502
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2} total 2
U-Boot SPL 2013.07-00014-g7e49a25-dirty (Jul 15 2022 - 19:00:08)
Timer init
CLK stop
PLL init
pll_init:366
pll_cfg.pdiv = 10, pll_cfg.h2div = 5, pll_cfg.h0div = 5, pll_cfg.cdiv = 1, pll_cfg.l2div = 2
nf=92 nr = 1 od0 = 1 od1 = 2
cppcr is 05c05100
CPM_CPAPCR 05c0510d
nf=84 nr = 1 od0 = 1 od1 = 2
t30 / sc2235
GPIOs 0-31, GPIO A:
GPIOs 32-63, GPIO B:
gpio-49 (motor_st4_gpio ) out lo
gpio-50 (motor_st3_gpio ) out lo
gpio-51 (R331-USB ) out hi
gpio-52 (reset button ) in hi
gpio-53 (SPK SELECT 1:t30/1:r333) out lo
GPIOs 0-31, GPIO A:
gpio-18 (sc2336_reset ) out hi
GPIOs 32-63, GPIO B:
gpio-38 (gpioCtrl ) in hi
gpio-39 (spkr ) out lo
gpio-45 (irled ) out lo
gpio-46 (led-b ) out lo
gpio-47 (wifi ) out lo
gpio-50 (mmc_detect ) in hi
@gtxaspec
gtxaspec / gist:f802738be2f616a14ecdac358226a8a3
Created July 30, 2024 12:35
wansview w6 os0sg10 gpio list
======
[root@Ingenic-uc1_1:~]# mount -t debugfs none /sys/kernel/debug; cat /sys/kernel
/debug/gpio
GPIOs 0-31, GPIO A:
gpio-18 (ov2735b_reset ) out hi
GPIOs 32-63, GPIO B:
gpio-39 (scl ) in hi
gpio-40 (peripher ) out lo
gpio-47 (jzmac ) out lo