Subject: Linux-Development Digest #769
From: Digestifier <Linux-Development-Request@senator-bedfellow.MIT.EDU>
To: Linux-Development@senator-bedfellow.MIT.EDU
Reply-To: Linux-Development@senator-bedfellow.MIT.EDU
Date:     Sat, 28 May 94 10:13:04 EDT

Linux-Development Digest #769, Volume #1         Sat, 28 May 94 10:13:04 EDT

Contents:
  Re: BusLogi 445S and DMA Channel (NEW ANSWER) (Ramiro Estrugo)
  Re: perfmeter not showing disk stats
  Re: Skinny Dip (Harvey J. Stein)
  Linux Journal - Europe (Linux Journal Desk)
  New Linux BBS under developement! NEED YOUR HELP! (Dave Best)
  Absolute Disk Reads (Erica Aleashia Ramsey)
  Re: 1.1.15 breaks SCSI (John Lellis)
  Re: 9246 (Thelktarion)
  CD audio over scsi problem (Chris Osborne)
  Troubles with patches (Elaine Walton)
  Re: Routing requests and 1.1.15 (John Lellis)
  Re: Bug in LOADLIN 1.4 (Chuck Munro)
  Kernel change summary 1.1.14 -> 1.1.15 (Russell Nelson)

----------------------------------------------------------------------------

Crossposted-To: comp.os.linux.misc,comp.os.386bsd.development,comp.os.386bsd.questions,comp.sys.ibm.pc.hardware.systems,comp.sys.ibm.pc.hardware.storage,comp.sys.ibm.pc.hardware.misc,comp.periphs.scsi
From: restrugo@netcom.com (Ramiro Estrugo)
Subject: Re: BusLogi 445S and DMA Channel (NEW ANSWER)
Date: Sat, 28 May 1994 03:23:27 GMT


Hi Guys,

  I have a 445s and am in the dark as to squeazing performanceout of
it.  Assuming i am running a aha kernel, what steps (including re-comp
of kernel) do I need to take to use the full features of thew board ?
I also have 16mb of ram...thganks for your replies....


-reamiro
 ##############################################################################
 #                               Ramiro Estrugo                               #
 #               Preferred Email       restrugo@netcom.com                    #
 #               Alternate Email       restrugo@serv7351.scu.edu              #
 ##############################################################################


-- 
 ##############################################################################
 #                               Ramiro Estrugo                               #
 #               Preferred Email       restrugo@netcom.com                    #
 #               Alternate Email       restrugo@serv7351.scu.edu              #
 ##############################################################################

------------------------------

From: reeves@theis ()
Crossposted-To: comp.os.linux.misc,comp.os.linux.help
Subject: Re: perfmeter not showing disk stats
Date: 28 May 1994 05:59:15 GMT

Stuart Szabo CMIS (sszabo@colesmyer.com.au) wrote:
: I have the slackware distribution of linux and have updated to the 1.1.0 kernel.
: I also grabbed rstatd-15y from sunsite.unc.edu.   The problem I have is that
: for all other systems that I check with perfmeter everything works fine.  When
: I run rstatd and perfmeter on my linux box I get all the stats except for the
: disk.   Does this have anything to do with the 1.1.0 kernel?

: Any ideas?

: Thanks,
:       Stuart Szabo

If you enter > cat /proc/stat you will see all the values for disk are zero.
This is what rstatd reads so it is the kernel that is not providing the info.

------------------------------

Subject: Re: Skinny Dip
From: hjstein@sunset.huji.ac.il (Harvey J. Stein)
Date: 28 May 94 10:50:57

In article <1994May26.073056.7657@hisplace.rhein-main.de>
marko@hisplace.rhein-main.de (Marko Schuetz) writes:

   tomppo@phys-3.jyu.fi (Jari Tomppo) writes:

   >: Matt Keogh (keogh@anshar.shadow.net) wrote:

   >:                The ORIGINAL thigh cream, as seen on national TV
   blabla

   >What's the story behind that fuckin' moron? I tried to send mail to
   >root@shadow.net & root@anshar.shadow.net, but they bounced back. I've
   >seen that fuckin' advertisement in tens of newsgroups during this week.

   >Do we have a new canter&siegel case here?

   In nn do a 'K' permanent on Matt Keogh, that's the way to react, I think.

   Marko

