2007年9月19日 星期三

QEMU Installion

http://www.aurel32.net/info/debian_mips_qemu.php
http://d-i.alioth.debian.org/manual/en.mipsel/index.html

wget http://fabrice.bellard.free.fr/qemu/qemu-0.9.0.tar.gz
$ cd qemu-0.9.0
$ ./configure --prefix=/usr

$ make
$make install

$cd ..
$qemu-img create -f qcow hda.img 10G

wget http://ftp.de.debian.org/debian/dists/etch/main/installer-mipsel/current/images/qemu/netboot/vmlinux-2.6.18-5-qemu

wget http://ftp.de.debian.org/debian/dists/etch/main/installer-mipsel/current/images/qemu/netboot/initrd.gz

dd if=/dev/zero of=/usr/share/qemu/mips_bios.bin bs=1024 count=128

qemu-system-mipsel -kernel vmlinux-2.6.18-5-qemu -initrd initrd.gz -hda hda.img -append "root=/dev/ram console=ttyS0" -nographic

#After installation

qemu-system-mipsel -kernel vmlinux-2.6.18-5-qemu -initrd initrd.gz -hda hda.img -append "root=/dev/hda1 console=ttyS0" -nographic

2007年9月10日 星期一

System upgrade by cpio

Link


http://linux.vbird.org/linux_basic/0240tarcompress.php#cpio


http://tw.myblog.yahoo.com/blue-comic/article?mid=41&prev=48&next=40&l=f&fid=7


1.備份檔案


find phone/bin/nxphone -print | cpio -o -H newc > ./nxphone.cpio


2.備份整個目錄


find phone -type f -print | cpio -o -H newc > ./phone.cpio


find參數 -type f 代表檔案形態為一般檔案 (即不包含目錄)


3.輸出備份檔案列表


cpio -t < phone.cpio > phone.list


4.以檔案列表做備份


cat phone.list | cpio -o -H newc > phone.cpio


5.還原檔案


5.1.還原檔案並自動覆蓋較舊的檔案


cpio -iu < phone.cpio


5.2.還原檔案及建立目錄並自動覆蓋較舊的檔案


cpio -idu < phone.cpio