Linux-Development-Sys Digest #725, Volume #6     Wed, 19 May 99 15:14:21 EDT

Contents:
  Re: a REAL physical memory access question (M van Oosterhout)
  The World Wide Expo  1768 ([EMAIL PROTECTED])
  How to Increase Maximum Number of Processes??? (Todd Burroughs)
  Screwed over my libraries... How do I fix them? (Kevin Burton)
  Re: Port I/O with Linux (Andi Kleen)
  ioremap vremap : unresolved symbol with insmod (Daniel Lintjens)
  Problems with base memory (Siegfried Hempfer)
  Re: best distribution ("G. Sumner Hayes")
  Tape Drive Behavior (Kevin Turnquist)
  my friend want to build a computer with linux. (Young-Chul Kim)
  Re: Linux for CompactPCI BUS? (Joseph Virzi)
  Linux and PCI modems (jychat)
  Re: never reboot to upgrade ? ("G. Sumner Hayes")
  Pop Authentication for Sendmail (Roland Nadeau)
  Re: how to access raw memory? (Joseph Virzi)

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

Date: Wed, 19 May 1999 15:35:49 +1000
From: M van Oosterhout <[EMAIL PROTECTED]>
Subject: Re: a REAL physical memory access question

Joseph Virzi wrote:
> 
> I have a PCI device which writes directly into the VGA text buffers.
> Back in ISA days, you merely wrote to 0xA0000 - 0xBFFFF. This is now a
> virtual address, and I need to provide a physical address to this
> device.

Do you mean that the PCI initiates a bus cycle that writes to that
area of memory?

> How do I translate a virtual address to a physical address?

