Skip to content

Instantly share code, notes, and snippets.

# ruby script
on = [2411,580,610,610,1191,610,1190,611,1190,610,580,610,1190,611,610,580,1221,579,611,610,580,610,580,611,610]
off = [2411,580,1220,580,1221,580,1221,579,1221,580,610,611,1190,610,580,610,1190,611,610,580,610,580,611,610,580]
def irbit pat
i = 2
@yamori813
yamori813 / v4l2capt.c
Last active September 16, 2026 01:23
V4L2 video capture example
/*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
U-Boot 1.1.3 (Aug 6 2018 - 14:37:41)
Board: Ralink APSoC DRAM: 128 MB
relocate_code Pointer at: 87f98000
Config XHCI 40M PLL
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 87fcb030
Image 3 Program Header:
Signature: 3383
Control: 0101
Major Rev: 8271
Minor Rev: 8486
Build Time: 2024/6/23 08:54:40 Z
File Length: 4661156 bytes
Load Address: 80050000
Filename: Humax_HG100R.psimage
HCS: 526a
contrib/gcc/config/mips/mips-dsp.md
contrib/gcc/config/mips/mips.h
contrib/gcc/config/mips/mips.md
contrib/gcc/config/mips/mips.opt
sys/conf/files.mips
sys/conf/ldscript.mips.bin
sys/dev/etherswitch/arswitch/arswitch.c
sys/dev/etherswitch/etherswitch.h
sys/dev/etherswitch/infineon/adm6996fc.c
sys/dev/etherswitch/mtkswitch/mtkswitch.c
myrc_start()
{
RS=`sysctl -n dev.mtk_wdog.0.rststat`
if [ ${RS} != 4 ]; then
# luch process
fi
[ 3.5620476] uhub0: 1 port with 1 removable, self powered
[ 3.5744599] 000003.578262 ehci_open#4@0: called!
[ 3.6365204] 000003.644348 ehci_open#4@0: pipe=0xc13acf80, addr=1, endpt=129 (1)
[ 3.7109933] 000003.713105 ehci_roothub_ctrl_locked#14@0: called!
[ 3.7730541] 000003.780526 ehci_roothub_ctrl_locked#14@0: type=0x23 request=03
[ 3.8475277] 000003.849068 ehci_roothub_ctrl_locked#14@0: portsc=0x1c000004
[ 3.9095874] 000003.917351 ehci_roothub_ctrl_locked#14@0: set port power 1 (has PPC = 16)
[ 3.9840602] 000003.986842 ehci_roothub_ctrl_locked#14@0: returning 0
[ 4.0461210] 000004.055000 ehci_roothub_ctrl_locked#15@0: called!
[ 4.1205940] 000004.122432 ehci_roothub_ctrl_locked#15@0: type=0xa0 request=00
Comcerto-1000 > md 10070000
10070000: 00020000 00020000 00000000 00000000 ................
10070010: 1fff24af 00000040 002d64c2 8010120c .$..@....d-.....
10070020: 00000c00 00000000 00000000 00000000 ................
10070030: 00000000 00000000 00000000 00000000 ................
10070040: 8000120c 00000000 00000000 00000002 ................
10070050: 01040170 2db6db6d 1ff3b0bf 00000000 p...m..-........
10070060: 00000000 00000000 00000000 00000000 ................
10070070: 00000000 00000000 00000000 00000000 ................
10070080: 00000000 00000000 00000000 00000000 ................
Bytes transferred = 3851344 (3ac450 hex)
## Booting image at 81000000 ...
Image Name: NetBSD/m83xxx
Image Type: ARM NetBSD Kernel Image (uncompressed)
Data Size: 3851280 Bytes = 3.7 MB
Load Address: 80100000
Entry Point: 80100000
Verifying Checksum ... OK
OK
## Transferring control to NetBSD stage-2 loader (at address 80100000) ...
@yamori813
yamori813 / ipfw nat
Last active June 16, 2022 02:47
iperf3
# /usr/local/bin/iperf3 -c 10.0.1.37
Connecting to host 10.0.1.37, port 5201
[ 5] local 10.0.1.1 port 60451 connected to 10.0.1.37 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 4.45 MBytes 37.3 Mbits/sec 5 58.2 KBytes
[ 5] 1.00-2.00 sec 3.43 MBytes 28.8 Mbits/sec 3 96.7 KBytes
[ 5] 2.00-3.00 sec 3.53 MBytes 29.6 Mbits/sec 7 53.9 KBytes
[ 5] 3.00-4.00 sec 3.52 MBytes 29.5 Mbits/sec 6 38.2 KBytes
[ 5] 4.00-5.00 sec 3.49 MBytes 29.3 Mbits/sec 4 65.3 KBytes
[ 5] 5.00-6.00 sec 3.54 MBytes 29.7 Mbits/sec 6 59.6 KBytes