Installing USB and Upgraded Kernel 2.2.18 for my laptop

By Mark Nielsen

  1. References
  2. Introduction
  3. Installing 2.2.18
  4. Configuring Lilo to use the old and new kernels
  5. Setting up USB
  6. Changing the Ricochet modem from serial to USB.
  7. Some problems with laptop and resources.
  8. Conclusion


NOTE: I got a message from one of my readers that all you have to do it look at /usr/src/linux/configs for the kernel that got installed with redhat to find the configs that redhat used. I got this message on 8-28-2002 and I feel really dumb that I didn't know that.

I wanted to use my Ricochet modem on my laptop using the USB port. I had successfully downloaded kernel 2.2.18 and used USB with my other computers. I didn't feel like getting kernel 2.4 at the time.

The problem with my laptop was the fact it was using pcmcia devices. I found out later that I had to download pcmcia-cs and install it after I installed the new kernel 2.2.18.

Getting USB to work on my laptop meant I had to do several things,

  1. Install the new kernel 2.2.18.
  2. Install the pcmcia drivers.
  3. Configure Lilo to use the old kernel and the new kernel.
  4. Make sure the usb modules are loaded at boot time.
  5. Create a node under /dev/usb for the Ricochet modem.
  6. Reconfigure my ppp settings.
  7. When I was confident the new kernel was working good, make it the default when the computer boots.
  8. Unfortunately, because of the stupidity of the BIOS on my laptop and because of this stupid plug-and-pray garbage, I can only have my USB port working when neither of the pcmcia slots are in use. This means I can't hook up my laptop to the my local network using my pcmcia ethernet card. This isn't the Linux kernels fault, but the dumb computer.

Installing 2.2.18

Here are the steps I used to install the kernel and the pcmcia drivers.
  1. Configure and install the new kernel with console drivers, usb support, and pcmcia. I also selected a bunch of other options.
  2. Download pcmcia-cs and install using the src directory from the new kernel.
Here are the commands I used to install the new kernel
   ## change to the src directory for the linux kernel
   ## for xconfig, I selected the usb options and VESA VGA graphics console
   ## under console drivers for my laptop
make xconfig
make clean
make dep
make bzImage
make install
make modules
make modules_install
Here are the steps I used to install pcmcia-cs.
tar -zxvf pcmcia-cs-3.1.23.tar.gz
  ### Make sure you specify the root directory for the new kernel
  ### mine was /usr/src/linux-2.2.18/linux
  ### I didn't change the other default options.
make config
make all
  ### This puts the modules under /lib/modules/2.2.18
make install

Configuring lilo to use the old and new kernel.

Here is the old and new configuration I had for /etc/lilo.conf. I highly recommend that you do not use this for yourself, as I customized lilo.conf for my own needs. After I edited /etc/lilo.conf to the new configuration, I just typed "lilo" at the command prompt. Then, when I rebooted my computer, I had a choice of "linux_new" or "linux". After I was confident the new kernel was working, I changed it to be the default.

Old configuration.

### Configuration for test laptop

#        ramdisk_size=40000

New lilo.conf configuration.
### Configuration for test laptop 
### New kernel installed. Remember to install console drivers
### into new kernels otherwise vga=791 doesn't work.


              ### /dev/hda5 is root for laptop

              ### /dev/hda5 is root for laptop

Setting up USB

In order to setup USB, I had to put these commands into my /etc/rc.d/rc.local file.
   ### This command mounts the filesystem for usb to /proc/bus/usb. 
mount -t usbdevfs none /proc/bus/usb
   ### Load a generic usb module -- choose one of these three depending on your
   ### motherboard or USB card.  I have been able to use
   ### uhci or usb-uhci on all my motherboards so far.  If you aren't sure 
  ### which module to use, see "Basic USB Configuration" in the Linux-USB Guide
   ### at
insmod /lib/modules/2.2.18/usb/uhci.o
# insmod /lib/modules/2.2.18/usb/usb-uhci.o
# insmod /lib/modules/2.2.18/usb/usb-ohci.o
   ### Load the module for modems, like Ricochet
insmod /lib/modules/2.2.18/usb/acm.o

Changing the Ricochet modem from serial to USB.