I always reply by sending a complaint to the postmaster at his machine
& at the first two hops out of his machine (in case the jerk is SLIPed
into the net).

--
Harvey J. Stein
Berger Financial Research
hjstein@math.huji.ac.il

------------------------------

From: lj-desk@lasermoon.co.uk (Linux Journal Desk)
Subject: Linux Journal - Europe
Date: Sat, 28 May 94 13:29:48 GMT
Reply-To: B.



                  Linux Journal - European Distributor

       Lasermoon Ltd. are European Distributors for the Linux Journal.

We value your subscription! If you are an existing subscriber, have any
concerns or questions about your subscription in Europe, or if we can be
of further assistance, please contact us.

If you wish to subscribe to the Linux Journal, we are pleased to accept
payment in any of the following ways (and if you cant find the one you
want, tell us) :

   VISA,
   ACCESS,
   MASTERCARD,
   EuroCARD,
   ECU's (by arrangement)
   EuroCheque in Pounds Sterling
   Cheque/money order drawn on a UK bank in Pounds Sterling,
   Cash - (in desperation) Pounds Sterling.

We will require the following subscription information either by FAX,
Phone, Postal Mail, email or any other convenient method :

    Name:
    Company:
    Address:
    City:
    Province:
    Country:
    Post Code:
    E-Mail Address:

    Card Number:
    Expiration Date:
    (Please note that the Card Holders address must be supplied).

We request the following information which will be used for statistical
purposes only - your Personal Details will NOT BE USED.

    Where are you currently using Linux?
    Home               Office               Both


For further details about subscriptions, advertising etc, Lasermoon can
be contacted at :

        Lasermoon Ltd,
        2a Beaconsfield Road,
        Fareham,
        Hants,
        England.
        PO16 0QB

        Voice +44 (0) 329 826444
        Fax   +44 (0) 329 825936

        email lj@lasermoon.co.uk        Semi-Auto server
              lj-desk@lasermoon.co.uk   Human response.



--
Lasermoon Ltd, 2a Beaconsfield Road, | Linux Journal Desk
Fareham, Hants, England. PO16 0QB    | lj-desk@lasermoon.co.uk
+44 (0) 329 826444  Fax: +44 (0) 329 825936
The Linux Journal - the Monthly Magazine for the Worldwide Linux Community.

------------------------------

From: davidb@morgan.ucs.mun.ca (Dave Best)
Subject: New Linux BBS under developement! NEED YOUR HELP!
Date: 28 May 94 12:41:37 GMT



                Currently there is a NEW Linux BBS package under developement. Its in
        its primary stages and we need your ideas!  Our goal is to release the first
        version by September.  The BBS will be developed under the terms of the GNU 
        public license.

                Please send any ideas/suggestions or options you would like to see in
        this BBS package to 

                        davidb@cs.mun.ca    OR    garyp@cs.mun.ca


------------------------------

From: cs753@cleveland.Freenet.Edu (Erica Aleashia Ramsey)
Crossposted-To: alt.uu.comp.os.linux.questions,de.comp.os.linux
Subject: Absolute Disk Reads
Date: 28 May 1994 12:57:37 GMT
Reply-To: cs753@cleveland.Freenet.Edu (Erica Aleashia Ramsey)


Hello, I'm digging through linux kernel trying to learn how to do scsi
and IDE programming; I want to write my own scsi/ide disk drivers. It
will help me enormously if I knew how to do an absolute disk read in
linux. That is, call some function with a sector number and instruct
it to read the hd. Is there such a function in linux? I have gcc installed
under linux. If I need a lib or function could someone please email
it to me?

I will appreciate it if I can get this posting answered right away because
I have much time to work on it this weekend. I do data entry doing the week
days and it's boring and tiring.

PS: No, I don't have ftp! know where I can get it cheap in cleveland, Ohio?
Netcom is very reasonable but they don't extend services to here. Ncoast and
Wariat are pretty much out of my budget!

thank you,
Ms. Ramsey

------------------------------

From: lellis@dmccorp.com (John Lellis)
Subject: Re: 1.1.15 breaks SCSI
Date: 27 May 1994 22:13:28 GMT

