Skip to content

Instantly share code, notes, and snippets.

$ sudo emerge -1 systemd util-linux
WARNING: One or more repositories have missing repo_name entries:
/usr/local/portage/local-overlay/profiles/repo_name
NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
@jitomesky
jitomesky / gentoo_install_battle_x201.md
Last active November 22, 2015 01:47
ThinkPad X201 gentoo setting log
@jitomesky
jitomesky / dmesg
Last active August 29, 2015 14:24
btrfs_mount_failed
[ 0.000000] Linux version 3.18.12-gentoo (root@nightheron) (gcc version 4.8.4 (Gentoo 4.8.4 p1.6, pie-0.6.1) ) #1 SMP Thu Jun 4 06:18:47 UTC 2015
[ 0.000000] Command line: root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot initrd=gentoo.igz vga=791 BOOT_IMAGE=gentoo
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000dffeffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000dfff0000-0x00000000dfffffff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000011fffffff] usable
@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 / dhcp6c_pd_print.py
Created June 6, 2015 05:10
DHCPv6サーバーにIPv6 Prefixくれくれするスクリプト(注: まともなDHCPv6クライアントではないです.隔離環境で実行してください)
import ipaddress
import sys
import socket
import os
# ref
# http://docs.python.jp/3/library/socket.html
def show_identifier(option):
@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 / rpi2.cfg
Created April 3, 2015 17:24
OpenOCD target config file for Raspberry Pi 2
# ref: http://www.raspberrypi.org/forums/viewtopic.php?f=72&t=100268
# : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0464f/ch10s06s01.html
adapter_khz 1000
adapter_nsrst_delay 400
reset_config none
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
@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'...