In order to change my Ricochet modem to use the new usb, I had to load the modules described in the previous section, and then create a new node and make my ppp configuration use the new node. You only need to do this once. Also, the node can be created anywhere on the hard drive. I just choose to put it under a directory /dev/usb because that was the way someone else did it.
mkdir /dev/usb
mknod /dev/usb/ttyACM0 c 166 0 
Again, I changed my configuration from using /dev/ttyS0 to /dev/usb/ttyACM0. Now my Ricochet modem is working, and it seems like it is going faster than the serial modem, like it should be, but it could be my imagination. I get up to 20 kilobytes a second as the max speed sometimes. I am not sure if that is after or before any compression.

I suppose, you could do this,

rm /dev/modem
ln -s /dev/usb/ttyACM0 /dev/modem
if you had all your configurations use /dev/modem in the past and you wanted to keep your configurations using /dev/modem.

Some problems with laptop and resources.

I installed the new kernel on my laptop from DELL. I did have some problems. It seems like my stupid laptop doesn't have enough irqs to handle using the USB port. Thus, I now have to buy a USB mouse (and maybe keyboard) to free up some irqs. I also had this problem when I tried to use my pcmcia modem and pcmcia ethernet card at the same time. I haven't been able to solve this problem. Now when I use the USB port, I can't use either pcmcia card. It is extremely annoying that I can't get anything to use irq 10, and that I can't disable the parallel port, serial port, and internal ps/2 mouse. The DELL computer was by far the best Linux laptop I had seen, but now it will become outdated soon. I imagine with kernel 2.4, there will be a lot more commercial support for Linux. Why on earth the software evil empire and the hardware evil empire came together to create the user-friendly plug-and-pray nonsense is beyond me. I know my laptop has free resources but I cannot force it to use those resources. Very annoying. I am extremely unimpressed with the BIOS of the particular DELL laptop I got.

I bought another laptop for one of my employees at from Emperor Linux, and it was properly configured, and I grilled the salesperson to make sure I got everything working without any problems. I am much happier with the laptop I got from Emperor Linux.

Another goofy thing I did was I forgot to install the iso9660 format into the kernel (or as a module). Now I can't read cdroms. I will have to compile the kernel one more time and specify to include the iso9660 filesystem format as a module.


I am extremely impressed with the USB support in the Linux kernel 2.2.18. After Kernel 2.4.1 comes out, I will most likely upgrade my kernel to 2.4. I have read all the new features about kernel 2.4, and it looks exciting!

Overall, I am impressed with the fact that is was pretty painless to install the new kernel. Installing one kernel didn't blow away earlier kernels, which made it so I could test out the new kernel without getting rid of the old one. This is helpful if I want to revert back to the old kernel. For example, before I installed pcmcia-cs for the new kernel, my laptop's ethernet card didn't work, and hence, it was helpful that I could boot to the old kernel where the ethernet card would still work. Had this happened in a lame operating system which just forces upgrades and wouldn't let you choose how to control your system, I might have been screwed.

Even though the installation was fairly easy for me, it might be easier for other people to just use rpms and to rely on their favorite Linux distribution to help them out. This is the easiest installation of the kernel and pcmcia drivers for a laptop that I have ever experienced. It is nice to see the installation getting easier and easier. After years of having to fight with the kernel for one reason or another, it is nice to see all these technologies come together.

I don't see how the evil empire will be able to resist its downfall considering the fact that GNU/Linux (and OpenBSD and FreeBSD) are technologically superior and are providing user friendliness with GNOME and KDE. The evil empire has never cared about technology, but marketing and user-friendliness. Some of the evil commercial UNIX vendors only cared about technology and did not care about making their environment pleasant to use or user-friendly. Since GNU/Linux is merging technology with user-friendliness, which is the way people want it, we get the best of both worlds, instead of having evil empires dictate to us what they think is best (or how to control us so that they can milk us).

Sorry for the rant.


  1. Taken directly from linux/Documentation/usb/usb-help.txt
    For USB help other than the readme files that are located in
    linux/Documentation/usb/*, see the following:
    Linux-USB project:
      mirrors at
    Linux USB Guide:
    Linux-USB device overview (working devices and drivers):
    The Linux-USB mailing lists are:   for general user help   for developer discussions
  2. Linux Kernel 2.2.18
  3. PCMCIA-CS source
  4. Using the wireless modem Ricochet
  5. If this article changes, it will be available here

Mark works as an independent consultant donating time to causes like, writing articles, and writing free software.
Copyright © 1/2001 Mark Nielsen