(M)  s i s t e m a   o p e r a c i o n a l   m a g n u x   l i n u x ~/ · documentação · suporte · sobre

  Next Previous Contents

4. Installation and setup

NOTE:

These instructions are for patching a 1.2 kernel for token ring support. If you have a 2.0 kernel, you only need to recompile the current source and say ``yes'' or ``module'' when asked for token ring support.

  1. Install the Token Ring card into the system and configure it for the settings that you want to use. It is a good idea to see if you can use the card through DOS before trying to use it through Linux. If it works in DOS, chances are, it will work in Linux with the same settings. If you have a Plug and Play adapter, if possible, lock the settings once you get them where they work.
  2. Make a backup of your linux directory. This is very important in case you need to totally remove the source of the patch from your kernel and go back to your original code.
    cd /usr/src
    tar cvzhf linuxbak.tar.gz linux
            
    
  3. Uncompress the TokenRing patch.
    cd /usr/src/patches/token
    gzip -d TokenRing.patch-1.2.0.gz
            
    
  4. Modify your kernel with the TokenRing patch.
    cd /usr/src/linux
    patch -p1 < /usr/src/patches/token/TokenRing.patch-1.2.0
            
    
    -or-
    patch -p1 < <directory-of-patchfile>/TokenRing.patch-1.2.0
            
    
  5. Search your kernel for any rejects from the patch and make changes as necessary.
    find . -name \*.rej -print
            
    
  6. Search your kernel for the orig files and remove them.
    find . -name \*.orig -print | xargs rm
            
    
  7. Configure your kernel and remake.
    NOTE:

    Make sure your swap space is active if you have one.

    cd /usr/src/linux
    make config
            
    
    (The patch should have added two lines to your config.in file for the following options)
    Token Ring support (CONFIG_TR) [y]
            
    
    (and further down the list...)
    IBM Tropic chipset based adaptor support (CONFIG_IBMTR) [y]
            
    
    make dep
    make clean
    make zImage
            
    
  8. Setup LILO. First rename your /vmlinuz kernel to vmlinuz.old then copy the kernel to /vmlinuz. On my system this would consist of copying
    /usr/src/linux/arch/i386/boot/zImage to /vmlinuz and editing /etc/lilo.conf to boot that kernel.
    Now from the prompt run ``lilo''.
  9. You should now be able to reboot your system and use the Token Ring card in your computer. Please check the distribution specifc section for any extra configuration information.

Next Previous Contents