I'm not sure if this is what you need. Basically, the 0xA0000 to
0xBFFFF is still the physical address. The PCI device should be
able to write to that. IIRC virt_to_phys is valid only on pointers
returned from either kmalloc() or ioremap() (is that what it's called?).

Virtual addresses (on the i386 anyway) are only visible inside
the CPU. The PCI card couldn't use/see it even if it wanted to.

> -Joe

Hope this helps...

Martijn van Oosterhout
Australia

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

From: [EMAIL PROTECTED]
Crossposted-To: 
comp.os.linux.hardware,comp.os.linux.m68k,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.portable,comp.os.linux.powerpc,comp.os.linux.setup,comp.os.linux.x,comp.os.lynx
Subject: The World Wide Expo  1768
Date: 18 May 1999 22:45:29 GMT


ngrihwfolww


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

From: Todd Burroughs <[EMAIL PROTECTED]>
Subject: How to Increase Maximum Number of Processes???
Date: Tue, 18 May 1999 21:56:43 -0400

I'm working on a large web server, Quad Xeon with 2 Gigs of RAM.  I've
been able to get Linux (2.2.x)
to see the RAM
(http://humbolt.nl.linux.org/Linux-MM/more_than_1GB.html), but it seems
that I may be running into a problem with the kernel's process table
filling up.  With a bit over 500 processes running,
I'm getting "fork: Resource temporarily unavailable" errors.  It's not
running out of memory, over 1 Gig is buffered.

Any ideas?  Would increasing the 64 Mag "gap" that's discussed on the
Linux-MM page referenced above help?


Thanks,  Todd

Here's a bit from that page:


Easy workaround for 1 GB machines

                OK, so you've only got one of those wimpy 1 GB machines
and you simply aren't up to
                hacking the kernel? Don't worry. Follow this easy recipy
to get 960 MB of useable                                memory... The trick is
simple, you just tell your kernel that you have 960 MB of
memory.                   You can do this
                by giving it the "mem=960MB" from the LILO prompt. To do
this automatically, you can add
                the argument to the "append" line in /etc/lilo.conf,
like this: 

                # Start LILO global section
                boot = /dev/hda
                append = "mem=960M"
                #compact        # faster, but won't work on all systems.
                delay = 50

                The 64 MB 'gap' we leave is there to allow Linux a bit
of space for internal                                   administration. If you feel
adventurous, you can reduce the gap and try higher values                              
 (Note:
newer 2.1 kernels
                don't allow this!). Success has been reported with
values of up to 1014 MB. The obvious
                downside to this tweaking is reduced system stability.
Don't do this unless you don't mind
                your machine crashing on you and your lusers, who will
be storming your office hordes at a
                time as soon as they find out they lost their work
because you felt adventurous... Yes,                    you must truly be adventurous 
to
risk system stability for an extra 40 MBs of RAM :)

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

From: Kevin Burton <[EMAIL PROTECTED]>
Subject: Screwed over my libraries... How do I fix them?
Date: Wed, 19 May 1999 01:07:13 -0700

Ok..  So something I installed has created a library conflict but I
can't get it resolved.

I am running Redhat 5.2 and have gone back to the provided glibc2, glib,
and gtk.

I have library errors from 2 different binaries

/usr/lib/libslang.so.1: undefined symbol: __bzero
/usr/lib/libglib-1.2.so.0: undefined symbol: __bzero

The common library between the two is glibc but I re-installed.  Could
it be anything else?


-- 
Kevin A. Burton
Internet Guy

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

Subject: Re: Port I/O with Linux
From: Andi Kleen <[EMAIL PROTECTED]>
Date: 19 May 1999 15:12:11 +0200

Joseph Virzi <[EMAIL PROTECTED]> writes:

> I have seen this a recurring theme within the news groups. I wrote a
> genport-type driver, which routes outb(), outw() and rep_outsw() + input
> functions to an ioctl-controlled driver.
> 
> It's very easy to use. You just insmod, and then link up to the one page of
> source code that routes the in and out functions to ioctl.

What does it do that /dev/port doesn't ? 

You can also access io space directly from user space, if you give yourself
the necessary permissions using ioperm (2) [only works for root of course].

For more complex accesses writing a kernel driver is often better.

-Andi

-- 
This is like TV. I don't like TV.

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

From: Daniel Lintjens <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: ioremap vremap : unresolved symbol with insmod
Date: Wed, 19 May 1999 09:10:23 -0400

Hi folks,

I am writing a device driver and I need to use the ioremap function to
access the boards memory.

Now when I compile it with this line    

        ACTadress = (unsigned long) ioremap (ACT40BASEMEMADRRS, 16 * 1024);

it compiles great, no warnigns, no nothing. When I try to do an insmod
however, I get an unresolved symbol error. Same if I use vremap (the old
name?) but then I get a compiler warning saying that I impleced device
this function.

Anyone out there who know's what i'm doing wrong ? I use the 2.2 kernel.
Should this work with 2.0 ?

Daniel
<><

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

From: [EMAIL PROTECTED] (Siegfried Hempfer)
Subject: Problems with base memory
Date: 19 May 1999 12:55:23 GMT
Reply-To: [EMAIL PROTECTED]

I had trouble getting Linux (2.2.5, but it's the same with 2.2.9) to 
run on one of my machines until I found the following: the base 
memory of the machine in question is not 640K (0xA0000) but only 
630K (0x9D800; some devices extend the BIOS area downwards).

In arch/i386/mm/init.c (line 417) I found the following code:

//------------------------------------------------------------------
        /*
         * IBM messed up *AGAIN* in their thinkpad: 0xA0000 -> 0x9F000.
         * They seem to have done something stupid with the floppy
         * controller as well..
         */
        while (start_low_mem < 0x9f000+PAGE_OFFSET) {
            clear_bit(PG_reserved, &mem_map[MAP_NR(start_low_mem)].flags);
            start_low_mem += PAGE_SIZE;
        }
//------------------------------------------------------------------

When I modify the 0x9f000 to read 0x9d000 everything works fine.
Now it seems to me the exact value to use in this loop could be 
extracted from int 12 or the bios data area 40:13. 

Is there a special reason this limit has been hardcoded? 
Would getting the limit from the BIOS solve the problem or are 
there any side effects that I'm not aware of?
(I'm not that much of a kernel hacker; how do I access the BIOS at
this point?)
What should I do to get this changed in the distributions out there?

aTdHvAaNnKcSe
Siegfried

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

From: "G. Sumner Hayes" <[EMAIL PROTECTED]>
Subject: Re: best distribution
Date: Tue, 18 May 1999 12:19:19 -0400

bill davidsen wrote:
> 
> If you want to install a lot of systems all the same, maybe Slackware, 
> it does less determination of what you have for hardware, but the menu 
> system is easy to use and very fast, and it doesn't try to impress you 
> with a GUI for this and that.

I haven't used it, but if the systems you want to install are really all
the same then something like Red Hat's Kickstart would be helpful 
(assuming it works).  At least, that's what it's designed for.  It's a
fairly new feature, so I'd be unsurprised if there are still a few kinks
left to work out.

--Sumner

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

From: Kevin Turnquist <[EMAIL PROTECTED]>
Subject: Tape Drive Behavior
Date: 19 May 1999 14:28:48 GMT

   I'm experiencing strange tape drive behavior on one of my machines.
   It doesn't seem to matter which kernel is involved, but when the tape
gets to backing up anything in the /lib directory, the machine locks
instantly.  No time for an error message on screen or in logs...
 
   Other machines don't exhibit this behavior.

   Could it be a bad/corrupted file in /lib, or something else?  I'm using
a Seagate Travan-8000 SCSI-2 drive for backups.
--
Kevin Turnquist

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

From: Young-Chul Kim <[EMAIL PROTECTED]>
Subject: my friend want to build a computer with linux.
Date: Wed, 19 May 1999 11:00:45 -0400
Reply-To: Young-Chul Kim <[EMAIL PROTECTED]>

This is Young Kim.  Well, here is what he told me. if anyone can help
him, I will appreciate it.
 
"I've been looking for hardware information and advice.  I'm looking to
build a linux machine for under $500, and I'm not sure what to get--I have
a lot of options, and I want to get the best,most inexpensive hardware,
and have it be fully compatible with linux and xfree86. Would you post a
message at Carnegie Mellon to the linux newsgroup (or mailgroup) asking
their advice?  Let them know I'm deciding between a slot 1,socket 370, or socket 7 
system, and I want to know how safe it is to
overclock my system (if I got a celeron 300a, for instance).  Also, I
could use advice on video, sound, and network cards as well."

if you can help him, you can send him e-mail to [EMAIL PROTECTED]

Thank you so much.



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

From: Joseph Virzi <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Linux for CompactPCI BUS?
Date: Tue, 18 May 1999 21:11:02 -0700

As far as I have seen, no one is doing this right now ( writing hot-swap
support ). I've been looking for this, too.

-Joe

Bob Hauck wrote:

> In article <7fn6i6$n34$[EMAIL PROTECTED]>,
>         [EMAIL PROTECTED] ((cosc1) 95h02740) writes:
>
> > Does Linux Support Compact PCI bus?
>
> Yes.  Compact PCI is (mostly) just PCI in a different form
> factor.  The Compact PCI FAQ says that Linux will work and I
> have talked to at least one board vendor that confirmed this.
> But also AFAICT, Linux does not support the hot swap feature.
> But then, neither do any of the other popular PC operating
> systems.
>
> While I'm posting...does anybody know what work is being done
> regarding CPCI or VME hot swap support?  We're looking at doing
> some embedded projects and Linux would fit in real well if it had
> this.  I might even be convinced to help 8-)
>
> --
>  13:45:00 up 58 days,  3:07,  0 users,  load average: 0.00, 0.00, 0.00




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

From: jychat <[EMAIL PROTECTED]>
Subject: Linux and PCI modems
Date: Wed, 19 May 1999 02:48:18 GMT

hi !

i've got a PCI Modem from Olitec and i cant configure it under RH5.2

what's the problem ?
is there something to do to resolve this problem ?

thanx !


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

From: "G. Sumner Hayes" <[EMAIL PROTECTED]>
Subject: Re: never reboot to upgrade ?
Date: Wed, 19 May 1999 12:11:09 -0400

Mike Rushford wrote:
> Is there a way of building a kernel so that it takes the place of a
> currently running one without ever shutting down?

No.  It might be possible to update to newer modules without a reboot,
but changes to the core kernel require a reboot.  There's no easy way
around this, and not much real demand for a change from what I've seen
(though the topic does occasionally come up).

It might be possible to use a process migration scheme like Condor to
keep all your apps running with their current state when upgrading the
kernel, but I haven't tried it and don't know if it would really work.

> Same question for Libraries in memory can we force library upgrades by
> just putting the new libs and sym links on disk and then doing something
> like sync and ldconfig to force a relink to the newly installed ones?

Once the new libraries are properly installed, all programs you start
will use the new ones without a reboot.  Programs already running will
continue using the old libs.  You should be able to get everything but
init to use the new ones by stopping all the system daemons and then
starting them again.  Going to runlevel 1 and then back to 3 or 5 would
catch a lot of them.  If init is statically linked you could eliminate
the old shared libs entirely this way.  It ought to be safe to unlink
them anyway, but the disk space won't get freed up until nobody is
using them

--Sumner

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

From: Roland Nadeau <[EMAIL PROTECTED]>
Crossposted-To: 
alt.comp.linux.xxx,alt.comp.linux.isp,alt.os.linux,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.security,comp.os.linux.setup,comp.os.linux.x,computer42.mail2news.linux-alert,comp.mail.sendmail
Subject: Pop Authentication for Sendmail
Date: Wed, 19 May 1999 13:13:35 -0400

Hey All,

       I hope someone can help, I have a mail server running RedHat 5.2
here's the problem. Sendmail will not
   allow someone on an unknown net relay, there has to be an enty for
thier net in the /etc/mail/relay_allow file.
   ISP's like AOL have to many nets and I would have to allow all of
thier nets for my users to send an email.
   This is a problem for possable spam relaying. Can someone point me to
a fix to use POP to authenticate or
   any other possable fix.
--

                                Thanks.....Roland




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

From: Joseph Virzi <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: how to access raw memory?
Date: Tue, 18 May 1999 21:30:38 -0700

There is code for this that is to be included in Rubini's driver book.

Goto ftp.ora.com/pub/examples/linux/drivers

A program called silly.c has code for this.

-Joe

Jacek Pop�awski wrote:

>   I want to write driver to work with VGA 320x200x256 mode. I am not
> sure how to access IO ports, but i read HOWTO and some mans and I think
> it will be possible :-), but what with memory? Only root can access all
> memory, but how? How can i write to video ram? I read "man mem" but
> it didn't help me... What should i read?




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


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