Linux-Development-Sys Digest #581, Volume #8 Wed, 21 Mar 01 17:13:23 EST
Contents:
Re: File system driver questions. (Kasper Dupont)
Re: unable to mount floppy? (Kasper Dupont)
Re: kernel problem (Kasper Dupont)
UDP Server output limit ("Nick Redshaw")
Serial in Linux (Andrzej Stypula)
Re: 2.4.2, loopback, and lockups ("lfree")
Help with inline assembly (G)
Equivalent for wait4 sys call in kernel (G)
synchronous over a serial driver ([EMAIL PROTECTED])
Re: kernel problem (Dipl. Ing. Werner =?iso-8859-1?Q?K=FChnert?=)
Re: Running MSC6/MSC7 under linux? (Bernd Melchers)
Re: UDP Server output limit
Re: mouse device driver programming
Re: unable to mount floppy? Solved! ("Sean Xu")
Re: Can linux be trusted? ("Dave Korn")
Parallel Ports (Josef Allen)
Re: Parallel Ports (Grant Edwards)
LILO 21.7 patches issued (8-Mar, & 20-Mar) (John in SD)
Bypassing login prompt? (Paul Haley)
How to Kill "unkillable" process (Ash Bowers)
Re: How to Kill "unkillable" process (Roland Smith)
Re: Writing a Device Driver ("David Findlay")
Re: Writing a Device Driver
Re: Running MSC6/MSC7 under linux? (Micah Cowan)
----------------------------------------------------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: File system driver questions.
Date: Wed, 21 Mar 2001 11:12:31 +0000
Dennis Jenkins wrote:
>
[...]
>
> Thanks for the info. I had planned on doing this on a Slackware 7
> system, which runs a 2.2 kernel. But I hope to have my code make it to
> the real kernel someday, so I had better upgrade before I begin.
>
> What kernel would be best to start with?
One of the 2.4.x kernels, I don't think there are any
difference in the VFS interfaces, so it will be easy
to move your code between the versions. Currently the
following exists: 2.4.0, 2.4.1, and 2.4.2.
>
> --
> [EMAIL PROTECTED] Universal Savings Bank.
>
> The three most dangerous things are a programmer with a soldering
> iron, a manager who codes, and a user who gets ideas.
--
Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: unable to mount floppy?
Date: Wed, 21 Mar 2001 11:24:55 +0000
Sean Xu wrote:
>
> I have installed RedHat Linux 7.0(kernel 2.2.16-22). It works fine before.
> But after installing a few rpm packges. I got the message "wrong major or
> minor number for/dev/fd0...." while trying to mount the floppy drive. What
> is causing the problem?
>
> Is there any easy way to fix it without re-installing the whole OS!
>
> BTW: I don't even have a network connection on that computer so that i
> cannot even back up my files.
>
> Thanks in advance!
>
> Sean
On my system "ls -l /dev/fd0" shows this:
brw-rw---- 1 root floppy 2, 0 Aug 24 2000 /dev/fd0
^^^ ^^^^^^^^ ^^^^^^^^^^
If the parts I have marked differ that is a problem.
Also try "cat /proc/devices" In the Block devices
section you should see a line reading
2 fd
What where the packages you installed leading to this
problem?
--
Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: kernel problem
Date: Wed, 21 Mar 2001 11:28:16 +0000
Dipl. Ing. Werner K�hnert wrote:
>
> Hi all,
>
> Can anyone give me a hint what the reason for the following message can
> be :
>
> Kernel panic: Attempted to kill the idle task!
> In Swapper task - not syncing.
>
> TIA
>
> Regards
> Werner Kuehnert
>
> --
> Werner Kuehnert Siemens AG Oesterreich PSE ECT IPN 1
> E-Mail: [EMAIL PROTECTED]
We need some more context to explain what happens,
most likely you must have got some other error
messages before the two mentioned.
What did you do to provoke this message?
--
Kasper Dupont
------------------------------
From: "Nick Redshaw" <[EMAIL PROTECTED]>
Subject: UDP Server output limit
Date: Wed, 21 Mar 2001 12:10:53 -0000
Hi folks
I have a small UDP packet server on RedHat 2.4 which is reaching an output
limit of around 70 kbps. I'm using fnetload to monitor the in / out rate of
the network card.
My network card is a realtek rtl8129 (10/100). I am running the tests on an
isolated LAN (100Mbps)
Modifying the priority or memory available to the server does not affect the
above limit. Because of this I'm assuming that the problem is I/O based.
Questions to the group...
Could the driver be the problem?
Is there any soft network settings that I should be aware of?
Regards,
Nick
------------------------------
From: Andrzej Stypula <[EMAIL PROTECTED]>
Subject: Serial in Linux
Date: Wed, 21 Mar 2001 13:24:34 +0100
Hi,
Is possible to set up FIFO length?
What role plays xmit_fifo_size in serial_struct?
TIA,
--
Andrzej Stypula @Home: altair.krakow.pl
[EMAIL PROTECTED] Private Home Domain, Poland
PGP2.x id: 9AB243A5 ####################################################
------------------------------
From: "lfree" <[EMAIL PROTECTED]>
Subject: Re: 2.4.2, loopback, and lockups
Date: Wed, 21 Mar 2001 20:13:01 +0800
this bug fixed in 2.4.3pre2
"Kent A Vander Velden" <[EMAIL PROTECTED]> wrote in message
news:999bf0$vbn$[EMAIL PROTECTED]...
> Since updating to 2.4.x, I have been experiencing lockups whenever I
> use the lookback device for mounting iso images. This on an SMP
> machine if that makes any difference. I have not experimented much
> with this, but wondered if someone had already discovered a solution.
>
------------------------------
From: G <[EMAIL PROTECTED]>
Subject: Help with inline assembly
Date: Wed, 21 Mar 2001 18:37:04 +0530
Hi,
This is wrto inline asm semaphore implementation in linux.
__asm__ __volatile__(
"# atomic up operation\n\t"
LOCK "incl %0\n\t" /* ++sem->count */
"jle 2f\n"
"1:\n"
".section .text.lock,\"ax\"\n"
"2:\tcall __up_wakeup\n\t"
"jmp 1b\n"
".previous"
:"=m" (sem->count)
:"c" (sem)
:"memory");
}
Can somebody explain what LOCK , .text.lock and .previous mean in this
context. Went throught the gcc inline asm info page and as pseudo ops info
pages...but couldn't find what .text.lock or .previous mean .. I know abt
text, and data sections but what is .text.lock . (Yeah I am a bit green :)
)pls halp.
K
(btw code is copyright linus trovalds and license as per GNU GPL ..shud i
include this??)
------------------------------
From: G <[EMAIL PROTECTED]>
Subject: Equivalent for wait4 sys call in kernel
Date: Wed, 21 Mar 2001 18:40:34 +0530
Hi,
Is there an in kernel equivalent for wait4 sys call which can be called
from lodable kernel modules??? (sys_wait4 is not exported). I can probably
write inline assembly to call int 0x80 with the wait4 sys call no. But is
that approach right??
Pls comment
TIA
K
------------------------------
From: [EMAIL PROTECTED]
Subject: synchronous over a serial driver
Date: 21 Mar 2001 13:50:26 GMT
Hello
The "pppd" in the new 2.4 Linux kernel can work in synchronous mode.
So, it
needs a serial driver that supports synchronous communication.
Anybody know or have a documentation that explain how a serial driver
(that is per character oriented) can work with block oriented data?
I learned that "line disciplines" are used for this... (HDLC,
PPP...), but
isn�t clear for me how the tty functions (write, flush_char, put_char) works
in this case!
Regards, Leo.
----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web -----
http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
NewsOne.Net prohibits users from posting spam. If this or other posts
made through NewsOne.Net violate posting guidelines, email [EMAIL PROTECTED]
------------------------------
From: Dipl. Ing. Werner =?iso-8859-1?Q?K=FChnert?=
Subject: Re: kernel problem
Date: Wed, 21 Mar 2001 15:30:54 +0100
Unfortunately this is, besides the banner message, the very first message.
But beware that this is not on an ordinary PC. I am trying to run a 2.2.16
kernel on a hardware that is "almost" a PC. It has not a BIOS in the common
sense as a PC. I verified that the kernel (a bzImage kernel) is loaded to the
correct address (0x100000) and the command line passed to the kernel is
something like "mem=64M root=/dev/sda1 single console=ttyS0,115200n8". My
system does not have a grphics adpater of any kind, so I _have_ to use the
serial line as console. Everything works fine until the moment interrupts are
enabled (this seems logical to me). Thins that work are :
- pintk(banner)
- setup_arch
- paging_init
- trap_init
- init_IRQ
- sched_init
- time_init
- parse_options
- console_init
- init_modules
- kmem_cache_init
- sti
When I write these functions work, I mean they return and I can continue.
This one then get's me the previously mentioned error message :
- calibrate_delay
TIA
Werner K�hnert
Kasper Dupont wrote:
> Dipl. Ing. Werner K�hnert wrote:
> >
> > Hi all,
> >
> > Can anyone give me a hint what the reason for the following message can
> > be :
> >
> > Kernel panic: Attempted to kill the idle task!
> > In Swapper task - not syncing.
> >
> > TIA
> >
> > Regards
> > Werner Kuehnert
> >
> > --
> > Werner Kuehnert Siemens AG Oesterreich PSE ECT IPN 1
> > E-Mail: [EMAIL PROTECTED]
>
> We need some more context to explain what happens,
> most likely you must have got some other error
> messages before the two mentioned.
>
> What did you do to provoke this message?
>
> --
> Kasper Dupont
--
Regards
Werner Kuehnert
Werner Kuehnert Siemens AG Oesterreich PSE EZE PN PS
E-Mail: [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Bernd Melchers)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Running MSC6/MSC7 under linux?
Date: 21 Mar 2001 15:21:42 GMT
Toby Haynes <[EMAIL PROTECTED]> writes:
>On Tue, 16 Jan 2001, [EMAIL PROTECTED] wrote:
>
>> As horrid as this sounds...
>>
>> I have to develop applications (binary compatible applications) that will
>> run on a DOS 5 binary compatible data recorder. I'm tired of trying to find
>> an old DOS machine, load the required MS 6 C compiler, building the tiny
>> app, then shelving the machine for another 6 months to a year, only to
>> repeat the cycle. My questions are:
>>
>> Can I run MSC 6/7 under linux somehow and build apps that are binary
>> compatible with early versions of DOS?
>
>Have you tried running MSC 6/7 under DosEmu for Linux? The releases are
>available on
>
>http://www.dosemu.org/
>
>Looking at the mailing lists, DOS compilers seem to work pretty well, so you
>should be able to avoid hunting for an old DOS machine :-)
>
>Documentation for dosemu is a bit sparse, so if you are having trouble, its
>probably best to search or subscribe to the dosemu mailing lists.
my experiences in ancient times (kernel 1.2.13) are, that msc 6 is
good with dosemu but msc 7 works not reliable.
Ciao
Bernd
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: UDP Server output limit
Date: Wed, 21 Mar 2001 17:07:21 -0000
In article <m11u6.5010$Bs4.15329@NewsReader>,
Nick Redshaw <[EMAIL PROTECTED]> wrote:
>I have a small UDP packet server on RedHat 2.4 which is reaching an output
>limit of around 70 kbps. I'm using fnetload to monitor the in / out rate of
>the network card.
>
>My network card is a realtek rtl8129 (10/100). I am running the tests on an
>isolated LAN (100Mbps)
>
>Modifying the priority or memory available to the server does not affect the
>above limit. Because of this I'm assuming that the problem is I/O based.
>
>Questions to the group...
>
> Could the driver be the problem?
> Is there any soft network settings that I should be aware of?
What size packets are you sending? Does ifconfig report any errors
or collisions? Have you read the driver source to see if it says anything
about improving throughput?
--
http://www.spinics.net/linux/
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: mouse device driver programming
Date: Wed, 21 Mar 2001 17:09:46 -0000
In article <[EMAIL PROTECTED]>,
Aminudin Khalid <[EMAIL PROTECTED]> wrote:
>How to resolve this problem ?
>
>I have created a module for my mouse and I 've tried to load it into the
>kernel but it gave unresolved symbols like below .Help me
>
>mouse.o: unresolved symbol free_region
>mouse.o: unresolved symbol wakeup_interruptible
You should read about the kernel symbol versioning option.
(How many times have we seen this question?)
--
http://www.spinics.net/linux/
------------------------------
From: "Sean Xu" <[EMAIL PROTECTED]>
Subject: Re: unable to mount floppy? Solved!
Date: Wed, 21 Mar 2001 17:27:49 GMT
Thanks Kasper and Mike for your tips!
It looks like a kernel bug?. I couldn't remember which rpm I have installed.
Maybe kernel 2.4 stuff(source code and header were among them). Somehow they
mess up with my /lib/module/2.2.16-22/ object file. ls -l /dev/fd0 shows
exactly what kasper described. /etc/fstab shows the same major and minor
numer. I use all the method you guys described, it didn't work up.
As the last resort, I tried re-installed the kernel (rpm -i --force
kernel-..). And restart the computer manually(I couldn't started it
auotmatically anymore). The floppy was successfully mounted!! Great! All my
files had been backed up. I guess the next step would be re-installed the
Linux(I guess the system has been messed up).
Sean
"Kasper Dupont" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Sean Xu wrote:
> >
> > I have installed RedHat Linux 7.0(kernel 2.2.16-22). It works fine
before.
> > But after installing a few rpm packges. I got the message "wrong major
or
> > minor number for/dev/fd0...." while trying to mount the floppy drive.
What
> > is causing the problem?
> >
> > Is there any easy way to fix it without re-installing the whole OS!
> >
> > BTW: I don't even have a network connection on that computer so that i
> > cannot even back up my files.
> >
> > Thanks in advance!
> >
> > Sean
>
> On my system "ls -l /dev/fd0" shows this:
> brw-rw---- 1 root floppy 2, 0 Aug 24 2000 /dev/fd0
> ^^^ ^^^^^^^^ ^^^^^^^^^^
>
> If the parts I have marked differ that is a problem.
> Also try "cat /proc/devices" In the Block devices
> section you should see a line reading
> 2 fd
>
> What where the packages you installed leading to this
> problem?
>
> --
> Kasper Dupont
------------------------------
From: "Dave Korn" <[EMAIL PROTECTED]>
Crossposted-To:
comp.lang.c,comp.os.linux.development.apps,comp.sys.be.programmer,comp.sys.mac.programmer.misc,comp.unix.bsd.freebsd.misc,comp.unix.bsd.misc,gnu.gcc
Subject: Re: Can linux be trusted?
Date: Wed, 21 Mar 2001 17:56:43 -0000
Peter da Silva wrote in message <98r7je$[EMAIL PROTECTED]>...
>In article <oR6s6.163$[EMAIL PROTECTED]>,
>Dave Korn <[EMAIL PROTECTED]> wrote:
>> Dik T. Winter wrote in message ...
>> > > How do you think 0.3 is represented in IEEE floating point?
>
>> >That is irrelevant.
>
>> Only if you have an infinite amount of memory in your computer.
>
>Or if we're talking about how you represent 3.0 in IEEE floating point.
Or if we're talking about how to mount a scratch monkey.
DaveK
--
They laughed at Galileo. They laughed at Copernicus. They laughed at
Columbus. But remember, they also laughed at Bozo the Clown.
------------------------------
From: Josef Allen <[EMAIL PROTECTED]>
Subject: Parallel Ports
Date: Wed, 21 Mar 2001 13:11:45 -0500
It is said that devices with lower numbers write/read burst of data
to/from specific I/O ports.
I thought that the serial port devices would do this?
However in Rubini's book it says the parallel ones do this could someone
explain.
Josef D. Allen
------------------------------
From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: Parallel Ports
Date: Wed, 21 Mar 2001 18:44:07 GMT
In article <[EMAIL PROTECTED]>, Josef Allen wrote:
>It is said that devices with lower numbers write/read burst of data
>to/from specific I/O ports.
1) I don't understand what that means...
2) Where does it say that?
> I thought that the serial port devices would do this?
Do what?
>However in Rubini's book it says the parallel ones do this could someone
>explain.
Most drivers write data to I/O ports.
--
Grant Edwards grante Yow! How's the wife? Is
at she at home enjoying
visi.com capitalism?
------------------------------
From: John in SD <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Subject: LILO 21.7 patches issued (8-Mar, & 20-Mar)
Reply-To: [EMAIL PROTECTED]
Date: Wed, 21 Mar 2001 19:05:52 GMT
Change Log at: ftp://brun.dyndns.org/pub/linux/lilo/CHANGES.txt
LILO 21.7 patches issued, primarily to add disk controllers new to the 2.4.2
kernel.
--John
LILO version 21.7 (24-Feb-2001) source at
http://www.ibiblio.org/pub/Linux/system/boot/lilo
patches to -2 at ftp://brun.dyndns.org/pub/linux/lilo
------------------------------
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.security
Subject: Bypassing login prompt?
From: [EMAIL PROTECTED] (Paul Haley)
Date: Wed, 21 Mar 2001 19:46:48 GMT
Hello all,
I'm wondering if it's possible to bypass the login prompt or at the very
least have a login script of some kind to automatically enter a
login/password on bootup. Please respond via email as well
([EMAIL PROTECTED]).
Regards,
Paul Haley
------------------------------
From: Ash Bowers <[EMAIL PROTECTED]>
Subject: How to Kill "unkillable" process
Date: Wed, 21 Mar 2001 15:40:08 -0500
This group seemed the most appropriate, so I will ask the question
here:
How do you get rid of a process which refuses to respond to kill -9
Without rebooting??????
Presumably this process is waiting for something to finish which
obviously never will finish!
I have searched many archives and have found many comments on WHY
processes don't get the signals, but nowhere have I seen a comment on
whether or not it possible to clear this process without a reboot.
Can anyone help? I don't need a techical manifesto, just a clear "you
do this" or "it cannot be done" answer.
Thanks In Advance!!!
Ash Bowers
abowers at email.co.anson.nc.us
------------------------------
Subject: Re: How to Kill "unkillable" process
From: Roland Smith <[EMAIL PROTECTED]>
Date: 21 Mar 2001 22:16:10 +0100
Ash Bowers <[EMAIL PROTECTED]> writes:
> This group seemed the most appropriate, so I will ask the question
> here:
>
> How do you get rid of a process which refuses to respond to kill -9
> Without rebooting??????
Not, AFAIK.
> Presumably this process is waiting for something to finish which
> obviously never will finish!
Take a look at with ps. If the process is in the D state (uninterruptable
sleep, often waiting for I/O) there's no way to kill it, AFAIK. Because
only tasks in the state TASK_INTERRUPTIBLE receive signals.
If there is a way to move a program from TASK_UNINTERUPTABLE state to
TASK_INTERUPTABLE state, I haven't found it yet.
Roland
--
Roland Smith "Traveler, there is no path.
r s m i t h @ x s 4 a l l . n l You make the path as you walk."
http://www.xs4all.nl/~rsmith/
------------------------------
Reply-To: "David Findlay" <[EMAIL PROTECTED]>
From: "David Findlay" <[EMAIL PROTECTED]>
Subject: Re: Writing a Device Driver
Date: Thu, 22 Mar 2001 07:19:45 +1000
"Niels Sterrenburg" <[EMAIL PROTECTED]> wrote in message
news:997prr$sc$[EMAIL PROTECTED]...
> I hope you get the information... but I'm afraid that they are like most
> companies and that you only get in contact with sales persons(and they
> really don't know anything offcourse).
Assuming I do get the information and manage to write the driver and get it
to work, what do I do to get it added to the kernel? Send a million copies
to Linus maybe? :-)
David
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: Writing a Device Driver
Date: Wed, 21 Mar 2001 21:57:36 -0000
In article <rL8u6.759$[EMAIL PROTECTED]>,
David Findlay <[EMAIL PROTECTED]> wrote:
>Assuming I do get the information and manage to write the driver and get it
>to work, what do I do to get it added to the kernel? Send a million copies
>to Linus maybe? :-)
You might want to look in /usr/src/linux/Documentation/SubmittingDrivers
before mail bombing Linus ;)
--
http://www.spinics.net/linux/
------------------------------
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Running MSC6/MSC7 under linux?
From: Micah Cowan <[EMAIL PROTECTED]>
Date: 21 Mar 2001 13:59:19 -0800
[EMAIL PROTECTED] (Bernd Melchers) writes:
> my experiences in ancient times (kernel 1.2.13) are, that msc 6 is
> good with dosemu but msc 7 works not reliable.
If it was that long ago, dosemu very likely wasn't at version 1.0.0
yet, either. Still, I can't say if it works or not, since I use
neither dosemu nor msc.
>
> Ciao
> Bernd
Micah
------------------------------
** 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 by posting to the
comp.os.linux.development.system newsgroup.
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
******************************