Can't read SCSI TAPE

2001-04-24 Thread Masaki Tsuji
Dear sirs,

Although 'tar' can write to SCSI-TAPE, can't read from.
'tar' reports 

..
-rw-r--r-- root/rootx 2001-xx-xx 01:23 usr/bin/xx
tar: Skipping to next file header<--"A"
-rw-r--r-- root/rootx 2001-xx-xx 01:23 usr/bin/xxx
..


"A" means written data is wrong, doesn't it???


Thanks for any help.

--
Detailed ->

System...
Kernel : 2.2.11 + raid0145-19990824-2.2.11.gz
  or
 2.2.11
tar: GNU tar 1.12
mt : mt-st v. 0.4
glibc2 : glibc-2.0.7pre6

Hardware...
Mother   : Intel Celeron x2 (SMP)
TAPE drv : SONY SDT-9000
TAPE : DDS1 DDS2 DDS3
SCSI card: AHA-1542
Cable: SCSI-2 Hi-impeadance , length 0.5m
--

-- 
Masaki Tsuji
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Can't read SCSI TAPE

2001-04-24 Thread Masaki Tsuji
Dear sirs,

Although 'tar' can write to SCSI-TAPE, can't read from.
'tar' reports 

..
-rw-r--r-- root/rootx 2001-xx-xx 01:23 usr/bin/xx
tar: Skipping to next file header<--"A"
-rw-r--r-- root/rootx 2001-xx-xx 01:23 usr/bin/xxx
..


"A" means written data is wrong, doesn't it???


Thanks for any help.

--
Detailed ->

System...
Kernel : 2.2.11 + raid0145-19990824-2.2.11.gz
  or
 2.2.11
tar: GNU tar 1.12
mt : mt-st v. 0.4
glibc2 : glibc-2.0.7pre6

Hardware...
Mother   : Intel Celeron x2 (SMP)
TAPE drv : SONY SDT-9000
TAPE : DDS1 DDS2 DDS3
SCSI card: AHA-1542
Cable: SCSI-2 Hi-impeadance , length 0.5m
--

-- 
Masaki Tsuji
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: Can't read SCSI TAPE

2001-04-24 Thread Masaki Tsuji
Dears,

"Richard B. Johnson" wrote:
> 
> Hmmm...
> 
> Masaki Tsuji <[EMAIL PROTECTED]>
>     This address
> 
> ... was the address that did the CA-2000-17 attack on one of
> our machines a few weeks ago.
> 
> This is not an accusation, only an observation. You might
> want to tell your network administrator. Sombody at your
> site may be hacking systems.

We're very sorry!

Probabry it's 10th or 11th Apr, isn't it?
I was attacked too, but from outside.

I asked my network administrator about that on 13th Apr, and catched reason.
They said that their network equipments had some probrems, and fixed it.


> SCSI tape problems or your kind are usually caused by a different
> tape compression being used during record and playback. You should
> try to use `mt` to set the compression to something you like
> before you record, and the same compression when you play back
> the tape.

I tried compression option, but It doesn't work well.

I tried ...

No.1
# mt datcompression 1
... write
# mt datcompression 1
... read

No.2
# mt datcompression 0
... write
# mt datcompression 1
... read

No.3
# mt datcompression 1
... write
# mt datcompression 0
... read

No.4
# mt datcompression 0
... write
# mt datcompression 0
... read

, but can't

'datcompression' isn't correct option ?


> You can use `cat` and `od` to read/write from a tape before you
> waste a lot file time with `tar`. You can even do:
> 
> ls >/dev/tape
>   takes a lot of time..
> 
> cat /dev/tape  # Read back.
> 
> Blocking/deblocking is done in the driver so you can treat it as
> a "slow-to-start" FIFO.

I tried, and got error message...

---
# ls >/dev/tape
st0: Write not multiple of tape block size.   <- ???
ls: write error: Input/output error
#
---
# cat /dev/tape
[inclemental-] Tue Apr 24 03: ..  <- looks like good!
#
---

Something wrong?



Thanks, for your help.

> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-- 
Masaki Tsuji
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] tulip.c

2001-06-15 Thread Masaki Tsuji
Dear sirs,


Few year ago, I wrote patch for tulipl.c(kernel-version 2.0.35)
 that works on MX98715,and I found that it mostly work version 2.2.1 and 2.2.11.
So I'll send patch for tulip.c(kernel-version 2.2.1, 2.2.11)

I tested it on 2.2.1 to 2.2.13, but I think it should work on 2.2.1 to 2.2.13.
Not need on later 2.2.14 


Masaki
--


--- linux-2.2.1-org/drivers/net/tulip.c Wed Jan 20 06:18:45 1999
+++ linux-2.2.1-fw/drivers/net/tulip.c  Thu Mar  8 06:50:51 2001
@@ -317,7 +317,7 @@
 enum tulip_offsets {
CSR0=0,CSR1=0x08, CSR2=0x10, CSR3=0x18, CSR4=0x20, CSR5=0x28,
CSR6=0x30, CSR7=0x38, CSR8=0x40, CSR9=0x48, CSR10=0x50, CSR11=0x58,
-   CSR12=0x60, CSR13=0x68, CSR14=0x70, CSR15=0x78 };
+   CSR12=0x60, CSR13=0x68, CSR14=0x70, CSR15=0x78, CSR20=0xa0 };
 
 /* The bits in the CSR5 status registers, mostly interrupt sources. */
 enum status_bits {
@@ -817,11 +817,17 @@
outl(0x0201F078, ioaddr + 0xB8); /* Turn on autonegotiation. */
}
break;
-   case MX98713: case MX98715: case MX98725:
+   case MX98713:
outl(0x, ioaddr + CSR6);
outl(0x000711C0, ioaddr + CSR14); /* Turn on NWay. */
outl(0x0001, ioaddr + CSR13);
break;
+   case MX98715: case MX98725:
+   outl(0x03a60200, ioaddr + CSR6);
+   outl(0x000711C4, ioaddr + CSR14); /* Turn on NWay. */
+   outl(0x0001, ioaddr + CSR13);
+   outl(inl(ioaddr + CSR9)|0x3000L, ioaddr + CSR9);
+   break;
}
 
return dev;
@@ -1543,9 +1549,9 @@
if (media_cap[dev->if_port] & MediaIsMII) {
new_csr6 = 0x020E;
} else if (media_cap[dev->if_port] & MediaIsFx) {
-   new_csr6 = 0x02860;
+   new_csr6 = 0x0286;
} else
-   new_csr6 = 0x03860;
+   new_csr6 = 0x0382;
if (tulip_debug > 1)
printk(KERN_DEBUG "%s: No media description table, assuming "
   "%s transceiver, CSR12 %2.2x.\n",
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/