Linux-Development-Sys Digest #742, Volume #6     Tue, 25 May 99 01:14:31 EDT

Contents:
  Re: COL 2.2 Modem (Johan Kullstam)
  Linux mmap: MAP_SHARED gives EINVAL (Spyridon Papadimitriou)
  Re: Linux mmap: MAP_SHARED gives EINVAL ("G. Sumner Hayes")
  Re: Linux mmap: MAP_SHARED gives EINVAL ("G. Sumner Hayes")
  Re: is vnc video card independent ? (Greg Weeks)
  XWindows and RedHat 6.0 (Carlos Rodrigues)
  Re: mkinitrd error (Igor Zlatkovic)
  k6 unable to execute a.out file. (V man)
  Problem with signals (Sven Heursch)
  IP/IPX encapsulation ([EMAIL PROTECTED])
  IP/IPX encapsulation ([EMAIL PROTECTED])
  IP/IPX encapsulation ([EMAIL PROTECTED])
  IP/IPX encapsulation ([EMAIL PROTECTED])
  ip/ipx encapsulation ([EMAIL PROTECTED])
  Re: mkinitrd error (JustMe)
  Re: k6 unable to execute a.out file. (Alastair)
  RedHat 6.0 SMP compile (Wendell Nichols)
  RedHat 6.0 SMP compile (Wendell Nichols)
  Re: Bug with fs/select.c in 2.2.5 kernel causes Informix databases to  (Kumar 
Srinivas)
  Re: XWindows and RedHat 6.0 (David M. Cook)
  Re: RedHat 6.0 SMP compile ([EMAIL PROTECTED])
  Problems on booting a new compiled kernel (2.2.6) ("Elias Penttil�")

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

From: Johan Kullstam <[EMAIL PROTECTED]>
Subject: Re: COL 2.2 Modem
Date: 24 May 1999 12:55:23 -0400

"David Pulliam" <[EMAIL PROTECTED]> writes:

> I am having trouble getting COL 2.2 to activate my modem and connect
> to my ISP.  I set up everything else just fine(i.e. dns, phone #,
> username/password).  It's in the device area that I'm having the
> problem.

> The only setting that respont are ttyS1 and cua1, but when I try and
> connect, they both say "Initializing Modem", (I never do here the
> modem click like it should), then it says and stops at "setting
> modem sound".

since you mention ttyS1 and cua1 which in the ibm/microsoft world is
com2, i am assuming you are hooking up an external modem to the second
serial port.  you didn't specify modem brand and model.  that would
help.

ignore /dev/cua1.  it's been depreciated in favor of /dev/ttyS1.
do you get anything in your kernel boot up messages about the serial
ports?  did you enable com2 in the bios settings?

are you using a regular straight cable?  generally, your computer (at
least for ibm clones) is dte and the modem is dce.  what do your modem
lights look like?  do you get dtr?  do the tx/rx lights blink at any
time?

you may need run setserial (usually from some init file) to adjust the
speed and various other settings.

also, enable debug in /etc/ppp/options.  give chat the -v option.
look in /var/log/messages for signs of life (run less +F
/var/log/messages in a spare terminal).

> It seems like linux can't find my modem.  How do I fix this.

hope this helps.

-- 
johan kullstam

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

From: Spyridon Papadimitriou <[EMAIL PROTECTED]>
Subject: Linux mmap: MAP_SHARED gives EINVAL
Date: Mon, 24 May 1999 13:52:13 -0400


I'm trying to create a shared region of memory in Linux (RedHat 5.1,
kernel 2.0.34), but whenever I use the MAP_SHARED flag, I get a EINVAL
error.  I wrote a small test program (see end of file) and it fails
for all sizes, except size 0 (returns NULL, not MAP_FAILED).  When I
run it on SGI (Irix) or Alpha (DEC Unix) machines, the test succeeds
for all sizes (except 0)...  I also tried using MAP_ANON instead of
mapping /dev/zero, but that doesn't change anything...  Have I done
something wrong?  Do I need to configure anything in order to be able
to use this?  Has anyone used this successfuly?

Thanks
Spiros

PS. Please respond via e-mail as well, since I do not always have
    access to news...  Thanks!

=======================[ Test program ]==============================

