|
|

楼主 |
发表于 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... |
|