Subject: Linux-Development Digest #979
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:     Wed, 3 Aug 94 08:13:08 EDT

Linux-Development Digest #979, Volume #1          Wed, 3 Aug 94 08:13:08 EDT

Contents:
  can't make kernels at all above 1.23 (Slackware 1.1.1) (Vince Skahan)
  Re: panic: Unable to find empty mailbox for aha1542. (Kang-Jin Lee)
  Want to work on PowerPC port (Andrew G. Russell IV)
  Re: Energy star screen saver for X (David Barth)
  Newbie question about socket programming (Christian Saucier)
  Re: APC UPS owners or potential buyers, trying to show user base (michael@starbase.neosoft.com)
  Re: APC UPS owners or potential buyers, trying to show user base (michael@starbase.neosoft.com)
  1.1.38 just hangs on my P60/PCI (Laurent Chemla)
  Should I apply this patch ??? (Laurent Chemla)
  Re: lint on linux? (Shannon Hendrix)
  Re: Interesting idea for lilo developers (Matthias Urlichs)

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

From: vince@coho.halcyon.com (Vince Skahan)
Subject: can't make kernels at all above 1.23 (Slackware 1.1.1)
Date: 3 Aug 1994 02:12:36 GMT

I'm running Slackware 1.1.1 with upgraded shlibs (4.5.24),
binutils (Jun-26-94) and flex (2.4.6) and have been unable to build
a bootable kernel since 1.1.23.  Is there something that's undocumented
that changed other than the need to get the new 'ld' command ?

Here's a transcript if it'll help:

(end of compilation)
=====================
gcc -D__KERNEL__ -I/usr/src/linux/include -O2 -DSTDC_HEADERS     xtract.c   -o xtract
gcc -D__KERNEL__ -I/usr/src/linux/include -O2 -DSTDC_HEADERS     piggyback.c   -o piggyback
./xtract ../tools/zSystem | gzip -9 | ./piggyback > piggy.o
System size is 659428
Compressed size 268398.
gcc -D__KERNEL__ -I/usr/src/linux/include -E -traditional head.S -o head.s
as -o head.o head.s
gcc -D__KERNEL__ -I/usr/src/linux/include -O2 -DSTDC_HEADERS  -c -o inflate.o inflate.c
gcc -D__KERNEL__ -I/usr/src/linux/include -O2 -DSTDC_HEADERS  -c -o unzip.o unzip.c
gcc -D__KERNEL__ -I/usr/src/linux/include -O2 -DSTDC_HEADERS  -c -o misc.o misc.c
ld -qmagic -Ttext 0xfe0 -o zSystem head.o inflate.o unzip.o misc.o piggy.o
text_start: 0x00000fe0  text_size: 0x00003000
data_start: 0x00003fe0  gap:  0x00000000
make[1]: Leaving directory `/usr/src/linux/zBoot'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486 -o tools/build tools/build.c
tools/build boot/bootsect boot/setup zBoot/zSystem CURRENT > zImage
Root device is (3, 66)
Boot sector 512 bytes.
Setup is 2048 bytes.
System is 373 kB (12 kB code, 264 kB data and 97 kB bss)
sync
1965.61user 355.32system 39:55.30elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps

(write a new boot floppy to try it out)
=======================================
/usr/src/linux (root) # grep dd Makefile | sh -xv
        dd bs=8192 if=zImage of=/dev/fd0
+ dd bs=8192 if=zImage of=/dev/fd0
34+1 records in
34+1 records out


(on booting)
============
  INVALID BOOT DISKETTE
Insert BOOT diskette in A:
Press any key when ready


(after building the bare minimum kernel possible)
=================================================
it told me I had an invalid compressed format or the like.


--
   ------------------- Vince Skahan ------ vince@halcyon.com ----------------
   I need facts even if they have to be fabricated.  You know you're gonna 
   find something wrong down there because if you don't you're going back.
                                      - former supervisor at Sunoco (1983)

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

From: lee@tengu.in-berlin.de (Kang-Jin Lee)
Subject: Re: panic: Unable to find empty mailbox for aha1542.
Date: Tue, 2 Aug 1994 12:43:18 GMT

keith@ksmith.com (Keith Smith) writes:

>panic: Unable to find empty mailbox for aha1542.
>in swapper task not syncing.

>locks-up

>Systems:

>486/66 w/BT745S EISA Host Adaptor
>       8MB RAM
>       NE2000 clone
>       1G SCSI HD

>486SLC/40 w/BT545S ISA Host Adaptor
>       8MB RAM
>       WD Elite-16
>       420MB IDE
>       1G SCSI
>       2 SCSI CD-ROM
>       1 SCSI Tape

>Both running Linux 1.1.27, no additional patches

>Both die infrequently while spooling news, though the latter is "more
>frequent" lately (nightly).

486/33 AHA1542B 16MB RAM, NE2000 Clone, 2 x 1G SCSI, Linux 1.1.37

Few days ago I bought an Apple 300 SCSI external CD-ROM drive and had 
same symptoms you describe. It works okay for some time and locks up
completely from time to time. So I tried to reproduce the lock up and
found out that transfering large amount of data from CD-ROM will lock
up the machine. With for example:

   cat * > /dev/null   or
   dd if=/dev/sr0 of=/dev/null

I could alway reproduce the lock ups.

Then I rebooted to MS-DOS and had complete lock ups too, when and only
transfering large amount of data.

I was confused by this and did RTFM again. The FM suggested to put the
terminator, it has connectors on both sides, that came with the CD-ROM 
drive between cable and drive and after doing this, all problems went
away.

So I can use my CD-ROM drive now but still have some questions:

- The drive has two connectors. Why does the drive not work correctly 
  when I put the SCSI cable on one and terminator on the other?
  (All of the external SCSI devices I saw used to work this way.)
- How does the terminator work if put between connector and cable
  leaving the other connector empty? I alway thought that the terminators
  should be on both ends of the cable and noth between external drive
  and controller like it is now.
- Is it possible to use the drive with another computer when it is 
  connected to the now empty connector?

>Keith Smith aka Digital Designs                 keith@ksmith.com
>5719 Archer Rd.                    Free Usenet News and Internet Mail Services
>Hope Mills, NC 28348-2201         All 28K/14K Modems  (910) 423-4216/7389/7391
>Somewhere in the Styx of North Carolina ...         14K-V.32/28K-V.34/28K-V.34

-- 
Kang-Jin Lee
lee@tengu.in-berlin.de

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

From: arussell@onramp.net (Andrew G. Russell IV)
Subject: Want to work on PowerPC port
Date: 2 Aug 1994 21:25:20 -0500


Hi, I would like to work on the PowerPC port of Linux.
I am a low level communications programer with a lot
of experience with the RISC System/6000 at the low 
levels.

A.G.
-- 
A.G. Russell           High Order Software   internet: arussell@bga.com
Phone 214-718-4655                    210-599-9429     arussell@bifrost.bga.com
    on location in Dallas, Texas      214-256-1027     arussell@onramp.net
These are my views, on anyone else they would look silly. FREE THE BERKELEY 4.4

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

From: dbarth@carl.fdn.fr (David Barth)
Subject: Re: Energy star screen saver for X
Date: 2 Aug 1994 20:16:37 +0200

Kim-Minh Kaplan (kaplan@jussieu.fr) wrote:
: Subject: 

: Here's the patch to use the power saving feature of your monitor.  It
: works with my MAG 17 and cirrus logic 5428.  I don't know if it works

What is the reference of your MAG monitor ? I thought they didn't support
power saving yet ? BTW, have you any good adress to buy such one in France ?

TIA
---
          | |     David Barth - Email : dbarth@carl.fdn.fr
        __| |          
   MS-`(____|     ......" LINUX, the choice of a GNU generation "
      '

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

Crossposted-To: gnu.gcc.help
From: saucc00@DMI.USherb.CA (Christian Saucier)
Subject: Newbie question about socket programming
Date: Wed, 3 Aug 1994 00:22:28 GMT

I'm trying to learn how to use the sockets to get two programs on a
single machine to talk to each other using UDP.

Since I've never done this before, I figured I'd start by trying the examples
that are included in the info pages glibc.sockets.datagrams.

Trying the server program given there, I get an error saying:
   Operation not supported on transport endpoint (EOPNOTSUPP)
on the following line:
   recvfrom (sock, message, MAXMSG, 0,(struct sockaddr *) & name, &size);

Does anybody know what I'm missing.  If anybody has a simple example of   
two programs that talk to each other (and that works under Slackware Linux
1.2.0) I'd be interested to see it.

Thank you for any help!

Christian Saucier


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

From: michael@starbase.neosoft.com
Crossposted-To: comp.unix.bsd
Subject: Re: APC UPS owners or potential buyers, trying to show user base
Date: Sun, 31 Jul 94 00:02:45 PDT


In article <CtpoIA.JJH@newsserver.aggregate.com>, 
>       The Smart-UPS's use some sort of dongle RS232 cable if I remember
>       correctly, i.e. it's not a normal RS232 cable since it has extra
>       components in it. Once you have one of those cables its some sort
>       of 1 or 2 letter commands sort of thing to get info out of the
>       UPS.

Even if the pinouts are radically different from RS232 - making a new 
cable is a trivial task -- you don't have to pay the vendor if you can
roll your own.  

The cable (as well as I can remember) has either a 9 or 25 pin connector
on the computer side, and probably a 9 pin on the UPS end.  This means 
that a cable with at least 9 elements should do...

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

From: michael@starbase.neosoft.com
Crossposted-To: comp.unix.bsd
Subject: Re: APC UPS owners or potential buyers, trying to show user base
Date: Sun, 31 Jul 94 00:13:51 PDT


In article <JOHNSONM.94Jul30211022@calypso-2.oit.unc.edu>, 
> They appear to have at least two different versions, since I've seen
> them for two different prices...  I didn't buy it; I don't want
> software to which I don't have the source controlling when I shut my
> machine down, even if I *can* run it.

As I recall (from my last job -- a Sun shop), upon loss of power being
reported by the UPS (SmartUPS) a script is run.  The SysAdmin has 
complete control of the script.  

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

From: chemla@cnam.cnam.fr (Laurent Chemla)
Subject: 1.1.38 just hangs on my P60/PCI
Date: 3 Aug 1994 10:21:15 GMT



--
The title says it all..
I just get the message saying 'Now booting the kernel' and nothing
else happens. It's the first time since 0.96 Linux just doesn't work
at all on one of my machines :-)