#include <stdio.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main ()
{
    int fd = open("/dev/zero", O_RDWR);
    int size;
    void *p = (void *)-2;

    for (size = 0;  size < 8*1024; size++) {
        p = mmap (NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
        if (p != MAP_FAILED)
            printf("Success for size %d (%p)\n", size, p);
    }
    printf("DONE\n");
    close(fd);

    printf("%p\n", p);
    exit(0);
}






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

From: "G. Sumner Hayes" <[EMAIL PROTECTED]>
Subject: Re: Linux mmap: MAP_SHARED gives EINVAL
Date: Mon, 24 May 1999 16:36:57 -0400

Spyridon Papadimitriou wrote:
> 
> I'm trying to create a shared region of memory in Linux (RedHat 5.1,
> kernel 2.0.34), but whenever I use the MAP_SHARED flag, I get a EINVAL
> error.  
[SNIP]
> I also tried using MAP_ANON instead of mapping /dev/zero, but that 
> doesn't change anything.

MAP_SHARED doesn't work with anonymous mappings (/dev/zero or MAP_ANON).
Give it an actual file.  The Single Unix Specification doesn't specify
behavior for MAP_ANON, so it should be considered non-portable.  There
have been some discussions about allowing this on the kernel mailing
list, but for various reasons it hasn't been done.  (Among these is that
Linus didn't really understand the MAP_SHARED|MAP_ANON semantics until
last January and kept arguing that the entire idea was broken; if you
used his semantics, it was).  Some of the cleanups in the 2.1 series
make this a lot easier to implement, so it'll probably happen in the
2.3 series.

Note that you can create a file, seek to some long offset, mmap the
file,
fork some kids, have them mmap it, and then unlink it.  When everyone
exists, the file will be removed.  Not ideal, but it works.

See, e.g.:

Linus is confused, R. Lima gives a nice detailed explanation of shared
anonymous mmap and how it's cool (at least in the BSD conception):
http://www.uwsg.indiana.edu/hypermail/linux/kernel/9801.1/0409.html

Stephen Tweedie says it's a 2.3 goal:
http://www.uwsg.indiana.edu/hypermail/linux/kernel/9809.3/0698.html

Matti Aarnio shows how he works around the problem:
http://www.uwsg.indiana.edu/hypermail/linux/kernel/9607/1703.html

--Sumner

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

From: "G. Sumner Hayes" <[EMAIL PROTECTED]>
Subject: Re: Linux mmap: MAP_SHARED gives EINVAL
Date: Mon, 24 May 1999 16:39:47 -0400

Spyridon Papadimitriou wrote:
> 
> I'm trying to create a shared region of memory in Linux (RedHat 5.1,

And to followup once more, keep in mind that on Linux you can use
SysV shared memory and detach the shm region.  New processes can keep
connecting to the region, but once the last process exits it'll be
erased automagically.  So the net effect is similar.

--Sumner

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

Reply-To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Greg Weeks)
Subject: Re: is vnc video card independent ?
Crossposted-To: 
comp.os.linux.x,comp.os.linux.networking,comp.os.os-windows.nt.misc,comp.os.linux.development.apps
Date: Mon, 24 May 1999 07:53:18 -0500

In article <[EMAIL PROTECTED]>,
        Matt <[EMAIL PROTECTED]> writes:
> Bruce,
> 
> Why then does my vnc setup only displays the
> 'x' ie a blank screen and not x windows itself
> is there a command I have to type on the linux
> box like
> 
> export DISPLAY ????
> 
> I have set the perl strings and location correctly
> and have started Xnc on the linux box which includes
> the sign on passwords.
> 
> When I start it on the NT box I type in the
> same command (passwords and I connect) 
> 
> ps -a shows that everything is working (vnc)
> but am I missing something else ?

Do you have a window manager running? vncserver should start a window
manager also.

Greg Weeks
-- 
http://durendal.tzo.com/greg/


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

From: Carlos Rodrigues <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: XWindows and RedHat 6.0
Date: Mon, 24 May 1999 19:22:54 +0100

I've recently upgraded from redhat 5.2 to 6.0 and I'm experiencing a
problem(?) with XFree86, if I exit X and then start it again almost
immediately, it stops for a few seconds before starting to run the
windowmanager, which doesn't occur if I run something in between (like
ls). I wonder what the hell it is doing as this does not happen in 5.2.

Any ideas?

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

From: Igor Zlatkovic <[EMAIL PROTECTED]>
Subject: Re: mkinitrd error
Date: Mon, 24 May 1999 19:04:41 +0000

mkinitrd script makes the initrd image using your loopback device. If you
didn't compile that in your new 2.2.9 kernel, go ahead and do it, because
you will need it everytime you run mkinird.

