Skip to content

Instantly share code, notes, and snippets.

@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
# ----------------------------------------------------------------
@jitomesky
jitomesky / wdt_test.cpp
Created December 17, 2014 08:02
mbed LPC1768でWatchDogTimerの動作を確認するコード
#include "mbed.h"
#include <stdint.h>
class Watchdog {
public:
// clock souce
enum SRCCLK
{
CLKSRC_IRC = 0,
CLKSRC_PCLK = 1,
@jitomesky
jitomesky / rtc_int_blink.cpp
Created December 17, 2014 07:58
mbed LPC1768でRTCの割り込みで1秒間隔でLチカするコードサンプル
@jitomesky
jitomesky / mul_long-division.py
Last active August 29, 2015 14:11
n-bit乗算をm-bitアラインで行う筆算式を出力するコード
#!/usr/local/bin/python3
bit = 64
align = 16
for i in range(0,int(bit/align)):
a = i
b = 0
mulstring = "%3d - %3dbit: " % (align*i,align*i+align)
for j in range(0,i+1):
@jitomesky
jitomesky / bootlog.txt
Created November 29, 2014 10:39
Pogoplug v3 proのNANDにLinux-3.18.0突っ込んだら死んだ。
Stage-1 Bootloader XCE_STAGE1: 1.1: Tue Feb 8 01:40:26 PST 2011
Attempting to set PLLA to 700MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000E0000
plla_ctrl2 : 0x001C01A0
plla_ctrl3 : 0x00000016
PLLA Set
Setup memory, testing
Reading NAND, Image 0
firewall {
all-ping enable
broadcast-ping disable
config-trap disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name OUTSIDE-IN {
default-action drop