Rene COUGNENC (rene@renux.frmug.fr.net) wrote:

: The kernel 1.1.15 does not work at all with my Adaptec 1540B.
: I get "Unable to reset SCSI host 0, probably a SCSI bus hang."

: And I can't boot.

Funny, works fine with my Adaptec 1542CF.  Are you sure it patched correctly?

--

John Lellis (lellis@dmccorp.com)

--
... Our continuing mission: To seek out knowledge of C, to explore
strange UNIX commands, and to boldly code where no one has man page 4.




------------------------------

From: timsjf@venus.se.rl.af.mil (Thelktarion)
Subject: Re: 9246
Date: Fri, 27 May 1994 15:49:58 GMT

In article <Cq7st0.2vv@maestro.maestro.com>, spacey@maestro.maestro.com
(Peter C. Norton) wrote:

> kempsonc@logica.co.uk writes:
> 
> >I have just started some X development on my new
> >Linux workstation and I have come across the following problem:
> 
> >   Many of the Xt Calls I am used to are no longer available

Or .h files, like Strings.h, Intrinsics.h, etc.
NONE of the Xt calls are available, or any of the .h files.  I installed
slackware 1.1.2 and there are no Xt libraries anywhere.  Anybody know where
to get them?  (Not on disksets x, xd, xap, tcl, xv, etc.)
Someone suggested that I rebuilt Xfree, but that doesn't get it 
either.
 
> So, any working examples would be greatly appreciated.
The Xt libraries would be greatly appreciated!

> 
> >Thanks in advance,
> 
> >Charlie K
> 
> >--------------------------------------------------------------------------
> >Charlie Kempson                       INTERNET: charlie@mpef4.logica.co.uk
> >                                                kempsonc@logica.co.uk
> >Logica Space & Communnications Ltd.,
> >68 Newman St.,
> >LONDON W1A 4SE                        TEL: 071-637-9111 ext. 4192
> 
> >--------------------------------------------------------------------------
> 
> --
> pn002b@uhura.cc.rochester.edu         | "The deeper I talked, | Hello! My  
> spacey@maestro.com                    |  The worse I got into | Name is:
> ---------------------------------------       |  it!"                 | 
> Ignore at your own (admittedly small) |  --King Crimson       |  Peter
> risk!  This has been a warning.               |                       | ^^^^^^^

-- 
The opinions expressed here are min....ahhhh......Morgan
Fairchild's...yeah..that's the ticket.

------------------------------

Crossposted-To: connect.audit
From: boris@ibmpcug.co.uk (Chris Osborne)
Subject: CD audio over scsi problem
Date: Fri, 27 May 1994 21:55:01 GMT



Hello,

I am trying to write a program to read raw audio data from my Toshiba
3401 CDrom drive. I first send the appropriate mode command ( which seems
to work O.K.) Then call the routine below to copy data to a raw disk file
to be manipulated by SOX or something into a suitable format.

The program works except that the output is VERY crackly. I believe this is
due to jitter caused by the sector boundaries being inaccurate in audio mode
( At least this is my assuption having looked at the source of a PD DOS
program to do the same job ). I could remove the jitter if I could read
say 3 sectors each time, and match up the data.

The problem is this: if I make the SECTORS constant greater than 1 then the
SCSI times out. I then get:
 'CD error host 0 id 0 lun 0 return code = 27010000'
repeated when I do anything, and the drive remains flashing its activity
light until I reboot. In other words reading more than 1 sector in one go
seems to be impossible.

What do I do now?  I only got this far by nosing through various bits of
source code. There seems to be no documentation on this sort of stuff.
I have read the SCSI faq, the kernel hackers guide, and even some of the
scsi driver code (but it's pretty sparse on comments & I haven't got all
year to decode it). I'm probably doing this the hard way - perhaps you can
just calculate the starting address for a seek command in some way & then
use an ordinary read but I don't know. 

Could some scsi genius please help???

Regards

Chris Osborne                           boris@ibmpcug.co.uk

P.S.    This was all done using 0.99 pl14 kernel. I've just got the latest
Infomagic release but haven't had time to install it yet.

#define SCSI_IOCTL_SEND_COMMAND 1
#define SECTORS         1               /* No of sectors, 75 per second */
#define SECTOR_SIZE     2352            /* Size of a sector in bytes    */

