Linux-Development-Sys Digest #712, Volume #7     Tue, 28 Mar 00 16:13:17 EST

Contents:
  Re: Advice on PowerPC MPC823 Dev. Tools? (James Moger)
  Re: UART overrun errors (Mats Byggmastar)
  insmod driver.o PROBLEM !!!! (philippe Defert)
  Re: Advice on PowerPC MPC823 Dev. Tools? (Richard Hendricks)
  Re: MIDL compiler (Kaz Kylheku)
  Re: Mouse Driver Development (Robert Lynch)
  Re: insmod driver.o PROBLEM !!!! (Robert Lynch)
  Re: MIDL compiler (Xavier Leroy)
  Re: BIOS support ("Mark Langsdorf")
  Re: 2.2.x->2.3.x DKI changes ("Kiran Panesar")
  Interrupt ("Shannen")
  Re: insmod driver.o PROBLEM !!!! (Fabrice Peix)
  Text segment and virtual memory (TJ Walls)
  Free BSD (Sebastien Dessimoz)
  Re: Gnumeric compile help needed. ([EMAIL PROTECTED])
  Re: Free BSD (Pjtg0707)
  Re: resource quotas ("Peter T. Breuer")
  Re: Free BSD ("Peter T. Breuer")
  Re: Free BSD (Kaz Kylheku)

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

From: James Moger <[EMAIL PROTECTED]>
Crossposted-To: comp.arch.embedded,comp.sys.powerpc.tech
Subject: Re: Advice on PowerPC MPC823 Dev. Tools?
Date: Tue, 28 Mar 2000 08:30:45 -0500
Reply-To: [EMAIL PROTECTED]

I've been using Hard Hat Linux for a few weeks.  Runs pretty well.  Its
based on the PowerPC Linux Kernel that Dan Malek has been hacking at for
a while.  You can download it at ftp.mvista.com.  The guys at Monta
Vista are pretty cool and helpful - although they are a business and
want to make money on giving you support, etc.

--
       James Moger
===---------------------===
    Software Engineer
 Transonic Systems, Inc.
{C/C++} {Java} {Smalltalk}
 Cornell Engineering '98
===---------------------===



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

From: Mats Byggmastar <[EMAIL PROTECTED]>
Subject: Re: UART overrun errors
Date: Tue, 28 Mar 2000 16:47:22 +0200

Etienne Lorrain wrote:
>   It does make use of it. Also check for 16650 and 16750 and others
>  (bigger FIFO) - and PCI boards to not have the ISA delays -
>  see file "serial.c"

I think I've found a possible solution. A manufacturer of some
modem test equipment recommend RocketPort multi-port serial cards
from Comtrol for being very reliable. These boards are supported 
under Linux and uses UART's with 1024 byte rx and 256 byte tx FIFO's.
This would give more than one second buffering on rx at 64 kbit/s.

I'm very thankful for all the help and hints all of you here on this
newsgroup have given me.


Mats

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

From: philippe Defert <[EMAIL PROTECTED]>
Subject: insmod driver.o PROBLEM !!!!
Date: Tue, 28 Mar 2000 19:39:03 +0200
Reply-To: [EMAIL PROTECTED]

hi,

i developpe a driver

when i want launch my driver i've got an error message

    insmod driv.o
    driv.o: init_module: device or ressource is busy

it's not the right message but it 's more explicite

what would be the problem ?

another question:

    can i link my module?
ex: gcc -D__KERNEL__  -DMODULE -Wall -O2 -I/usr/src/linux/include
-L/usr/lib -lname_library -c driv.c -o driv.o

is it possible?

thanks a lot in advance

philippe defert
www.vi-services.com



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

From: Richard Hendricks <[EMAIL PROTECTED]>
Crossposted-To: comp.arch.embedded,comp.sys.powerpc.tech
Subject: Re: Advice on PowerPC MPC823 Dev. Tools?
Date: Tue, 28 Mar 2000 09:33:41 -0600



