NICはcoLinuxのをそのまま使用
ここの通りにやればOK。
http://nasberrypi.org/2012/03/qemu-virtual-raspberrypi/
qemu-system-arm.exe -M versatilepb -cpu arm1176 -m 256 -kernel "zImage-devtmpfs" -hda "archlinuxarm-13-06-2012.img" -append "root=/dev/sda2" -net nic -net tap,ifname=cotap -localtime
Ubuntu上から起動
ARCH="-M versatilepb -cpu arm1176 -localtime -k ja"
DISPLAY="-vnc 0:0"
MONITOR="-monitor stdio"
KERNEL="-kernel ../linux/arch/arm/boot/zImage"
APPEND="-append \"root=/dev/sda2\""
DISK="-hda archlinuxarm-13-06-2012.img"
NETWORK="-net nic,macaddr=00:16:3e:15:83:58 -net user,net=192.168.0.0/24,hostfwd=tcp::2222-:22"
qemu-system-arm $ARCH $DISPLAY $KERNEL $INITRD $APPEND $DISK $NETWORK $SERIAL $MONITOR
ssh -p 2222 root@localhost
loadkeys jp106
edit /etc/rc.conf
KEYMAP="jp106"
edit /etc/rc.local
setkeycodes 0x173 255
setkeycodes 0x17d 255
edit /etc/rc.conf
LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="localtime"
TIMEZONE="Asia/Tokyo"
KEYMAP="jp106"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
edit /etc/rc.conf
interface=eth0
address=192.168.1.62
netmask=255.255.255.0
broadcast=192.168.1.255
gateway=192.168.1.60
edit /etc/profile.d/proxy.sh
export https_proxy=http://192.168.1.60:8080/
export http_proxy=http://192.168.1.60:8080/
export ftp_proxy=http://192.168.1.60:8080/
chmod +x /etc/profile.d/proxy.sh
edit /etc/pacman.conf
XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
[archlinuxfr]
Server = http://repo.archlinux.fr/$arch
edit /etc/wgetrc
無いとsudo時にproxyを使ってくれない
https_proxy = http://192.168.1.60:8080/
http_proxy = http://192.168.1.60:8080/
ftp_proxy = http://192.168.1.60:8080/
pacman -Syu
pacman -S yaourt
yaourt -S sudo
edit .bashrc
complete -cf sudo
インストール
yaourt -S htpdate
edit PKGBUILD
arch=(arm)
edit /etc/default/htpdate
DAEMON_OPTS=" -t -l -s -t -D www.google.com www.linux.org www.freebsd.org -P 192.168.1.60:8080"
起動
sudo /etc/rc.d/htpdate start
Host:
qemu-img.exe resize archlinuxarm-13-06-2012.img +10G
QEMU:
https://github.com/chattama/raspi-config-archlinux
sudo raspi-config
yaourt -S lxde xorg-xinit xf86-video-fbdev
xinit /usr/bin/lxsession
谢谢你