Skip to content

Instantly share code, notes, and snippets.

View tnishinaga's full-sized avatar

Toshifumi NISHINAGA tnishinaga

  • Japan
  • 09:56 (UTC +09:00)
View GitHub Profile
tnishinaga@tx230> v4l2-ctl --list-formats-ext -d 2                                                                                                                                                                                           ~
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'MJPG' (compressed)
        Name        : Motion-JPEG
                Size: Discrete 640x480
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 1280x720
#!/bin/sh
docker run --rm -v `pwd`/book:/work vvakame/review:2.5 /bin/sh -c "cd /work && review-pdfmaker config.yml"
sudo chown -R $USER. ./book
@tnishinaga
tnishinaga / Dockerfile
Created July 25, 2018 17:06
Tensorflow build failure log(with bazel 0.15.0) and Dockerfile
FROM linaro/base-arm64-ubuntu:xenial
COPY sources.list /etc/apt/sources.list
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
libfreetype6-dev \
libhdf5-dev \
@tnishinaga
tnishinaga / matrix_dot.c
Created August 15, 2018 16:49
行列の積を求めるテストコード
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#define MAT_A_ROW 512
#define MAT_A_COL 512
#define MAT_B_ROW 512
#define MAT_B_COL 512
@tnishinaga
tnishinaga / exec_result.md
Last active August 16, 2018 16:23
Raspberry Pi zero上で行列積を計算するコード。
pi@raspberrypi:~/cache_test $ ./a.out 
exec time normal: 42.615200sec
allsum = 134217728
exec time block: 25.836692sec
allsum = 134217728
https://github.com/ntfreak/openocd/blob/master/tcl/target/hi6220.cfg
@tnishinaga
tnishinaga / error_uart1_log.md
Last active September 25, 2018 18:43
SynQuacer boot error log
NOTICE:  OP-TEE has not been loaded by SCP firmware
NOTICE:  BL31: v1.5(release):47577cbaaf4b
NOTICE:  BL31: Built : 12:01:39, Sep  6 2018
ERROR:   Error initializing runtime service opteed_fast
@tnishinaga
tnishinaga / sc2a11.cfg
Created September 27, 2018 19:32
sc2a11 OpenOCD config
set _CHIPNAME sc2a11
set _DAP_TAPID 0x6ba00477
adapter_khz 1000
transport select jtag
jtag_ntrst_delay 100
reset_config trst_and_srst
telnet_port 4444
@tnishinaga
tnishinaga / Makefile
Last active November 7, 2018 18:33
ARM stack execution
CC=gcc
CFLAGS=-g3
NOEXEC_FLAG=-z noexecstack
all: stack_exec hello_map stack_noexec hello_map_noexec
stack_exec: stack_exec.c ret1.S
$(CC) $(CFLAGS) $^ -o $@
hello_map: hello_map.c
@tnishinaga
tnishinaga / synquacer_uart0.log
Created November 14, 2018 15:43
SynQuacer with panram W4U2666PS-16GC19 bootlog
[SYSTEM] Entered SynQuacer Firmware
[SYSTEM] chip version 2.
[SYSTEM] Firmware mode Master
[SYSTEM] Platform: Socionext ARM Server
[SYSTEM] Configuration: 5
[SYSTEM] Firmware version LB.1.1.e979303
[SYSTEM] Build: 01/29/18 11:33:58
[SYSTEM] Initializing power domain
[PowerDomain] Socionext-PPU initialize .
[PowerDomain] Socionext-PPU initialize end .