Some very very brief and possibly quite useless notes on installing RedHat Linux 6.0 on an
IBM ThinkPad 570 (model 2644-3AA). Feel free to bug me if you think I might be able to help.
Configuration
IBM Thinkpad 570, Model 2644-3AA
Pentium II-366
64MB RAM
6.4GB hard drive
IBM 10/100 EtherJet Cardbus
RedHat Linux 6.0 (kernel 2.2.5-15)
Installation
No cdrom, no ethernet, so:
- Start up Windoze
- ftp i386.tar from local RedHat mirror (approx 600MB), putting it onto a VFAT drive
- untar using WinZip
Uh oh. Doing the latter looked just fine, but RedHat didn't work at all well. I had to untar using the gnu tar from gnu tar-1.11.2a.exe
Once that was done, no problems with remaining installation.
- started with RedHat boot floppy
- installed from disk image, pointing to the VFAT drive
I did have some troubles finding the right directory. In the end I put i386/RedHat/* into d:\RedHat\* and the install worked OK. Not sure if that was necessary, because the bad untar may have been the problem.
Startup
- To begin with, I could not get Linux to boot - it kept hanging when loading the pcmcia drivers. Eventually (in retrospect I was pretty stupid!) I started it with my ethernet card removed, and all was well. See below for details on getting the ethernet card going.
- Initially, Linux tries to start eth0 before loading the pcmcia drivers. I can't understand why that should be so – the network startup scripts should check for pcmcia first. I "fixed" it by starting pcmcia before networking:
Rename /etc/rc.d/rc5.d/S45pcmcia to /etc/rc.d/rc5.d/S09pcmcia
- RedHat starts gnome, which is pretty big and ugly, wasting lots of screen real estate. I use fvwm2. To do this, I had to:
- edit /etc/X11/xdm/Xsession and add an option for fvwm2
Look in the file for case $1 in failsafe) ... and add:
fvwm2)
exec /usr/bin/X11/fvwm2
;;
Also look a the bottom and change the last final do-or-die option from exec xsm to exec fvwm2.
- Look in /etc/X11/gdm/Sessions. Edit the Default file and change it to /etc/X11/xdm/Xsession fvwm2. I think that will do it but no guarantees.
IBM 10/100 CardBus EtherJet
These cards are essentially the same as the Xircom CardBus 10/100 cards. See Danilo Beuche's web page for more details.
Note: I recently added pcmcia-cs-3.1.21 (as in steps 2 and 3 below), ran make config, make all, make install, and then it just worked from boot (i.e. found the card, etc.). Alas, it didn't work! I had to revert to the old tulip_cb.c driver (from 3.0.14). email me if you need it.
- First start Linux without netcard installed.
Set /etc/sysconfig/pcmcia as follows:
PCMCIA=yes
PCIC=i82365
PCIC_OPTS=
CORE_OPTS=
I think these are overwritten by one of the rc.d scripts. Look at /etc/rc.d/init.d/pcmcia.
- Get pcmcia-cs-3_0_14.tar.gz
- gunzip and untar in /usr/src
- Define XIRCOM_CARDBUS in the clients/tulip_cb.c file
- Get xforms-0.88-8.i386.rpm (part of RedHat Powertools collection).
Install as usual:
rpm -i xforms-0.88-8.i386.rpm
- Add a link to the installed library, in my case
/usr/X11R6/lib/libforms.so.0.88
The pcmcia package will look for /usr/X11R6/lib/libforms.so without the version number at the end.
- From /usr/src/pcmcia-cs-3.0.14 do:
make config
make all
make install
- Edit /etc/pcmcia/config to add the card. I added:
card "IBM 10/100 Etherjet CardBus"
# version "IBM", "10/100 EtherJet CardBus", "IBMC-10/100"
manfid 0x00a4, 0x0113
bind "tulip_cb"
- Edit /etc/pcmcia/config.opts to exclude some ports. This is apparently needed for the IBM Thinkpad 600. I don't know if it's actually needed for the 570, but they seem to be very similar machines. I added:
exclude port 0x2f8-0x2ff
- Reboot with card installed.
- Use cardinfo to check status. In my case it shows:
IBM 10/100 Etherjet CardBus
state: ready CD Vcc Vpp
device(s): eth0
IO ports: 0x100-0x17f interrupt: 3
9:21:58 socket 1: card insertion
CNET CNF-301 10/100 16-bit network cards
Bloody awful, don't buy one if you can avoid it. They use a buggy chipset (see http://pcmcia-cs.sourceforge.net/ftp/BUGS). If you must:
- Get Linux drivers directly from Asix, http://www.asix.com.tw/driver2.htm
- I'm using pcmcia-cs-3.1.21, RedHat 6.2, kernel 2.2.14-5.0
- Compile Asix versions of pcnet_cs and 8390 (as in gen1, gen2), and copy to /lib/modules/...
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux -I/usr/src/pcmcia-cs-3.0.9/include -c -O6 pcnet_cs.c
cp pcnet_cs.o /lib/modules/2.2.14-5.0/pcmcia/pcnet_cs.o
gcc -DMODULE -D__KERNEL__ -I/usr/src/linux -I/usr/src/linux/drivers/net -c -O6 8390.c
cp 8390.o /lib/modules/2.2.14-5.0/net/8390.o
- In /etc/pcmcia/config:
card "My favourite description"
manfid 0x021b, 0x0202
bind "pcnet_cs"
- In /etc/pcmcia/config.opts:
module "pcnet_cs" opts "hw_addr=0x00,0x80,0xc8,0x01,0x02,0x03"
- Reboot
Created: 1 May 98
Updated: 27 September 99
Maintainer: Robert Scholten, School of Physics, Email: r.scholten at physics_unimelb_edu_au
Authorised by: Robert Scholten, School of Physics, Email: r.scholten at physics_unimelb_edu_au
This page, its contents and style, are the responsibility of the author and do not represent the views, policies or opinions of The University of Melbourne.