Skip to content

Instantly share code, notes, and snippets.

View chattama's full-sized avatar

chattama chattama

View GitHub Profile
@chattama
chattama / gist:3272339
Created August 6, 2012 08:47
QEMU ArchLinuxARM (RaspberryPi)
@chattama
chattama / gist:3293085
Created August 8, 2012 07:19
QEMU SystemRescueCd

QEMUでSystemRescueCdを起動

最初のメニューを飛ばして起動

  • standard 32bit kernel
  • "SystemRescueCd with a standard VGA console (no KMS)"
  • keymap=jp

ISOの中からisolinuxフォルダを取り出しておく

@chattama
chattama / .tmux.conf
Created August 13, 2012 02:21
.tmux.conf
# status
set -g status-fg cyan
set -g status-bg black
set -g status-left-length 30
set -g status-left '#[fg=white,bg=black]#H#[fg=white]:#[fg=white][#S#[fg=white]][#[default]'
set -g status-right '#[fg=black,bg=cyan,bold] [%Y-%m-%d(%a) %H:%M]#[default]'
# window-status-current
setw -g window-status-current-fg black
@chattama
chattama / gist:3433882
Created August 23, 2012 07:40
raspberry pi cross compile (setup)
sudo aptitude install python-software-properties bison flex texinfo libtool automake libncurses5-dev git subversion gcc gcc-4.6 g++ g++-4.6 make gperf gawk
sudo add-apt-repository ppa:linaro-maintainers/toolchain
sudo aptitude update
==============================================================
mkdir ~/raspi
mkdir ~/raspi/cross
@chattama
chattama / gist:3443835
Created August 24, 2012 00:11
raspberry pi cross compile (kernel build)
cd ~/raspi
git clone https://github.com/raspberrypi/linux.git
wget http://xecdesign.com/downloads/linux-qemu/linux-arm.patch
patch -p1 -d linux/ < linux-arm.patch
cd ~/raspi/linux
make ARCH=arm versatile_defconfig
@chattama
chattama / gist:3508370
Created August 29, 2012 08:12
archlinux makepkg on ubuntu
sudo aptitude install libarchive-dev bsdtar
git clone git://projects.archlinux.org/pacman.git
cd pacman
./autogen.sh
./configure --disable-doc
make
sudo make install
@chattama
chattama / gist:3522806
Created August 30, 2012 05:31
archlinuxarm raspi-config
yaourt -S core/popt
yaourt -S extra/slang
yaourt -S extra/tcl
yaourt -S extra/python2
yaourt -S aur/newt
edit PKGBUILD
=============================================================================
# Maintainer: TDY <tdy@gmx.com>
@chattama
chattama / gist:3606942
Created September 3, 2012 05:27
WN-G150UMK(rtl8192cu)
ftp://WebUser:AxPL9s3k@95.130.192.218/cn/wlan/RTL819xC_USB_linux_v3.4.4_4749.20120806.zip
/etc/modprobe.d/8192cu.conf
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0
@chattama
chattama / gist:3633126
Created September 5, 2012 08:13
u-boot
mkimage -A arm -C none -O linux -T kernel -d ../kernel/linux/arch/arm/boot/zImage -a 0x00010000 -e 0x00010000 zImage.uimg
mkimage -A arm -C none -O linux -T ramdisk -d initramfs.gz -a 0x00800000 -e 0x00800000 rootfs.uimg
dd if=/dev/zero of=flash.bin bs=1 count=6M
dd if=../boot/u-boot-2012.07/u-boot.bin of=flash.bin conv=notrunc bs=1
dd if=zImage.uimg of=flash.bin conv=notrunc bs=1 seek=2M
dd if=rootfs.uimg of=flash.bin conv=notrunc bs=1 seek=4M
@chattama
chattama / gist:3697029
Created September 11, 2012 08:56
archlinuxarm java install
yaourt -S extra/openjdk6
sudo ln -s /usr/lib/libffi.so.6.0.0 /usr/lib/libffi.so.5