2007年3月25日 星期日

qemu arm versatile bug hunting

  1. lsi scsi bug patch -> upstream merged
  2. smc network patch -> upstream merged
  3. 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?
  4. install apt-cacher(not apt-proxy) to get network more stable.
  5. tun/tap: /etc/network/interfaces : bridge_fd 1
  6. 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"
  7. DNS server is not stable. 140.113.250.135 is nctu primary DNS server and assign ip address for mirror site
  8. RTC not implement, delay will be infinite delay(I guess debian installer hang)
  9. 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)
I don't know if the fixed is useful.
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在做什麼.