Linux-Development-Sys Digest #323, Volume #6 Sun, 24 Jan 99 06:14:18 EST
Contents:
Re: poll in a Kernel Driver every second (Dirk Nuyens)
Re: How can I build a Linux system from scratch - NO distribution? (Richard Jones)
Re: Linux Phase 2: A Consumer Operating System (Christopher Browne)
PCI modem driver (Rockwell) (peter)
2.2.0-pre9 hd error (Alexander Brinkman)
Re: TAO: the ultimate OS (Paul Hughett)
Re: Newbie Question ("J�rgen Exner")
Re: Linux Phase 2: A Consumer Operating System (Alexander Viro)
Security auditing software (network) (Ryan Singer)
raid 5 problems ("Uwe Fechner")
Re: Kernel 2.2.0-pre9 VFAT bug (Jon K Hellan)
BeOS and Linux ("John A. Crow")
Internal PCI modem (Donato Marrazzo)
----------------------------------------------------------------------------
From: Dirk Nuyens <[EMAIL PROTECTED]>
Subject: Re: poll in a Kernel Driver every second
Date: Fri, 22 Jan 1999 17:49:45 +0100
==============1F77DA08292B51BD2BBD9439
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Zefram Cochrane wrote:
> Dietmar Kling wrote in message <[EMAIL PROTECTED]>...
>
> >how can i check on a regular basis a certain Register of a piece of
> >hardware and issue a kernel message then?
>
> Funny you should day that, because I've just finished writing something
> to poll a port every 1/20 of a second (it's an atomic time receiver).
> I could send you some sample code, but I'm a bit pushed for time at the
> moment. Basically, though, the kernel maintains a list of "timers".
>
> Just to be perverse, each of these timers, is called a "timer list".
> The idea is that you initialise some structure with a pointer to a
> "callback function" and an expiry time and do add_timer on it. Then,
> when it times-out, your callback fucntion gets called (in kernel space).
>
> The timer is not repeating, so you have to keep re-initialising/adding
> it in your callback function.
>
> The timeout is an absolute number of jiffies (=centiseconds on the PC)
> so you have to work out what your delay is (1s in your case) and then
> stuff that into the aforementioned structure as jiffies+HZ*1.
>
> jiffies is a "volatile" variable. You have to declare it as
> extern volatile unsigned long jiffies;
>
> This is because, although it looks like a variable, it is updated
> continuusly, by forces outside your program.
>
> Richard [in PE12]
Yep, you should look into Alessandro Rubini's Linux Device Drivers
somewhere on page 147 (Kernel Timers)
--
Dirk Nuyens
==============1F77DA08292B51BD2BBD9439
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Zefram Cochrane wrote:
<BLOCKQUOTE TYPE=CITE>Dietmar Kling wrote in message
<[EMAIL PROTECTED]>...
<P>>how can i check on a regular basis a certain Register of a piece of
<BR>>hardware and issue a kernel message then?
<P>Funny you should day that, because I've just finished writing something
<BR>to poll a port every 1/20 of a second (it's an atomic time receiver).
<BR>I could send you some sample code, but I'm a bit pushed for time at
the
<BR>moment. Basically, though, the kernel maintains a list of "timers".
<P>Just to be perverse, each of these timers, is called a "timer list".
<BR>The idea is that you initialise some structure with a pointer to a
<BR>"callback function" and an expiry time and do add_timer on it. Then,
<BR>when it times-out, your callback fucntion gets called (in kernel space).
<P>The timer is not repeating, so you have to keep re-initialising/adding
<BR>it in your callback function.
<P>The timeout is an absolute number of jiffies (=centiseconds on the PC)
<BR>so you have to work out what your delay is (1s in your case) and then
<BR>stuff that into the aforementioned structure as jiffies+HZ*1.
<P>jiffies is a "volatile" variable. You have to declare it as
<BR>extern volatile unsigned long jiffies;
<P>This is because, although it looks like a variable, it is updated
<BR>continuusly, by forces outside your program.
<P>Richard [in PE12]</BLOCKQUOTE>
Yep, you should look into Alessandro Rubini's Linux Device Drivers somewhere
on page 147 (Kernel Timers)
<PRE>--
Dirk Nuyens
<[EMAIL PROTECTED]></PRE>
</HTML>
==============1F77DA08292B51BD2BBD9439==
------------------------------
From: Richard Jones <[EMAIL PROTECTED]>
Subject: Re: How can I build a Linux system from scratch - NO distribution?
Date: Fri, 22 Jan 1999 17:20:48 +0000
Jens Kristian S�gaard <[EMAIL PROTECTED]> wrote:
: "Thomas T. Veldhouse" <[EMAIL PROTECTED]> writes:
:> a system with X-Windows and various components taking a very long time to
:> appear (i.e. netscape and emacs) when my network is not up. Various other
: This is probably a DNS problem. Setup your DNS server to reply with a
: "nonexistent domain"-error when an internet-domain is requested
: ( ofcourse it should reply normally when connected to the net ).
Can you explain how to do this?
Rich.
--
- Richard Jones. Linux contractor London and SE areas. -
- Very boring homepage at: http://www.annexia.demon.co.uk/ -
- You are currently the 1,991,243,100th visitor to this signature. -
- Original message content Copyright (C) 1998 Richard Jones. -
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Crossposted-To: alt.os.linux,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Linux Phase 2: A Consumer Operating System
Reply-To: [EMAIL PROTECTED]
Date: Thu, 21 Jan 1999 05:18:05 GMT
On 20 Jan 1999 15:47:05 -0500, Alexander Viro <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>Vihung Marathe <[EMAIL PROTECTED]> wrote:
>[snip]
>>Making Linux into a consumer product has two major primary benefits
>
>Go and do it if you want it. You are nothing. You are less than nothing - you
>are marketdroid wannabe who barely learned to post. You words worth not more
>than your pathetic self until you *bloody go and write what you want to have*.
This is an unkind response.
Funny thing of the day... Corman LISP comes with the (HURL-INSULT)
package:
(HURL-INSULTS)
Thou GOATISH FEN-SUCKED BUM-BAILEY!
Thou UNMUZZLED CLAPPER-CLAWED FLAX-WENCH!
Thou ROGUISH SHEEP-BITING MISCREANT!
Had enough?(Y/N)
n
Thou FAWNING SPUR-GALLED FUSTILARIAN!
Thou JARRING GUDGEON SKAINSMATE!
Thou UNMUZZLED SHEEP-BITING FLAP-DRAGON!
Had enough?(Y/N)
N
Thou GOATISH UNCHIN-SNOUTED LEWDSTER!
Thou VAIN KNOTTY-PATED CLOTPOLE!
Thou INFECTIOUS HEDGE-BORN HAGGARD!
Had enough?(Y/N)
N
Thou SAUCY DOGHEARTED PUMPION!
Thou BOOTLESS CLAPPER-CLAWED FLAP-DRAGON!
Thou SPONGY BEETLE-HEADED LEWDSTER!
Had enough?(Y/N)
N
Thou LUMPISH PUTTOCK BLADDER!
Thou SAUCY CLAY-BRAINED CLOTPOLE!
Thou RUTTISH IDLE-HEADED SCUT!
;;;; Insults variously attributed to:
;;;; a) William Shakespeare
;;;; b) A fellow priest who was the Vicar of a
;;;; neighbouring parish when I worked in the beautiful Waikato
;;;; District
;;;; c) Matthew A. Lecher ([EMAIL PROTECTED])
;;;; d) Jerry Maguire, who teaches English at Center Grove High
;;;; School
At any rate, while dramatic insults may drive people away, it does
little to advance any understanding of how/why the idea of "making Linux
into a consumer product" is a bad one.
>[snip]
>>To accomplish this, developers must find out what consumers want.
>
>Then go, find it out and do it. And don't DARE to tell "must" to people
>who don't depend on you and owe you nothing.
This thread came up in discussions yesterday; this is well worth
elaborating on, perhaps with a little less vitrol.
... Moving along the vitrolic path ...
My local LUG went through a similar-but-opposite problem over the last
24 hours. Some kid, of what persuasion, we're unable to identify, who
had joined [EMAIL PROTECTED] a while back, apparently felt that some
question that he asked was not answered with what he felt was "due
haste."
He proceeded to begin a screed against NTLug where he would *allude* to
problems he was having in installing Linux, and then accusing us of
being a bunch of 'uppity gurus' that "all work for big companies" that
are being of utterly no assistance to anyone.
(And then said silly things about "nonprofit status" that were just, um,
silly. Not long ago, I wrote the wording for the charter for a possible
upcoming charitable corporation that NTLug might turn into; as far as I
know, the incorporation process isn't done yet...)
At any rate, the *very bad thing* that happened was that the discussion
degraded into something like unto the "Nudd" threads. There were people
willing to try to provide our erstwhile anti-hero with some help.
They'd suggest looking at one of the HOWTO web sites, or getting a book.
The fellow had *such* a case of attitude that he was unable to accept
any answer, but would pick whatever holes he could conceive of in the
answers that were given.
He finally got removed from the list, and proceeded to "stomp" on the
web site's visitor comment page. (No doubt we get to worry for a few
days about whether he'll try to "hack" the web site.)
One very unfortunate thing was that the fellow seemed to have the
expectation that he could *demand* that we help him. He was *demanding*
that our LUG write an "A-Z guide to Linux."
... And back from vitrol to "demanding as a right" ...
As you have rightly pointed out, there should be no "must" in
"To accomplish this, developers must find out what consumers want."
- Developers often enough are building things for their own use and
enjoyment. What consumers want is irrelevant to this.
- Developers only have a duty of care to those people that have
established some relationship *entitling* them to such a duty of care.
- NTLug members contribute time to the Linux Installation Project, and
help people install Linux because they like doing this. No "installee"
actually has any entitlement or "right" to any of this.
- My employer pays me a fair bit to have some "duty of care" in my work.
In contrast, consumers aren't establishing any relationships with OSS
developers that give them any right to expect any sorts of
"entitlements" or "duty of care" or any such thing.
If people want to have any "rights" or "entitlements" or the expectation
that they deserve anything at all, they have to put something in to "pay
for it." The "OSS community" has grown up because people use each
others' software contributions, each of which provides some degree of
"entitlement," at least from a moral perspective.
For instance, supposing Oracle contributes something in terms of either
funding or staffing to help get some "enterprise functionality" (either
high availability or large file support being logical things), their
contribution does, to some extent, entitle them to *some* good things in
return.
--
"Now, if someone proposed using people who spam comp.sys.* groups with
political screeds in place of lab rats for drug testing, I'd
wholeheartedly concur". -- John C. Randolph
[EMAIL PROTECTED] <http://www.ntlug.org/~cbbrowne/fssp.html>
------------------------------
From: peter <[EMAIL PROTECTED]>
Subject: PCI modem driver (Rockwell)
Date: 21 Jan 1999 05:24:29 GMT
Dear all,
I've just bought a PCI modem for my Linux 2.0.35.
Well, it use Rockwell chipset and support both V.90/K56Flex.
I guess there is no standard support for most PCI modem
in Linux, but I dare to write one for myself or anyone
who may need it. Currently, the PCI init can detect the
presence of the "PCI_CLASS_COMMUNICATION_SERIAL" after the
plug-in of the card. And I can take the shared memory
address of the PCI modem card, i guess it is done by something like:
struct pci_dev *pdev = pci_find_slot(pci_bus, pci_device_fn);
long ioaddr = pdev->base_address[0];
irq = pdev->irq;
But I don't have any information on how to communicate
with the modem, is it standard AT command?
Or is there any protocol to communicate with
a PCI modem with Rockwell chipset?
Also, if I know the IRQ, can I map the device to
a standard com port such that I can directly
use it as a standard device?
Thanks in advance for any information you
may give to me, either related or unrelated.
Thanks, reply to: [EMAIL PROTECTED]
--
peter
------------------------------
From: Alexander Brinkman <[EMAIL PROTECTED]>
Subject: 2.2.0-pre9 hd error
Date: Fri, 22 Jan 1999 19:46:51 +0000
Hello,
After upgrading to kernel 2.2.0-pre9 I get the following error when
booting:
Partition check:
hda:hda: set_multmode: status=0x51 { DriveReady SeekComplete Error }
hda: set_multmode: error=0x04 { DriveStatusError }
hda1
hdc: hdc1 hdc2 < hdc5 >
Now, Linux is on my hdc disk. On the hda disk is a Windows 98 Fat32
partition. The detection of the UDMA board goes ok. It's an EPOX
51MVP3E-M mboard, using VIA82C586 chipset.
I ran kernel 2.1.131 before without any problems.
Grtz,
Eon.
--
My mail is powered by Linux!
------------------------------
From: [EMAIL PROTECTED] (Paul Hughett)
Crossposted-To:
alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.sys.misc,comp.unix.advocacy
Subject: Re: TAO: the ultimate OS
Date: 22 Jan 1999 20:04:16 GMT
Vladimir Z. Nuri ([EMAIL PROTECTED]) wrote:
[A description of TAO, the ultimate operating system.]
The Tao that can be implemented is not the real Tao.
Paul Hughett
------------------------------
From: "J�rgen Exner" <[EMAIL PROTECTED]>
Crossposted-To:
alt.uu.comp.os.linux.questions,comp.os.linux.hardware,comp.os.linux.misc
Subject: Re: Newbie Question
Date: Fri, 22 Jan 1999 12:03:41 -0800
Charles Riley wrote in message <788qv6$fc8$[EMAIL PROTECTED]>...
>Is there any way to access a Zip Drive from Linux? ....
Trivial, just mount the filesystem on the Zip the same way as you do for a
file system on any other HD. This works at least for SCSI ZIPs.
For other interfaces you may need additional drivers.
BTW: You read the ZIP-drive and ZIP-Install MiniHowtos, didn't you?
jue
--
J�rgen Exner; microsoft.com, UID: jurgenex
Sorry for this anti-spam inconvenience
------------------------------
From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: alt.os.linux,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Linux Phase 2: A Consumer Operating System
Date: 24 Jan 1999 01:49:23 -0500
In article <78dnqn$cmk$[EMAIL PROTECTED]>,
David Magda <[EMAIL PROTECTED]> wrote:
>>should we do. To all such persons: Linux is not controlled by your ilk. Yes,
>>there are things done without Management. If it shatters your world it's *your*
>>problem. Suffer or change your parasitic beliefs or scream and die if you can't
>
>Relax. I don't know you personally, but from your last two posts it seems that
>you are a zealot.
Nope. Commerce != PHB. It's not "everything should be free (in any sense)",
it's "ignorant management is *NOT* welcome". I have no problems with Caldera,
RH, etc. It has nothing with the fact that there is a layer of "middle
management" consisting of people who can't do anything by themselves, can't
make a competent decision and feel absolutely normal to make decisions and
enforce them. IMHO they are an insult to Darwin. They can't run their own
business (too clueless and can't stand a responsibility) and they can't do
anything useful working for somebody else (same reasons).
Yes, I have problems with those who think that they can give orders to people
who owe them nothing. If you consider it zealotry... Well, it's your business.
--
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid. Get yourself a better computer" - Dilbert.
------------------------------
Date: Fri, 22 Jan 1999 14:05:22 -0700
From: Ryan Singer <[EMAIL PROTECTED]>
Subject: Security auditing software (network)
Howdy,
I was wondering if anyone knew of any other software
out there like SATAN/SAINT. I like both of those
pieces of software, but I am compiling a list of the
various packages available.
Feel free to just email me, or reply to the group.
I really appreciate any and all help you can give
me.
--
===================================================
Ryan Singer CADVision Development Corp.
System Administrator Suite 1810 300 5th Ave S.W.
ryan.s@cadvision . com Calgary, AB, Canada T2P 3C4
------------------------------
From: "Uwe Fechner" <[EMAIL PROTECTED]�m>
Subject: raid 5 problems
Date: Fri, 22 Jan 1999 22:15:16 +0100
hello,
raid is in the kernel, the tools are in an rpm package, fine.
my environment:
cy486/66 32M
2x aha 1542
1x 1g fujitsu
4x 0,5g conner
1x wangtek qic 02
all scsi
i tried to setup raid5, tools installed with rpm, edit of raidtab in /etc
insmod raid5
raidadd -a
mkraid /dev/md0
raidrun -a
mount /dev/md0 /blabla
works fine.
shutdown works fine, raidstop is executed.
when the system comes up, module raid5 is not loaded, okay, no problem,
inserted the command in /etc/rc.d/rc.sysinit in the section raid.
okay works fine.
shutdown and restart, all right!
but then i did the ultimate power off test.
so raidstop is not executed.
system comes up and checks all disks
raidrun says: /dev/md0 is corrupt , run ckraid
i run ckraid /dev/md0
ckraid says: /dev/md0 is ok, superblock not updated.
so i force ckraid to check the drive, (takes a long time)
ckraid says: /dev/md0 is ok, superblock not updated.
all data is lost (if there where som data, is only test)
has someone a suggestion?
uwe
--
Uwe Fechner
_______________________________________________________________________
[EMAIL PROTECTED] http://www.integrata.de
+49 211 96 555 47 Fax: +49 211 96 555 99
[EMAIL PROTECTED] http://www.koeln.netsurf.de/~uwe.fechner
_______________________________________________________________________
Microsoft gives you Windows, UNIX gives you the whole house!
------------------------------
From: Jon K Hellan <[EMAIL PROTECTED]>
Subject: Re: Kernel 2.2.0-pre9 VFAT bug
Date: 22 Jan 1999 22:31:07 +0100
"Jan Matejka" <[EMAIL PROTECTED]> writes:
> Hi,
>
> in kernel 2.2.0-pre9 when I try to move file _within_ DOS
> FAT16 or FAT32 partition, I always receive error:
>
> file not found
>
> Moving files between _different_ DOS partitions works OK.
>
> in kernel 2.2.0-pre8 the same situation typically ended with
> system crash: NULL pointer inside kernel
This fixes it:
--- linux-pre9/fs/vfat/namei.c Thu Jan 21 11:39:27 1999
+++ linux/fs/vfat/namei.c Thu Jan 21 11:39:47 1999
@@ -1657,9 +1657,9 @@
drop_aliases(new_dentry);
}
res = vfat_remove_entry(new_dir,&sinfo,new_inode);
+ if (res)
+ goto rename_done;
}
- if (res)
- goto rename_done;
/* Serious lossage here. FAT uses braindead inode numbers scheme,
* so we can't simply cannibalize the entry. It means that we have
Jon
------------------------------
From: "John A. Crow" <[EMAIL PROTECTED]>
Subject: BeOS and Linux
Date: Fri, 22 Jan 1999 14:54:15 -0600
--
Just a question for consideration:
I am wondering if anyone has given any thought to the possibility of
some sort of coordination of development between Linux and BeOS.
My guess would be that the folks at Be (http://www.be.com) have
given some thought to this, but I never have seen any details.
Post to group.
- John
______________________________________________________________________
John A. Crow
------------------------------
From: Donato Marrazzo <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Internal PCI modem
Date: Fri, 22 Jan 1999 10:08:15 +0100
Somebody can help me?
I have a "fxxx" PCI modem...
How can i setup it?
I have installed Kernel 2.1.x, it see the PCI card, but... what can i do
now?
Here's what i get:
# more /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: Intel 82437 (rev 2).
Medium devsel. Master Capable. Latency=32.
Bus 0, device 7, function 0:
ISA bridge: Intel 82371FB PIIX ISA (rev 2).
Medium devsel. Fast back-to-back capable. Master Capable. No
bursts.
Bus 0, device 7, function 1:
IDE interface: Intel 82371FB PIIX IDE (rev 2).
Medium devsel. Fast back-to-back capable. Master Capable.
Latency=32.
I/O at 0x3000 [0x3001].
Bus 0, device 18, function 0:
Serial controller: Unknown vendor Unknown device (rev 1).
Vendor id=127a. Device id=1004.
Medium devsel. Fast back-to-back capable. IRQ a. Master
Capable.
Latency=32.
Non-prefetchable 32 bit memory at 0xf2000000 [0xf2000000].
Bus 0, device 20, function 0:
VGA compatible controller: S3 Inc. Vision 868 (rev 0).
Medium devsel. IRQ 9.
Non-prefetchable 32 bit memory at 0xf0000000 [0xf0000000].
# ./lspci -v
00:00.0 Class 0600: 8086:122d (rev 02)
Flags: bus master, medium devsel, latency 32
00:07.0 Class 0601: 8086:122e (rev 02)
Flags: bus master, medium devsel, latency 0
00:07.1 Class 0101: 8086:1230 (rev 02) (prog-if 80)
Flags: bus master, medium devsel, latency 32
I/O ports at 3000
00:12.0 Class 0700: 127a:1004 (rev 01)
Subsystem: 144f:1009
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at f2000000 (32-bit, non-prefetchable)
00:14.0 Class 0300: 5333:8880
Flags: stepping, medium devsel, IRQ 9
Memory at f0000000 (32-bit, non-prefetchable)
**************************
------------------------------
** 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: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************