Regarding your problem, the error means that the loopback device is not
compiled monolithically inthe kernel, but probably as a module. Boot to that
kernel you had when you ran mkinitrd for the last time sucessfully. Type:

# insmod loop

If this succeeds, mkinitrd will work. If this fails, then you have deleted
the loop.o module that belongs to the kernel you will be running at this
point. If this is true, go ahead and reinstall the Linux distribution. When
you are done, remember this very well as a lesson for the future :-)

LMarshall wrote:

> I got 2.2.9 to compile correct one time .. but forgot to turn on the ppp
> went back to 2.0.36 and redid the entire process until
> I typed in    mkinitrd /boot/initrd-2.2.9.img 2.2.9
> this time I got this error:
>
> mount: the kernel does not recognize /dev/loop0 as a
>            block device (maybe 'insmod driver'?)
>
> it worked the first time, but I have cleared it all out and redid it from
> the start 3 times and get the same error message ... can someone
> give me idea why it dies at this point?
>
> thanks

--
      o
     O       Cheers,
  ______O___
  \________/   Igor Zlatkovic
   \   o  /    mailto:[EMAIL PROTECTED]
    \ O  /
     \  /
      \/
      ||       University of Applied Sciences
   ___||___    Frankfurt, Germany, EU.




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

From: V man <[EMAIL PROTECTED]>
Subject: k6 unable to execute a.out file.
Date: 24 May 1999 22:08:26 GMT

since i bought a k6 2-400, 64 Mb Ram, i translated my old disks with
linux 2.2.9, 2.3.3, slackware 4., binutils 2.9.1.0,25, i'm not
able to run old a.out files on my system.
i get the following message,
 cannot execute binary file
 naturally i have support for a.out format comipled in the kernel.
 some hints?
 thanx
 Luigi Genoni
 .
 
 

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

Date: Tue, 25 May 1999 01:27:48 +0200
From: Sven Heursch <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Problem with signals

Hello,

i am trying to send a signal (SIGUSR2) from a device driver (module) to
a user process with the system function send_sig(). The user process has
installed a signal handler and it works well, if the signal is send from
the console. But sending it from the device driver doesn�t work. The
signal never reach its target process. The signal flags in the task
struct aren�t changed. Any ideas? (2.0.35 kernel).

greetings
S. Heursch


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

From: [EMAIL PROTECTED]
Subject: IP/IPX encapsulation
Date: Mon, 24 May 1999 23:47:42 GMT

I don't know if this has been touched on befire,
but...

I want to trap the tcp/ip packets going out from
the kernel, and encapsulate them into ipx.  The
thing is can i stop the packets going onto the
network ?  And if so how would i go about it.

Also, are there any good site that can tell me
about ipx programming, and where i can find info
about kernel traps and kernel programming etc.

Thanks


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---

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

From: [EMAIL PROTECTED]
Subject: IP/IPX encapsulation
Date: Mon, 24 May 1999 23:47:39 GMT

I don't know if this has been touched on befire,
but...

I want to trap the tcp/ip packets going out from
the kernel, and encapsulate them into ipx.  The
thing is can i stop the packets going onto the
network ?  And if so how would i go about it.

Also, are there any good site that can tell me
about ipx programming, and where i can find info
about kernel traps and kernel programming etc.

Thanks


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---

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

From: [EMAIL PROTECTED]
Subject: IP/IPX encapsulation
Date: Mon, 24 May 1999 23:47:40 GMT

I don't know if this has been touched on befire,
but...

I want to trap the tcp/ip packets going out from
the kernel, and encapsulate them into ipx.  The
thing is can i stop the packets going onto the
network ?  And if so how would i go about it.

Also, are there any good site that can tell me
about ipx programming, and where i can find info
about kernel traps and kernel programming etc.

Thanks


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---

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

From: [EMAIL PROTECTED]
Subject: IP/IPX encapsulation
Date: Mon, 24 May 1999 23:47:43 GMT

I don't know if this has been touched on befire,
but...

I want to trap the tcp/ip packets going out from
the kernel, and encapsulate them into ipx.  The
thing is can i stop the packets going onto the
network ?  And if so how would i go about it.

Also, are there any good site that can tell me
about ipx programming, and where i can find info
about kernel traps and kernel programming etc.

Thanks


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---

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

From: [EMAIL PROTECTED]
Subject: ip/ipx encapsulation
Date: Mon, 24 May 1999 23:53:29 GMT

I dont know weather this has been touched upon before, but...

I want to stop the kernel from sending tcp/ip packets out, and instead
grab them and encapsulate them in ipx packets to send out on the
network.

