2007年6月30日 星期六

關於新source重編過後舊source重編還是爛的問題

問題:
只有重編servers的部份 ,沒有動到開機的image, 因為有改 Number of boot servers, 所以一定會爛,但重新編old source竟蓋不回來。

原因:
是由於在rs資料夾內的service這個command,當這個command爛掉後,偵測硬體時間的程式起不來,系統時間頓時變成1970年7月1日,使得make 對下的指令不如預期的去蓋掉會爛的的程式。

解決方式:
1.把爛掉的程式先移除,就可順利install->不好。
2.比較好的方式是把編完的程式touch成現在的時間,如此才不會造成檔案時間是錯的那個。

2007年6月19日 星期二

setup virtualbox for minix

Network is down in minix 3.1.2a when it is be installed in virtualbox. But it should work because the NIC of virtualbox is also AMD pcnet.

The template solution is:
1. set qemu_pci=1 in boot monitor, but what I do is to insert hard code to /usr/src/driver/pci/pci.c
2. comment line 631 in /usr/src/driver/lance.c ; it call assert(0), but I don;t know why assert(0) fails, but I think it;s not important. I don;t know why ec->linmem must be zero now, but what I need is network can work, and it does. So I don;t wanna to trace next codes.

what I learn in progress of solving this problem.
1. Linux has a good API in driver programming.
2.Minix's IPC make program more complicate, but u just trust on it, and focus on errors in lance driver.
3.Minix has command "service".
4.U must copy the execution file of driver to /usr/sbin, the Makefile in /usr/src/tools won;t do it for u.
5.virtualbox's chip id of NIC is 79C973, it's not easy to pronounce in Chinese. :)

2007年6月5日 星期二

getsysinfo(SI_MEM_ALLOC) to PM must transfer to VM

現在先將送到pm的訊息轉到vm,之後要改成直接送向vm