In this short HOWTO, we have few tasks: (In fact, you have to do a lot of things...)
1. Install Fedora on this elegant business notebook.
2. Enabling ACPI for sound card, pc card and power management support.
3. Enabling build-in ICH software modem
4. Download synaptic driver from http://tuxmobil.org/touchpad_driver.html
5. Enabling Intel Wireless Pro 2100 802.11b build-in wireless mini-pci card
My ASUS M2N SPEC. is:
Centrino 1.4GHz
512MB DDR RAM
14.1 inches LCD
8x DVD drive
56Kbps Modem
Realtek 8139 NIC
XP Home edition(useless???)
Before you start, I guess you need these:
1. Fedora core 1 CD * 3
2. 2.4.23 kernel from www.kernel.org
3. patch-2.4.23-ck1.bz2 from www.kernel.org
4. acpid-1.0.2-1.i386.rpm from acpid.sf.net
5. slmodem-2.9.2.tar.gz from ftp://ftp.smlink.com/linux/
6. NDISwrapper from http://ndiswrapper.sourceforge.net/
7. Whatever intel wireless 2100pro driver for WinXP from http://sourceforge.net/projects/ndiswrapper/ or your own cdrom.
8. My config file can be download here
Below are the procedures I have had done:
1. Installation of Fedora core 1:
Install Fedora core 1, with SWAP partition larger than your physical memory about 30% to 100%. ex. I have 512MB physical memory, so I give a 1GB SWAP on my machine.
2. Before install kernel
untar your 2.4.23 kernel into /usr/src/ with command
# tar zxvf 2.4.23.tar.gz -C /usr/src/
3. Patch kernel with CK patch
patch CK's patch to accelerate your kernel, put CK patch in /usr/src/, then patch it with command:
# bzcat patch-2.4.23-ck1.bz2 | patch -p0
4. Configure kernel 2.4.23
In directory /usr/src/2.4.23, make menuconfig and enable all acpi part and swsusp part. You can also just load my config file and just save it.
5. Install kernel 2.4.23-ck1
do these commands:
# make dep
# make bzImage
# make modules
# make modules_install
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.23-ck1
# cp System.map /boot/System.map-2.4.23-ck1
# mkinitrd -f /boot/initrd-2.4.23-ck1.img 2.4.23-ck1
6. Modify boot loader
modify your lilo.conf or grub.conf, add your kernel in.
Ex. This is my configurations in /etc/grub.conf:
title Fedora Core (2.4.23-ckl)
root (hd0,4)
kernel /boot/vmlinuz-2.4.23-ck1 ro root=LABEL=/ rhgb
initrd /boot/initrd-2.4.23-ck1.img
7. Reboot and check kernel
reboot your system and check this kernel work properly or not.
8. install acpid
# rpm -Uvh acpid-1.0.2-1.i386.rpm
# chkconfig --level 2345 acpid on
9. install smart link modem drivers:
# tar zxvf slmodem-2.9.2.tar.gz -C /tmp/
# cd /tmp/ ; make ; make install
9a. download my init file and enable it:
# cp slmodemd /etc/init.d/
# chmod 755 /etc/init.d/slmodemd
# chkconfig --add slmodemd
# chkconfig --level 2345 slmodemd on
# service slmodemd start
10. Modify settings of acpid:
after reference Mr. Namaru's website, I have modified my config files. You can just download it and put it in proper place.
a. acpid's action scripts, please put in /etc/acpi/actions/ and chmod 755 /etc/acpi/actions/*:
acpi.sh
powerbutton.sh
b. acpid's action scripts, please put in /etc/acpi/events/:
acpi.conf
buttonsuspend
powerbutton.conf
c. edit /etc/rc.local and add these lines:
# add asus acpi drivers
modprobe asus_acpi thermal
if [ -f /proc/acpi/ac_adapter/*/status ] ; then
ADAPTERFILE="/proc/acpi/ac_adapter/*/status"
else
ADAPTERFILE="/proc/acpi/ac_adapter/*/state"
fi
cat $ADAPTERFILE | grep on-line > /dev/null
if [ "$?" = "0" ] ; then
hdparm -S 120 /dev/hda > /dev/null
echo 15 > /proc/acpi/asus/brn
else
hdparm -S 12 /dev/hda > /dev/null
echo 5 > /proc/acpi/asus/brn
fi
# install Smart Link modem drivers
modprobe slamr slusb
d. replace /etc/suspend.conf with my one
e. Add acpi support on boot, download my file and put it in /usr/local/bin/:
# cp acpi.restart /usr/local/bin/
# chmod 755 /usr/local/bin/acpi.restart
11. Install synaptic driver for your touchpad
Download synaptic driver from http://tuxmobil.org/touchpad_driver.html
# tar zxvf synaptics-0.11.3.tar.gz -C /tmp/
# cp /tmp/synaptics/synaptics_drv.o /usr/X11R6/lib/modules/input/
Edit your /etc/X11/XF86Config and do these things:
a. add following line into your Section "Module"
Load "synaptics"
b. add following parts into your Section "InputDevice"
Section "InputDevice"
Driver "synaptics"
Identifier "Mouse[1]"
Option "Device" "/dev/psaux"
Option "Edges" "1900 5400 1800 3900"
Option "Finger" "25 30"
Option "MaxTapTime" "20"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.02"
Option "MaxSpeed" "0.18"
Option "AccelFactor" "0.0010"
# Option "Repeater" "/dev/ps2mouse"
# Option "SHMConfig" "on"
EndSection
c. In Section "ServerLayout" replace the CorePointer with following line:
InputDevice "Mouse[1]" "CorePointer"
d. restart your X, open an browser and drag your finger with right edge. You could "scroll" your browser. Cool!
12. Install driver for Intel 2100 pro on Centrino architecture.
Get your driver cd and find intel 2100pro driver for WinXP. Then copy all the files into /lib/modules/i2100pro/. Be sure you have .inf and .sys files.
# mkdir /lib/modules/i2100pro
# cp -rf /mnt/cdrom/WinXP/* /lib/modules/i2100pro/
12a. Before install NDISwrapper:
Because NDISwrapper need flex but fedora doesn't have, just install it with yum:
# yum install flex
12b. Install NDISwrapper:
# tar zxvf ndiswrapper-0.4.tar.gz -C /tmp/
# cd /tmp/ndiswrapper/
# ./install.sh
Then it will ask you some questions, just answer it:
# Where to place .inf files? /lib/modules/i2100pro/w70n51.inf
# Where to place .sys files? /lib/modules/i2100pro/w70n51.sys
# Which NIC you need to configure? eth1
Then just use the default setting should be fine.
12c. Test and bring up networking
# dhclient eth1
IRDA
13. edit your /etc/modules.conf and add these lines:
# IrCOMM module
alias char-major-161 ircomm-tty
alias char-major-60 ircomm_tty
# DevFS autoload for IrCOMM
alias /dev/ircomm0 ircomm-tty
alias /dev/ircomm1 ircomm-tty
# IrLAN, but currently the IrLAN protocol is no longer maintained by the Linux/IrDA core team
# To use the FIR driver. This applies only to the specific device!!!
# IrNET module
alias char-major-10-187 irnet
pre-install nsc-ircc /bin/setserial "/dev/ttyS1" "uart" "none"
options nsc-ircc dma=1 irq=3 io=0x2f8 dongle_id=0x09
#post-install nsc-ircc echo "115200" > /proc/sys/net/irda/max_baud_rate
post-install nsc-ircc echo 1 > /proc/sys/net/irda/discovery
14. modify /etc/sysconfig/irda, in DEVICE=:
DEVICE=irda0
15. Add these kernel parameters into /etc/grub.conf
acpi_irq_balance acpi_irq_isa=3,12
16. Reboot and test irda with irdadump, you should see something and done.
If you want to connect with your palm or mobile phone, do these:
# modprobe ircomm
# modprobe ircomm-tty
and set PILOTPORT=/dev/ircomm0
Congradulations!!! Centrino works! Linux rules!
Credits:
# Thanks to HOM
He help me update my kernel configuration and enable my usb stuffs.
今天的出差目的地是台中市北區區公所。地址是台中市北區永興街301號。為了要達成愉快完成工作的目的,我下了一些功夫...
首先,星期日要進駐飯店,我找了仁美大飯店這家老飯店沒有什麼特別華麗的裝潢,不過它具備有無線網路!
對於一個4小時沒有網路就會毒癮發作的人來說,這簡直就是鴉片館!
我開車來到了位置在這裡的仁美飯店。從中清交流道下來大致走了30分鐘,其實從中港交流道下來恐怕還更快...(當然會塞車)
進了飯店,第一件事情當然是把notebook打開,連上無線網路。不過我住的房間似乎離基地台有點距離,需要特調一下,所以我現在窩在床頭櫃上面寫文章。
這家飯店給人的感覺不是太好,除了美美的lobby以外,浴室有些異味,所有的擺飾都是歪歪地放著。不過看在網路訂房有新台幣1270的超低價位,就隨他去了。
下午兩點,我把上午的電子郵件看完之後,肚子餓了。跑到熟悉的東海別墅吃午飯,看樣子寒假還沒有結束,連遠近知名的聞香牛肉麵都沒有開。我又不是太喜歡開品便當店,只好在聞香正對面的茍不理吃午飯。
這茍不理吃完以後,我保證你真的狗不理。因為快要吐,所以面目猙獰。我依稀記得他們的水餃還可以,只不過理應是招牌的湯包,不但皮厚肉多,還沒味道。
總之,很便宜的打發了一餐(59元),倒是很適合學生時代的我。
旁邊馬路上不遠的休閒小站,卻是給了我不少安慰。一杯700cc的綠茶只要15元!
這東海別墅並不好停車,不過這句話是說給外地人看的。我把聞香附近每條巷子都繞過一遍,還是找到又大又寬的車位。
吃完回飯店,收到了NK寄來的信件,告訴我頭圍太小無法戴上M2R 333。只好跟他另外訂了Zeus的貓耳帽。
晚飯時間到了,我這次決定不要自作主張,問問櫃台附近的小吃有何值得一訪。櫃台那位福氣福氣的小姐告訴我,附近的新豐源排骨麵還不錯吃(台中市北區健行路461號)。
嗯,我點了一碗招牌麵:排骨麵,75元。
有點貴吧?以台中的價位來衡量。這胡志強當了市長以後,以往民生凋敝的台中可變了樣,四處動土,價位攀高。連舒服的金典會館也漲了兩倍!(對旅行者來說挺不利,不過居民恐怕很感謝他吧?)
回正題,排骨麵真是好吃極了!炸過再魯透的排骨,連軟骨都變成牛筋一般的軟滑。湯頭明顯是用大骨爆熬得來,味道甜而不膩。我相信連我的美麗韓妻也會愛上它的。建議多灑些胡椒粉,會變得香味四溢,滿室芳香。
下次得來嚐嚐肉排飯,一整套一樣是75元。感覺划算的多。
今天的消費:
高速公路過路費:160
仁美大飯店:1270(我要住四天)
狗不理:59
休閒小站:45(對,我買了三杯備用)
新豐源:75
水果攤:31
總計:NTD.1640
最近感謝輔大毛教授以及中國信託, 還有普仁基金會給我一個機會做點公益. 為消除資訊落差貢獻一點點小心意.
中國信託熱心捐贈了電腦百來部, 大致上都是IBM的機器. 尤其是以IBM 300GL(1788 teller machine)最大宗. 為了安裝Linux上去, 並且把內建的網路卡搞起來, 還真花了不少時間...
Hardware SPEC.
CPU: socket 7 Pentium/Pentium MMX/K6/K6-2/K6-3
RAM: 168pin PC100 SDRAM w/o ECC
IDE: UDMA 66
NIC: Crystal Lan CS8920
其實基本上的Linux安裝並不困難. 所有的裝置除了網路卡都在Linux的掌握之中...
需要驅動這張Crystal Lan 8920的方法如下述:
1. 下載http://www.cirrus.com/en/software/drivers/ethernet/Windows_Networking_SWDiskV310.zip
2. 把檔案解開放進dos開機片裡.
3. 執行Setup:
a. 把PnP關掉
b. 設定Media為RJ-45
c. 設定io=0x300
d. 設定irq=10
(後面兩個設定端看你有剩下那些io以及irq可用. 一般來說使用這個設定不會有問題.)
4. 關機以後重新啟動電腦
5. 在/etc/modules.conf裡加入以下幾行:
alias eth0 cs89x0
options cs89x0 io=0x0300 irq=10 dma=5 use_dma=1