Is this possible, and if so can you give me any pointers ?

Also where can I find info about kernel programming (apart from reading
the source) and ipx programming ?

Thanks for the help



--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---

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

Subject: Re: mkinitrd error
From: JustMe <[EMAIL PROTECTED]>
Date: Mon, 24 May 1999 18:12:05 -0500

Igor Zlatkovic <[EMAIL PROTECTED]> wrote:
>mkinitrd script makes the initrd image using your loopback device. If yo=
u
>didn't compile that in your new 2.2.9 kernel, go ahead and do it, becaus=
e
>you will need it everytime you run mkinird.
>
>Regarding your problem, the error means that the loopback device is not
>compiled monolithically inthe kernel, but probably as a module. Boot to =
that
>kernel you had when you ran mkinitrd for the last time sucessfully. Type=
:
>
># insmod loop
>
>If this succeeds, mkinitrd will work. If this fails, then you have delet=
ed
>the loop.o module that belongs to the kernel you will be running at this
>point. If this is true, go ahead and reinstall the Linux distribution. W=
hen
>you are done, remember this very well as a lesson for the future :-)
>

Danke zehr, Igor.
Thank worked and mkinitrd now works.



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

From: [EMAIL PROTECTED] (Alastair)
Subject: Re: k6 unable to execute a.out file.
Date: Mon, 24 May 1999 23:16:34 GMT
Reply-To: [EMAIL PROTECTED]

V man <[EMAIL PROTECTED]> wrote:
>since i bought a k6 2-400, 64 Mb Ram, i translated my old disks with
>linux 2.2.9, 2.3.3, slackware 4., binutils 2.9.1.0,25, i'm not
>able to run old a.out files on my system.
>i get the following message,
> cannot execute binary file
> naturally i have support for a.out format comipled in the kernel.
> some hints?

OK, you went stable (2.2.9) -> development (2.3.3).

a) why a development kernel? Good reason?
b) are you *sure* you compiled a.out support? (CONFIG_BINFMT_AOUT=y)
c) are you sure you need to run a.out?


-- 

Alastair
work  : [EMAIL PROTECTED]
home  : [EMAIL PROTECTED]

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

From: Wendell Nichols <[EMAIL PROTECTED]>
Subject: RedHat 6.0 SMP compile
Date: Mon, 24 May 1999 17:05:01 -0600
Reply-To: [EMAIL PROTECTED]

