Linux-Development-Sys Digest #625, Volume #6 Wed, 14 Apr 99 21:14:19 EDT
Contents:
Where to provide a driver? (Sven Bauhan)
Re: memcpy_tofs(), memcpy_fromfs() (Gerard van der Sel)
Re: CD wont't play after 2.0.36->2.2.5 (Michael Spalinski)
Re: New Kernel not booting (Bill Anderson)
Ramdisk ("Jeremiah Daniels")
Re: memcpy_tofs(), memcpy_fromfs() (Timothy J. Lee)
cross compiler ([EMAIL PROTECTED])
cross compiler ([EMAIL PROTECTED])
Re: Templates (Pascal Proulx)
Minimum size for Linux kernel (Tony Moutaux)
Re: SMP Linux, Any Catches? (bill davidsen)
Re: asynchronous disk I/O ("Stefan Monnier "
<[EMAIL PROTECTED]>)
Re: loading a driver twice without stacking (Eric Hegstrom)
Scheduling ("Mr Ed")
Re: Question : Regarding templates and g++ (Tristan Wibberley)
Re: cross compiler (Timothy J. Lee)
NFS and Solaris (Marv Nachatelo)
----------------------------------------------------------------------------
From: Sven Bauhan <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Where to provide a driver?
Date: Wed, 14 Apr 1999 14:05:48 +0200
Hello,
I've developed a device driver for linux. Now I want to provide under
the GPL.
Therefore I search for places / ftp-Servers where I can put it, so that
everyone can download it.
Can anyone tell me where to put the driver and how to make it known?
Thanks,
Sven
------------------------------
From: Gerard van der Sel <[EMAIL PROTECTED]>
Subject: Re: memcpy_tofs(), memcpy_fromfs()
Date: Wed, 14 Apr 1999 08:44:15 +0200
Reply-To: [EMAIL PROTECTED]
Timothy J. Lee wrote:
>
> [EMAIL PROTECTED] (NA) writes:
> |In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> |THIS.BIT says...
> |> memcpy_tofs() and memcpy_fromfs() come up as implicit declarations
> |> on a kernel 2.2.5 computer. What should they be replaced by? What
> |> kernel version had the change?
> |
> |Did you remember to: #include <asm/segment.h> ?
> |
> |Implicit declarations are usually a good hint
> |that prototype is missing.
>
> /usr/include/asm/segment.h in kernel 2.2.5 does not have memcpy_tofs(),
> unlike the same file in kernel 2.0.36.
>
> --
> ------------------------------------------------------------------------
> Timothy J. Lee timlee@
> Unsolicited bulk or commercial email is not welcome. netcom.com
> No warranty of any kind is provided with this message.
According to Linux Device drivers (Alessandro Rubini, O'Reilly) are
memcpy_tofs and memcpy_fromfs removed in 2.1 kernels. It said that they
likely stay away in de 2.2 kernel.
In the book there is a file called sysdep-2.1.h which now use:
copy_from_user <> memcpy_tofs
copy_to_user <> memcpy_fromfs
Look for the example file belonging to the book. It is in there
--
Met vriendelijke groet,
Gerard van der Sel
Mailto:[EMAIL PROTECTED]
"De dinosaurussen hadden hun komeet, wij hebben de Windows computer" -
me
"The box said: 'install on Windows 95, NT 4.0 or better'.
So I installed it on Linux."
------------------------------
From: Michael Spalinski <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: CD wont't play after 2.0.36->2.2.5
Date: 14 Apr 1999 10:58:58 -0400
>>>>> "Magus" == Magus <[EMAIL PROTECTED]> writes:
Magus> Another possibility is that the new kernel is looking at the
Magus> wrong IRQ and/or memory range for the sound card.
Magus> Double check the cards settings for IRQ, DMA, and memory ranges
Magus> required and make sure the sound modules are using those values.
Magus> You can either recompile the kernel with the correct values or
Magus> reload the sound modules (assuming they were compiled as such)
Magus> with the correct parameters. Cheers Magus
The weird thing is that the sound card works fine with rvplayer for
example! So the sound modules themselves seem to work. That is why I cross
posted to comp.os.linux.development.system, because I think it is likely to
be a buglet rather than misconfiguration (although it would be easier if it
were the latter).
M.
------------------------------
From: Bill Anderson <[EMAIL PROTECTED]>
Subject: Re: New Kernel not booting
Date: Wed, 14 Apr 1999 15:48:58 +0000
Rick O'Konis wrote:
>
> The problem is with the "make config" process. I was clued in by a fellow
> traveler in the Linux world. (Thank you Raymond, wherever you are!) If you
> do a "make config" with an old .config file or a "make oldconfig" or a
> "make menuconfig" then option CONFIG_VGA_CONSOLE is not set, resulting in
> your kernel not being able to assign the console, thus hanging. You have to
> run the old "make config" fresh and then the option appears.
>
> Bill Anderson wrote:
>
> > After installing a new drive (old one dying) last night, and recompiling
> > the kernel to 2.2.1, it doesn't want to boot.
> > When I get through lilo, it says "Ok, booting the kernel" and stays
> > there.
> > Before the old HD failed. 2.2.1 was working on this system, as does
> > booting into 2.0.36.
> >
> > Any Ideas?
> >
> > Bill
Thanks, I'll give it a shot tonight!
--
Bill Anderson Linux Administrator
MCS-Boise (ARC) [EMAIL PROTECTED]
My opinions are just that; _my_ opinions.
------------------------------
From: "Jeremiah Daniels" <[EMAIL PROTECTED]>
Subject: Ramdisk
Date: Mon, 12 Apr 1999 18:39:03 -0700
Hello I am trying to find out how o make a Linux bootdisk that does not load
RAMDISK at all. The system only has 4 megs of ram and cant handle RAMDISK.
PLEASE HELP IMM!!
Jeremiah
Cybertribe
------------------------------
From: [EMAIL PROTECTED] (Timothy J. Lee)
Subject: Re: memcpy_tofs(), memcpy_fromfs()
Reply-To: see-signature-for-email-address---junk-not-welcome
Date: Wed, 14 Apr 1999 04:19:51 GMT
[EMAIL PROTECTED] (NA) writes:
|In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
|THIS.BIT says...
|> memcpy_tofs() and memcpy_fromfs() come up as implicit declarations
|> on a kernel 2.2.5 computer. What should they be replaced by? What
|> kernel version had the change?
|
|Did you remember to: #include <asm/segment.h> ?
|
|Implicit declarations are usually a good hint
|that prototype is missing.
/usr/include/asm/segment.h in kernel 2.2.5 does not have memcpy_tofs(),
unlike the same file in kernel 2.0.36.
--
========================================================================
Timothy J. Lee timlee@
Unsolicited bulk or commercial email is not welcome. netcom.com
No warranty of any kind is provided with this message.
------------------------------
From: [EMAIL PROTECTED]
Subject: cross compiler
Date: Wed, 14 Apr 1999 13:57:11 GMT
Hi,
We are realizing a trainee in a french telecom company which want to
transport a test application from workstations (under Unix) to a PC platform.
At first, we have to chose an OS which could be adapted to the needs of the
service. Yet, we need somme information. We would like to know the
possibilities of cross compiling under Unix(compile from an OS under a
different OS). thanks for your help
Nicolas and Stephane
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: [EMAIL PROTECTED]
Subject: cross compiler
Date: Wed, 14 Apr 1999 13:57:46 GMT
Hi,
We are realizing a trainee in a french telecom company which want to
transport a test application from workstations (under Unix) to a PC platform.
At first, we have to chose an OS which could be adapted to the needs of the
service. Yet, we need somme information. We would like to know the
possibilities of cross compiling under Unix(compile from an OS under a
different OS). thanks for your help
Nicolas and Stephane
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: Pascal Proulx <[EMAIL PROTECTED]>
Crossposted-To:
alt.linux,alt.os.linux,comp.lang.c++,comp.os.linux.development.apps,comp.unix.programmer,comp.unix.questions,gnu.g++.help,gnu.gcc.help
Subject: Re: Templates
Date: Wed, 14 Apr 1999 16:15:12 -0400
This is a multi-part message in MIME format.
==============80E116C32C04069E3062FFC8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Martijn,
read the info files provided with gcc. You are right: template code must
reside in a header file.
>All functions in template classes must be inline.
I do not agree!
Pascal
Martijn Lievaart wrote:
> Alexander Dymerets wrote in message <[EMAIL PROTECTED]>...
> >Hi!
> >> I'm trying to design template classes in C++ (under Linux and Solaris)
> using
> >> the gcc compiler, but I'm running into trouble. It seems that the
> template
> >> functions must be written
> >> within the header (.h) file. Whenever they are written in the .cpp file
> I
> >> get errors about them not being there.
> >
> >All functions in template classes must be inline.
>
> Apart from some bugs in some compilers, this is simply not true. It is the
> most portable though.
>
> Martijn
> --
> My reply-to address is intentionally set to /dev/null
> reply to mlievaart at orion in nl
==============80E116C32C04069E3062FFC8
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Pascal Proulx
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Pascal Proulx
n: Proulx;Pascal
org: Computing Devices Canada, a General Dynamic Company
email;internet: [EMAIL PROTECTED]
title: Software Engineer
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
==============80E116C32C04069E3062FFC8==
------------------------------
From: [EMAIL PROTECTED] (Tony Moutaux)
Subject: Minimum size for Linux kernel
Date: Wed, 14 Apr 1999 14:10:18 GMT
Hi everybody,
I'm looking for information about the minimum size a Linux system
could have to run on an embedded device. Let's talk about a PC
compatible machine, which is more realistic. Can somebody tell me how
much ROM and RAM spaces I need to run Linux with some features like
the network and the memory management of course.
Thanks.
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: SMP Linux, Any Catches?
Date: 14 Apr 1999 21:24:01 GMT
In article <7f0emm$[EMAIL PROTECTED]>,
Clint Byrum <[EMAIL PROTECTED]> wrote:
| Where can i get the 2.2.x kernel? I haven't updated the kernel outright
| since I upgraded my 2.0.16 kernel to 2.0.22. As far as 14 processors go, I
| don't think I'd want all the eggs in one basket like that. I'd rather use
| beowulf and do clustered processing... More fault tolerant.
You also need to update many utilities, module tools, networking... at
some point it becomes desirable to simply save the good stuff and
reload, when it's far less work than evolving. I've done a few systems
each way, a clean install from time to time is a good idea anyway.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
What I find astonishing is not that my cat has started to sing, but that
he has taken up country-western. This morning he sang `Momma, don't let
your kittens grow up to be barn cats' in the shower, followed by a
pretty decent yodeling version of `Roundup time in Texas when the catnip
is in bloom.'
------------------------------
From: "Stefan Monnier <[EMAIL PROTECTED]>"
<[EMAIL PROTECTED]>
Subject: Re: asynchronous disk I/O
Date: 14 Apr 1999 17:21:59 -0400
>>>>> "Rik" == Rik van Riel <[EMAIL PROTECTED]> writes:
> Linux 2.2 has this function. If you've been looking at version 2.0 it's no
> wonder -- you're looking at 3 year old code...
2.0 was still "the latest" only a couple months back...
But there was a libaio for 2.0 (using threads) at
ftp://ftp.atd.ucar.edu/pub/thor/libaio-0.1.tgz from Richard Neitzel
<[EMAIL PROTECTED]>. It's kind of old, so you may want to contact the guy to
see if something more recent is available.
Stefan
------------------------------
From: Eric Hegstrom <[EMAIL PROTECTED]>
Subject: Re: loading a driver twice without stacking
Date: Wed, 14 Apr 1999 15:36:19 -0700
Whoops!
As usual I figured out the problem shortly after posting it.
The "register_symtab( NULL ):" is the way to go.
It works better if you don't put it right after "#ifndef MODULE" and
then put -DMODULE as a compile option.
As Homer would say, "Dolt!". Sometimes I really wonder about myself.
Peace,
Eric
Eric Hegstrom wrote:
>
> I also call register_symtab( NULL ); in init_dev so that no symbols are
> exported.
--
Eric Hegstrom .~.
Senior Software Engineer /V\
Sonoran Scanners, Inc. // \\ L I N U X
[EMAIL PROTECTED] /( )\ >don't fear the penguin<
520-617-0072 x402 ^^-^^
------------------------------
From: "Mr Ed" <edge@hehe,com>
Subject: Scheduling
Date: 14 Apr 1999 17:59:23 +0100
Hello,
Can someone explain how the "interfaces" in /proc/sys/ works?
We're about to implement a lotteryscheduler in Linux, but we must somehow
be able to steer the lottery...
------------------------------
From: Tristan Wibberley <[EMAIL PROTECTED]>
Subject: Re: Question : Regarding templates and g++
Date: Wed, 14 Apr 1999 00:54:27 +0100
Reply-To: [EMAIL PROTECTED]
Michael Bierenfeld wrote:
>
> Hello,
>
> I am having a problem linking c++ Sources containig templates. The
> compile-run is fine put the linker allways claims that :
>
> arraytest.o(.text+0x1d): undefined reference to
> `mbArray<Stamp>::mbArray(int)'
> .... and so on. This is for all Class Members.
>
> The Manual Page talks about "-fexternal-templates" and some #pragmas.
> Does anbody knows waht to do ?
Yes, find out which version of gcc or egcc you are using, then ask in a
more appropriate newsgroup/mailing-list.
I'm sorry not to be more helpful, but c++ really has *so* little to do
with the development of the system parts of Linux that it's frightening.
--
Tristan Wibberley Linux is a registered trademark
of Linus Torvalds.
------------------------------
From: [EMAIL PROTECTED] (Timothy J. Lee)
Subject: Re: cross compiler
Reply-To: see-signature-for-email-address---junk-not-welcome
Date: Wed, 14 Apr 1999 18:25:51 GMT
[EMAIL PROTECTED] writes:
|We are realizing a trainee in a french telecom company which want to
|transport a test application from workstations (under Unix) to a PC platform.
|At first, we have to chose an OS which could be adapted to the needs of the
|service. Yet, we need somme information. We would like to know the
|possibilities of cross compiling under Unix(compile from an OS under a
|different OS). thanks for your help
If you use gcc, use something like:
./configure --target=i386-pc-linux
./configure --target=i386-pc-cygwin32
./configure --target=i386-pc-go32
(you may have to experiment to get the right target names for your
application)
and then compile gcc. The harder part is getting all of the libraries
and include files for the target in the right places for the cross
compiler to find them (use "gcc -v hello.c" to figure it out). Note
that libgcc.a compiled on the target (usually through a gcc native
install) is needed.
--
========================================================================
Timothy J. Lee timlee@
Unsolicited bulk or commercial email is not welcome. netcom.com
No warranty of any kind is provided with this message.
------------------------------
From: Marv Nachatelo <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: NFS and Solaris
Date: Wed, 14 Apr 1999 19:12:06 -0400
==============8524E1AF55BFF698B7F6180E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
This is a followup for my request for help.
I'd like to thank H. J. Lu for supplying what the patches and knfsd and
the direction to get this working.
Hope this helps.
Problem : With a RH5.2 install and running the linux as a fileserver
to Solaris clients, NFS would fail when more than one client
connected. Failure included files becoming corrupted and nfsd
die'ing (sp?).
Note, I also had problems with the DEC OSF1 connecting to the
exported linux filesystem.
Solution :
Get the linux kernel 2.2.5. See www.kernel.org/pub.
A. Install RH 5.2.
B. Added the following rpm/patches :
XFree86-3_3_3-1_i386.rpm
Xconfigurator-3_89-1_i386.rpm
XFree86-SVGA-3.3.3.1-1.i386.rpm* libc-5.3.12-28.i386.rpm*
XFree86-SVGA-3_3_3_1-1_i386.rpm svgalib-1.3.0-3.i386.rpm*
XFree86-XF86Setup-3_3_3_1-1_i386.rpm sysklogd-1.3-26.i386.rpm*
XFree86-xfs-3_3_3_1-1_i386.rpm zgv-3.0-6.i386.rpm*
These patches are not required. Just the steps taken via my
install
method.
C. Obtain from ftp://ftp.varesearch.com/pub/support/hjl/knfsd/
knfsd-1.2.2a.tar.gz # this contains the patches for 2.2.
and the following rpm's from ../linux-2.2/RPMS/i386/
initscripts-3.78.1-3.i386.rpm
nfs-server-2.2beta37-1.1.i386.rpm
nfs-server-clients-2.2beta37-1.1.i386.rpm
knfsd-1.2-2.i386.rpm
D. cd /usr/src; rm linux # remove linux link
E. Add patches to 2.2.5 kernel. Patches are part of the
knfsd-1.2.2a.tar.gz kit.
Build new kernel.
- make clean
- make xconfig
- select Code maturity level options. Select y.
- select Network File Systems. Select NFS server support.
- save and exit
- make dep
- make clean
- make zImage
- make install
- make modules
- make modules_install
- Edit /etc/lilo.conf ; modify to /boot/vmlinuz. lilo.
- reboot
F. Install the rpms :
- rpm -U initscripts-3.78.1-3.i386.rpm
# note, /etc/rc.d/init.d/network modified.
- rpm -U nfs-server-2.2beta37-1.1.i386.rpm
- rpm -U nfs-server-clients-2.2beta37-1.1.i386.rpm
- rpm -i knfsd-1.2-2.i386.rpm
G. Setup the startup scripts.
Copy the rpc.nfsd and rpc.nfsfs from the knfsd-1.2.2a/etc area.
[/etc/rc.d/init.d]# mv nfs nfs.orig
[/etc/rc.d/init.d]# mv nfsfs nfsfs.orig
[/etc/rc.d/init.d]# mv knfsd-1.2.2a/etc/rc.nfsd nfs
[/etc/rc.d/init.d]# mv knfsd-1.2.2a/etc/rc.nfsfs nfsfs
[/etc/rc.d/init.d]# chmod 755 nfs*
Don't forget to export the filesystem, via the /etc/exports file:
Marv
--
Marv Nachatelo Tele : (978) 441-4366
Quickturn Design Systems, Inc. Fax : (978) 441-4301
One Executive Drive email : [EMAIL PROTECTED]
Chelmsford, MA 01824
==============8524E1AF55BFF698B7F6180E
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
This is a followup for my request for help.
<p>I'd like to thank H. J. Lu for supplying what the patches and knfsd
and
<br>the direction to get this working.
<p>Hope this helps.
<p>Problem : With a RH5.2 install and running the linux as a fileserver
<br> to Solaris clients,
NFS would fail when more than one client
<br> connected. Failure
included files becoming corrupted and nfsd
<br> die'ing (sp?).
<p> Note, I also
had problems with the DEC OSF1 connecting to the
<br> exported linux
filesystem.
<p>Solution :
<p> Get the linux kernel 2.2.5. See www.kernel.org/pub.
<p> A. Install RH 5.2.
<p> B. Added the following rpm/patches :
<br>
XFree86-3_3_3-1_i386.rpm
Xconfigurator-3_89-1_i386.rpm
<br>
XFree86-SVGA-3.3.3.1-1.i386.rpm*
libc-5.3.12-28.i386.rpm*
<br>
XFree86-SVGA-3_3_3_1-1_i386.rpm
svgalib-1.3.0-3.i386.rpm*
<br> XFree86-XF86Setup-3_3_3_1-1_i386.rpm
sysklogd-1.3-26.i386.rpm*
<br>
XFree86-xfs-3_3_3_1-1_i386.rpm
zgv-3.0-6.i386.rpm*
<p> These patches are not required.
Just the steps taken via my install
<br> method.
<p> C. Obtain from <A
HREF="ftp://ftp.varesearch.com/pub/support/hjl/knfsd/">ftp://ftp.varesearch.com/pub/support/hjl/knfsd/</A>
<p> knfsd-1.2.2a.tar.gz # this contains
the patches for 2.2.
<br>
<br> and the following rpm's from
../linux-2.2/RPMS/i386/
<br> initscripts-3.78.1-3.i386.rpm
<br> nfs-server-2.2beta37-1.1.i386.rpm
<br>
nfs-server-clients-2.2beta37-1.1.i386.rpm
<br> knfsd-1.2-2.i386.rpm
<p> D. cd /usr/src; rm linux # remove linux link
<p> E. Add patches to 2.2.5 kernel. Patches are
part of the
<br> knfsd-1.2.2a.tar.gz kit.
<p> Build new kernel.
<br> - make clean
<br> - make xconfig
<br> - select Code maturity
level options. Select y.
<br> - select Network File
Systems. Select NFS server support.
<br> - save and exit
<br> - make dep
<br> - make clean
<br> - make zImage
<br> - make install
<br> - make modules
<br> - make modules_install
<br> - Edit /etc/lilo.conf ; modify
to /boot/vmlinuz. lilo.
<br> - reboot
<p> F. Install the rpms :
<br> - rpm -U initscripts-3.78.1-3.i386.rpm
<br>
# note, /etc/rc.d/init.d/network modified.
<br> - rpm -U nfs-server-2.2beta37-1.1.i386.rpm
<br> - rpm -U
nfs-server-clients-2.2beta37-1.1.i386.rpm
<br> - rpm -i knfsd-1.2-2.i386.rpm
<p> G. Setup the startup scripts.
<br> Copy the rpc.nfsd and rpc.nfsfs
from the knfsd-1.2.2a/etc area.
<br> [/etc/rc.d/init.d]# mv nfs
nfs.orig
<br> [/etc/rc.d/init.d]# mv nfsfs
nfsfs.orig
<br> [/etc/rc.d/init.d]# mv
knfsd-1.2.2a/etc/rc.nfsd
nfs
<br> [/etc/rc.d/init.d]# mv
knfsd-1.2.2a/etc/rc.nfsfs
nfsfs
<br> [/etc/rc.d/init.d]# chmod
755 nfs*
<p> Don't forget to export the filesystem,
via the /etc/exports file:
<br>
<br>Marv
<br>
<pre>--
Marv
Nachatelo
Tele : (978) 441-4366
Quickturn Design Systems, Inc. Fax : (978) 441-4301
One Executive
Drive
email : [EMAIL PROTECTED]
Chelmsford, MA 01824</pre>
</html>
==============8524E1AF55BFF698B7F6180E==
------------------------------
** 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
******************************