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
Support Commands:
GetAnrCfgInfo GetAnrProcess GetAnrRecordList
ShowIpcAbility accessDvrSwitch channelPlayback
clearDisksMode ctrlArchDebug decStat
disableHB disableHik264 dspStatus
dvrLogInfo dt enableHB
enableHik264 enableWatchdog errputClose
errputOpen get3GMode getCMS
getCycleReboot getDbgCtrl getHardInfo
getIp getLastErrorInfo getPlayTestCtrl
Support Commands:
GetAnrCfgInfo GetAnrProcess GetAnrRecordList
ShowIpcAbility accessDvrSwitch channelPlayback
clearDisksMode ctrlArchDebug decStat
disableHB disableHik264 dspStatus
dvrLogInfo dt enableHB
enableHik264 enableWatchdog errputClose
errputOpen get3GMode getCMS
getCycleReboot getDbgCtrl getHardInfo
getIp getLastErrorInfo getPlayTestCtrl
mount -t debugfs none /sys/kernel/debug;cat /sys/kernel/debug/gpio
=====================
GPIOs 0-31, GPIO A:
gpio-8 (front touch btn ) in hi
gpio-9 (spker ) out hi
gpio-10 (wifi ) out hi
gpio-11 (motor_gpioud_en ) out hi
gpio-16 (grn led ) out hi
@gtxaspec
gtxaspec / wansview-g6.md
Last active May 18, 2025 21:04
wansview g6
[root@Ingenic-uc1_1:~]# cat /sys/kernel/debug/gpio
GPIOs 0-31, GPIO A:
 gpio-6   (wifi) out hi
 gpio-7   (speaker) out lo
 gpio-8   (                    ) out hi
 gpio-9   (white indicator) out hi
 gpio-10  (ircut) out lo
 gpio-11  (ircut) out lo
 gpio-14  (button) in  hi
@gtxaspec
gtxaspec / gist:a7aeee177407de74a53347a44f06aae7
Last active July 9, 2024 06:00
t23 cinnado d1 gpio map
GPIOs 0-31, GPIO A:
gpio-6 (? ) out hi
gpio-12 (sda ) in hi
gpio-13 (scl ) in hi
gpio-18 (sc2336_reset ) out hi
GPIOs 32-63, GPIO B:
gpio-38 (BUTTON ) in hi
gpio-39 (SPK ) out hi
gpio-40 (BLUE LED ) out hi
#!/bin/bash
mkdir onvif_root
cd onvif_root
git clone https://github.com/libtom/libtomcrypt
git clone https://github.com/roleoroleo/onvif_simple_server
cd libtomcrypt
CROSS_COMPILE=mipsel-linux- ccache make -f makefile -j$(nproc)
cd ../onvif_simple_server/
mkdir extras/libtomcrypt/
@gtxaspec
gtxaspec / gist:e7dbf21e5c0317d0de9cb1aa853f8f2e
Created April 20, 2024 09:24
Install OpenWRT to an LXC CT
pct create 108 /var/lib/vz/template/cache/openwrt-23.05.3-x86-64-rootfs.tar.gz --arch amd64 --hostname OpenWrt-23.05.3 --rootfs sata:108 --memory 1024 --cores 2 --ostype unmanaged --unprivileged 1
@gtxaspec
gtxaspec / gist:701a7ad85ada077f66743800de18ca31
Created April 16, 2024 18:41
carrier command line arguments
-port <int>
-i2c <hex>
-nrvbs <int>
-st <sensor name>
-string
-fps <int>
-audio
-rc cbr/vbr/etc
-w width
facing you:
tx gnd rx 3v3
==========================
U-Boot SPL 2013.07 (Nov 18 2021 - 14:12:39)
pll_init:399
pll_cfg.pdiv = 10, pll_cfg.h2div = 5, pll_cfg.h0div = 5, pll_cfg.cdiv = 1, pll_cfg.l2div = 2
fbdiv = 36 , refdiv = 1 , fdivq = 2 ,pllod = 1 range = 3
cppcr is 02300860
CPM_CPAPCR 0470484d
U-Boot SPL 2013.07 (Feb 19 2019 - 10:55:30)
Timer init
CLK stop
PLL init
pll_init:399
pll_cfg.pdiv = 10, pll_cfg.h2div = 5, pll_cfg.h0div = 5, pll_cfg.cdiv = 1, pll_cfg.l2div = 2
fbdiv = 36 , refdiv = 1 , fdivq = 2 ,pllod = 1 range = 3
cppcr is 02300860
CPM_CPAPCR 0470484d
fbdiv = 38 , refdiv = 1 , fdivq = 2 ,pllod = 1 range = 3