This is a multi-part message in MIME format.
==============82509ECB621136B2C5A5C600
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have an ASUS dual pentium II, 400.  I've installed rh60 on it and it works,
but comes with smp turned off by default.  So I make config (turn on smp), make
clean, bzImage, modules, modules_install etc.
As a precaution I do a depmod -a 2.2.5-15smp, and every single configured module
gets an "invalid reference in xxxxx.o" error.  Recompile without smp and all is
fine, (except that one of my processors waits at the speed of light  :(
If I boot the smp image, it gets to the point where it does the "module
dependancies" ( I forget the exact wording )
and hangs hard.  Won't ctrl/alt/del, has to be reset.
Has anyone else seen this behavior?  I think there is just something wrong with
the smp modules compile.

wendell nichols

==============82509ECB621136B2C5A5C600
Content-Type: text/x-vcard; charset=us-ascii;
 name="wcn00.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Wendell Nichols
Content-Disposition: attachment;
 filename="wcn00.vcf"

begin:vcard 
n:Nichols;Wendell
tel;work:1800 267 2928 ext 153
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;19328
fn:Wendell C. Nichols
end:vcard

==============82509ECB621136B2C5A5C600==


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

From: Wendell Nichols <[EMAIL PROTECTED]>
Subject: RedHat 6.0 SMP compile
Date: Mon, 24 May 1999 17:06:15 -0600
Reply-To: [EMAIL PROTECTED]

This is a multi-part message in MIME format.
==============5EDC6AED18A587B2E005784E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have an ASUS dual pentium II, 400.  I've installed rh60 on it and it works,
but comes with smp turned off by default.  So I make config (turn on smp), make
clean, bzImage, modules, modules_install etc.
As a precaution I do a depmod -a 2.2.5-15smp, and every single configured module
gets an "invalid reference in xxxxx.o" error.  Recompile without smp and all is
fine, (except that one of my processors waits at the speed of light  :(
If I boot the smp image, it gets to the point where it does the "module
dependancies" ( I forget the exact wording )
and hangs hard.  Won't ctrl/alt/del, has to be reset.
Has anyone else seen this behavior?  I think there is just something wrong with
the smp modules compile.

wendell nichols

==============5EDC6AED18A587B2E005784E
Content-Type: text/x-vcard; charset=us-ascii;
 name="wcn00.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Wendell Nichols
Content-Disposition: attachment;
 filename="wcn00.vcf"

begin:vcard 
n:Nichols;Wendell
tel;work:1800 267 2928 ext 153
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;19328
fn:Wendell C. Nichols
end:vcard

==============5EDC6AED18A587B2E005784E==


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

From: Kumar Srinivas <[EMAIL PROTECTED]>
Subject: Re: Bug with fs/select.c in 2.2.5 kernel causes Informix databases to 
Date: Mon, 24 May 1999 23:49:10 GMT

The problem has been fixed with Redhat 6.0.

Does anyone know whether this has made it into the
final kernel tree? i.e. is this fix specific to Redhat 6.0?

/Kumar

Kumar Srinivas wrote:

> I wish to report a bug with fs/select.c in the 2.2.5 kernel
> (used with Redhat 6.0, Caldera 2.2 etc.)
>
> Someone has changed the code for fs/select.c
> - especially the code segment in the function sys_select:
>
>  if (n < 0 || n > KFDS_NR)
>         goto out_nofds;
>
> The previous code in fs/select.c in the same function read:
>
>     if (n < 0)
>         goto out;
>     if (n > NR_OPEN)
>         n = NR_OPEN;
>
> I just wish that they had tested this kind of change before putting it
> in
> production!
>
> Informix passes 4096 which causes problems now!
> Changing NR_OPEN and some of the others (FD_SETSIZE, OPEN_MAX)
> etc. to 5120 just causes more problems!


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

From: [EMAIL PROTECTED] (David M. Cook)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: XWindows and RedHat 6.0
Reply-To: [EMAIL PROTECTED]
Date: Mon, 24 May 1999 23:43:09 GMT

On Mon, 24 May 1999 19:22:54 +0100, Carlos Rodrigues
<[EMAIL PROTECTED]> wrote:

>I've recently upgraded from redhat 5.2 to 6.0 and I'm experiencing a
>problem(?) with XFree86, if I exit X and then start it again almost
>immediately, it stops for a few seconds before starting to run the
>windowmanager, which doesn't occur if I run something in between (like
>ls). I wonder what the hell it is doing as this does not happen in 5.2.

Are you using GNOME?  Sounds like it might be a GNOME problem.  If so, check
out the bugs.gnome.org page.

Dave Cook
-- 
No Linux for you!

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

From: [EMAIL PROTECTED]
Subject: Re: RedHat 6.0 SMP compile
Date: 25 May 1999 02:49:04 GMT
Reply-To: [EMAIL PROTECTED]

Wendell Nichols <[EMAIL PROTECTED]> wrote in comp.os.linux.development.system:

WN>I have an ASUS dual pentium II, 400.  I've installed rh60 on it and it works,
WN>but comes with smp turned off by default.  So I make config (turn on smp), make
WN>clean, bzImage, modules, modules_install etc.
WN>As a precaution I do a depmod -a 2.2.5-15smp, and every single configured module
WN>gets an "invalid reference in xxxxx.o" error.  Recompile without smp and all is
WN>fine, (except that one of my processors waits at the speed of light  :(
WN>If I boot the smp image, it gets to the point where it does the "module
WN>dependancies" ( I forget the exact wording )
WN>and hangs hard.  Won't ctrl/alt/del, has to be reset.
WN>Has anyone else seen this behavior?  I think there is just something wrong with
WN>the smp modules compile.

I had a similar (but different) problem.  I installed 6.0 on my dual
PPro/200.  The SMP was not turned on even though I specifically requested
SMP components to be turned on.  I added SMP kernel image to
/etc/lilo.conf.  Everything was fine, but it would not load any of the
modules (most importantly my scsi).  After scratching my head for 2 days,
I was about to give up.  Then it dawned on me that I needed to create an
SMP initrd image using mkinitrd.  After that all was well.  I ended up
using default image on 6.0 CD.



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

From: "Elias Penttil�" <[EMAIL PROTECTED]>
Subject: Problems on booting a new compiled kernel (2.2.6)
Date: Tue, 25 May 1999 08:01:29 +0300

Hi,
I have this problem: when i've made my own kernel and i try to boot Linux
with it, the LILO works, but when it tries to load Linux it hangs at
'Loading Linux'.
Please help me.

Elias.



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


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

Reply via email to