免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 893 | 回复: 0
打印 上一主题 下一主题

upgrade linux kernel and install d-link(seachange) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-09 17:25 |只看该作者 |倒序浏览

1 upgrade linux kernel:
The following commands can be used to compile a new linux kernel, e.g. 2.4.9 to 2.4.30
Download new kernel :
http://www.kernel.org/
cp linux-2.4.30 /usr/src
Prepare work :
#gcc –version   
#make –version
#ld v      (binutils version )
#fdformat –version  (util-linux version )

# tar -xvf linux-2.4.30.tar
# rm /usr/src/linux
# tar xzpvf linux-2.4.30.tar.gz
# ln -s/usr/src/linux-2.4.30 linux
# cd /usr/src/linux-2.4.30
# make menuconfig          (select equal to hardware)
# make dep
# make  clean
# make  modules
# make  modules_install
# depmod –a
# cp /usr/src/linux/arch/i386/boot/bzImage   /boot/vmlinuz-2.4.30
# cp /usr/src/linux/System.map /boot/System.map-2.4.30
# cd /boot
# rm –f system.map vmlinuz
# ln -s vmlinuz-2.4.30  vmlinuz
# ln -s System.map-.2.4.30 system.map
# mkinitrd initrd-2.4.30.img 2.4.30
# cd /etc/
# vi grub.conf
default=0
timeout=10
title Red Hat Linux Adance sever 2.1 (2.4.9-e3)
root (hd0,3)
kernel /vmlinuz-2.4.9-e3 ro root=/dev/hda3
initrd /initrd-2.4.9-e3
title Red Hat Linux Adance sever 2.1 (2.4.9-e.3.smp)
root (hd0,3)
kernel /vmlinuz-2.4.9-e.3 ro root=/dev/hda3
initrd /initrd-2.4.9-e.3.img
title Red Hat Linux Adance sever 2.1 (2.4.30)       (Insert something )
root (hd0,3)
kernel /vmlinuz-2.4.30 ro root=/dev/hda3
initrd /initrd-2.4.30.img
2 network compile :
    1) Create a temporary directory:
        mkdir /temp

    2) Change to the temporary directory:
        cd /temp

    2) Copy driver (dlkfet-4.24.tar.gz) from released CD,
       mkdir /mnt/cdrom      
mount /dev/  /mnt/cdrom
      cp /cdrom/LINUX/dlkfet-4.24.tar.gz   /temp            
    3) untar the archive file:
tar xzvf dlkfet-4.24.tar.gz
        cd dlkfet-4.24
                        
    4) Compile the driver source files and it will generate rhinefet.o, and
       copy it to correct driver installation path
            make install
            cp rhinefet.o /lib/modules/2.4.30 /kernel/drivers/net/
      

    5) Check configuration file (/etc/modules.conf or /etc/conf.modules,it
       depend on your Linux distribution)

    6) Reboot now:
        shutdown -r now

    7) Install your driver module
        insmod rhinefet

    8) Use ifconfig command to assign the IP address, where # is network
       interface number:
        ifconfig eth#

    9) Check the interface works:
        ping

      



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17184/showart_97311.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP