LinuxSir.cn,穿越时空的Linuxsir!

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

FC2编译2.6.6内核时想加入Tekram 315U Scsi卡的问题!

[复制链接]
发表于 2004-11-25 09:17:42 | 显示全部楼层 |阅读模式
如题,内核不内建支持该Scsi卡。
到官方主页上找到了Scsi卡的驱动,看过Readme后觉得很麻烦,而且是针对Redhat 9的,不知道在FC2下行不行?
哪位贴个详细一点的过程让我学习学习?
发表于 2004-11-25 16:48:25 | 显示全部楼层
这个在2.6.x的内核中有,最好下载一个最新的内核 来自己编译。。

是不是这个??

│ │    <×> Tekram DC395(U/UW/F) and DC315(U) SCSI support (EXPERIMENTAL)
 楼主| 发表于 2004-11-26 15:22:33 | 显示全部楼层
非常对头!
就是这个卡,问题是:
我下载的2.6.6内核,只看到DC395,那一行没有315字样,编译完成后也找不到我的SCSI卡。
不知道2.6.8和9里面有没有,而且据说升到2.6.8以上装NV的显卡会有些麻烦。
发表于 2004-11-26 16:13:45 | 显示全部楼层
我现在用的是2.6.8.1的内核里面有,看来2.6.8.1以上的内 核都 有。

我感觉NV的安装不太麻烦。兄弟也只是听说
 楼主| 发表于 2004-11-26 16:48:39 | 显示全部楼层
对呀,集思广益,虽然是听说,但宁可信其有不可信其无吧。

那我就弄个2.6.9装装吧,为了我的MO……
谢谢老大了!
 楼主| 发表于 2004-11-27 10:01:13 | 显示全部楼层
原来2.6.6内核里也有315U的驱动
只是如果把配置的第一项Code...什么的,好象是代码成熟成度?这项禁用,那315U的驱动就没有了,难道这个有6年以上寿命的SCSI卡的驱动在Linux下还属于试用?
看了这里的另一个帖子,如果不需要试用IPV6什么的可以禁用的,谁知道会出这种问题。
发表于 2004-11-27 15:26:47 | 显示全部楼层
能不能驱动起来呢??
这才是重要的。
 楼主| 发表于 2004-11-27 15:42:12 | 显示全部楼层
已经可以了,在ntsysv里选中iscsi就可以了
因为我不是scsi硬盘,只是挂了个MO,所以成功使用难度不算大
我是看了tekram官方驱动说明以后弄好的:p
发表于 2004-11-27 16:03:01 | 显示全部楼层
最初由 dtsolitary 发表
已经可以了,在ntsysv里选中iscsi就可以了
因为我不是scsi硬盘,只是挂了个MO,所以成功使用难度不算大
我是看了tekram官方驱动说明以后弄好的:p


兄弟能否写个教程什么的??

辛苦了。。


北南 呈上
 楼主| 发表于 2004-11-28 09:35:48 | 显示全部楼层
教程啊?
说实话,这次安装非常顺利,想象中的问题全没遇到,所以到现在我也没能总结个什么东东出来。
官方原文如下:

1.  Contents

  readme.txt          - (This file)The readme file for
                        DC395U/UW/F DC315/U
                        RedHat Linux driver
  
  dc395x_142.zip   
                      - Source code (dc395x_trm.c, dc395x_trm.h...)
  
  driver.zip
                      - Ziped dirver disk(dd) image file(driver.img, which also
                        included source code)

2. First-time installation

  A. Before Installation - Under DOS/Windows environment
    a. Unzip driver disk
            X:\PATH\pkunzip.exe driver.zip =>> driver.img
            Tips: You can download pkunzip.exe from ftp://ftp.tekram.com.tw

    b. Dump it into a floppy disk.
        X:\PATH\rawrite.exe driver.img A:
        Tips: You can get rawrite.exe from RedHat 9.0 installation disk #1
              "\dosutils" directory.  
        
  B. Installation
   a. Booting from Installation CDROM #1 or boot disk made by yourself(boot.img is
      under \images directroy of Installation disk one)
      
   b. On "Welcome to Red Hat Linux" installation screen, a prompted lable "boot:"
      will appear at the bottom of the scree. According to the prompt, type in
      "text(or linux) dd" to tell linux we have a driver disk.
      
   c. You will be asked "Do you have a driver disk?", select "Yes".
   
   d. When prompted "Insert your driver disk and press OK to continue", insert the
      driver diskette in the floppy drive and then select "OK".
      
   e. Driver of dc395x_trm should be automaticlly loaded into kernel. The kernel
      will find SCSI HDD connected to you dc395x card, and continue installing
      your system...

   f. When the "Installation Complete" dialog appears. *DO NOT* press ENTER.
      Press Ctl+Alt+F2 to activate the command shell and type in the following comamnds.
      
      #chroot /mnt/sysimage
      #mount /dev/fd0 /mnt
      #/mnt/postinstall
      ...Here will display some messages...
      #umount /mnt
      
      Then press Ctl+Alt+F1(Ctl+Alt+F7 for XWindows) to return to the setup screen and
      press ENTER to finish setup.
      
   g. Select "dc395x_trm" at next boot(graphic), or type "dc395x_trm" for text boot.

3. Installing dc395x driver on an Existing System.
  A. Prepare installtion
    a. Insert driver disk into drive a:, mount it to directory. For example:
      #mount /dev/fd0 /mnt/floppy
    b. Copy file
      #cp /mnt/floppy/src/*.* /usr/src/linux-2.4/drivers/scsi/
  
  B. Modify make and config files
    In /usr/src/linux-2.4/drivers/scsi/Makefile
         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
         @  ......
         @obj-$(CONFIG_SCSI_DC390T)        +=tmscsim.o
         @obj-$(CONFIG_SCSI_DC395x_TRMS1040)        +=dc395x_trm.o        <----Insert this line
         @obj-$(CONFIG_SCSI_AM53C974)        +=        AM53C974.o
         @  ......
         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

     In /usr/src/linux-2.4/drivers/scsi/Config.in
         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
         @  ......
         @  dep_tristate 'Seagate ST-02 and Future Domain TMC-8xx SCSI support' CONFIG_SCSI_SEAGATE $CONFIG_SCSI
         @  if [ "$CONFIG_PCI" = "y" ]; then
         @    dep_tristate 'Tekram DC395U/UW/F and DC315/U SCSI support' <----Insert this line
         @        CONFIG_SCSI_DC395x_TRMS1040 $CONFIG_SCSI               <----Insert this line
         @    dep_tristate 'Tekram DC390(T) and Am53/79C974 SCSI support' CONFIG_SCSI_DC390T $CONFIG_SCSI
         @    if [ "$CONFIG_SCSI_DC390T" != "n" ]; then
         @      bool '  _omit_ support for non-DC390 adapters' CONFIG_SCSI_DC390T_NOGENSUPP
         @    fi
         @  fi
         @  ......
         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  
  C. Make new kernel
    # cd /usr/src/linux-2.4
    # make mrproper
    # make config

    Tips: Say "M" means configure this driver as a module.
    ;When prompt for "SCSI support" say "Y" or "M".
    ;When prompt for "SCSI disk support" say "Y" or "M".
    ;When prompt for "SCSI tape support" say "Y" or "M".
    ;When prompt for "SCSI CD-ROM support" say "Y" or "M".
    ;When prompt for "SCSI generic support" say "Y" or "M".

    ;When prompt for "SYM53C8XX SCSI support"
    ;say "Y" or "M"
    ;When prompt for "Tekram DC395/U/UW/F and DC315/U SCSI support"
    ;say "Y" or "M".
    ;When prompt for "Tekram DC390(T) and Am53/79C974 SCSI support"
    ;say "Y" or "M".

  # make dep
  # make clean
  # make bzImage
  # make modules
  # make modules_install

  # cp ./arch/i386/boot/bzImage   /boot

  D. Modify boot loader configuration files.
  
    a. If you using LILO to boot up
   
      I. Edit /etc/lilo.conf file as follow...
        Example:
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        @           ...
        @  image = /boot/vmlinuz
        @           root = /dev/sda1
        @           label = linux
        @           read-only
        @
        @         image = /boot/bzImage        <--- NEW Line
        @           root = /dev/sda1            <--- NEW Line
        @           label = tekram            <--- NEW Line
        @           read-only                    <--- NEW Line
        @           ...
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  
      II. Make an initrd image
        NOTICE: If your low-level drivers are module, going on, otherwise,
                jump to step III  
      
        An initrd image is needed for loading your SCSI module at boot time.
        So you need make your own initrd image.....
   
        Insert a new line into /etc/modules.conf
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        @       ......      
        @   alias scsi_hostadapter dc395x_trm     <---- Add this line
        @       ......
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      
        Build up a new initrd image. we assum your kernel version
        is 2.4.20-8custom.
                  
        # mkinitrd -f -v /boot/initrd-2.4.20-8custom.dc395x.img 2.4.20-8custom
  
        Insert a new line into /etc/lilo.conf
      
        Example:
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        @           ...
        @         image = /boot/vmlinuz
        @           root = /dev/sda1
        @           label = linux
        @           read-only
        @
        @         image = /boot/bzImage       
        @           root = /dev/sda1            
        @           label = tekram          
        @           read-only
        @   initrd = /boot/initrd-2.4.20-8custom.dc395x.img <---Add this line
        @           ...
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


      III. Update lilo
        # lilo
        
    b. If you using Grub to boot up
      I. Modify /boot/grub/grub.conf
        Example:
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        @  ......
        @title Red Hat Linux (2.4.20-8)
        @        root (hd0,0)
        @        kernel /vmlinuz-2.4.20-8 ro root=/dev/sda2
        @        initrd /initrd-2.4.20-8.img
        @
        @title tekram                                   <----Add this line
        @        root (hd0,0)                            <----Add this line
        @        kernel /bzImage ro root=/dev/sda2       <----Add this line
        @  ......
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
       
      II. Make an initrd image
      NOTICE: If your low-level drivers are module, go through, otherwise, skip.  
      
        An initrd image is needed for loading your SCSI module at boot time.
        So you need make your own initrd image.....
   
        Insert a new line into /etc/modules.conf
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        @       ......      
        @   alias scsi_hostadapter dc395x_trm     <---- Add this line
        @       ......
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      
        Build up a new initrd image. we assum your kernel version is
        2.4.20-8custom.
                  
       # mkinitrd -f -v /boot/initrd-2.4.20-8custom.dc395x.img 2.4.20-8custom
  
        Insert a new line into /boot/grub/grub.conf
      
        Example:
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        @  ......
        @title Red Hat Linux (2.4.20-8)
        @        root (hd0,0)
        @        kernel /vmlinuz-2.4.20-8 ro root=/dev/sda2
        @        initrd /initrd-2.4.20-8.img
        @
        @title tekram                                   
        @        root (hd0,0)                                
        @        kernel /bzImage ro root=/dev/sda2           
        @   initrd /initrd-2.4.20-8custom.dc395x.img   <----Add this line
        @  ......
        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
               
  E. #reboot
   
  Select "tekram" at next boot(graphic), or type "tekram" for text boot.

  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  $                                                          $
  $ ALL Tekram SCSI adapters features control by SCSI BIOS   $
  $                                                          $
  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$



新内核里既然有驱动了,前面的就不需要了,看接把文中提到的该选中的选中,然后就make...了,最后在ntsysv里选中iscsi,reboot
重启后报告发现新东东……登录后fdisk -l,结果不能识别MO的磁片格式,再reboot,成功了,直接mount就行了
简单得难以想象。
如果是新安装系统,那个做个驱动软盘在安装前载入驱动应该是最好的办法吧,特别是用SCSI硬盘的朋友!
另外,我是把所有驱动编译在模块里,不知道如果选Y编进核心是否还需要iscsi service?

BTW:我在是kernel.2.6.6.bk9里做成功的,我的kernel.2.6.9.bk7编译后重启,在载入/boot后(启动service之前),出现提示如下:
VFS:unable to mount /root partion FS or unknown-block...  (大概是这样的一句吧)
然后就死掉了,不知道是怎么回事?老大帮忙解解疑难。
bow!
我在make menuconfig的时候选中了芯片组(VIA),分区格式支持没有动它,EXT3是支持的,不知道为什么会出现这种问题。
哦,对了,我禁用了RamDisk、loopback、RAID and LVM这些,难道有问题?
还有个问题:硬盘分区格式只有:NTFS和Linux的/、/boot、swap,需要用U盘,分区格式fat32,需要用MO,分区格式fat32,那么我可以关掉哪些分区格式?
单机,不考虑局域网,不需要mount network fs,用拨号上网的
硬件配置:Via P4X266A、C 1.7G、384M RAM、harddisk 200G + 20G、modem(linux support)、Tekram 315U Scsi、8139网卡、floppydisk、CD-ROM、PS/2 Mouse、摄像头,显示器17"的(我选的是BenQ 17,然后自己改频率了)
如果哪位能发个.config文件,我#100000 bow...
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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