/* Read audio data from the CD Rom & write to a file.                   */
static  int     scsi_copy(      int     fd,             /* CD device    */
                                long    start,          /* 1st frame    */
                                long    count,          /* total frames */
                                int     ofd)            /* o/p device   */
{
        long            i, j;

static  u_char          buf[ SECTORS * SECTOR_SIZE ];   /* return data  */
static  struct  scsi10
        {
                int     cmdsize;                /* size of command      */
                int     retsize;                /* return buffer size   */
                u_char  cmd[10];                /* scsi command         */
        }       scsi_get_data =
        {
                10, SECTORS * SECTOR_SIZE,
                { 0x28, 0x08, 0, 0, 0,
                  0, 0, 0, SECTORS, 0
                }
        };

printf( "Grabbing %d frames\n", count );
        
        /* Loop doing a maximum of SECTORS frames each go.              */
        while( count )
        {
                i = count;
                if( i > SECTORS )  i = SECTORS;
                scsi_get_data.cmd[3] = ( start >> 16 ) & 0xFF;
                scsi_get_data.cmd[4] = ( start >> 8  ) & 0xFF;
                scsi_get_data.cmd[5] = start & 0xFF;
                scsi_get_data.cmd[7] = 0;       /* never > 256 sectors  */
                scsi_get_data.cmd[8] = i & 0xFF;
                
                /* Copy command into buffer area                        */
                memcpy( &buf[0], &scsi_get_data, sizeof( scsi_get_data ) );

                /* Send the command to SCSI bus                         */
                if( ioctl( fd, SCSI_IOCTL_SEND_COMMAND, &buf[0] ) )
                        return( -1 );           /* boobed               */
                        
                /* Just write the data                                  */
printf( "Writing %ld bytes\n", i * SECTOR_SIZE );
                if( write( ofd, &buf[0], i * SECTOR_SIZE ) < 0 )
                {
                        perror( progname );
                        exit( 1 );
                }
                
                count -= i;
                start += i;
        }
        
        return( 0 ); 
        
}       /* end of scsi_copy                                             */

------------------------------

From: ewalton@magnus.acs.ohio-state.edu (Elaine Walton)
Subject: Troubles with patches
Date: 27 May 1994 22:46:38 GMT

I decided to try my hand at compiling one of the "bleeding-edge" kernels.
I have done builds before using some pretty shaky software, but this one
stumps me:

I downloaded 1.1.13 and tried to compile it.  I got an undefined variable
in sbpcd.c (one of the switch-statement constants).  I posted a message
for help here, and got a message that my problem was that I didn't have
1.1.14.  Okay, I downloaded patch14 AND patch15.  I would have downloaded
a full 1.1.14 but none was available on tsx-11 (and sunsite had no current
kernels at all--as far as I could find).  I was suspicious of the patch
and looked at it--it had the wrong directories.  I set up the directories
they way it expected then ran the patch.  All went okay.  I 'configged a
kernel and compiled.  The compiler complained that I didn't have a
particular .h file.  So, I ran the patch15.  I compiled and got an unknown
variable.  Am I supposed to get the 1.1.16?  Is there one?

Frustrated.
-Sean

------------------------------

From: lellis@dmccorp.com (John Lellis)
Subject: Re: Routing requests and 1.1.15
Date: 28 May 1994 13:44:28 GMT

Mike Dowling (mike@MooCow.math.nat.tu-bs.de) wrote:
: When I boot I get 3 messages to the effect

: Warning: obsolete routing request made.

: It looks to me as if this results from the following 3 lines in my rc.inet1

: /sbin/route add localhost
: /sbin/route add tubs-net eth0
: /sbin/route add default gw 134.169.2.1 1

I, too, get the same three messages.  Nothing seems to be broken, though.

I am using the current version of route from ftp.funet.fi in

        /pub/OS/Linux/PEOPLE/Linus

Is there a more recent version?

--

John Lellis (lellis@dmccorp.com)

--
... Our continuing mission: To seek out knowledge of C, to explore
strange UNIX commands, and to boldly code where no one has man page 4.




------------------------------

