在一次網路不穩定(apt-proxy)的狀況下出現了下面的問題.正常狀況下似乎不會發生
lsi_scsi: error: Unimplemented message 0x0d
lsi_scsi: error: Unimplemented message 0x0c
lsi_scsi: error: Reselect with pending DMA
lsi_scsi: error: Reselect with pending DMA
lsi_scsi: error: Reselect with pending DMA
2007年4月4日 星期三
QEMU看起來還不錯用啦
debian ARM versatile QEMU
angstrom ARM versatile QEMU
兩個環境相當的不錯!!
目前在我的環境 x86 debian sarge or debian etch都蠻穩的,系統沒有什麼問題.
ps.但是debian installer在別的環境下不行, 連ubuntu都會掛!!!Fedora是一定掛........
但是我個人覺得這個應該是debian installer software的bug,硬體應該沒問題。
看debian etch installer 的bug list還真多問題。
ps.後來覺得debian installer software應該沒有問題。是hardware model的bug.(4/10)
ps.我不知道什麼時候會再反過來
angstrom ARM versatile QEMU
兩個環境相當的不錯!!
目前在我的環境 x86 debian sarge or debian etch都蠻穩的,系統沒有什麼問題.
ps.但是debian installer在別的環境下不行, 連ubuntu都會掛!!!Fedora是一定掛........
但是我個人覺得這個應該是debian installer software的bug,硬體應該沒問題。
看debian etch installer 的bug list還真多問題。
ps.後來覺得debian installer software應該沒有問題。是hardware model的bug.(4/10)
ps.我不知道什麼時候會再反過來
2007年3月25日 星期日
qemu arm versatile bug hunting
- lsi scsi bug patch -> upstream merged
- smc network patch -> upstream merged
- dhcp server: option interface-mtu 1500; debian arm versatile installer send size > 1500 packet to network, but the host network MTU is 1500. /sbin/ifconfig will indidate the host network MTU -> not real problem?
- install apt-cacher(not apt-proxy) to get network more stable.
- tun/tap: /etc/network/interfaces : bridge_fd 1
- the vnc server in qemu is not so robust. you must disconnect normally. real vnc viewer F8 will pop the menu, and then click "quit viewer"
- DNS server is not stable. 140.113.250.135 is nctu primary DNS server and assign ip address for mirror site
- RTC not implement, delay will be infinite delay(I guess debian installer hang)
- apt-proxy sometimes need restart because the connections are not normal termination or the mirror site synchronization problems. If information show "some package can not got", you need to restart apt-proxy. (you should change to apt-cacher)
But I can install arm debian in qemu 30 times automatically without problem.
The version is debian-v2.4. the version is a private version control number not link with upstream.
Wang Cheng Yeh is me.
2007年3月23日 星期五
linux debug under qemu
之前說qemu系統不穩,所以需要debug,
當你發現系統hang住了,你可以進到qemu monitor: ctrl-alt-2,
來個log in_asm,exec,cpu ...,
再繼續cont....
你就可以看到kernel的部分在搞什麼鬼,
再來你需要去看kernel的System.map就會知道是哪個function出問題,
之後就看個人修行啦!!
這樣的debug是kernel level debug,
目前versatile qemu最大的問題是debian installation裝不起來,
ctrl-alt-2 and sendkey ctrl-alt-f1 ~ f4可以切換到console看看debian出甚問題,
這樣可以看到gui的後面installer在做什麼.
當你發現系統hang住了,你可以進到qemu monitor: ctrl-alt-2,
來個log in_asm,exec,cpu ...,
再繼續cont....
你就可以看到kernel的部分在搞什麼鬼,
再來你需要去看kernel的System.map就會知道是哪個function出問題,
之後就看個人修行啦!!
這樣的debug是kernel level debug,
目前versatile qemu最大的問題是debian installation裝不起來,
ctrl-alt-2 and sendkey ctrl-alt-f1 ~ f4可以切換到console看看debian出甚問題,
這樣可以看到gui的後面installer在做什麼.
2007年2月5日 星期一
qemu uart console
`-nographic'
Normally, QEMU uses SDL to display the VGA output. With this option, you can totally disable graphical output so that QEMU is a simple command line application. The emulated serial port is redirected on the console. Therefore, you can still use QEMU to debug a Linux kernel with a serial console.
所以只要輸入到uart就可以對應到console
Normally, QEMU uses SDL to display the VGA output. With this option, you can totally disable graphical output so that QEMU is a simple command line application. The emulated serial port is redirected on the console. Therefore, you can still use QEMU to debug a Linux kernel with a serial console.
所以只要輸入到uart就可以對應到console
2007年1月27日 星期六
debian qemu : usb
系統不穩定,常常就不會動,或者當掉。
但是embedded system angstrom的就沒有這個問題。debian installer常常partition的建立會出問題。
1. 目前是disk image type raw size 2G and file system ext2
2. 安裝的時候不要上tap/tun網路
這樣似乎就沒有問題....不知道那裡出問題了.....
usb非常重要,缺什麼,就把usb的device買來就可以裝上去,
可是debian etch的kernel package居然沒有usb,所以rebuild kernel是必須的,
還好debian's way的方法在x86上有接觸過,
build linux kernel in debian
install kernel image version XXX
download kernel-source version XXX package
cd /usr/src
tar jxvf kernel-source-XXX
ln -s kernel-source-XXX linux
cd linux
make xconfig
in GUI
load configuration from file
/boot/config-XXX
save and exit
fakeroot make-kpkg clean
fakeroot make-kpkg --append-to-version=.cywang --initrd kernel_image
動作
1. download debian org.tgz and versatile patch
2. tar org.tgz and patch gz
3. cd linux-2.6.18;patch -p1 < patchfile
4. apt-get install kernel-package fakeroot libncurses5-dev
5. dpkg-buildpackage -rfakeroot
rebuild
debian qemu
rebuild
但是embedded system angstrom的就沒有這個問題。debian installer常常partition的建立會出問題。
1. 目前是disk image type raw size 2G and file system ext2
2. 安裝的時候不要上tap/tun網路
這樣似乎就沒有問題....不知道那裡出問題了.....
usb非常重要,缺什麼,就把usb的device買來就可以裝上去,
可是debian etch的kernel package居然沒有usb,所以rebuild kernel是必須的,
還好debian's way的方法在x86上有接觸過,
build linux kernel in debian
install kernel image version XXX
download kernel-source version XXX package
cd /usr/src
tar jxvf kernel-source-XXX
ln -s kernel-source-XXX linux
cd linux
make xconfig
in GUI
load configuration from file
/boot/config-XXX
save and exit
fakeroot make-kpkg clean
fakeroot make-kpkg --append-to-version=.cywang --initrd kernel_image
動作
1. download debian org.tgz and versatile patch
2. tar org.tgz and patch gz
3. cd linux-2.6.18;patch -p1 < patchfile
4. apt-get install kernel-package fakeroot libncurses5-dev
5. dpkg-buildpackage -rfakeroot
rebuild
debian qemu
rebuild
2007年1月21日 星期日
gcc 4.1 v.s. gcc 3.4
familiar 0.8.4目前使用gcc3.4
angstrom 2007.1現在使用gcc4.1
gcc之前有自己extend c/c++ language,現在要拿掉了,所以有些語法會出問題,這部份會變得比較麻煩,所以現在gcc是越新版的就會越嚴格,這也是沒有辦法的,但是對於distribution就是大麻煩。目前我的規劃是build兩套distribution,familiar比較舊但是功能完整,angstrom比較新但是功能比較少。但是這是遲早要解決的問題,只要angstrom都沒有問題,我想就只build angstrom.
angstrom 2007.1現在使用gcc4.1
gcc之前有自己extend c/c++ language,現在要拿掉了,所以有些語法會出問題,這部份會變得比較麻煩,所以現在gcc是越新版的就會越嚴格,這也是沒有辦法的,但是對於distribution就是大麻煩。目前我的規劃是build兩套distribution,familiar比較舊但是功能完整,angstrom比較新但是功能比較少。但是這是遲早要解決的問題,只要angstrom都沒有問題,我想就只build angstrom.
訂閱:
文章 (Atom)