Linux-Development-Sys Digest #266, Volume #8 Thu, 9 Nov 00 01:13:12 EST
Contents:
Re: Software RAID ("Giampaolo Tomassoni")
Re: writing a module for the kernel ([EMAIL PROTECTED])
Re: How to catch stdout of an application ? (Erik Hensema)
Re: Software RAID ("Jason from The Workshop")
Re: syslog() in kernel module (Jeff Andre)
Re: mmap() vs. lseek() on /dev/mem (Jeff Andre)
JOB: Sr. Embedded Software Designer/Developer- California PreIPO ("Dee Dee Dial")
Re: Most popular Linux development environment(s)? Graphical? ("Charles Doty")
Re: Software RAID (Peter)
help with kernel stats/page faults needed ([EMAIL PROTECTED])
Re: non-portable port (T)
What C++ compiler to use for dev if you don't want to give away source for your
program? (David Ball)
Re: What C++ compiler to use for dev if you don't want to give away source for your
program? ([EMAIL PROTECTED])
Kernel module to send ethernet frame ?? (William Huang)
Re: What C++ compiler to use for dev if you don't want to give away ("D. Stimits")
Re: Normal file access in a kernel module ([EMAIL PROTECTED])
Re: DVD-RAM support in Linux for reading/writing data (Peter Pointner)
Re: What C++ compiler to use for dev if you don't want to give away source for your
program? (Kaz Kylheku)
----------------------------------------------------------------------------
From: "Giampaolo Tomassoni" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,alt.linux,comp.os.linux.misc
Subject: Re: Software RAID
Date: Wed, 08 Nov 2000 22:11:05 GMT
"U. Siegel" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]...
> Hi folks,
> anybody out there having experience with Software-RAID?
I have few software Raid1 installations. No Raid0 nor Raid5, 'cause they
don't seem so usefull to me.
One installation has been in heavy use by more than a year, others by many
months. Still no problem (shouldn't say this?).
However, the RAID modules shipping with the kernel seem unable to correctly
handle LinuxRaid partitions (those with 0xFD type), nor background
reconstruction, so one would need complex initrd scripts to get the system
up and running.
Luckly enough, I found a raid0/1/4/5 patch (probably by Ingo Molnar and Gadi
Oxman) adding support of those nice things to 2.2.11 and, with few
adjustments, to the latest 2.2.x kernels.
You may identify the kind of raid modules you are using by looking for the
entry dev/md/speed-limit in /proc: the modules I use do create it, while the
2.0 and 2.2 native ones don't.
I'm quite happy with the software Raid1 modules I'm using, but the lack of
native support and the fact that there is actually no Linux distribution (to
my knowledge) that lets initialize a Raid1 device and there install the OS,
makes me spend a lot of time everytime I have to install a new system.
By the way, does anybody know why the 2.2.x kernels still doesn't support
Molnar & Oxman software raid modules?
--
======================================================
Giampaolo Tomassoni Information Systems Consultant
P.za 8 Aprile 1948, 4 Tel/Fax: +39-0578-21100
I-53044 Chiusi (SI) e-mail: [EMAIL PROTECTED]
ITALY
homepage: http://www.geocities.com/Eureka/Park/2209/
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: writing a module for the kernel
Date: Wed, 08 Nov 2000 22:15:57 -0000
In article <8uc4u1$1ad$[EMAIL PROTECTED]>, mamyx <[EMAIL PROTECTED]> wrote:
>yes the IPC functions are easy to use (I m not a GURU yet) , they meet my
>requirements (parameters, error codes...) .(port of a driver from another
>OS )
>can I use them ?
In a kernel module? Like I said, why? Use the kernel functions that
give you what you need.
--
http://www.spinics.net/linux
------------------------------
From: [EMAIL PROTECTED] (Erik Hensema)
Subject: Re: How to catch stdout of an application ?
Date: Wed, 8 Nov 2000 17:01:44 +0100
Reply-To: [EMAIL PROTECTED]
denis martinez ([EMAIL PROTECTED]) wrote:
>denis martinez a �crit :
>> I have an application wich display messages warning/status using
>> stdout. This application is lunched in background when i start up my
>> linux
>is "launched" of course !! (excuse my bad english)
Only persons who are really bored care about that...
>> system, so the messages are not visible for me when i log in a new
>> cession. I there any way , to "catch/get" all this messages from a
>> new cession ?. I know of course the process id of my application, and
>> i use only stdout to print my messages.
The answer to your questing is: generally no. Just start your application
with a redirection to a file:
foo > /tmp/foo.out &
While the application is running, view the messages by executing
tail -f /var/foo.out
Another possibility may be the use of 'screen'. I've never tried this
program, but from what I've heard, this may be what you're looking for.
Simply search freshmeat.net for screen.
--
Erik Hensema ([EMAIL PROTECTED])
This signature is generated by siggen.pl v0.1
Available soon at http://www.xs4all.nl/~hensema
------------------------------
From: "Jason from The Workshop" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,alt.linux,comp.os.linux.misc
Subject: Re: Software RAID
Date: Wed, 8 Nov 2000 16:42:10 -0600
redhat 6.2 lets you install on a software RAID partition. Redhat 6.1 does
also now that I think of it and even has a nice GUI frontend to create the
partition. Its what I have been using for some time now, not that raidtab
is hard, but it sure beats installing, creating the array and then
migrating.
--
Jason
www.cyborgworkshop.com
...and the geek shall inherit the earth...
------------------------------
From: [EMAIL PROTECTED] (Jeff Andre)
Subject: Re: syslog() in kernel module
Date: 8 Nov 2000 23:08:33 GMT
[EMAIL PROTECTED] wrote:
: How can I use syslog in the kernel module?
: The followinng piece of code: syslog(3,message,strlen(message));
: seems to has no effect... What's wrong?
System calls in kernel space isn't usually (ever?) what you
really want to do. Why not use printk().
--
Jeff
------------------------------
From: [EMAIL PROTECTED] (Jeff Andre)
Crossposted-To: comp.os.linux.misc
Subject: Re: mmap() vs. lseek() on /dev/mem
Date: 8 Nov 2000 23:17:15 GMT
Gary Parnes ([EMAIL PROTECTED]) wrote:
: Okay, I don't know what subtlety I'm missing here...
: I'm trying to access kernel memory from user space. A simple way to
: access kernel RAM is, of course, using lseek() on /dev/mem as root.
: lseek'ing lets me browse the virtual memory space on an x86 box (from
: 0xC0000000 up to end of RAM) quite nicely. But if I want to browse the
: memory mapped portions of a PCI peripheral, I end up having to use
: mmap() with the physical bus address of the PCI peripheral.
: What I'm looking for is a common way to access both kernel RAM and PCI
: memory space. The lseek technique doesn't seem to work in the PCI
: memory space, and the mmap() technique doesn't seem to work in kernel
: RAM space. I've tried playing with all sorts of permutations, but
: nothing seems to work.
: Why am I encountering problems?
What problems are you having? As a debugging tool I'm about to write
a read/llseek interface to a PCI's memory.
--
Jeff Andre
------------------------------
From: "Dee Dee Dial" <[EMAIL PROTECTED]>
Subject: JOB: Sr. Embedded Software Designer/Developer- California PreIPO
Date: Wed, 8 Nov 2000 17:26:35 -0600
Fast growing, Pre-IPO in California that offers lead-edge intelligent
controllers and configuration management software for designing and building
standards-based servers and storage area networks seeks Sr. Embedded Systems
Designer/Developer to join its growing team of talented engineers. Our
client is pioneering new technology in this area and seeks an individuals
with experience designing and developing embedded software for network
switches and/or routing protocols within LINUX, UNIX or NT environments. The
ideal candidate will have additional experience with Fibre Channel Software
Design and/or device driver/kernels internal development experience.
As a principal team member, this individual will be responsible for embedded
systems design specification with interface definition of new generation
products and will perform custom development of intelligent controllers for
Fibre Channel Upper Level Protocols.
This is a VERY HOT pre-IPO in California and they have substantial Venture
Capital and Strategic Investor funding along with a top knotch executive
team that come out of leading companies in Storage Management and Network
related technologies. This position is HIGHLY visible and important to the
organization and will be key in designing new generation products. Our
client offers the perfect mixture of cutting edge technology, a fast-paced,
fun and team-oriented work environment with tremendous growth potential. The
opportunity offers a highly competitive compensation, benefits and equity
package along with relocation assistance.
Interested individuals can confidentially email your resume to:
Dee Dee Dial, Executive/Technology Recruiter
Pedley-Richard & Assoc.
512.418.3260
Email: [EMAIL PROTECTED]
** Other opportunities in ASIC Design Engineering and Diagnistics
Engineering.
------------------------------
From: "Charles Doty" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Most popular Linux development environment(s)? Graphical?
Date: Wed, 8 Nov 2000 16:54:14 -0700
> I'm thinking of switching from mac to Linux. If I did, what programming
> setup would I likely find myself using? Gnu? Is there anything with a
> graphical interface, esp. for the debugger, as in Codewarrior, where you
> see a window containg your code and you can clearly mark breakpoints and
> follow the program counter steping through your code? With windows for
> variables, stack tracing, etc.?
I just started using KDevelop (1.2), and am very happy with it. I've
programmed under Codewarrior, and MSDev environments. KDevelop is very close
to these..
You're also not limited to KDE applications. And, yep the debugger in
integrated into the IDE..
Switching to KDevelop was a lot like switching from MSDev 4.x to MSDev
5.0(6.0)
Once KDevelop has searchable documentation for X Windows, it'll be an
excellent environment.
--
* Kokopeli:
* ...when he left, the crops were plentiful and all the women were pregnant.
------------------------------
From: Peter <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,alt.linux,comp.os.linux.misc
Subject: Re: Software RAID
Date: Thu, 09 Nov 2000 00:16:44 GMT
On Wed, 08 Nov 2000 18:17:53 GMT, "William Fong" <[EMAIL PROTECTED]>
wrote:
>Those cards are not really true hardware RAID devices. The only true EIDE
>hardware RAID is from Adaptec. Those are in the $200 range.
>
>-will
What do you define as "true" hardware RAID?
I tested the Promise IDE RAID card and it preformed RAID 1 without
operating system intervention. It does all the management and copying.
You can pull out a drive and start running again without intervention.
You can use it for any partition, including the boot partition, for
any operating system. It makes an IDE RAID array look like a SCSI
disk.
I do not know what the other brands of IDE RAID do.
------------------------------
From: [EMAIL PROTECTED]
Subject: help with kernel stats/page faults needed
Date: Thu, 09 Nov 2000 01:47:55 GMT
I'm relatively new to Linux, would appreciate it if someone could help
me out a bit. Is there a function, or some groups of functions that
keep statistics of kernel operation? I was told there is by a co-
worker, but she can't remember what it is and I haven't been able to
find anything. Basically, I need to find it, and find the page faults
and other related numbers for my system. Thanks in advance.
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: T <[EMAIL PROTECTED]>
Subject: Re: non-portable port
Date: Wed, 08 Nov 2000 18:17:49 -0800
Thanks for the tip re: newt and slang. I'm looking into slang now.
I've just read Mr. Davis' web page and some docs. Gotten shsl
installed but don't know how slow it will be just yet.
My project is a crude programming language, a dos spinoff I did of
Apple ][ graphics, lo res. It's for pre-algebra kids (those who don't
get the concept of variables, or at least, haven't yet.) It works very
well in a school lab setting and the teachers asked if I'd update it
and maybe add some animation potential.
On Wed, 8 Nov 2000 05:19:34 GMT, John Hasler <[EMAIL PROTECTED]> wrote:
>derlehrer writes:
>> Are there any viable approaches (other than give it up:~) and stuff like
>> curses?
>
>Depending on what you need to do you might find newt or slang useful.
------------------------------
From: David Ball <[EMAIL PROTECTED]>
Subject: What C++ compiler to use for dev if you don't want to give away source for
your program?
Date: Wed, 08 Nov 2000 18:26:37 -0800
Reply-To: David Ball <[EMAIL PROTECTED]>
I'm looking to develop some small shareware programs for Linux, but I
don't want to have to give out my source code. What C++ compiler can I
use? It looks like gcc forces me to release everything under GNU GPL.
Is that correct?
Thanks,
-- David Ball
=====================================================
David Ball [EMAIL PROTECTED]
http://www.booksnbytes.com/ (over 2400 author pages)
Book Release Schedule http://www.booksnbytes.com/pubdate/index.html
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: What C++ compiler to use for dev if you don't want to give away source
for your program?
Date: Thu, 09 Nov 2000 03:19:53 GMT
David Ball <[EMAIL PROTECTED]> writes:
> I'm looking to develop some small shareware programs for Linux, but I
> don't want to have to give out my source code. What C++ compiler can I
> use? It looks like gcc forces me to release everything under GNU GPL.
> Is that correct?
It _looks_ no such thing. If you customize GCC _itself_, then those
changes _to the compiler_ must be released under the GPL.
In contrast your own code is yours; the fact that GCC transforms it
into object code does _nothing_ to assert copyright over your code.
--
(concatenate 'string "cbbrowne" "@hex.net") <http://www.ntlug.org/~cbbrowne/>
"We're thinking about upgrading from SunOS 4.1.1 to SunOS 3.5."
-- Henry Spencer
------------------------------
From: William Huang <[EMAIL PROTECTED]>
Subject: Kernel module to send ethernet frame ??
Date: 9 Nov 2000 03:40:24 GMT
I am a newbie to kernel module programming, I want to write a kernel module to
send ethernet frames. My question is that how do I create a raw socket and open a file
in the kernel module ? Where can I find any example source code ??
thanks :)
------------------------------
Date: Wed, 08 Nov 2000 21:23:20 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: What C++ compiler to use for dev if you don't want to give away
David Ball wrote:
>
> I'm looking to develop some small shareware programs for Linux, but I
> don't want to have to give out my source code. What C++ compiler can I
> use? It looks like gcc forces me to release everything under GNU GPL.
> Is that correct?
I could be way off base, so take this with the proverbial grain of salt.
If you statically bind libraries that are GNU into your project, then
you have to also follow the GNU licensing. Selling the compiler or
requiring the compiler in your software would cause you to be bound to
GNU licensing. Compiling your own source code, with purely dynamic
linking of libraries that may be GNU, should enable you to sell your
software without open sourcing it.
>
> Thanks,
>
> -- David Ball
>
> -----------------------------------------------------
> David Ball [EMAIL PROTECTED]
> http://www.booksnbytes.com/ (over 2400 author pages)
> Book Release Schedule http://www.booksnbytes.com/pubdate/index.html
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Normal file access in a kernel module
Date: Thu, 09 Nov 2000 04:48:10 GMT
[EMAIL PROTECTED] writes:
> I'm creating a kernel module for kernel version 2.2.16-22 Red Hat 7.0.
>
> I want to access a normal file in the function "init_module" I know
> the functions fopen, fprintf aren't available is there some
> alternative.
See:
<"http://www.uwsg.indiana.edu/hypermail/linux/kernel/0005.3/0061.html">
Open file in kernel Mode...</Ulink>
With the notable quote:
The kernel is the thing that translates physical I/O to logical
I/O. Attempting to perform logical I/O in the kernel is
effectively going backwards.
The whole point of the kernel is to translate physical I/O into a
logical form; you start with devices, blocks, and such, and the kernel
translates this into filesystems, streams, and filenames.
-> If your kernel module needs to receive data, then you should set up
some virtual device, perhaps on /proc, to accept the data.
-> If the module needs to output data, then you should set up a
virtual device of some sort to export the data.
-> If the nature of the requirement is that you need to have a
"process" that will read and write data, then it should be set up
as a process in userspace.
Those are the major possibilities.
--
(concatenate 'string "cbbrowne" "@hex.net") <http://www.ntlug.org/~cbbrowne/>
(THASSERT (PLANNER RG))
-- Example of HACKER statement.
------------------------------
From: Peter Pointner <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: DVD-RAM support in Linux for reading/writing data
Date: 8 Nov 2000 22:09:52 +0100
In comp.os.linux.development.system Blaise Canzian <[EMAIL PROTECTED]> wrote:
> Is there support in Linux for reading and writing data (not movies,
> music, etc.) to DVD-RAM? Is this kernel support? If not, are there
> development/beta versions of Linux that incorporate or plan this
> support? Is the support harware specific (Sony, Hitachi, Panasonic, etc)?
> Thanks.
Kernel 2.2.16 supports at least SCSI-DVD-RAMs using the SCSI-CDROM driver.
(e. g. /dev/sr0). The only problem I noticed was that it doesn't honour
the write protect switch of the medium. Of course the drive does, so you
get SCSI errors instead of an automatic read only mount.
[I disregarded your f'up to poster because more people might be interested.
If you intend to post a summary you should have said so.]
Peter
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: What C++ compiler to use for dev if you don't want to give away source
for your program?
Reply-To: [EMAIL PROTECTED]
Date: Thu, 09 Nov 2000 05:49:21 GMT
On Wed, 08 Nov 2000 21:23:20 -0700, D. Stimits <[EMAIL PROTECTED]> wrote:
>David Ball wrote:
>>
>> I'm looking to develop some small shareware programs for Linux, but I
>> don't want to have to give out my source code. What C++ compiler can I
>> use? It looks like gcc forces me to release everything under GNU GPL.
>> Is that correct?
>
>I could be way off base, so take this with the proverbial grain of salt.
>
>If you statically bind libraries that are GNU into your project, then
>you have to also follow the GNU licensing.
Surely there is some exceptions for linking in run-time support provided by
libgcc.a.
------------------------------
** 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
******************************