BBS水木清华站∶精华区
发信人: sftwayne@ms1.hinet.net (樱花钩吻小小龟), 看板: Linux
标 题: Re: 哪一个kernel支援dc390U scsi卡!!
发信站: □的故乡 (Sat Jul 19 20:30:21 1997)
转信站: sobee!netnews.ntu!news.ck.tp!jupiter.cksh.tp!news.csie.nctu!netnews.cs
=>在 wangd.bbs@bbs.ee.nthu.edu.tw (nobody) 的大作中提到 :
>==> 在 wangd.bbs@bbs.nsysu.edu.tw (nobody) 的文章中提到:
>: 如题 因为我用tekram出的bookdisk惯linux虽然可以抓到
>: 但是我却不能patch kernel...
>: patch 完之後就抓不到scsi卡了
Tekram DC390W/U/F(T) Red Hat LiNUX driver User's Guide
==============================================================
1. Contents
RH390w.txt - The readme file for DC-390W/U/F(T) Linux driver
RHb390x.zip - Boot diskette(1.44M) image for DC-390(T),
DC-390W/U/F(T)
pw2_0_0.zip - DC-390W/U/F(T) Linux driver patch file for kernel
2.0.18
or later
2. The first time installation
A. Before Installation - Under DOS environment
a. Get 1 MS-DOS formatted diskettes
b. Decompress the Boot diskette image file by:
pkunzip RHb390x.zip
gzip -d RHb390x.gz
c. Decompress the patch file by:
pkunzip pw2_0_0.zip
d. Insert a formatted and empty diskette to floppy drive A
e. Write boot diskette image to floppy diskette by:
rawrite RHb390x A:
f. Remove floppy diskette
B. Installation
a. Using boot diskette that you made as the Booting diskette and
follow the
Red Hat Linux installation procedures to install.
b. When the installation was completely and the " Done "screen
display with
message
" Congratulations, installation is complete.
Remove the floppy from the drive and press return to reboot.
....... "
, do NOT remove the floppy and do NOT press return at this
moment.
Press Alt+F2 to switch display to command prompt, go throught
following
steps to update the kernel that has drivers for the Tekram
DC-390(T) and
DC-390W/F/U.
(1) bash# mkdir /mnt/mnt1
(2) bash# mount /mnt/dev/fd0 /mnt/mnt1
(3) bash# rm -rf /mnt/boot/vmlinuz
(4) bash# cp /mnt/mnt1/vmlinuz /mnt/boot/vmlinuz
(5) bash# /mnt/sbin/lilo -r /mnt
(6) bash# umount /mnt/mnt1
Press Alt+F1 to switch back to installation done screen.
Remove the floppy and press Enter to reboot.
3. Configure the system and Remake the kernel
# mcopy a:pw2_0_0.gz /usr/src
# cd /usr/src
# gzip -d pw2_0_0.gz
# patch -p0 < pw2_0_0
# cd linux
# make mrproper
# make config
;When prompt for "PCI bios support" say "Yes".
;When prompt for "SCSI support" say "Yes".
;When prompt for "SCSI disk support" say "Yes".
;When prompt for "SCSI tape support" say "Yes".
;When prompt for "SCSI CD-ROM support" say "Yes".
;When prompt for "SCSI generic support" say "Yes".
;When prompt for "Tekram DC-390W/U/F (T) SCSI support" say "Yes".
;When prompt for "NCR53c7,8xx SCSI support" say "No".
;When prompt for "NCR53C8XX SCSI support" say "No".
# make dep; make clean
# make zImage
# cp arch/i386/boot/zImage /
; Add an entry for "zImage" in /etc/lilo.conf
; Example:
; ...
; # Linux bootable kernel for DC390W/F/U
; image = /zImage # <--- NEW
; label = DC390W # <--- NEW
; root = /dev/sda1 # <--- NEW
; read-only # <--- NEW
; image = /boot/vmlinuz
; label = linux
; root = /dev/sda1
; read-only
; ...
;
# lilo
# shutdown -r now ;reboot the system
...
...
boot: DC390W ;when system Rebooting ...
First-time to patch driver sources into the kernel source
===================================================================
This case means that you are not ever patch the Tekram driver
source code
to /usr/src/linux/drivers/scsi.
1. copy pw2_0_0.gz to /usr/src
2. # gzip -d pw2_0_0.gz
3. # patch -p0 < pw2_0_0
To re-patch/update driver sources to the kernel source
==================================================================
This case means that you are ever patch the Tekram driver source
code
to /usr/src/linux/drivers/scsi.
1. # cd /usr/src
2. # mkdir tmp
3. # cd tmp
copy pw2_0_0.gz to /usr/src/tmp
4. # patch < pw2_0_0
When prompt for "File to patch:", just press Enter.
When prompt for "No file found--skip this patch? [n]", type
y, then Enter.
5. # cp *.c /usr/src/linux/drivers/scsi
6. # cp *.h /usr/src/linux/drivers/scsi
7. # cd ..
8. # rm -r tmp
To re-patch/update driver sources to a upgraded kernel source
=====================================================================
This case means that you are ever patch the Tekram driver source
code
to /usr/src/linux/drivers/scsi before update the kernel.
1. copy pw2_0_0.gz to /usr/src
2. # cd /usr/src/linux/drivers/scsi
3. # rm tmscsiw.c
4. # rm tmscsiw.h
5. # rm scsiiow.c
6. # rm dc390w.h
7. # rm scripts.h
8. # cd /usr/src
9. # gzip -d pw2_0_0.gz
10. # patch -p0 < pw2_0_0
-----------------------------------------------------------------------------
Tekram DC390W/U/F(T) SLACKWARE LINUX driver User's Guide
==============================================================
1. Contents
lnx390w.txt - The readme file for DC-390W/U/F Linux driver
b390_144.zip - Boot diskette(1.44M) image for DC-390(T),
DC-390W/U/F(T)
pw2_0_0.zip - DC-390W/U/F(T) Linux driver patch file for kernel
2.0.0 or later
2. The first time installation
A. Before Installation - Under DOS environment
a. Get 1 MS-DOS formatted diskettes
b. Decompress the Boot diskette image file by:
pkunzip b390_144.zip
gzip -d b390_144.gz
c. Decompress the patch file by:
pkunzip pw2_0_0.zip
d. Insert a formatted and empty diskette to floppy drive A
e. Write boot diskette image to floppy diskette by:
rawrite b390_144 A:
f. Remove floppy diskette
B. Installation
a. Using boot diskette that you made as the Booting diskette and
follow the
Linux installation procedures to install.
b. When the installing screen display " INSTALL LINUX KERNEL ".
- Select "bootdisk Use the kernel from the installation
bootdisk",
- and re-insert the bootdisk diskette to floppy drive A.
c. Exit Slackware Linux Setup while the installation is completed
e. Press Ctrl-Alt-Del to reboot system
3. Configure the system and Remake the kernel
# cd /usr/src
# gzip -d pw2_0_0.gz
# patch -p0 < pw2_0_0
# cd linux
# make mrproper
# make config
;When prompt for "PCI bios support" say "Yes".
;When prompt for "SCSI support" say "Yes".
;When prompt for "SCSI disk support" say "Yes".
;When prompt for "SCSI tape support" say "Yes".
;When prompt for "SCSI CD-ROM support" say "Yes".
;When prompt for "SCSI generic support" say "Yes".
;When prompt for "Tekram DC-390W/U/F (T) SCSI support" say "Yes".
;When prompt for "NCR53c7,8xx SCSI support" say "No".
;When prompt for "NCR53C8XX SCSI support" say "No".
# make dep; make clean
# make zImage
# cp arch/i386/boot/zImage /
; Add an entry for "zImage" in /etc/lilo.conf
; Example:
; ...
; # Linux bootable partition config begins
; image = /zImage # <--- NEW
; root = /dev/sda1 # <--- NEW
; label = DC390W # <--- NEW
; read-only # <--- NEW
; # Linux bootable partition config ends
; # Linux bootable partition config begins
; image = /vmlinuz
; root = /dev/sda1
; label = default
; read-only
; # Linux bootable partition config ends
; ...
;
# lilo
# shutdown -r now ;reboot the system
...
...
boot: DC390W ;when system Rebooting ...
First-time to patch driver sources into the kernel source
===================================================================
This case means that you are not ever patch the Tekram driver
source code
to /usr/src/linux/drivers/scsi.
copy pw2_0_0.gz to /usr/src
1. # gzip -d pw2_0_0.gz
2. # patch -p0 < pw2_0_0
To re-patch/update driver sources to the kernel source
==================================================================
This case means that you are ever patch the Tekram driver source
code
to /usr/src/linux/drivers/scsi.
1. # cd /usr/src
2. # mkdir tmp
3. # cd tmp
copy pw2_0_0.gz to /usr/src/tmp
4. # patch < pw2_0_0
When prompt for "File to patch:", just press Enter.
When prompt for "No file found--skip this patch? [n]", type y, then
Enter.
5. # cp *.c /usr/src/linux/drivers/scsi
6. # cp *.h /usr/src/linux/drivers/scsi
7. # cd ..
8. # rm -r tmp
To re-patch/update driver sources to a upgraded kernel source
=====================================================================
This case means that you are ever patch the Tekram driver source
code
to /usr/src/linux/drivers/scsi before update the kernel.
1. copy pw2_0_0.gz to /usr/src
2. # cd /usr/src/linux/drivers/scsi
3. # rm tmscsiw.c
4. # rm tmscsiw.h
5. # rm scsiiow.c
6. # rm dc390w.h
7. # rm scripts.h
8. # cd /usr/src
9. # gzip -d pw2_0_0.gz
10. # patch -p0 < pw2_0_0
BBS水木清华站∶精华区