Linux-Development-Sys Digest #82, Volume #8 Wed, 16 Aug 00 18:13:09 EDT
Contents:
Re: Loading a driver during installation ("Jan Welti")
Linux Driver Tools (Amir Inbar)
Re: Testing multi-processor code ("Jon Plews")
Re: Testing multi-processor code (Bhavin Shah)
crash or adb? other kernel debug tools (Brian Horton)
Re: Kernel 2.4.0-test6!!!!! Anyone have any Problems? (Ronald Cole)
Re: Problem to load a kernel module (Naren Devaiah)
b Need Developers ("Scott A. Vigil")
Re: Kernel 2.4.0-test6!!!!! Anyone have any Problems? (Johan Kullstam)
Re: Kernel 2.4.0-test6 Compile and install module problem? (John Gluck)
Re: Problem to load a kernel module (Rick Ellis)
[OT] Killfiles (was Re: Kernel 2.4.0-test6!!!!! Anyone have any (Kevin Lacquement)
Re: Testing multi-processor code ([EMAIL PROTECTED])
Re: [OT] Killfiles (was Re: Kernel 2.4.0-test6!!!!! Anyone have any Problems?)
([EMAIL PROTECTED])
Pb with function msgrcv() (Christophe Leroy)
far pointers in g++ (David Lamparter)
Re: Kernel 2.4.0-test6!!!!! Anyone have any Problems? (Toby Haynes)
Re: far pointers in g++ (Byron A Jeff)
----------------------------------------------------------------------------
From: "Jan Welti" <[EMAIL PROTECTED]>
Subject: Re: Loading a driver during installation
Date: Wed, 16 Aug 2000 19:39:43 +0300
It's Ctrl+Alt+F2 and Ctrl+Alt+F7 to return.
I understand completely. Because it's a SCSI controller you need the driver
so that you can install it into your SCSI-discs.
--
The Rules Have Changed...Get Paid to Surf the Web!
http://www.alladvantage.com/go.asp?refid=IRU461
"Kasper Dupont" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> John Holmes wrote:
> >
> > I'm looking for a way to install a driver for a SCSI controller during
> > installation. This is driver under developement so the hardware I'm
> > trying to install onto doesn't have a driver built into the kernel.
> > What I would like is a command to use at the boot prompt at the
> > beginning of the install (or some other place if needed) to load the
> > driver. I'm using SuSE, Caldera and Red Hat with kernel 2.2.14 and
> > Turbo Linux with kernel 2.2.13. The driver is in RPM format. I've
> > looked through all the HOWTO pages and don't see anything that'll help.
> > Did I over look something in the boot parameters section?
> >
> > * Sent from RemarQ http://www.remarq.com The Internet's Discussion
Network *
> > The fastest and easiest way to search and participate in Usenet - Free!
>
> It might help to know why you cannot install the RPM
> package after completing the installation.
>
> Anyway, I have one hint, that might help:
> When using Red Hat's install program, there
> is a bash prompt on one of the VT's.
>
> Press Ctrl+Alt+Fx to activate the VT.
> (I don't rember which one of the
> F-keys you have to use.. Try.)
> Press Ctrl+Alt+F1 to return to install.
>
> It is not possible to load a module from the boot
> prompt, if the above does not work, you might need
> to use a modified version of the boot floppy.
>
> --
> Kasper Dupont
------------------------------
From: [EMAIL PROTECTED] (Amir Inbar)
Subject: Linux Driver Tools
Date: Wed, 16 Aug 2000 17:03:12 GMT
Hello Friends,
Visit jung.com for Linux great driver development tools, also read
this on their new product.
August 1st, 2000 (Jungo, Israel): Jungo announced today the release of
WinDriver and KernelDriver version 5.0 - the new generation of driver
development tools. Version 5.0 of Jungo development tools includes
major enhancements and features, among them a multi platform Wizard,
bringing a comprehensive driver development environment for Linux
driver developers, a new KernelDriver Wizard that generates code for a
complete kernel mode driver and remote hardware access tool.
Omer
------------------------------
From: "Jon Plews" <[EMAIL PROTECTED]>
Subject: Re: Testing multi-processor code
Date: Wed, 16 Aug 2000 17:20:26 +0100
Bhavin Shah wrote in message ...
>Hi,,
>
>I'm trying to test out 2 processors with a simple program in c++
>using pthreads. However, I'm still getting the same elapsed time
>for 1 and 2 processors when I run the executable "time ./executable".
>Is this program flawed with the joins? Or is there something simpler
>that would show me a difference in exec. times?
>
[ snip ]
> for (unsigned long i = 0; i < max; i++)
> for (unsigned long j = 0; j < max; j++);
These loops may be optimized out of existence. Declare
a volatile int and do an operation on it in the inner
loop:
volatile int volatile_counter;
void really_do_nothing (void * n)
{
for (unsigned long i = *(unsigned long*)n; i > 0; i--)
for (unsigned long j = *(unsigned long*)n; j > 0; j--)
volatile_counter++;
}
Jon Plews.
------------------------------
From: Bhavin Shah <[EMAIL PROTECTED]>
Subject: Re: Testing multi-processor code
Date: Wed, 16 Aug 2000 10:51:35 -0700
On Wed, 16 Aug 2000, Jon Plews wrote:
>
> Bhavin Shah wrote in message ...
> >Hi,,
> >
> >I'm trying to test out 2 processors with a simple program in c++
> >using pthreads. However, I'm still getting the same elapsed time
> >for 1 and 2 processors when I run the executable "time ./executable".
> >Is this program flawed with the joins? Or is there something simpler
> >that would show me a difference in exec. times?
> >
> [ snip ]
> > for (unsigned long i = 0; i < max; i++)
> > for (unsigned long j = 0; j < max; j++);
>
>
> These loops may be optimized out of existence. Declare
> a volatile int and do an operation on it in the inner
> loop:
>
> volatile int volatile_counter;
> void really_do_nothing (void * n)
> {
> for (unsigned long i = *(unsigned long*)n; i > 0; i--)
> for (unsigned long j = *(unsigned long*)n; j > 0; j--)
> volatile_counter++;
> }
Thanks, I tried, but am still getting the same elapsed times.
Is there anything else I could try?
Bhavin
------------------------------
From: Brian Horton <[EMAIL PROTECTED]>
Subject: crash or adb? other kernel debug tools
Date: Wed, 16 Aug 2000 10:58:34 -0500
What tools exist to debug linux kernel code, other than liberal
printk's? Is there a version of adb or crash for linux? I would prefer
to have something that doesn't cause me to rebuild the kernel (I'm just
building and installing my own device driver and kernel module), but
will consider anything!
thx.bri.
------------------------------
From: Ronald Cole <[EMAIL PROTECTED]>
Subject: Re: Kernel 2.4.0-test6!!!!! Anyone have any Problems?
Date: 16 Aug 2000 11:23:05 -0700
[EMAIL PROTECTED] (Jynx) writes:
> You need to understand that most experienced ng users (who I expect
> you'd like to engage with your problem) use killfile filters that
> plonk Subject:'s with 2 or more exclamation marks.
>
> Because I am _testing_ my killfile just now, that's why.....
That's just plain-old stupid. "real" gurus plonk people, not subjects.
--
Forte International, P.O. Box 1412, Ridgecrest, CA 93556-1412
Ronald Cole <[EMAIL PROTECTED]> Phone: (760) 499-9142
President, CEO Fax: (760) 499-9152
My GPG fingerprint: C3AF 4BE9 BEA6 F1C2 B084 4A88 8851 E6C8 69E3 B00B
------------------------------
From: Naren Devaiah <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.kernel,linux.dev.c-programming
Subject: Re: Problem to load a kernel module
Date: Wed, 16 Aug 2000 11:50:46 -0700
Reply-To: naren_at_cs.pdx.edu
Isn't there a line that needs to be there in the file
#define MODULE
or something similar before the includes?
-Naren
Mace Ga�l wrote:
> Hi,
>
> I'm currently developing a device driver under a kernel 2.2.13-7 mdk
> (Mandrake 6.1). The compilation seems to be ok, nevertheless the
> loading fails (insmod version 2.3.10-pre1). Below an example of what
> I tried. What is the mistake ?
>
> Thanks for your help
>
>
>
> #include <linux/config.h>
> #include <linux/module.h>
> #include <linux/kernel.h>
> #include <linux/version.h>
>
>
> int init_module(void) { printk("Hello !!!!!!\n"); return 0; }
> void cleanup_module(void) { printk("Bye !!!!!!\n"); return; }
>
> >>>> gcc -c hello.c -O2 -Wall -DMODULE
> hello.c: In function `init_module':
> hello.c:9: warning: implicit declaration of function `printk'
>
> Compilation finished at Wed Aug 16 17:55:49
>
> >>>>>> insmod hello.o
> hello.o: unresolved symbol printk
>
>
> --
> Ga�l MACE
>
> ===>> Speed can kill, use Windows <<==========
>
>
--
Opinions expressed are my own an no one else's!
(s/_at_/@/ to reply via email)
------------------------------
From: "Scott A. Vigil" <[EMAIL PROTECTED]>
Crossposted-To:
alt.computer.consultants.ads.norecruiters,comp.sys.handhelds,comp.unix.programmer
Subject: b Need Developers
Date: Wed, 16 Aug 2000 19:04:54 GMT
b
Hello Developers,
We have several consulting positions available for people interested in
helping our customers put databases in their embedded systems. If
you have experience in one or more of the following and can handle up
to 25% travel, we may be interested in you.
o embedded C or C++
o real-time operating systems
o file systems
o databases
Centura Solutions is a consulting firm which specializes in providing
solutions to users of database, connectivity and integrated development
products. We have implemented embedded solutions for companies such as
Lucent, Nortel and Hughes Networks. Centura has the stability of an
established company and the excitement of an internet startup.
If such a faced paced, performance oriented environment sounds good to
you, we may have your dream job. Send us your resume.
The opportunity is in Seattle. However, if you really think you're hot
stuff but must stay in California or on the East coast, send in your resume
anyways. We might be able to make a deal.
Send resume to [EMAIL PROTECTED] Please do _not_ hit <reply>.
Also, please do not post reply to news group.
Centura Solutions
1111 3rd Avenue, twenty-eighth floor
Seattle, WA 98101
http://www.centurasolutions.com/solutions/whatwedo.asp
http://www.centurasoft.com
------------------------------
Subject: Re: Kernel 2.4.0-test6!!!!! Anyone have any Problems?
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: 16 Aug 2000 15:09:39 -0400
Ronald Cole <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] (Jynx) writes:
> > You need to understand that most experienced ng users (who I expect
> > you'd like to engage with your problem) use killfile filters that
> > plonk Subject:'s with 2 or more exclamation marks.
> >
> > Because I am _testing_ my killfile just now, that's why.....
>
> That's just plain-old stupid. "real" gurus plonk people, not
> subjects.
real gurus use newsreaders which can *score* as opposed to just
killing. you assign a score to each post, sort based on the scoring
and kill-off scores which are below some threshold. this makes usenet
better for me. slrn and gnus use scoring. maybe others do too.
i score on a lot of things. some suggestions for low score
* subject consisting of the word "test".
* three dollar signs in subject ($$$) since make money fast sucks.
* kill anything cross-posted to two or more advocacy groups and avoid
those pointless flame fests.
* incrementally lower score based on number of cross posts and
exclaimation marks. (crossing to a few groups or one bang is ok. a
dozen crossposts and bangs usually indicates drivel.)
* postings whos subject end in a space followed by a four
digit number (these tend to be produced by spam software).
* very long posting in non-binary group.
* kill a particular thread in a particular newsgroup. this is based
on subject, but very specific.
boosting the score is also useful
* responses to my own posts
* posts made by people i have identified as clueful (kind of an
anti-kill)
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
sysengr
------------------------------
From: John Gluck <[EMAIL PROTECTED]>
Subject: Re: Kernel 2.4.0-test6 Compile and install module problem?
Date: Wed, 16 Aug 2000 15:10:24 -0400
I have a problem when it boots...
I noticed that the structure of the /lib/modules/ 2.4.0-test6 is changed from
the way it was in eariler kernels.
I suspect "make modules_install" is screwed up...
E-mu wrote:
> I have been testign all the kernels thus far with most pretty much the same
> configuration on the same PC laptop Dell Inspirion 7500.
>
> If I configure the Kernel to include "umsdos" I get a binry error at the end
> of the compilation and it bombs out. If I don't include "umsdos" the kernel
> does succesfully compile but when I install the modules which is just PCMCAI
> and SCSI, the SCSI module bombs out and I get a bunch of depmods at the end?
> The scsi module folder thus is not created.
>
> Now I say again this has not happend on any of the test hkernels thus far
> except 2.4.0-test6. I am runnign Red hat. Right now I am running
> 2.4.0-test5. And yes I compile new kernels generally under the originally
> instaled kernel that installs with Read HAt Linux 6.2 which I believe is
> 2.2.14-5.0.
>
> Could there be soem scripting errors in thsi particular Source of test6???
>
> Anyone see this happen to them??
--
John Gluck (Passport Kernel Design Group)
(613) 765-8392 ESN 395-8392
Unless otherwise stated, any opinions expressed here are strictly my own
and do not reflect any official position of Nortel Networks.
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Crossposted-To: linux.dev.kernel,linux.dev.c-programming
Subject: Re: Problem to load a kernel module
Date: 16 Aug 2000 20:20:02 GMT
In article <[EMAIL PROTECTED]>,
Naren Devaiah <naren_at_cs.pdx.edu> wrote:
>Isn't there a line that needs to be there in the file
>
>#define MODULE
>
>or something similar before the includes?
In my drivers I have:
#define MODULE
#define __KERNEL__
Before the includes of course.
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: Kevin Lacquement <[EMAIL PROTECTED]>
Subject: [OT] Killfiles (was Re: Kernel 2.4.0-test6!!!!! Anyone have any
Date: Wed, 16 Aug 2000 20:33:14 GMT
Johan Kullstam wrote:
> * postings whos subject end in a space followed by a four
> digit number (these tend to be produced by spam software).
I've always wondered about those. Why do they have those stupid
numbers?
Cheers,
Kevin
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Testing multi-processor code
Date: Wed, 16 Aug 2000 20:34:29 GMT
Bhavin Shah <[EMAIL PROTECTED]> wrote:
> Thanks, I tried, but am still getting the same elapsed times.
> Is there anything else I could try?
You could try a platform that actually implements posix threads. (See
the recent thread on shared pids). The problem is that time uses wait3
to get its numbers, but every "thread" in LinuxThreads is a process,
so you only get accounting information from the first one.
--
Matt Gauthier <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: [OT] Killfiles (was Re: Kernel 2.4.0-test6!!!!! Anyone have any
Problems?)
Date: Wed, 16 Aug 2000 20:56:39 GMT
Kevin Lacquement <[EMAIL PROTECTED]> wrote:
>> * postings whos subject end in a space followed by a four
>> digit number (these tend to be produced by spam software).
> I've always wondered about those. Why do they have those stupid
> numbers?
The numbers are an attempt to trick sites which drop duplicate
postings into accepting unlimited copies of the same spam. You'll also
see trailing garbage in some spam, to avoid checks based on the body
content.
--
Matt Gauthier <[EMAIL PROTECTED]>
------------------------------
From: Christophe Leroy <[EMAIL PROTECTED]>
Subject: Pb with function msgrcv()
Date: Wed, 16 Aug 2000 23:04:02 +0200
Hi,
I've got a problem with msgrcv() function:
sometimes it returns -1, but errno=0
Does anybody have an idea about what can happen to get such a result ?
Thanks
Christophe
------------------------------
From: David Lamparter <[EMAIL PROTECTED]>
Subject: far pointers in g++
Date: Wed, 16 Aug 2000 22:52:09 +0200
Hi!
Does anybody know how to code far pointers in g++ / c++ / another c++ under
Linux? I tried many variants but it don't want to go... I don't want to use
assembler. It's too _low_ for me.
David, [EMAIL PROTECTED] , Germany
SuSE Linux 6.1.1-2, Kernel 2.2.7
P.S.: Please don't ask me for what I need the far pointer. It's a _little_ bit
secret.
------------------------------
From: Toby Haynes <[EMAIL PROTECTED]>
Subject: Re: Kernel 2.4.0-test6!!!!! Anyone have any Problems?
Date: 16 Aug 2000 16:58:20 -0400
!! "Ronald" == Ronald Cole <[EMAIL PROTECTED]> writes:
Ronald> [EMAIL PROTECTED] (Jynx) writes:
>> You need to understand that most experienced ng users (who I expect you'd
>> like to engage with your problem) use killfile filters that plonk
>> Subject:'s with 2 or more exclamation marks.
>>
>> Because I am _testing_ my killfile just now, that's why.....
Ronald> That's just plain-old stupid. "real" gurus plonk people, not
Ronald> subjects.
Up to a point - it's difficult to filter out spammers whose email addresses end
up looking like "[EMAIL PROTECTED]" just using people alone. Thankfully
subject filtering on 'Make money fast' with case insensitive fuzzy matching
gets a lots of stupid posts. But rather than kill everything, I use Gnus
scoring to 'shade' messages according to likely relevance. Massive cross
posting gets major blatting, just to three newsgroups gets a minor
demotion. Lots of '$' signs gets a moderate demotion. All caps gets demoted a
little - lots of newbies still insist on posting messages like 'HELP!!!!!'
which doesn't help me design a more aggressive policy. I have filters which
look for messages which end in random numbers of more than four digits, as
those posts are often spammers trying to beat the spambots looking for
identical titles. And of course I promote the messages from people who have
helped me in the past, who provide good advice or are generally polite and
thoughtful in their postings. So even if someone whose postings I want to see
posts "MAKE MONEY FATS" (sic) their message will still appear, but somewhat
lower than usual. And finally there are different promotion and demotion rules
for different newsgroups, often based on subject heading - for example in a
'redhat.*' newsgroup there is no point matching on subjects with 'linux' in
the title, but it is more relevant in, say, sci.image.processing if you are
looking for help with Linux image processing problems.
Cheers,
Toby Haynes
P.S. I'm not posing as a Guru here - but I've hung around on Usenet for the
last 9 years and I consider myself a regular by now :-)
--
Toby Haynes
The views and opinions expressed in this message are my own, and do
not necessarily reflect those of IBM Canada.
------------------------------
From: [EMAIL PROTECTED] (Byron A Jeff)
Subject: Re: far pointers in g++
Date: 16 Aug 2000 17:25:28 -0400
In article <[EMAIL PROTECTED]>,
David Lamparter <[EMAIL PROTECTED]> wrote:
-Hi!
-
-Does anybody know how to code far pointers in g++ / c++ / another c++ under
-Linux? I tried many variants but it don't want to go... I don't want to use
-assembler. It's too _low_ for me.
-
-David, [EMAIL PROTECTED] , Germany
-
-SuSE Linux 6.1.1-2, Kernel 2.2.7
-
-P.S.: Please don't ask me for what I need the far pointer. It's a _little_ bit
-secret.
-
You'll probably have to tell us anyway. See in a flat memory model there
is no such thing as a fax pointer. Linux uses a flat memory model.
BAJ
------------------------------
** 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
******************************