From: chuckm@canada.hp.com (Chuck Munro)
Subject: Re: Bug in LOADLIN 1.4
Date: 28 May 1994 13:36:10 GMT

Steve McMahon (steve.mcmahon@lambada.oit.unc.edu) wrote:
> LOADLIN 1.4 does not pass all kernel command line parameters
> correctly. I have the command line `hd=984,13,32 root=/dev/hda1'. The
> latter is passed, but the former is not acknowleged by the kernel
> (1.1.2). I put a couple of printk's in hd_setup in hd.c
> (drivers/block), and indeed that function does not get called even
> though the parameter `hd=blah,..' is given to LOADLIN. Works fine with
> LILO.

Steve, I've passed your question on to Hans Lermen, the author of
LOADLIN.  He doesn't have easy access to the Linux newsgroups, and
so may not have read your question.

In the meantime, check to see if the environment variable "hd" is
set at boot time by doing something like   set > /tmp/bootvars
in your  rc.local  shellscript.  The bootvars file will contain
any parameters which the kernel could not deal with itself.

If you find that it has been named "HD" then that may be your problem.
DOS upshifts command line strings, and LOADLIN then downshifts some
of these automatically for you, because the kernel is case-sensitive.

You can avoid the upshifting of command line parameters by using a
parameters file for LOADLIN, something like   LOADLIN  @FILE.PAR
(This is the method I use for the  LINUX.BAT  file on my systems.)
Note that when you use this option, *all* of your parameters go into
the file.

I could be wrong, but I don't think that LOADLIN has been tested
against the 1.1.x kernels.  If "hd" is a new kernel parameter, then
LOADLIN can be patched in the next release to downshift it.  Hans
will know better than I, but this could be the problem.

Your question will be a good one for a FAQ list, which is slowly
being collected.


Hope this helps.  Cheers,

Chuck.


------------------------------

From: nelson@crynwr.crynwr.com (Russell Nelson)
Subject: Kernel change summary 1.1.14 -> 1.1.15
Date: 27 May 1994 19:57:50 GMT

Add Buslogic SCSI configuration to config.in
Add Always IN2000 line to config.in (but commented out).
Add SCSI debugging line to config.in (but commented out).
Add CONFIG_SCSI_IN2000 to scsi Makefile
Add more result codes to SCSI abort and reset functions.
Changes to aha1542 scsi driver:
  o reset interrupts in case another card's probe triggered one.
  o If that happens, print a message and restart the card.
  o If the card needs restarting because we reset it, do it.
When SCSI drivers are set up, their irq is initialized to zero.
Buslogic needs to use clustering, so it's added as a flag.
Changed timeout code in scsi.c
No longer panics if SCSI bus times out.
Avoid races between queuing commands, and handling the end of command intrpt.
Move code that maps signals to a different place.
Ext fs didn't implement euids properly in rmdir code.
Ext2 fs failed to extend a file if zero bytes were written past the end
        of the file.
Ext2 fs didn't implement euids properly in rmdir code.
Ext2 fs didn't work with block sizes other than 1024.
Minix fs failed to extend a file if zero bytes were written past the end
        of the file.
Minix fs now protects the file size updating when multiple processes are
        writing.
Minix fs didn't implement euids properly in rmdir code.
Xia fs didn't implement euids properly in rmdir code.
IBCS lcall 7,xxx handler is a work in progress.
A few in-line assembly string routines were optimized.
IP forwarding only forwarded broadcast packets (check was backward).
--
-russ <nelson@crynwr.com>      ftp.msen.com:pub/vendor/crynwr/crynwr.wav
Crynwr Software   | Crynwr Software sells packet driver support | ask4 PGP key
11 Grant St.      | +1 315 268 1925 (9201 FAX)    | Quakers do it in the light
Potsdam, NY 13676 | LPF member - ask me about the harm software patents do.

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: Linux-Development-Request@NEWS-DIGESTS.MIT.EDU

You can send mail to the entire list (and comp.os.linux.development) via:

    Internet: Linux-Development@NEWS-DIGESTS.MIT.EDU

Linux may be obtained via one of these FTP sites:
    nic.funet.fi				pub/OS/Linux
    tsx-11.mit.edu				pub/linux
    sunsite.unc.edu				pub/Linux

End of Linux-Development Digest
******************************
