Linux-Development-Sys Digest #276, Volume #8 Tue, 14 Nov 00 01:13:11 EST
Contents:
Re: Two ppp related questions (Clifford Kite)
Re: Two ppp related questions (Sami Ponkanen)
Re: ntpd hung my system... ([EMAIL PROTECTED])
Re: 2.4.0-test10: X on virtual console 8? ([EMAIL PROTECTED])
New glibc-2.2 building ("Gene Heskett")
Re: Allocating Non-cacheable memory (Philip Armstrong)
Disk crashed (root)
2.4.0testXX - PCMCIA?? (bill davidsen)
Re: compile problem: kernel 2.2.17 on RH 7.0 (Kaelin Colclasure)
Errors when insmod ("misec")
Re: 2.4.0testXX - PCMCIA?? (Joe Pfeiffer)
injecting keystrokes into virtual console ([EMAIL PROTECTED])
Re: Kernel Mismatch Right out of the Box (Rui Antunes)
Redhat 5.2 vs 6.1 threads, what changed? (Peter Sulatycke)
Re: Man-pages - section 9 (kernel reference guide) -- would someone please help
me?!? (Rui Antunes)
Re: Kernel Mismatch Right out of the Box (Vinko Vrsalovic)
Re: 2.4.0testXX - PCMCIA?? (Paul Kimoto)
----------------------------------------------------------------------------
From: Clifford Kite <[EMAIL PROTECTED]>
Subject: Re: Two ppp related questions
Date: Mon, 13 Nov 2000 13:35:11 -0600
Sami P�nk�nen <[EMAIL PROTECTED]> wrote:
> I'm doing some testing and tweaking to get maximal performance out of
> a slow ppp-link. I have couple of questions I hope someone might be
> able to answer:
This isn't the right group for this kind of question. You may get some
answers, but you really should try posting on comp.os.linux.networking,
or, perhaps better, comp.protocols.ppp.
--
Clifford Kite <kite@inet%port.com> Not a guru. (tm)
------------------------------
From: Sami Ponkanen <[EMAIL PROTECTED]>
Subject: Re: Two ppp related questions
Date: Mon, 13 Nov 2000 22:22:31 +0200
Clifford Kite wrote:
> This isn't the right group for this kind of question. You may get some
> answers, but you really should try posting on comp.os.linux.networking,
> or, perhaps better, comp.protocols.ppp.
>
> --
> Clifford Kite <kite@inet%port.com> Not a guru. (tm)
Ok, I'll post my question to comp.os.linux.networking.
Sami
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: ntpd hung my system...
Date: Mon, 13 Nov 2000 21:43:51 -0000
On Sun, 12 Nov 2000 12:03:21 GMT Wouter Verhelst <[EMAIL PROTECTED]> wrote:
| I am running a self-compiled linux-kernel on my masq-gateway. On this gateway,
| along a number of other applications, there is also ntpd. However, when I
| first tried to boot my system after compiling my kernel, it just sat there,
| doing nothing -- not even replying to a ping or something similar.
Can you get any response via the SysRq feature (which your .config suggests
you do have enabled)?
| A bit of experimenting with my system (I compiled another kernel, this time
| including Virtual Console support ;-) showed that it hung right after ntpd was
| started. At that moment, I got no response anymore -- at all. No reply to the
| keyboard, no reply to pings, just nothing. My first idea was that something
| went wrong after the last reboot (I had a forced reboot because of a power
| failure), so I copied ntpd to a save place and let apt-get remove and then
| install it.
| I was surprised that the problem still existed. I thought that I probably
| forgot to compile something in my kernel, and that ntpd was waiting for
| a timeout to occur. But I've let my system running for about 24 hours, and
| there's still no change, which makes me think that this is a kernel-bug.
Disable NTP from automatic startup, and start it manually right after reboot
and see if it causes the same problem.
| That's what brings me to you guys. I do not have the knowledge to hunt down
| this bug, especially not since there's no information at all -- no panic or
| oops, I just get no reaction anymore. However, I think this may be a security
| issue (It's not because ntpd is ran as root, that no other application can
| hang this system the same way...)
| I'll upload the .config I used to compile my kernel, to give you guys at
| at least a starting point. If there's more information to be needed, let
| me know.
I doubt it is a security issue. It may be an issue with a clock change
causing something else to go crazy.
Is your network all connected OK by the time NTP does start? What is your
NTP configuration like?
How far off time is the clock? Try adding the -d or -q option to ntpdate
(and making sure ntpdate gets run before starting ntpd). This should tell
you if you have a large clock error.
| Or if this is an issue already widely known, let me know too ;-)
Not one I've heard of. The worst I've seen is a kernel message about an
unknown syscall on the Sparc port of Linux when starting ntp.
| BTW: The system is a Cyrix 486 DLC, while the kernel version I run is a 2.2.17
I had no problems under that version, though I cannot test since I'm mostly
switched over to 2.4.0-test10 now.
NTP documentation probably can be read with:
lynx /usr/doc/xntp3-5.93e/html/index.html
--
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil (at) ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: 2.4.0-test10: X on virtual console 8?
Date: Mon, 13 Nov 2000 21:46:57 -0000
On 9 Nov 2000 09:53:53 GMT Mike Dowling <[EMAIL PROTECTED]> wrote:
| ALT+8 is now where I find the X11 session instead of ALT+7.
|
| The inittab hasn't changed for years, and there's no getty on tty7.
| I've only seen this since I upgraded to test10 from test9.
|
| It's not a problem, at least, it's not now that I know about it. It has
| always been my habit to work in text mode if possible. For a while,
| when I tried to return to X11 by changing to ALT+7, I thought that X11
| was dead. I could see X11 processes running, and could not work it out.
Try running lsof and see if it reveals which process has /dev/tty7 open.
--
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil (at) ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]
------------------------------
From: "Gene Heskett" <[EMAIL PROTECTED]>
Subject: New glibc-2.2 building
Date: Mon, 13 Nov 2000 17:03:51 +0500
Need expert opinions here regarding glibc-2.2 built from the tar.gz.
I've built it, and installed it, but apparently *not* where a red hat
install wants it.
After a reboot, the glibc version is still, according to gnorpm's verify
function, 2.1.94-3. So I assume the next step is a 'make uninstall', and a
new configure with --prefix=/ and --exec-prefix=/ followed by a fresh
make and install.
Right/Wrong?
Also, as this is 7.0, and gcc is the busted one, should I set an
'export CC=kgcc' before the rebuild? 2.96-whatever didn't toss any errors
that I saw go by.
--
Cheers, Gene
e n g i n e e r i n g @ w d t v . c o m
------------------------------
From: [EMAIL PROTECTED] (Philip Armstrong)
Subject: Re: Allocating Non-cacheable memory
Date: 13 Nov 2000 22:26:19 -0000
In article <[EMAIL PROTECTED]>,
Kristof Beyls <[EMAIL PROTECTED]> wrote:
>Is there a system call under linux 2.4 that can be used to allocate some
>amount of memory with the
>non-cacheable bits set, so that the allocated memory will never be
>placed into the cache?
Do you mean swap, or the processor cache?
If the former, you need to investigate mlock(), in the latter case I
don't know of anything specifically, but there might be games you can
play with mtrr's (Memory Type Range Registers) on modern CPUs
(possibly requiring a kernel recompile with the relevant options
turned on.) to mark a paricular memory range as uncacheable. Accessing
this from userland would probably require the support of a kernel
module however.
Phil
--
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt
------------------------------
From: root <[EMAIL PROTECTED]>
Subject: Disk crashed
Date: Mon, 13 Nov 2000 14:07:08 +0100
Hi everybody ,
does anyone know with which software can I recover data on a crashed
disk (something like Tiramisu for DOS) ?
Thank you for your answers (and sorry for my poor english !).
Fred
------------------------------
Subject: 2.4.0testXX - PCMCIA??
From: [EMAIL PROTECTED] (bill davidsen)
Date: Mon, 13 Nov 2000 23:12:59 GMT
I have compiled a 2.4.0test10 (and many earlier kernels) with PCMCIA
enabled in the kernel, pcmcia3.1.21, etc. However, the kernel simply
doesn't have a pcmcia device in /proc, and cardmgr doesn't work. Also,
pcmcia-cs doesn't generate a pcmcia-core module to provide the services
which are missing from the kernel.
I turned on all the pcmcia options in the kernel, and 16 and 32 bit.
Nothing in /proc. System is a dual Celeron-500, 256MB RAM, several
ATA/33 and ATA/66 drives, SCSI adaptor and CD burner, pretty stock.
Does PCMCIA just not work in 2.4.0, or not with SMP? I note that apm
seems still broken with SMP, everything compiles, but the apm command
says there's no apm in the kernel, even though dmesg reports that the
PCMCIA and apm stuff is there.
Humm, 2.4.0test10 crashed. On a system which ran test2 solidly from
release day to last week, that's not a good sign. Of course apm and
pcmcia didn't work there, either ;-(
--
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
--
bill davidsen <[EMAIL PROTECTED]>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
------------------------------
From: Kaelin Colclasure <[EMAIL PROTECTED]>
Subject: Re: compile problem: kernel 2.2.17 on RH 7.0
Date: Mon, 13 Nov 2000 16:12:33 -0800
Sudhindra Suresh Bengeri wrote:
>
> Hi,
>
> I downloaded the 2.2.17 src from www.kernel.org, and tried to compile the
> kernel following the directions the linux/README file. I have
> all the required versions of the packages listed in the
> linux/Documentation/Changes.
[...]
The stock instructions for compiling kernels, etc. do not work on Redhat
systems. You might want to see the mini-HOWTO I posted here a few days
ago. It's also available on SourceForge at:
<http://sourceforge.net/docman/display_doc.php?docid=1687&group_id=14191>
-- Kaelin
------------------------------
From: "misec" <[EMAIL PROTECTED]>
Subject: Errors when insmod
Date: Tue, 14 Nov 2000 09:52:39 +0900
I want to install a device driver module.
The compile command and options for the driver are below...
% gcc -c -Wall -D__KERNEL__ -DMODULE -O2 aaa.c
above compile is successful.
so, i install the driver module using insmod command.
% insmod aaa.o
then, following errors are listed..
aaa.o: unresolved symbol request_region
aaa.o: unresolved symbol __wake_up
aaa.o: unresolved symbol kmalloc
aaa.o: unresolved symbol unregister_chrdev
aaa.o: unresolved symbol release_region
aaa.o: unresolved symbol register_chrdev
aaa.o: unresolved symbol pcibios_present
....
....
What do those error messages mean?
the problem making me confuse is that the same module is successfully
installed the other kernel version (2.2.14)of linux.
now i use the linux kernel version 2.2.12-20.
Please teach me ..
thanks.
------------------------------
From: Joe Pfeiffer <[EMAIL PROTECTED]>
Subject: Re: 2.4.0testXX - PCMCIA??
Date: 13 Nov 2000 18:29:17 -0700
[EMAIL PROTECTED] (bill davidsen) writes:
>
> Does PCMCIA just not work in 2.4.0, or not with SMP? I note that apm
> seems still broken with SMP, everything compiles, but the apm command
> says there's no apm in the kernel, even though dmesg reports that the
> PCMCIA and apm stuff is there.
I've been running 2.4.0test9 on my laptop, and PCMCIA works fine.
However, I did run into two things:
I wasn't able to compile yenta support as a module. Had to
be compiled-in.
The file /etc/sysconfig/pcmcia had to have the line
PCMCIA=yes
or the startup script would abort (the startup script is David
Hinds's rc.pcmcia 1.31).
I'm afraid said laptop had a terrible accident during an upgrade over
the weekend so I'm not sure, but it appears to be getting the
startup script from pcmcia-kernel-cs-2.2.14-5.0.rpm (yes, I know that
doesn't match the kernel version).
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
VL 2000 Homepage: http://www.cs.orst.edu/~burnett/vl2000/
------------------------------
From: [EMAIL PROTECTED]
Subject: injecting keystrokes into virtual console
Date: Tue, 14 Nov 2000 01:34:00 -0000
I'd like to have a root process be able to inject keystrokes. This can
either be before the interpretation of virtual console switching, or it
can be individually to each virtual console (I can work with either).
X Windows won't be involved. I would prefer injecting at a point after
translation from keycodes to ASCII.
I was told on here a couple years ago this could be done but did not
follow up on doing it and have since forgotten how this was done. But
when I looked around in the source code (2.4.0-test10) I cannot find
anything (ioctl, syscall) to do this.
I'm not asking to pseudo-tty. I want to be able to inject into virtual
consoles that are already opened, even before logged in. My plan is to
have a suid program which can be run from a virtual console that causes
all other virtual consoles to be logged into at once from just a single
password prompt (or a range of them as specified).
--
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil (at) ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Rui Antunes)
Crossposted-To: linux.redhat
Subject: Re: Kernel Mismatch Right out of the Box
Date: Tue, 14 Nov 2000 01:57:12 GMT
On Fri, 10 Nov 2000 14:55:26 GMT, [EMAIL PROTECTED] (Alan L.
Folsom, Jr.) wrote:
>[EMAIL PROTECTED] (Rui Antunes) wrote in
><[EMAIL PROTECTED]>:
>
[...]
>>I had the same problem. I first thought that it was a bug - however I
>>found that if you use the directory /usr/src/linux/include instead of
>>the usual /usr/include (as your include directory:
>>CFLAGS = -I$(INCLUDE_DIRECTORY) that error vanished! (I still get a
>>warning about the assembler changing attributes in .modinfo or
>>something...)
>>
>> Rui Antunes
>
>I have the same problem - changing the include to that directory
>generated a ton of warnings, and there are no actual .h files there, so I
>suspect that's a problem.
>
>I also get about ten unresolved symbols when I try to load the driver,
>including such things as __release_region, __check_region,
>tasklet_hi_vec, bh_task_vec, __request_region, irq_stat, and
>ioport_resource. Could this be related to the version mismatch?
>
>I, too, am getting frustrated. I developed the driver under RedHat 6.1,
>and while it worked on the customer's 6.2, it couldn't rebuild. I didn't
>have 6.2, so installed 7.0, and now all hell's broken loose, version
>mismatches, missing kernel symbols, and I still can't test it...
>
>Thanks for any help.
>
>Al Folsom
If there are no .h file under /usr/src/linux/include than you
haven't installed the kernel sources. Get the RedHat CD1 and install
the corresponding package - using something like
rpm -i /dev/cdrom/RedHat/RPMS/kernel-source.XXXXXXXXXX
and you should get your source files!
Good luck,
Rui Antunes
------------------------------
From: Peter Sulatycke <[EMAIL PROTECTED]>
Subject: Redhat 5.2 vs 6.1 threads, what changed?
Date: Tue, 14 Nov 2000 02:07:19 GMT
Can anyone tell me what changed with pthreads going from Redhat 5.2 to
6.1? I have multi-threaded code that has been running on Redhat 5.2,
Solaris and NT for over a year and now it won't port to Redhat 6.1. The
program compiles and links but it hangs when I call pthread_create. I
updated glibc but it didn't help. Thanks for any help!
Pete S.
------------------------------
From: [EMAIL PROTECTED] (Rui Antunes)
Crossposted-To: alt.os.linux
Subject: Re: Man-pages - section 9 (kernel reference guide) -- would someone please
help me?!?
Date: Tue, 14 Nov 2000 01:15:20 GMT
On Fri, 10 Nov 2000 07:17:37 +0100, Mike Fengler <[EMAIL PROTECTED]>
wrote:
>On Thu, 9 Nov 2000, Rui Antunes wrote:
>
>>I have RedHat 7.0 that comes without the section 9 (kernel reference
>>guide) of the man-pages. Where can I find those man-pages?
>
>http://www.linuxdoc.org/docs.html#man
>
>- mike
>
But those are in html format - I meant man-pages in the "linux-man"
format... (but thanks anyway!)
Rui Antunes
------------------------------
From: Vinko Vrsalovic <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat
Subject: Re: Kernel Mismatch Right out of the Box
Date: 14 Nov 2000 04:22:23 GMT
Daniel Lenski <[EMAIL PROTECTED]> wrote:
> application development! Don't get the new version 7.2, however.
> Mandrake released it as the final version when it is in fact a buggy and
> incomplete beta ... they will certainly have a lot of disgruntled users by
> the time they fix it! However, 7.1 is rock solid stable. Go to
> www.linux-mandrake.com and get the cd images! I hope this helps :-)
I disagree, I've been using Madrake 7.2 for about a month and I'm really
amazed how well is working and the improvements done towards 'usability'
Sorry for the offtopic.
--
Vinko Vrsalovic B. +++++++++++++++++++++++++++++++++++++++++
[EMAIL PROTECTED] ++ Perche' la tua lingua e mia!, MIA! ++
ICQ: 9299103 ++ (Mr B.) ++
Geek code will never +++++++++++++++++++++++++++++++++++++++++
be available... :-) [Today's mode: PSB (Power Saving Brain)]
Caution: breathing may be hazardous to your health.
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: 2.4.0testXX - PCMCIA??
Date: 14 Nov 2000 00:45:48 -0500
Reply-To: [EMAIL PROTECTED]
In article <Rz_P5.4867$[EMAIL PROTECTED]>, bill davidsen wrote:
> I have compiled a 2.4.0test10 (and many earlier kernels) with PCMCIA
> enabled in the kernel, pcmcia3.1.21, etc. However, the kernel simply
> doesn't have a pcmcia device in /proc, and cardmgr doesn't work.
There isn't anything called "pcmcia" in the 2.2.* /proc either (see below).
Or do you mean /proc/bus/pccard?
> Also,
> pcmcia-cs doesn't generate a pcmcia-core module to provide the services
> which are missing from the kernel.
You don't need to have one, I believe (see below again).
> I turned on all the pcmcia options in the kernel, and 16 and 32 bit.
On my 2.4.0-test* (UP) laptop, I have
CONFIG_PCMCIA=y
CONFIG_CARDBUS=y
CONFIG_NET_PCMCIA=y
CONFIG_PCMCIA_3C574=m
CONFIG_PCMCIA_SMC91C92=y
CONFIG_PCMCIA_NETCARD=y
CONFIG_PCMCIA_SERIAL=y
CONFIG_PCMCIA_SERIAL_CS=m
"They" say that you should use CONFIG_CARDBUS if you have Cardbus-aware
hardware. Also it might be useful to consult David Hinds's README-2.4 file
that comes with pcmcia-cs.
Appendix
========
On 2.2.18-pre21:
$ find /proc -name '*[Pp][Cc][Mm]*' -print 2> /dev/null
$ lsmod
Module Size Used by
3c574_cs 9952 1
ds 6384 2 [3c574_cs]
i82365 22320 2
pcmcia_core 44896 0 [3c574_cs ds i82365]
On 2.4.0-test11-pre2:
$ find /proc -name '*[Pp][Cc][Mm]*' -print 2> /dev/null
$ lsmod
Module Size Used by
ip_conntrack_ftp 1984 0 (unused)
ip_nat_ftp 3088 0 (unused)
cs4232 3088 0 (autoclean)
ad1848 16928 1 (autoclean) [cs4232]
uart401 6320 0 (autoclean) [cs4232]
sound 56016 1 (autoclean) [cs4232 ad1848 uart401]
soundcore 3792 4 (autoclean) [sound]
ipt_state 816 2 (autoclean)
iptable_filter 1936 0 (autoclean) (unused)
ipt_MASQUERADE 1360 1 (autoclean)
iptable_nat 12704 1 [ip_nat_ftp ipt_MASQUERADE]
ip_conntrack 12768 3 [ip_conntrack_ftp ip_nat_ftp ipt_state
ipt_MASQUERADE iptable_nat]
ip_tables 10144 6 [ipt_state iptable_filter ipt_MASQUERADE
iptable_nat]
serial_cs 4688 0 (unused)
--
Paul Kimoto
This message was originally posted on Usenet in plain text. Any images,
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.
------------------------------
** 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
******************************