Matt Porter wrote:
> 
> 
> For the FADS case, note that Mot is notoriously slow at updating public web
> information so the best way to find out about it is to contact MV.

What, precisely, needs to added to our website?  Let me know and I'll
beat the webmistress into submission.  But you're right, we've had
problems getting stuff out there.  Motorola is transitioning to a 
Brave, New Web, which is supposed to help customers find data easier,
and make it easier for us workers to add to it.

> --
> Matt Porter
> [EMAIL PROTECTED]
> This is Linux Country. On a quiet night, you can hear Windows reboot.

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: MIDL compiler
Reply-To: [EMAIL PROTECTED]
Date: Tue, 28 Mar 2000 16:23:34 GMT

On Tue, 28 Mar 2000 09:49:26 +0200, Hubert <[EMAIL PROTECTED]> wrote:
>Hello,
>
>I would like to port my windows application which uses RPC to SUSE.
>Therefore I am looking for a MIDL compiler to generate the necessary stubs
>from the IDL file.

Ah, you mean *Microsoft* RPC.

>Does anyone know where a can find a MIDL compiler for LINUX?

Microsoft RPC is based on DCE RPC. There is a Freeware DCE RPC implementation
for Linux which is based on The Open Group's source code. Do a web search.

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

Date: Tue, 28 Mar 2000 08:43:29 -0800
From: Robert Lynch <[EMAIL PROTECTED]>
Subject: Re: Mouse Driver Development

Alan Donovan wrote:
> 
> Curt wrote:
> >
> > I am interested in developing a driver for my Dexxa Scroll mouse.  I'm
> > not really sure where to start.  I'm a good C programmer, but
> > unfortunatly most of my programming experience is in winblows.  If
> > somebody could lend a hand; tell me where some resources are.
> >
> 
> Read the (long) article by Alan Cox which Nilesh Patel posted a couple
> of days ago in response to a post of mine on a different subject. The
> subject was "interrupts and atomicity in drivers".
> 
> alan
> 
> --
> ------------------------------------------------------------------------
>   Alan Donovan     [EMAIL PROTECTED]    http://www.imerge.co.uk
>   Imerge Ltd.      +44 1223 875265

Speaking of Alan Cox, he has a two part article in Linux Magazine on
mouse drivers:

http://www.linux-mag.com/1999-10/gear_01.html

http://www.linux-mag.com/1999-11/gear_01.html

HTH. Bob L.
-- 
Robert Lynch-Berkeley CA [EMAIL PROTECTED]

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

Date: Tue, 28 Mar 2000 08:45:02 -0800
From: Robert Lynch <[EMAIL PROTECTED]>
Subject: Re: insmod driver.o PROBLEM !!!!

philippe Defert wrote:
> 
> hi,
> 
> i developpe a driver
> 
> when i want launch my driver i've got an error message
> 
>     insmod driv.o
>     driv.o: init_module: device or ressource is busy
> 
> it's not the right message but it 's more explicite
> 
> what would be the problem ?

My experience says this is an IRQ problem.

> another question:
> 
>     can i link my module?
> ex: gcc -D__KERNEL__  -DMODULE -Wall -O2 -I/usr/src/linux/include
> -L/usr/lib -lname_library -c driv.c -o driv.o
> 
> is it possible?
> 
> thanks a lot in advance
> 
> philippe defert
> www.vi-services.com
-- 
Robert Lynch-Berkeley CA [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Xavier Leroy)
Subject: Re: MIDL compiler
Date: 28 Mar 2000 19:08:28 +0200


"Hubert" <[EMAIL PROTECTED]> writes:

> I would like to port my windows application which uses RPC to SUSE.
> Therefore I am looking for a MIDL compiler to generate the necessary stubs
> from the IDL file.
> Does anyone know where a can find a MIDL compiler for LINUX?

I believe one is included in Software AG's Unix port of COM/DCOM, a
beta of which being available for Linux.  See this nice FAQ:

        http://linas.org/linux/corba.html

