Install Fedora on ASUS M2N notebook(M2474PDV)

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.

留言

  1. 還在想要把RH9改成Fedora Core,到這裡來看看有啥支援,沒想到,你也改裝了Fedora,看看安裝過程,可解決我不少問題^^ .我並沒有重新編譯核心,還是採用內建的核心.
    不過我發現不用再裝acpid套件,battery的問題就可以解決,在光碟開機後的文字模式下 ,直接輸入 linux acpi =on ,安裝完畢,重新開機後,在桌面上就可以看到電池的使用狀況了.
    註:沒想到你還真忙,還熱心公益,還到台中出差,寫了一篇那麼文情並茂的遊記!! 台中三民路附近小吃也不少,還有逢甲文華夜市,也是不錯的選擇噢^^

    回覆刪除
  2. 舊有的核心雖然打開了acpi的支援,不過NTFS就沒有支援了。除此之外,還有許多大大小小的patch。感謝CK。:D

    還是建議你重新編譯。當然沒有時間的話用內建的就好了。

    謝謝你對於台中的建議。我在旅館拿了一份台中小吃大全,回台北有空再列出來。

    回覆刪除
  3. 感謝建議^^,這幾天找個時間來重新編譯一下核心,祝工作順利!!

    回覆刪除
  4. well.. My WLAN can't get DHCP Information from my AP@@|||
    Could anyone help me about this?
    iwconfig status:
    wlan0 IEEE 802.11b ESSID:"dinoshome"
    Mode:Managed Frequency:2.442GHz Access Point: 00:05:5D:EB:C4:92
    Bit Rate:1Mb/s
    RTS thr:1600 B Fragment thr:2344 B
    Encryption key:************ Security mode:open
    Power Management:off
    Link Quality:0/0 Signal level:-49 dBm Noise level:-256 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0

    as you see, ESSID is already got from AP.
    but when I tried to use dhclient to get a DHCP Information,
    system returns me...
    [root@sw73-16-113 M2N]# dhclient wlan0
    Internet Software Consortium DHCP Client V3.0pl2
    Copyright 1995-2001 Internet Software Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/products/DHCP

    /sbin/dhclient-script: configuration for wlan0 not found.
    Listening on LPF/wlan0/00:04:23:57:7f:18
    Sending on LPF/wlan0/00:04:23:57:7f:18
    Sending on Socket/fallback
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
    No DHCPOFFERS received.
    No working leases in persistent database - sleeping.
    /sbin/dhclient-script: configuration for wlan0 not found.

    @@||||

    My AP is DLink DI-713P,may the problem is related to AP??

    Please help me..:)

    回覆刪除
  5. after I removed the WEP encryption,now dhclient can get IP from AP.
    but my WLan Card still can't have a IP,because dhclient give me the following message:
    DHCPDISCOVER ...
    DHCPOFFER from ...
    DHCPREQUEST ...
    DHCPACK ...
    /sbin/dhclient-script: configuration for eth1 not found

    and then,dhclient just like fell in to a unlimited loop,repeating the same message,until I press Ctrl+C..@@"

    回覆刪除
  6. 編了好幾次,也參考了您的modules檔,但音效卻都一直出不來...請問有啥要特別設定的嗎?(acpi已開,也偵測到華碩的M2N音效是intel i810,但是就是無法載入)@_@|||

    回覆刪除
  7. 来 irc://freenode/fedora-tw 坐坐吧
    认识 fedora-tw 的人吗?

    回覆刪除

張貼留言

這個網誌中的熱門文章

大車人生: Yamaha FZ6N更換TPS、火星塞以及引擎調校

[鳳梨外貿社] 1988 Austin Mini Automatic 奧斯丁 迷你上架銷售

PSA Citroen C5 Stereo Upgrade - from RD3 to RD45 (applied to Peugeot 307SW, Citroen XSara / C5 / C8, Berlingo)