Alper Akcan : ~/documents/slackware linux on thinkpad r52

News

Projects

Documents

Contact

RSS Feed

Donations (SF)

 
Installing Slackware Linux on IBM Thinkpad (Lenovo) R52
2005-10-27 22:16

I've bought a brand new IBM ThinkPad (Lenovo) R52, and installed slackware linux 10.2. Here is the step by step instructions;

1. First of all grep the iso images, and burn them...


# wget ftp://ftp.linux.org.tr/pub/slackware/slackware-10.1-iso-bittorrent/slackware-10.1-install-d1.iso
# wget ftp://ftp.linux.org.tr/pub/slackware/slackware-10.1-iso-bittorrent/slackware-10.1-install-d2.iso

# cdrecord -scanbus
scsibus0:
        0,1,0      1) 'HL-DT-ST' 'CD-RW GCE=8525B ' '1.02' Removable CD-ROM
# cdrecord -v speed=24 dev=0,1,0 --driveroptions="burnfree" -data slackware-10.1-install-d1.iso
# cdrecord -v speed=24 dev=0,1,0 --driveroptions="burnfree" -data slackware-10.1-install-d2.iso

2. Boot the R52 with disc 1.
It is ok to boot with standart bare.i image, but booting with test26.s will save your time. with bare.i E-IDE driver will be used, becouse there is no SCSI driver selected in bare.i kernel image (hdd -> /dev/hda, dvd/cd-rw -> /dev/hdc). but after installing slackware linux you will want to use dvd/cd-rw and you will enable SCSI driver... ups ;) EIDE driver is not avaible while SCSI is enabled. after enabling SCSI you should enable SATA, and change fstab, too. why not just boot via test26.s ;)

  • to use linux-2.4.x, just follow the documentation.
  • to use linux-2.6.x and be wirless, skip 4. and 5. steps.
  • you can always update your kernel to 2.6 with following 10. step.

boot: test26.s

3. Install slackware linux
i assume that everyone knows how to install slackware ;) and here is the tip: harddrive is attached to /dev/sda.


# fdisk /dev/sda

4. Boot again from disc 1.
this is for compiling the linux kernel...


boot: test26.s

# mount /dev/sdax /mnt
# chroot /mnt
# cd /usr/include
# rm -rf asm
# rm -rf asm-i386
# rm -rf linux
# ln -s /usr/src/linux/include/asm/ ./asm
# ln -s /usr/src/linux/include/asm-i386 ./asm-i386
# ln -s /usr/src/linux/include/linux ./linux
# cd /usr/src/linux
# make clean
# make mrproper
# make menuconfig

now, go and edit your libata.h

# cd /usr/include/linux/
# vi libata.h

change these lines;

#undef ATA_ENABLE_ATAPI
#undef ATA_ENABLE_PATA

to;

#define ATA_ENABLE_ATAPI
#define ATA_ENABLE_PATA

and, go on ;)

# cd /usr/src/linux
# make dep
# make bzImage
# make modules
# make modules_install
# rm /boot/vmlinuz*
# cp arch/i386/boot/bzImage /boot/vmlinuz
# lilo
# exit
# reboot

here is my kernel configuration file; kconfig-2.4.32

5. I love devfs


# wget ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/daemons/devfsd/devfsd-v1.3.25.tar.gz
# tar -zxvf devfsd-v1.3.25.tar.gz
# cd devfsd
# make
# make install


# cat > /etc/rc.d/rc.devfsd << EOF
>#!/bin/sh
>
>if [ "$1" = "stop" ]; then
>  echo "Stopping devfsd..."
>elif [ "$1" = "restart" ]; then
>  echo "Restarting devfsd..."
>else # assume $1 = start:
>  echo "Starting devfsd:  /sbin/devfsd /dev"
>  /sbin/devfsd /dev
>fi
>EOF
# chmod +x /etc/rc.d/rc.devfsd

6. Boot from harddisk.

7. Configure Xorg
here is my xorg.conf; xorg.conf

8. Burn cd
your dvd rom is now attached to /dev/sr0, change fstab;