It also gives many pointers to DCE and CORBA resources for Linux.

Hope this helps,

- Xavier Leroy
-- 
Valid e-mail address (without the underscores): [EMAIL PROTECTED]
This is a protection against junk mail. Apologies for the inconvenience.
Home page: http://pauillac.inria.fr/~xleroy/

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

From: "Mark Langsdorf" <[EMAIL PROTECTED]>
Subject: Re: BIOS support
Date: Tue, 28 Mar 2000 11:31:24 -0600


Robert Redelmeier wrote in message <[EMAIL PROTECTED]>...
>Sebastien Dessimoz wrote:
>
>> I'd like to know if Linux uses the BIOS (except loading the Linux
kernel
>> image of course)?
>
>The canonical answer is no, Linux does not use the BIOS for anything
>beyond loading the kernel image.  BIOS is 16 bit real-mode code, and
>Linux is 32 bit pmode.  The segregs do not line up at all.


    How much of the BIOS does Linux require to load the kernel
image, then?  Just enough to get the GP-BUS and SDRAM set up,
or something more?  If one were trying to to write a pared down
BIOS to boot Linux, could the VGA or floppy drive controller be
left off?

-Mark Langsdorf




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

From: "Kiran Panesar" <[EMAIL PROTECTED]>
Subject: Re: 2.2.x->2.3.x DKI changes
Date: Tue, 28 Mar 2000 09:19:46 -0800

Turnes out that the problem was that I had compiled the kernel for SMP, and
not the module. So, the kernel and the module had different definitions for
lock and wait event data structures. Compiling the module with #define
__SMP__ fixed the problem.

Kiran


Kiran Panesar <[EMAIL PROTECTED]> wrote in message
news:8bgv93$[EMAIL PROTECTED]...
> Thanks,
> Richard's page was useful.
>
> However, when I interruptible_sleep_on and wake
> cause kernel BUGs.
>
> I am on 2.3.99-pre2 and here is a simple piece of code
>
> static DECLARE_WAIT_QUEUE_HEAD(wq);
>
> int read(....){
>
>     interruptible_sleep_on(&wq);
>
>     return 1;
> }
>
> int write(....){
>
>     wakeup(&wq);
>
>     return 1;
> }
>
>
> This code is in a module that I am loading.
>
> The BUG happens in include/asm/spinlock.h:80
> invalid operand:0000
>
> Any suggestions?
>
> Thanks.
>
> Kiran
>
>
> Robert Lynch <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Bill Waddington wrote:
> > >
> > > Hello,
> > >
> > > I there somewhere a list of driver/kernel interface changes between
2.2
> > > & 2.3?  I think someone is working on Rubini II, but for now it would
be
> > >  sufficient to just have a list of the names of kernel functions and
> > > driver-related structures that have changed.
> > >
> > > I am trying to port a 2.2 chaining DMA driver to 2.3.51 and get it
> > > running before adding the kiobuf stuff.  So far I have tripped over
> > > pci_dev and notice that something has changed w/wait queues, but I
> > > suspect that there is more.
> > >
> > > Thanks to all,
> > > Bill
> > >
> > > --
> > > Bill Waddington
> > > [EMAIL PROTECTED]
> > > [EMAIL PROTECTED]
> > >
> > > Sent via Deja.com http://www.deja.com/
> > > Before you buy.
> >
> > Richard Gooch's page:
> >
> > http://www.atnf.csiro.au/~rgooch/linux/docs/porting-to-2.3.html
> >
> > may (or may not) prove helpful.
> >
> > Cheers, Bob L.
> > --
> > Robert Lynch-Berkeley CA [EMAIL PROTECTED]
>
>



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

From: "Shannen" <[EMAIL PROTECTED]>
Subject: Interrupt
Date: 28 Mar 2000 17:36:46 GMT

Hi
        i am doing an mp3 play. this is suppose to do output byte to a parallel
