Skip to content

Instantly share code, notes, and snippets.

@jitomesky
jitomesky / config.log
Last active August 29, 2015 14:24
crossdev: error: Need linker with .init_array/.fini_array support.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU C Library configure (see version.h), which was
generated by GNU Autoconf 2.68. Invocation command line was
$ /var/tmp/portage/cross-mips64-unknown-linux-gnu/glibc-2.20-r2/work/glibc-2.20/configure --disable-sanity-checks --enable-hacker-mode --without-cvs --disable-werror --enable-bind-now --build=x86_64-pc-linux-gnu --host=mips64-unknown-linux-gnu --with-headers=/usr/mips64-unknown-linux-gnu/usr/include --prefix=/usr --enable-add-ons=
## --------- ##
## Platform. ##
@jitomesky
jitomesky / config.boot
Created May 23, 2015 11:27
EdgeOS DHCPv6-DP(fail)
firewall {
all-ping enable
broadcast-ping disable
ipv6-name tun-in {
default-action drop
description "IPv6 Traffice to Internal"
rule 10 {
action accept
description "Accept Established-Related"
state {
@jitomesky
jitomesky / config.boot
Last active August 29, 2015 14:20
EdgeRouterLite iijmioひかり IPv4 config
firewall {
all-ping enable
broadcast-ping disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
modify pppoe-out {
rule 1 {
action modify
@jitomesky
jitomesky / gist:4d247a26aee1daa828fc
Created April 5, 2015 14:11
ARM-USB-TINY-H with new OpenOCD's ftdi driver
$ openocd -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -c "transport select jtag" -f rpi2.cfg
Open On-Chip Debugger 0.9.0-dev-00358-gd3c2679-dirty (2015-04-03-21:53)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
jtag
adapter speed: 1000 kHz
adapter_nsrst_delay: 400
none separate
Info : clock speed 1000 kHz
@jitomesky
jitomesky / ocd_rpi1_log
Created April 3, 2015 15:44
OpenOCD RaspberryPi 1 log
Debug: 17 2 options.c:98 add_default_dirs(): bindir=/usr/local/bin
Debug: 18 2 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 19 2 options.c:100 add_default_dirs(): run_prefix=
Debug: 20 2 configuration.c:44 add_script_search_dir(): adding /Users/tnishinaga/.openocd
Debug: 21 2 configuration.c:44 add_script_search_dir(): adding /usr/local/share/openocd/site
Debug: 22 2 configuration.c:44 add_script_search_dir(): adding /usr/local/share/openocd/scripts
Debug: 23 2 configuration.c:84 find_file(): found /usr/local/share/openocd/scripts/interface/olimex-arm-usb-tiny-h.cfg
Debug: 24 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface ft2232
Debug: 25 2 command.c:145 script_debug(): command - interface ocd_interface ft2232
Debug: 27 2 command.c:366 register_command_handler(): registering 'ocd_ft2232_device_desc'...
@jitomesky
jitomesky / openocd_log.txt
Created March 28, 2015 17:02
RasPi2 openocd
$ openocd -f interface/olimex-arm-usb-tiny-h.cfg -f rpi2.cfg --debug
Open On-Chip Debugger 0.9.0-dev-00357-g09ca5af (2015-03-29-01:00)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 13 8 command.c:546 command_print(): debug_level: 3
Debug: 14 8 options.c:98 add_default_dirs(): bindir=/usr/local/bin
Debug: 15 8 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 16 8 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 8 configuration.c:44 add_script_search_dir(): adding /Users/tnishinaga/.openocd
@jitomesky
jitomesky / obsd_boot.txt
Created March 24, 2015 13:46
OpenBSD boot log
U-Boot SPL 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img
U-Boot 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
I2C: ready
@jitomesky
jitomesky / HPL.dat
Created February 7, 2015 06:46
Raspberry Pi 2 Linpack Benchmark
HPLinpack benchmark input file
Innovative Computing Laboratory, University of Tennessee
HPL.out output file name (if any)
6 device out (6=stdout,7=stderr,file)
1 # of problems sizes (N)
8000 Ns
1 # of NBs
32 NBs
0 PMAP process mapping (0=Row-,1=Column-major)
1 # of process grids (P x Q)
@jitomesky
jitomesky / raspberrypi-2015-02-07-02.html
Created February 7, 2015 05:47
Raspberry Pi 2 UnixBench result
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="linux, benchmarks, benchmarking">
<title>Benchmark of raspberrypi / GNU/Linux on Sat Feb 07 2015</title>
<style type="text/css">
table {
margin: 1em 1em 1em 0;
@jitomesky
jitomesky / Makefile
Last active August 29, 2015 14:13
printfで8bitずつ出力されない謎コード
# ----------------------------------------------------------------
# environment
CC = gcc
# ----------------------------------------------------------------
# options
CFLAGS = -std=c99 -lcrypto
# ----------------------------------------------------------------