Skip to content

Instantly share code, notes, and snippets.

@tetsu-koba
tetsu-koba / 00_webos_boot
Last active April 6, 2018 01:30
webOS boot log
webOS boot log
@tetsu-koba
tetsu-koba / bootlog_raspberryPi3_64bit_kernel
Created March 10, 2018 11:16
Boot log of Raspberry Pi 3 64bit kernel
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.79-v8 (koba@instance-3) (gcc version 6.4.0 (Buildroot 2018.02) ) #1 SMP PREEMPT Sat Mar 10 08:50:08 UTC 2018
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 8 MiB at 0x0000000039400000
[ 0.000000] On node 0 totalpages: 236544
[ 0.000000] DMA zone: 3696 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 236544 pages, LIFO batch:31
@tetsu-koba
tetsu-koba / autoshutdown.sh
Last active April 17, 2018 07:20
GCE auto shutdown
#!/bin/sh
do_shutdown () {
wall "Auto shutdown!"
sync
# Replace next line to your shut down command
gcloud compute instances stop instance-N --zone\=us-central1-a && shutdown -h now
}
warning () {
$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUYV 4:2:2
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
@tetsu-koba
tetsu-koba / net_activity.go
Created February 15, 2018 03:22
Show network activity
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"strconv"
"strings"
"time"
@tetsu-koba
tetsu-koba / 00_nano_pi_neo_buildroot_vendor_tree
Created February 11, 2018 04:18
Buildroot configs for nano pi neo vendor tree uboot and kernel
Buildroot configs for nano pi neo vendor tree uboot and kernel
Modified files:
configs/nanopi_neo_defconfig
board/friendlyarm/nanopi-neo/genimage.cfg
board/friendlyarm/nanopi-neo/boot.cmd
board/friendlyarm/nanopi-neo/post-image.sh
U-Boot SPL 2017.01 (Feb 10 2018 - 07:39:37)
DRAM: 512 MiB
Trying to boot from MMC1
U-Boot 2017.01 (Feb 10 2018 - 07:39:37 +0000) Allwinner Technology
CPU: Allwinner H3 (SUN8I 1680)
Model: FriendlyARM NanoPi NEO
DRAM: 512 MiB
MMC: SUNXI SD/MMC: 0
@tetsu-koba
tetsu-koba / 00_bootlog_of_nanopi_neo
Last active February 3, 2018 04:11
Boot log of Nano Pi Neo
00
@tetsu-koba
tetsu-koba / 00_ioctl_golang
Created January 15, 2018 08:58
Golang ioctl sample
Golang ioctl sample
@tetsu-koba
tetsu-koba / 00_uio_golang
Last active July 12, 2022 22:57
Using UIO from golang
Using UIO from golang