/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro  0   0

to;

/dev/sr0         /mnt/cdrom       auto        noauto,owner,ro  0   0

9. Long live slackware! ;)

10. Upgrade to linux-2.6.16 kernel, and be wireless.

here is my kernel configuration file; kconfig-2.6.16



# cd /usr/src/
# wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2
# wget http://alperakcan.net/documents/slackware%20linux%20on%20thinkpad%20r52/kconfig-2.6.16
# tar -jxvf linux-2.6.16.tar.bz2
# rm linux
# ln -s linux-2.6.16 linux
# cd /usr/include
# rm -rf linux asm asm-i386 asm-generic
# ln -sf /usr/src/linux/include/asm ./asm
# ln -sf /usr/src/linux/include/asm-i386 ./asm-i386
# ln -sf /usr/src/linux/include/asm-generic ./asm-generic
# ln -sf /usr/src/linux/include/linux ./linux
# cd /usr/src/linux
# make mrproper
# cp ../kconf-2.6.16 ./.config
# make bzImage && make modules && make modules_install
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.16


change your /etc/lilo.conf properly


# lilo
# reboot


now, be wireless;

get 802.11 network stack form : http://prdownloads.sourceforge.net/ieee80211/ieee80211-1.1.13.tgz?download
get ipw2200 driver modules from : http://prdownloads.sourceforge.net/ipw2200/ipw2200-1.1.2.tgz?download
get ipw2200 firmwares from : http://ipw2200.sourceforge.net/firmware.php?i_agree_to_the_license=yes&f=ipw2200-fw-3.0.tgz


# tar -zxvf ieee80211-1.1.13.tgz
# cd ieee80211-1.1.13
# make
# make install
# cd ../

# tar -zxvf ipw2200-1.1.2.tgz
# cd ipw2200-1.1.2
# ./remove_old
# make
# make install
# cd ../

# tar -zxvf ipw2200-fw-3.0.tgz -C /lib/firmware

# wget http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/udev-084.tar.bz2
# tar -jxvf udev-084.tar.bz2
# cd udev-084
# make EXTRAS=extras/firmware
# cp extra/firmware/firmware_helper /sbin
# echo "ACTION==\"add\",SUBSYSTEM==\"firmware\",RUN+=\"/sbin/firmware_helper\"" > /etc/udev/rules.d/firmware.rules

# cd /etc/rc.d/
# chmod -x rc.devfsd
# chmod +x rc.udev

# /etc/rc.d/rc.udev restart

11. Connect to AP


# modprobe ipw2200


11.1 Connect to AP - no encryption


# iwlist eth1 scanning
...
# iwconfig eth1 essid "essid"
# iwconfig eth1 key off
# dhcpcd eth1

11.2 Connect to AP - WEP
it is very easy to connect with WEP (ipw2200).


# iwlist eth1 scanning
...
# iwconfig eth1 essid "essid"
# iwconfig eth1 key s:"key"
# dhcpcd eth1

11.3 Connect to AP - WPA
i know that you need wpa (ipw2200) ;)


# wget http://hostap.epitest.fi/releases/wpa_supplicant-0.4.9.tar.gz
# tar -zxvf wpa_supplicant-0.4.9.tar.gz
# cd wpa_supplicant-0.4.9
# cat > .config << EOF
CONFIG_DRIVER_WEXT=y
CONFIG_WIRELESS_EXTENSION=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_TLS=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TTLS=y
CONFIG_EAP_GTC=y
CONFIG_EAP_OTP=y
CONFIG_EAP_PSK=y
CONFIG_EAP_PAX=y
CONFIG_EAP_LEAP=y
EOF
# make
# make install
# wpa_passphrase SSID_TO_CONNECT YOUR_PASSWORD > /etc/wpa_supplicant.con
# wpa_supplicant -ieth1 -Dwext -c/etc/wpa_supplicant.conf -dd -B
# dhcpcd eth1



(CL) alper akcan
http://www.valgrind.org   hacker emblem   Valid HTML 4.01!   Viewable With Any Browser   [Valid Rss]   Open Source