Configuration:
Pentium P60/PCI (Intel motherboard),
Adaptec 1542B
Sound Blaster CDROM

Any hints ?

--
Laurent Chemla : chemla@cnam.cnam.fr or laurent@brasil.frmug.fr.net
Brasil BBS  - +33 1 44 67 08 44 -  Atari France developpers support

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

From: laurent@brasil.frmug.fr.net (Laurent Chemla)
Subject: Should I apply this patch ???
Date: 2 Aug 1994 17:06:00 GMT

--

I recently posted an article about my hanging Chinon CDROM drive, but
never got any answer that solved my problem. This is no more a problem
for me anyway as I just bought a new cdrom drive, but I just found in
the cdda2wav (scsi audio cdrom to .wav file) package a patch to apply
for olders kernel and speaking about such hangings. The first part of
patch seems to have found it's way into the kernel but not the second
part, so I wonder if this could be the reason why my 1.1.37 kernel
still hangs when accessing a slow cdrom drive.
Here is the part of the patch file that is not (yet?) include in the
kernel:

*** scsi_ioctl.c.org    Wed Mar 30 08:12:57 1994
--- scsi_ioctl.c        Sun Jun  5 16:39:49 1994
***************
*** 228,234 ****
        };
        result = SCpnt->result;
        SCpnt->request.dev = -1;  /* Mark as not busy */
!       if (buf) scsi_free(buf, needed);
--- 228,234 ----
        };
        result = SCpnt->result;
        SCpnt->request.dev = -1;  /* Mark as not busy */
!       if (buf) scsi_free(buf, (needed + 511) & ~511);

Please let me know if this is usefull or not, Mr Anybody :-)

--
Laurent Chemla : chemla@cnam.cnam.fr or laurent@brasil.frmug.fr.net
Brasil BBS  - +33 1 44 67 08 44 -  Atari France developpers support

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

From: shendrix@escape.widomaker.com (Shannon Hendrix)
Subject: Re: lint on linux?
Date: Sun, 31 Jul 1994 21:46:32 GMT

Byron Faber (btf57346@uxa.cso.uiuc.edu) wrote:

: >     <sigh> This question comes up every two weeks. No there is no 
: >lint for Linux. 'gcc -Wall' should do everything you need though.

Hardly.  Lint is a little better at telling about many things.  True,
gcc -Wall -pedantic is pretty good, but it often fails to tell what
went wrong, just that the problem (wherever it was) caused something to
happen at line XXX.  Where gcc says there is a problem isn't always
where it actually occured.  Usually I can run lint and get a better idea.
The lint that comes with SunOS isn't much different than gcc either but
I still use it sometimes.  gcc or not, lint would be a nice thing to 
have under Linux.

: >     SJK


: Or if you really want fun:

: gcc -Wall -pedantic

: Byron
: -- 
: `Playing this disk at loud volume may permanently damage your speakers or
: other sound components.'                              -LFO
:               b-faber@uiuc.edu & http://www.cen.uiuc.edu/~bf11620/
-- 
csh
===========================================================================
shendrix@escape.widomaker.com (UUCP)     | Amd486/40 Linux system
shendrix@pcs.cnu.edu (Internet)          | Christopher Newport University

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

From: urlichs@smurf.noris.de (Matthias Urlichs)
Subject: Re: Interesting idea for lilo developers
Date: 3 Aug 1994 12:31:50 +0200

In comp.os.linux.development, article <kress.670.001066D0@kentrox.com>,
  kress@kentrox.com (Bill Kress) writes:
> lilo is a great system. The problem is obvious, there is
> no input that you can set when you turn your computer on
> so that you can go get a drink while your system boots
> to the operating system/configuration of your choice.
> 
RTFM, especially "lilo -R".
> 
> Thanks for listening,

Wrong.  :-/


-- 
Surgeons do it incisively.
-- 
Matthias Urlichs        \ XLink-POP N|rnberg  | EMail: urlichs@smurf.noris.de
Schleiermacherstra_e 12  \  Unix+Linux+Mac    | Phone: ...please use email.
90491 N|rnberg (Germany)  \   Consulting+Networking+Programming+etc'ing     42

Click <A HREF="http://smurf.noris.de/~urlichs/finger">here</A>.

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


** 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
******************************
