顯示具有 minix筆記 標籤的文章。 顯示所有文章
顯示具有 minix筆記 標籤的文章。 顯示所有文章

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

2007年5月10日 星期四

memory allocation of minix

設計:
用不同的slot裝不同段的memory

實作:
1.有一個free slot的array ,有不用的memory就要一個slot來放,形成一個hole list, 以
hole_head指向開頭
2.hole list用base address的大小排列,造成每次釋放memory的時間較要求memory久
3.memory分配是以first fit方式進行

2007年4月23日 星期一

simple svn server setup

1.configure file of svn server is in /etc/conf.d
a. SVNSERVE_OPTS="--root=repository_path" set ur repository path here
b. SVNSERVE_USER SVNSERVE_GROUP set server's user and group, special user and group is good for safety
2."svnadmin create repository_dir" can create repository
3.there are other configure files in repository_dir/conf
a. u can just use a passwd-db and not to specify an authz-db for no path-base access
b. edit username and password in passwd-db file
4.remember to change owner of repository_dir and start svnserve in /etc/init.d
5.u can initiate ur repository with "svn import"
6.then use "svn checkout" and "svn commit" to sent ur modified file