LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 701|回复: 3

在Red Hat 9.1里怎么安装Kernel 2.4.2-2.i386.rpm

[复制链接]
发表于 2003-5-28 14:41:29 | 显示全部楼层 |阅读模式
在Red Hat 9.1里怎么安装Kernel 2.4.2-2.i386.rpm
#rpm -hv kernel-2.4.2-2.i386.rpm
不行。

我的2.4.20-8
    i686
 楼主| 发表于 2003-5-28 14:44:46 | 显示全部楼层
2. Your kernel is newer (higher) then 2.4.2-2
   
When you have a newer kernel (say 2.4.8 from Mandrake 8.1) then you have a problem. You must now make a choice : forget the whole thing and wait for Itex or Alcatel or someone else to write an appropriate driver for your kernel. You can play it safe and buy yourself another ADSL modem which has appropriate drivers for Linux. Or you can take a chance and go where only a few have gone before : downgrade your kernel. The first two options won't be discussed here, for obvious reasons.
   
Downgrading your kernel is in fact much simpler (sort of) than upgrading. Recompiling an older kernel over a new one will propably give you some errors or won't even work at all. But you can download a package which contains the old kernel and just install it as if it was an ordinary package. You can download it from rpmfind (try searching with keyword kernel) or when you have a Redhat-like distribution you can download it directly from this ftp-site.
   
Install the package.
  #rpm -hv kernel-2.4.2-2.i386.rpm

When the installation is succesfull, look a new kernel in your boot folder. You can use this command to view the contents of /boot.
Somewhere there is a file named :
vmlinuz-2.4.2-2

#ls /boot

Now you have to rename your old kernel
  #mv /boot/vmlinuz /boot/vmlinuzold

and rename the new kernel
  #mv /boot/vmlinuz-2.4.2-2 /boot/vmlinuz

Now you have to reboot your computer and the new kernel should be loaded
  #reboot

To check if the new kernel is loaded, you can use this command
  #uname -r

Install the driver using insmod.

Don't forget to verify the vpi and vci settings with you ISP. The values I used are specific for my ISP.
  #insmod itex1483-2.4.2-2.o vpi=8 vci=35 framing=1

Now you have to check if the driver was installed.
  #lsmod

When your driver is somewhere in there, you can move on and check if your system has loaded a new ethernet device. If the Speed Touch PC card is the only network card, it will be called eth0. If you already have an other network card installed (eth0), the new device will be eth1. You can check this with
  #ifconfig -a

If no new ethX device was loaded, load it manually (replacing X with 0 or 1, see above)
  #ifconfig ethX up

A new card should be up and you are ready to install the Point-to-Point Protocol. You can download it from Roaring Penguin and install it
  #rpm -Uvh rp-pppoe-3.3-1.i386.rpm

To set up your connection, some configuration is in order

You must provide username, device name : eth0 or eth1 (see above), demand value : no, primary and secondary DNS, your password and firewall-setting. Most information should be provided by your ISP. Choose yes to save the configuration file.
  #/usr/sbin/adsl-setup

Now it is time for the big test
  #/usr/sbin/adsl-start

When everything is working, you should get

Now you can surf, read mail, etc.
...Connected!
  
Otherwise you will get an error.

Don't panic, first try connecting again. If it still doesn't work, it probably means that your vci and vpi settings are not right. Be sure to check them with your ISP.
TIMED OUT!
  
When this occurs, unload the module
  #rmmod itex1483-2.4.2-2

and reload it with the right settings. If this still does not work, try looking at your routing table
  #route

Maybe the default route is localhost..?? If the default route is not the IP that you use for internet, like localhost, you might delete it and set up a new default route. Check your man page howto delete & setup new default route.
  # man route

or try

#route --help
 楼主| 发表于 2003-5-28 14:46:06 | 显示全部楼层
就上面这个我照做了。可不行啊。

我的网卡是ALCTEL SPEED TOUCH PC,装驱动的方法好像只有这个了。
发表于 2003-5-29 19:02:18 | 显示全部楼层
应该是如下的
#rpm -hv kernel-2.4.2-2.i386.rpm
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表