Linux-Development-Sys Digest #717, Volume #7 Thu, 30 Mar 00 04:13:08 EST
Contents:
ptrace and linux86 debug status register ([EMAIL PROTECTED])
Linux and Posix AIO (benny)
diylinux.com updated ("Tom")
Re: latest 2.3.99-pre3 won't boot on I-OPENER (Rick Ellis)
Re: wine new version (Rick Ellis)
Re: unresolved symbol: kernel_flag
Re: System.map location (Jerry Peters)
Re: Loader question... ("tim")
Doing dead function elimination without -finline-functions in 2.95.2? (Graham Stoney)
Write-combineable memory allocation (x86)? (Brett Johnson)
Programming the serial and parallel ports. (mike)
Re: latest 2.3.99-pre3 won't boot on I-OPENER (Bryan)
Re: System.map location ("D. Stimits")
Starting Linux Kernel Programming (dave nejdl)
Re: Starting Linux Kernel Programming (nilesh patel)
Re: ld not found libdb.so (Massimo Cafaro)
unsupported keyboard (Juergen Hoetzel)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
Subject: ptrace and linux86 debug status register
Date: Wed, 29 Mar 2000 21:59:34 GMT
I am using ptrace to set hardware watchpoints on
the x86 in linux.
When a hardware watchpoint fires, a bit is set
in the debug status register to flag this. These
registers are only available to level 0 processes,
so you have to use the ptrace interface.
I wrote a very simple debugger that, using ptrace,
successfully sets any sort of hardware
watchpoint/breakpoint
and traps/faults in the coresponding situation
under RH 5.x .
Note: RH 5.x works.
Under RH6.x and SuSE 6.2 the value of the status
register
(viewed using ptrace) does not change to report
which breakpoint fired. I am using the same code,
in particular, the same calls to ptrace. However
when I set the value
of the debug status register explicitly (using
ptrace) it
retains this value. Note that the rest of my
program
works fine. The hardware watchpoints fire as
expected.
Its just that the status register is not set.
How does ptrace change from RH5.x to RH6.x in its
handling of the debug status register. Aret here
any workarounds?
It just seems that the internal representation of
the debug
status register is not connected to hardware.
Thanks for your time,
Pete.
(Please CC me in your response)
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: benny <[EMAIL PROTECTED]>
Subject: Linux and Posix AIO
Date: Wed, 29 Mar 2000 16:15:46 -0600
Does anyone know if and when Linux will support the Posix 4 AIO
(asynchronous I/O) facility. I have Red Hat version 2.2.5-15 and can
not find the libaio library, so I am assuming that it is not yet
supported?
Thanks,
Benny
------------------------------
From: "Tom" <NOSPAM [EMAIL PROTECTED]>
Subject: diylinux.com updated
Date: Wed, 29 Mar 2000 17:41:17 -0500
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Crossposted-To: comp.os.linux.hardware
Subject: Re: latest 2.3.99-pre3 won't boot on I-OPENER
Date: 29 Mar 2000 22:49:07 GMT
In article <ufpE4.121$[EMAIL PROTECTED]>,
Bryan <[EMAIL PROTECTED]> wrote:
>BUT when I build a custom kernel and launch it via lilo, I get
>'loading 2.2.14 ..." but after that, the video does NOT show text msgs
>scrolling up. I took this as a broken kernel, when IN FACT IT WASN'T.
>it DID boot and when I did a startx after loggin in, X did come up ok.
>so there's something having to do with resetting the funky video mode
>that the bios set (there's a welcome graphic at bios/boot time) that
>the slackware kernel resets by ALL of my kernels don't ;-( damned if I
>can figure it out, too.
Do you have frame buffers configured in you kernel? If so, try
turning them off.
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: wine new version
Date: 29 Mar 2000 22:50:14 GMT
In article <[EMAIL PROTECTED]>,
Jan J. Esser <[EMAIL PROTECTED]> wrote:
>I just installed Linux Suse 5.2 and discovered wine an
>Windowssimulator, i tried to use winamp, but it doesn't work because
>of missing directsound, itried some other programs, but no one worked
>because of any not working microsoft tool, perhaps there is new
>version, but i don't know where. Please Help!
Have you looked at http://www.winehq.com?
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: unresolved symbol: kernel_flag
Date: 30 Mar 2000 01:20:53 +0200
nilesh patel ([EMAIL PROTECTED]) wrote:
> It is not exported .
A-ha. So how do I fix this ?
------------------------------
From: Jerry Peters <[EMAIL PROTECTED]>
Subject: Re: System.map location
Date: Wed, 29 Mar 2000 23:41:26 GMT
bill davidsen <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> D. Stimits <[EMAIL PROTECTED]> wrote:
> | I'm trying to find out where in the kernel it decides that it must
> | read /boot/System.map, so I can create alternate locations and names.
> | I'd like to boot multiple kernels without having to repoint sym links
> | first.
> There's a map= control in lilo.conf, I have not looked at the
> implementation in detail, but perhaps that will be useful. You can
> define the root partition on a per-stanza basis, perhaps the map
> location can be set that way as well.
But that's _not_ for System.map. That's lilo's map file, which maps the
sectors which contain the various kernels. Neither lilo not the kernel
care about System.map, the syslogd messages come from klogd which will
attempt to use System.map to translate oops messages from hex addresses
into symbol+offset form.
Jerry
> Look if yu care.
> --
> bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
> The hardest test of maturity is knowing the difference between
> resisting temptation and missing a once-in-a-lifetime opportunity.
------------------------------
From: "tim" <[EMAIL PROTECTED]>
Subject: Re: Loader question...
Date: Thu, 30 Mar 2000 09:23:17 +0800
Reply-To: "tim" <[EMAIL PROTECTED]>
see
http://developer.intel.com/design/strong/applnots/sa1100lx/getstart.htm
<[EMAIL PROTECTED]> wrote in message
news:8bb5q4$h45$[EMAIL PROTECTED]...
> I have an Intel StrongArm processor on a Network board from Intel.I need
> to load the linux kernel onto the processor, which I create by
> cross-compilation from the Redhat 6 release.
>
> For the StrongArm processor,is there a loader ?? There might be no
> console or keyboard, only a serial port on the board. Is there a loader
> written for such a processor that would allow me to load the
> kernel(maybe from a floppy) onto the processor ?? Or do I need to write
> one ???
>
> Thanks,
>
> Krishna
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
From: Graham Stoney <[EMAIL PROTECTED]>
Crossposted-To: gnu.gcc.help
Subject: Doing dead function elimination without -finline-functions in 2.95.2?
Date: 30 Mar 2000 01:35:05 GMT
Hi there,
I'm wondering if anyone can provide me a quick tip on how to do dead function
elimination optimizations with gcc-2.95.2, without resorting to
-finline-functions?
The compiler can know that a function is unused if it is static, and there are
no references to it in the same file. Using -finline-functions (with the
default -fno-keep-inline-functions) will eliminate such functions as a side
effect of attempting to inline them, provided their complexity is below the
inline-limit. However, I don't necessarily want to force all functions below
the inline-limit to be inlined; I just want static functions that don't get
called to be eliminated.
Here's why: I'm attempting to cross-compile the Linux kernel for an embedded
system which has no need for the /proc filesystem. Hence, CONFIG_PROC_FS is
undefined. The kernel code contains files with constructs like:
blah.c:
static proc_blah_blah()
{
/* function dealing with /proc stuff */
}
#ifdef CONFIG_PROC_FS
struct with reference to proc_blah_blah
#endif
With CONFIG_PROC_FS undefined, I'd like to optimise away the function
proc_blah_blah automatically, without having to spray more
#ifdef CONFIG_PROC_FS's around all such functions. The compiler already has
enough information to eliminate them, but how do I get it to do so without
also asking it to try to inline _everything_?
Any suggestions?
Thanks,
Graham
------------------------------
From: Brett Johnson <[EMAIL PROTECTED]>
Subject: Write-combineable memory allocation (x86)?
Date: Wed, 29 Mar 2000 18:21:21 -0700
Reply-To: [EMAIL PROTECTED]
In a kernel module, I need to allocate some contiguous physical RAM,
then mark it write combinable. Does anyone know how to do this?
I can allocate a chunk of memory with __get_free_pages, and I can
mark it non-cacheable (MTRR_TYPE_UNCACHABLE) with mtrr_add, but I
can't mark it write combinable (MTRR_TYPE_WRCOMB) because the memory
I just allocated is contained within the region that the kernel has
already marked as cacheable.
So how does one go about unreserving some memory from the kernel pool
and making a new mtrr region from it? Help!
Cheers!
--
Brett Johnson <[EMAIL PROTECTED]
HP Technical Solutions Laboratory
- i n v e n t -
------------------------------
From: mike <[EMAIL PROTECTED]>
Subject: Programming the serial and parallel ports.
Date: Wed, 29 Mar 2000 23:08:21 -0500
Where can I find doc on programming the serial and parallel ports
of an i386 system? I am in the beginner stage learning C programming
with Linux. I have looked at the Serial HowTo but for me there
is not enough explanatory info there. I have done it in the Dos world.
Thanks
Mike
------------------------------
From: Bryan <[EMAIL PROTECTED]>
Subject: Re: latest 2.3.99-pre3 won't boot on I-OPENER
Crossposted-To: comp.os.linux.hardware
Date: Thu, 30 Mar 2000 04:22:02 GMT
In comp.os.linux.hardware Rick Ellis <[EMAIL PROTECTED]> wrote:
: In article <ufpE4.121$[EMAIL PROTECTED]>,
: Bryan <[EMAIL PROTECTED]> wrote:
: >BUT when I build a custom kernel and launch it via lilo, I get
: >'loading 2.2.14 ..." but after that, the video does NOT show text msgs
: >scrolling up. I took this as a broken kernel, when IN FACT IT WASN'T.
: >it DID boot and when I did a startx after loggin in, X did come up ok.
: >so there's something having to do with resetting the funky video mode
: >that the bios set (there's a welcome graphic at bios/boot time) that
: >the slackware kernel resets by ALL of my kernels don't ;-( damned if I
: >can figure it out, too.
: Do you have frame buffers configured in you kernel? If so, try
: turning them off.
not really familiar with that section, so I left it to its default.
which should be good, right? ;-)
--
Bryan, http://Grateful.Net (ANTISPAM: email is my name at my web's domain)
(c) 2000. Publishing and/or relaying of this material on all forums other than
USENET implies agreeing to a consultancy fee of US$150 per posting. You must
obtain a written permit before you publish. Violators are subject to civil
prosecution for Copyright Infringement as applicable. Publication by C|NET
and Microsoft Networks expressly prohibited.
------------------------------
Date: Wed, 29 Mar 2000 21:27:45 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: System.map location
bill davidsen wrote:
>
> In article <[EMAIL PROTECTED]>,
> D. Stimits <[EMAIL PROTECTED]> wrote:
> | I'm trying to find out where in the kernel it decides that it must
> | read /boot/System.map, so I can create alternate locations and names.
> | I'd like to boot multiple kernels without having to repoint sym links
> | first.
>
> There's a map= control in lilo.conf, I have not looked at the
> implementation in detail, but perhaps that will be useful. You can
> define the root partition on a per-stanza basis, perhaps the map
> location can be set that way as well.
>
> Look if yu care.
>
> --
> bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
> The hardest test of maturity is knowing the difference between
> resisting temptation and missing a once-in-a-lifetime opportunity.
I wish it was that simple. The map file is actually unrelated to
System.map. System.map is a symbol reference to the kernel, while the
map file is a boot loader file. It seems so far that the best way to
control this is with naming in kernel compile
EXTRAVERSION =
The search path is fixed by the applications using it, such as ps and
klogd. The EXTRAVERSION gives some control over name collisions,
although it isn't quite what I had hoped for (due to each application
using its own search criteria, rather than a standard and configurable
interface).
------------------------------
From: dave nejdl <[EMAIL PROTECTED]>
Subject: Starting Linux Kernel Programming
Date: Thu, 30 Mar 2000 04:32:10 GMT
I am a long time c programmer and linux user. I recently decided to get
into understanding and programming in the linux kernel, especially
writing device drivers. But I'm having trouble finding resources. The
Linux Kernel at linuxdoc.org was an excelent read, but I'm looking for a
resource that is more focused on "programming" in the kernel(kernel
functions and such). I may buy these two books:
-Linux Kernel Internals
-Linux Device Drivers (nutshell handbook)
I'd greatly appreciate other resources or suggestions anyone could
offer.
Thank you,
Dave Nejdl
------------------------------
From: nilesh patel <[EMAIL PROTECTED]>
Subject: Re: Starting Linux Kernel Programming
Date: Thu, 30 Mar 2000 12:38:37 +0530
Visit www.linuxhq.com/guides
There is a link on Linux kernel module programming . That would be a good
start.
Nilesh
dave nejdl wrote:
> I am a long time c programmer and linux user. I recently decided to get
> into understanding and programming in the linux kernel, especially
> writing device drivers. But I'm having trouble finding resources. The
> Linux Kernel at linuxdoc.org was an excelent read, but I'm looking for a
> resource that is more focused on "programming" in the kernel(kernel
> functions and such). I may buy these two books:
> -Linux Kernel Internals
> -Linux Device Drivers (nutshell handbook)
>
> I'd greatly appreciate other resources or suggestions anyone could
> offer.
>
> Thank you,
> Dave Nejdl
------------------------------
From: Massimo Cafaro <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: ld not found libdb.so
Date: Thu, 30 Mar 2000 09:24:03 +0200
==============1C5EDC2C0146C215FC0894D8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Massimo Cafaro wrote:
> "Alexander N. Ryzhov" wrote:
>
> > I build and install Berkeley DB from Sleepycat Software in
> > /usr/local/BDB, /usr/lib(/usr/include) and /lib but can not link simply
> > program:
> > #include<stdio.h>
> > #include<db.h>
> > int main(){
> > printf("%s", db_version(NULL, NULL, NULL) );
> > return(0);
> > }
> >
> > Explain me please, why it take place:
> > 1.I do $gcc -v -o dbv db_version.c
> > it returned: undefined reference to `db_version' , ld returned 1 exit
> > status
> > 2.I do $gcc -v -o dbv db_version.c -I/usr/local/BDB/include
> > -L/usr/local/BDB/lib
> > it returned: undefined reference to `db_version' , ld returned 1 exit
> > status
> > 3.I do $gcc -v -o dbv db_version.c /lib/libdb.so
> > in this case OK.
> > But I can't understand it.
>
> A shared library MUST have a link in the same directory that ends in .so,
> e.g. if you have in /usr/lib the shared library
> libcrack.so.2.7 then you need a symbolik link to this file called
> libcrack.so.
> In order to use the shared library, you set properly the LD_SHARED_LIBRARY
> environmental variable or use the -L
> option to compile your executable. Check also if /etc/ld.so.conf contains
> the directory where your shared library is, this should suffice once you
> set the symbolik link.
>
Sorry for this, the variable you need to set is LD_LIBRARY_PATH
--
======================================================================
Massimo Cafaro, Ph.D. Voice : +39 0832 320304
University of Lecce Fax : +39 0832 320279
Via per Monteroni E-mail : [EMAIL PROTECTED]
73100 Lecce, Italy Web : http://sara.unile.it/~cafaro
==============1C5EDC2C0146C215FC0894D8
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Massimo Cafaro wrote:
<blockquote TYPE=CITE>"Alexander N. Ryzhov" wrote:
<p>> I build and install Berkeley DB from Sleepycat Software in
<br>> /usr/local/BDB, /usr/lib(/usr/include) and /lib but can not link
simply
<br>> program:
<br>> #include<stdio.h>
<br>> #include<db.h>
<br>> int main(){
<br>> printf("%s", db_version(NULL, NULL, NULL) );
<br>> return(0);
<br>> }
<br>>
<br>> Explain me please, why it take place:
<br>> 1.I do $gcc -v -o dbv db_version.c
<br>> it returned: undefined reference to `db_version' , ld returned 1
exit
<br>> status
<br>> 2.I do $gcc -v -o dbv db_version.c -I/usr/local/BDB/include
<br>> -L/usr/local/BDB/lib
<br>> it returned: undefined reference to `db_version' , ld returned 1
exit
<br>> status
<br>> 3.I do $gcc -v -o dbv db_version.c /lib/libdb.so
<br>> in this case OK.
<br>> But I can't understand it.
<p>A shared library MUST have a link in the same directory that ends in
.so,
<br>e.g. if you have in /usr/lib the shared library
<br> libcrack.so.2.7 then you need a symbolik link to this file called
<br>libcrack.so.
<br>In order to use the shared library, you set properly the LD_SHARED_LIBRARY
<br>environmental variable or use the -L
<br>option to compile your executable. Check also if /etc/ld.so.conf contains
<br>the directory where your shared library is, this should suffice once
you
<br>set the symbolik link.
<br><a href="http://sara.unile.it/~cafaro"></a> </blockquote>
Sorry for this, the variable you need to set is LD_LIBRARY_PATH
<pre>--
======================================================================
Massimo Cafaro, Ph.D.
Voice : +39 0832 320304
University of
Lecce
Fax : +39 0832 320279
Via per
Monteroni
E-mail : [EMAIL PROTECTED]
73100 Lecce,
Italy
Web : <A HREF="http://sara.unile.it/~cafaro">http://sara.unile.it/~cafaro</A></pre>
</html>
==============1C5EDC2C0146C215FC0894D8==
------------------------------
From: [EMAIL PROTECTED] (Juergen Hoetzel)
Subject: unsupported keyboard
Date: 30 Mar 2000 08:18:04 GMT
Hi,
i bought a new keyboard yesterday. It's a ezkey EZ-3000 keyboard with 19
special intellikeys. The software is for Win95/98 only. But i wasn't
Linux/XFree86 to support it. First i started "showkey", to look at the
key codes, but there was no output, when investigating it. But i found
some kernel output in "/var/log/messages":
...
Mar 29 22:30:59 localhost kernel: keyboard: unknown scancode e0 6c
Mar 29 22:30:59 localhost kernel: keyboard: unknown scancode e0 6c
Mar 29 22:31:00 localhost kernel: keyboard: unknown scancode e0 12
Mar 29 22:31:00 localhost kernel: keyboard: unknown scancode e0 12
Mar 29 22:31:01 localhost kernel: keyboard: unknown scancode e0 13
...
i looked in
"/usr/src/linux/drivers/char/pc_key.c" and found the corresponding code.
When the keyboard is not in "raw mode", the intellikeys are not found in
"static unsigned char e0_keys[128]"
But what's the way to go to support this keyboard (I only need XFree86
support)?
Juergen
------------------------------
** 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
******************************