port at a regular interval. using normal process forking does not work as
the output interval is greatly affected. so i'm thinking of interrupting at
some millisecond interval to output the byte code. any suggestion?

Thanks
Shannen



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

From: Fabrice Peix <[EMAIL PROTECTED]>
Subject: Re: insmod driver.o PROBLEM !!!!
Date: Tue, 28 Mar 2000 19:45:42 +0200

philippe Defert wrote:
> 
> hi,
> 
> i developpe a driver
> 
> when i want launch my driver i've got an error message
> 
>     insmod driv.o
>     driv.o: init_module: device or ressource is busy
> 
> it's not the right message but it 's more explicite
> 
> what would be the problem ?
init_module return value different of 0

> 
> another question:
> 
>     can i link my module?
> ex: gcc -D__KERNEL__  -DMODULE -Wall -O2 -I/usr/src/linux/include
> -L/usr/lib -lname_library -c driv.c -o driv.o
> 
> is it possible?
> 
> thanks a lot in advance
You can do this but you must link staticly and the function you use must
not
use fpu.
> 
> philippe defert
> www.vi-services.com

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

From: TJ Walls <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Text segment and virtual memory
Date: 28 Mar 2000 13:25:26 EST


==============E9D46C9E689C84CE0942ADAE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,

   How does the the linux program loader allocate virtual memory for the
text and data segments, and is there any user-land way to free them? I
having tried unmapping the VM pages allocated for both regions from a
shared library with the following results (reproduced on a Solaris 7
box)...

   I can unmap the page with the text segment (from a shared library
routine), cannot mmap another page into the same VM region. The mmap
call does not return an error, but core dumps. I _can_ however mmap a
different physical page overtop of the already mapped VM page for the
text segment!

  I cannot unmap the page containing the data segment or map other
memory overtop of it. Again, the munmap calls core dumps.

  I've tried playing with various permission and locking settings to no
avail... the only conclusion I can come up with is the kernel is not
mmapping these pages into memory, but if it is not then how is it doing
it?

  Does anyone have any experience with this?

Thanks,
TJ Walls



--
========================================================================
      "Curiosity was framed; ignorance killed the cat."     -Unknown
========================================================================
TJ Walls
Research Associate
Reliable Software Technologies Inc.



==============E9D46C9E689C84CE0942ADAE
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello,
<p>&nbsp;&nbsp; How does the the linux program loader allocate virtual
memory for the text and data segments, and is there any user-land way to
free them? I having tried unmapping the VM pages allocated for both regions
from a shared library with the following results (reproduced on a Solaris
7 box)...
<p>&nbsp;&nbsp; I can unmap the page with the text segment (from a shared
library routine), cannot mmap another page into the same VM&nbsp;region.
The mmap call does not return an error, but core dumps. I _can_ however
mmap a different physical page overtop of the already mapped VM page for
the text segment!
<p>&nbsp; I cannot unmap the page containing the data segment or map other
memory overtop of it. Again, the munmap calls core dumps.
<p>&nbsp; I've tried playing with various permission and locking settings
to no avail... the only conclusion I can come up with is the kernel is
not mmapping these pages into memory, but if it is not then how is it doing
it?
<p>&nbsp; Does anyone have any experience with this?
<p>Thanks,
<br>TJ&nbsp;Walls
<p>&nbsp;
<pre>--&nbsp;
========================================================================
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Curiosity was framed; ignorance killed the 
cat."&nbsp;&nbsp;&nbsp;&nbsp; -Unknown
========================================================================
TJ Walls&nbsp;<[EMAIL PROTECTED]>
Research Associate
Reliable Software Technologies Inc.</pre>
&nbsp;</html>

==============E9D46C9E689C84CE0942ADAE==


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

Date: Tue, 28 Mar 2000 11:06:46 -0800
From: Sebastien Dessimoz <[EMAIL PROTECTED]>
Subject: Free BSD

What is the advantage to use Linux instead of FreeBSD or the opposite???


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

