Skip to content

Instantly share code, notes, and snippets.

@dlintw
dlintw / nextvod.console.log
Created February 8, 2014 00:54
original console log of nextvod
PDK7105> printenv
bootdelay=0
baudrate=115200
ethaddr=DE:EA:FF:FF:01:01
board=pdk7105
monitor_base=0xA4000000
monitor_len=0x00040000
monitor_sec=1:0-1
load_addr=0x80000000
ipaddr=192.9.150.61
@dlintw
dlintw / st24.Dockerfile
Created February 7, 2014 09:16
Dockerfile for build STLinux sh4 build environment
# dockerfile ref: http://docs.docker.io/en/latest/use/builder/
# command usage ref: http://docs.docker.io/en/latest/commandline/cli/
# http://docs.docker.io/en/latest/use/port_redirection/#port-redirection
# Build image (replace <NAME> to any name)
# docker build -t <NAME>/st24 - < st24.Dockerfile
# Run
# docker run -d -v /opt/tmp:/tmp:rw -p 127.0.0.1:20022:22 <NAME>/sshd
# ssh -p 20022 root@localhost # password: root
@dlintw
dlintw / sshd.dockerfile
Created February 5, 2014 09:17
dockerfile for sshd login
# dockerfile ref: http://docs.docker.io/en/latest/use/builder/
# command usage ref: http://docs.docker.io/en/latest/commandline/cli/
# http://docs.docker.io/en/latest/use/port_redirection/#port-redirection
# docker build -t dlin/centos
# docker -t -i -v /opt/tmp1:/tmp:rw dlin/centos /bin/bash
# docker -v /opt/tmp1:/tmp:rw -p 127.0.0.1:8888:8888 -p 127.0.0.1::20022:22 dlin/centos /usr/sbin/sshd -D
FROM centos:6.4
@dlintw
dlintw / smb.conf
Created January 6, 2014 23:51
/etc/samba/smb.conf
# This is the main Samba configuration file. For detailed information about the
# options listed here, refer to the smb.conf(5) manual page. Samba has a huge
# number of configurable options, most of which are not shown in this example.
#
# The Official Samba 3.2.x HOWTO and Reference Guide contains step-by-step
# guides for installing, configuring, and using Samba:
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
#
# The Samba-3 by Example guide has working examples for smb.conf. This guide is
# generated daily: http://www.samba.org/samba/docs/Samba-Guide.pdf
@dlintw
dlintw / PKGBUILD.qemu-static
Created December 9, 2013 02:09
PKGBUILD.qemu-static 1.7.0-1
pkgdesc="A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation."
pkgname='qemu-static'
pkgver=1.7.0
pkgrel=1
arch=('i686' 'x86_64')
license=('GPL2' 'LGPL2.1')
url="http://wiki.qemu.org/Index.html"
source=(http://wiki.qemu.org/download/qemu-${pkgver}.tar.bz2)
depends=('qemu')
pkgname=glib2-static
pkgver=2.38.2
pkgrel=1
pkgdesc="Common C routines used by GTK+ and other libs"
url="http://www.gtk.org/"
arch=(i686 x86_64)
depends=('pcre' 'libffi' "glib2")
makedepends=('pkg-config' 'python2' 'libxslt' 'docbook-xml' 'pcre' 'libffi' 'elfutils')
optdepends=('python2: for gdbus-codegen and gtester-report'
'elfutils: gresource inspection tool')
# $Id: PKGBUILD 197798 2013-10-30 10:37:54Z allan $
# Maintainer: Allan McRae <[email protected]>
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
# NOTE: valgrind requires rebuilt with each major glibc version
# NOTE: adjust version in install script when locale files are updated
pkgname=glibc-static
pkgver=2.18
@dlintw
dlintw / signing.c
Created November 6, 2013 14:20
pacman-4.1.2/lib/libalpm/
/*
* signing.c
*
* Copyright (c) 2008-2013 Pacman Development Team <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
@dlintw
dlintw / nextvod.boot.log
Last active December 26, 2015 22:39
stack dump with usb mis-order patch + initramfs
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2013.10.31 11:10:27 =~=~=~=~=~=~=~=~=~=~=~=
Board: STx7105-PDK [32-bit mode]
U-Boot 1.3.1 (Oct 6 2013 - 04:36:18) - stm23_0045
DRAM: 256 MiB
SPI: ST M25P80 (1MiB) device (page=256,erase=4096)
In: serial
@dlintw
dlintw / sh4twbox
Last active December 25, 2015 23:08
sh4twbox 0.7.1 patch
# http://www.in-ulm.de/~mascheck/various/ash/#busybox
# http://linux.about.com/library/cmd/blcmdl1_ash.htm
set -o errexit ; set -o nounset
rootfs=`cat /proc/cmdline | sed 's/\s\s*/\n/g'|grep '^root='| cut -d= -f2`
if [ "$rootfs" = "8:1" ] ; then
rootfs=/dev/sda1
elif [ "$rootfs" = "8:2" ] ; then
rootfs=/dev/sda2
fi