From: [EMAIL PROTECTED]
Subject: Re: Gnumeric compile help needed.
Date: Tue, 28 Mar 2000 20:31:46 GMT

In article <8be65f$r6b$[EMAIL PROTECTED]>,
"Charles Sullivan" <[EMAIL PROTECTED]> wrote:
> I've been trying to recompile the Gnome 'gnumeric' spreadsheet
> program without success. Advice from anyone who has successfully
> accomplished this will be greatly appreciated.
>
> I am running Red Hat 6.0 which I installed from the Cheapbytes
> CD. I also have the corresponding source code CD from the same
> vendor. The as-installed executable /usr/bin/gnumeric (v.23)
> runs satisfactorally under Gnome, but I wanted to make a minor
> modification.
>
[ snip ]
> (I tried downloading the latest version: gnumeric-0.9.tar.gz,
> gnome-libs-1.0.57.tar.gz, and libxml-1.8.7.tar.gz and rebuilding
> all these per instructions, but with the same result when I tried
> to execute the program.)
>
> Any ideas?
>
> Regards,
> Charles Sullivan [EMAIL PROTECTED]
>
>
0.23 is quite backleveled. 0.51 is current as I write this (though
0.49, 0.50, and 0.51 have come out in the last two days). The first
thing I would do is to install the October GNOME update. The gnumeric
folks are very 'bleeding edge', so you'll need to be quite current with
GNOME. You'll also need to upgrade a number of GNOME packages after
installing the Oct. upgrade (sorry, but I don't remember which ones).
Good luck.
--
Mike Stevens


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: [EMAIL PROTECTED] (Pjtg0707)
Subject: Re: Free BSD
Reply-To: [EMAIL PROTECTED]
Date: Tue, 28 Mar 2000 20:48:55 GMT

On Tue, 28 Mar 2000 11:06:46 -0800, Sebastien Dessimoz 
<[EMAIL PROTECTED]> wrote:
>What is the advantage to use Linux instead of FreeBSD or the opposite???
>

One is a bagel, the other is a donut. Which do you prefer?


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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: resource quotas
Date: 28 Mar 2000 20:51:15 GMT

Nick Piggin <[EMAIL PROTECTED]> wrote:
: I'm new (~1 year) to the linux system, however I have lately been
: following some of the kernel development newsgroups with interest. Maybe
: not kernel related, but is it possible to have a program/kernel option
: to quota more resources (other than just disk space). ie. it would be
: nice to have a quota on number of processes, cpu %, memory, device usage

This is normal.

: - ie. network/disk (not storage, but mb/s). I am aware that some tools
: will do similar jobs such as 'nice' and a good system admin can do these
: things quite easily however it would be nice to have more quantitative
: measures and limits for these resources.

That's what you have.

: I am not sure weather any features like this exist or not and if they

Why don't you type "apropos limit" and find out?

Peter

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Free BSD
Date: 28 Mar 2000 20:53:58 GMT

Sebastien Dessimoz <[EMAIL PROTECTED]> wrote:
: What is the advantage to use Linux instead of FreeBSD or the opposite???

FreeBSD is spelled differently and is written by different people
and has a different licence and different objectives and a different
development model.

Does that answer your question? If not, please explain to me the
advantages of using BeOS instead of Plan9.


Peter

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Free BSD
Reply-To: [EMAIL PROTECTED]
Date: Tue, 28 Mar 2000 21:02:08 GMT

On Tue, 28 Mar 2000 20:48:55 GMT, Pjtg0707 <[EMAIL PROTECTED]> wrote:
>On Tue, 28 Mar 2000 11:06:46 -0800, Sebastien Dessimoz 
><[EMAIL PROTECTED]> wrote:
>>What is the advantage to use Linux instead of FreeBSD or the opposite???
>>
>
>One is a bagel, the other is a donut. Which do you prefer?

The one without the big security hole in the middle. 

Flame away, brother. ;)


-- 
#exclude <windows.h>

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


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