Linux-Development-Sys Digest #6, Volume #8 Mon, 10 Jul 00 07:13:07 EDT
Contents:
Fixing framebuffer colormap (Tony Houghton)
Re: Embedded linux problem? ([EMAIL PROTECTED])
Linux, freeBSD, open BSD, netBSD? ("Senol Yilmaz")
Re: is there a port to windows media player? (Lee Mahan)
Threads in kernel modules ("Sake")
Microsoft's new ".NET" (RealCea)
Re: CHILD_MAX: can't limit the number of processes per real UID ("Ross Crawford")
Re: Embedded Linux Problem ? ("Sake")
Re: Microsoft's new ".NET" (Kaz Kylheku)
Sockets in kernel module ("Sake")
Re: Microsoft's new ".NET" (Alexander Viro)
What's the newest Vortex 2 (8830) Sound Card Driver? ("Glenn Merkel")
Re: Linux, freeBSD, open BSD, netBSD? ("Gerald Waugh")
Re: Design of A low end Net aware device with 1E + 1S interfaces ("Gerald Waugh")
Re: Design of A low end Net aware device with 1E + 1S interfaces (David A. Lethe)
Re: Design of A low end Net aware device with 1E + 1S interfaces (Pete Zaitcev)
Re: Good Basic compiler for linux? (Michael Meissner)
C++ linking ([EMAIL PROTECTED])
Re: Linux, freeBSD, open BSD, netBSD? (Mark Hahn)
Re: Ethertap Devices (Tim Godfrey)
I/O programming problem ("Chun Seong Ng")
File Systems crash recovery ? (VanGross)
----------------------------------------------------------------------------
From: {tony}@realh.co.uk (Tony Houghton)
Subject: Fixing framebuffer colormap
Date: 9 Jul 2000 13:03:36 GMT
Reply-To: Tony Houghton <[EMAIL PROTECTED]>
I want to change the framebuffer colormap so that I can set a very deep
background colour to my consoles for everyday use. I find the usual
black makes it a bit too stark for comfort, and just a very slight tinge
eases it a bit.
I nosed around the relevant part of the kernel source and a program
someone sent me to "fix" resolution settings for all virtual consoles
when using an ATI card (although I'm now using a Matrox G200). I came up
with this at the heart of it (error checking snipped for brevity):
cmap.start = STARTCOLOUR;
cmap.len = NUMCOLOURS;
cmap.red = malloc(NUMCOLOURS * sizeof(__u16));
cmap.green = malloc(NUMCOLOURS * sizeof(__u16));
cmap.blue = malloc(NUMCOLOURS * sizeof(__u16));
cmap.transp = 0;
fh = open(FBDEVICE, O_RDONLY);
ioctl(fh, FBIOGETCMAP, &cmap);
cmap.red[0] = (__u16) red;
cmap.green[0] = (__u16) green;
cmap.blue[0] = (__u16) blue;
ioctl(fh, FBIOPUTCMAP, &cmap);
This works, but the colours aren't "fixed", ie when I change to a
different virtual console, and even then come back to the original one,
it goes back to black. I tried a couple of ways to make the change
permanent:
ioctl(fh, FBIOGET_VSCREENINFO, &var);
/*var.activate = FB_CHANGE_CMAP_VBL;*/
var.activate = FB_ACTIVATE_NOW;
ioctl(fh, FBIOPUT_VSCREENINFO, &var);
IIRC, FB_CHANGE_CMAP_VBL doesn't make any difference, FB_ACTIVATE_NOW
stops it from working altogether.
Does anyone know how I can get the colormap to be preserved?
--
TH * http://www.realh.co.uk
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Embedded linux problem?
Crossposted-To:
comp.arch.embedded,comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux.portable,comp.unix.programmer
Date: Sun, 09 Jul 2000 16:15:02 GMT
NTUST <[EMAIL PROTECTED]> wrote:
> 4.porting NAT(network address translator) to embedded.
I don't know that much about embedded Linux, but the Linux kernel already
has NAT as a part of the TCP/IP stack, in the form of IP masquerading. If
that has been left intact in embedded Linux, then it's just a matter of
configuration (ipfwadm or ipchains, depending on the kernel version).
--
======================================================================
Brian Smith // [EMAIL PROTECTED] // http://www.arthurian.nu/
Software Developer // Gamer // Webmaster // System Administrator
Seminars, n.: From "semi" and "arse", hence, any half-assed discussion.
------------------------------
From: "Senol Yilmaz" <senol79@(NO SPAM)yahoo.com>
Subject: Linux, freeBSD, open BSD, netBSD?
Date: Sun, 9 Jul 2000 18:34:28 +0300
Which one is the best for a free web space and email site or another heavy
load system?
------------------------------
From: [EMAIL PROTECTED] (Lee Mahan)
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.x
Subject: Re: is there a port to windows media player?
Reply-To: [EMAIL PROTECTED]
Date: Sun, 09 Jul 2000 20:50:13 GMT
How did you guess? <g >
On Sat, 08 Jul 2000 19:17:09 GMT, [EMAIL PROTECTED] (C.J.) wrote:
>In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>(Mike Frisch) wrote:
>>On Sat, 08 Jul 2000 18:14:19 GMT, C.J. <[EMAIL PROTECTED]> wrote:
>>>Why? The sound quality of .asp sucks seriously.
>>
>>Perhaps, but there are plenty of .asp only sources on the net. My local
>>radio station only supports Windows Media Player which leaves me high and
>>dry in Linux.
>
>Yeah, I have to conceed on that one. My favorite local radio station also
>only uses .asp format. Wonder why so many ppl are using .asp when the sound
>quality is so poor. Is MS giving the .asp server away with IIS now too?
Lee
Technology Consultant
Design West
*Any unsolicited email sent to this address will be
dealt with under Washington state law and federal
guidelines.*
------------------------------
From: "Sake" <[EMAIL PROTECTED]>
Subject: Threads in kernel modules
Date: Sun, 9 Jul 2000 18:01:03 -0400
Hi,
I'm new to the kernel modules. I want to write a module (or device driver)
that
needs to have two threads of controls. I don't know what kernel routines are
available
for this purpose and how I can do the mutex like inter-locking in kernel
module.
I would appreciate e-mail response to [EMAIL PROTECTED]
Thanks in advance
------------------------------
From: [EMAIL PROTECTED] (RealCea)
Subject: Microsoft's new ".NET"
Date: 09 Jul 2000 22:18:20 GMT
Might as well put Microsoft on your right hand or forehead.
I cannot believe those guys. Did you know that Microsoft's ".NET" project is
nearly identical to a Netscape project in 1995 that was never finished
(probably due to Microsoft) called Costellation. Back then they were just
developing Windows 98. They are just a bunch of "has beens". Shove everyone in
the market around and steal other peoples ideas. Isn't that the worst type of
monopoly this country has ever seen? Innovation my ASS!! Whats up with the
crappy BIOs/IRQ architecture? You'd think they would develop something beyond
1970 technology there. All I see is a lucky man who got his OS (MS-DOS) on all
of IBM's PC's. And that was not even developed by him!!!
P.S. Internet Explorer was originally developed by Spry, Inc.
------------------------------
From: "Ross Crawford" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.misc
Subject: Re: CHILD_MAX: can't limit the number of processes per real UID
Date: Mon, 10 Jul 2000 07:54:20 +1000
Olivier ROBERT <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Dear usenet readers!
>
> I need to limit the maximum number of processes per real user id on
> my server, I thought it had to be done by modifying
> /usr/include/linux/limits.h, and changing the following line:
>
> #define CHILD_MAX 999 /* no limit :-) */
>
> to this one:
>
> #define CHILD_MAX 64 /* limited now! :p */
>
> and then recompiling the kernel...
> That's what I did, I installed it, LILOed it, and rebooted the
> machine, but a getconf CHILD_MAX still returns a value of 999! I suppose
> there's something to do I didn't do, but what?
> I have a 2.2.16 kernel (with a Slackware distribution)...
>
Did you make clean before recompiling?
ROSCO
------------------------------
From: "Sake" <[EMAIL PROTECTED]>
Subject: Re: Embedded Linux Problem ?
Date: Sun, 9 Jul 2000 20:01:30 -0400
There is a "linux router project" in public domain
NTUST <[EMAIL PROTECTED]> wrote in message
news:8k987u$esv$[EMAIL PROTECTED]...
> hello everbody
>
> I have got a project about enbedded Linux recently.
> It's a thin router which is based on Embedded Linux.
> I confused to how to do that.
> Because I don't have any experience to embed Linux.
> So...I wanna get some help or suggestion.
> Therefore , I list some objectives.
>
> Objectives:
> Based on the evaluation board of VIA-6509 with IDE interface,
> build thin router software components.
>
> As a result,I hope someone can resolve my problem.
> thanks a lot ^.^
>
> by daniel
>
>
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Microsoft's new ".NET"
Reply-To: [EMAIL PROTECTED]
Date: Sun, 09 Jul 2000 23:59:37 GMT
On 09 Jul 2000 22:18:20 GMT, RealCea <[EMAIL PROTECTED]> wrote:
>P.S. Internet Explorer was originally developed by Spry, Inc.
I believe that Internet Explorer was derived from a browser produced
by Spyglass Software. That browser, in turn was based on Mosaic.
So IE is another example of proprietizing free software.
--
#exclude <windows.h>
------------------------------
From: "Sake" <[EMAIL PROTECTED]>
Subject: Sockets in kernel module
Date: Sun, 9 Jul 2000 20:04:19 -0400
Hi there,
What are the set of routines can be used to do socket operations from within
a kernel module or a device driver.
Thanks a lot for any hints | examples, please reply to [EMAIL PROTECTED]
if possible
------------------------------
From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: Microsoft's new ".NET"
Date: 9 Jul 2000 20:28:29 -0400
In article <[EMAIL PROTECTED]>,
RealCea <[EMAIL PROTECTED]> wrote:
>Might as well put Microsoft on your right hand or forehead.
>
>I cannot believe those guys. Did you know that Microsoft's ".NET" project is
>nearly identical to a Netscape project in 1995 that was never finished
>(probably due to Microsoft) called Costellation. Back then they were just
>developing Windows 98. They are just a bunch of "has beens". Shove everyone in
>the market around and steal other peoples ideas. Isn't that the worst type of
>monopoly this country has ever seen? Innovation my ASS!! Whats up with the
>crappy BIOs/IRQ architecture? You'd think they would develop something beyond
>1970 technology there. All I see is a lucky man who got his OS (MS-DOS) on all
>of IBM's PC's. And that was not even developed by him!!!
>
>P.S. Internet Explorer was originally developed by Spry, Inc.
WTF does it have to Linux system development?
--
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid. Get yourself a better computer" - Dilbert.
------------------------------
From: "Glenn Merkel" <[EMAIL PROTECTED]>
Subject: What's the newest Vortex 2 (8830) Sound Card Driver?
Date: Mon, 10 Jul 2000 01:19:16 GMT
Just installed Mandrake Linux 7.1 on my Dual Celeron 366 MHz BP6 system. My
USB keyboard and mouse, UDMA/66 hard drive, and network cards seemed to
install fine. I've got a lot of unix remembering to do. =)
However, the Vortex 2 sound card (Xitel Storm Platinum) isn't running. I
found a driver on the Vortex of Sound web site. It's dated Feb. 16th, 2000.
Is this the best sound card driver to try?
Any info. is appreciated!
Glenn Merkel
------------------------------
From: "Gerald Waugh" <[EMAIL PROTECTED]>
Subject: Re: Linux, freeBSD, open BSD, netBSD?
Date: Sun, 9 Jul 2000 21:19:59 -0400
Senol Yilmaz <senol79@(NO SPAM)yahoo.com> wrote in message
news:[EMAIL PROTECTED]...
> Which one is the best for a free web space and email site or another heavy
> load system?
>
netBSD
------------------------------
From: "Gerald Waugh" <[EMAIL PROTECTED]>
Subject: Re: Design of A low end Net aware device with 1E + 1S interfaces
Date: Sun, 9 Jul 2000 21:24:52 -0400
> 5. 68K based microcontroller.
look at the uCsimm from http://rt-control.com
Uses a 68EZ328? same as the palm pilot!
------------------------------
From: [EMAIL PROTECTED] (David A. Lethe)
Subject: Re: Design of A low end Net aware device with 1E + 1S interfaces
Date: Mon, 10 Jul 2000 02:21:11 GMT
On Sun, 09 Jul 2000 01:19:52 -0700, Vivek Kumar <[EMAIL PROTECTED]>
wrote:
>Hi,
>
>I am planning to implement a low end Net aware device. The device will only have
>1 serial and 1 ethernet interface. I plan to use CS8900A as my ethernet
>controller. But I am still not sure about
>what processor to use. The criteria for choosing the processor is the lowest
>cost of the end product
>I plan to Use an embedded Linux for the project
>
>I am basically 4 processors
>
>1. 8051 (not sure if it could handle the ethernet interface)
>2. ARM based system-on-chips (from intel/cirrus)
>3. x86 based systems.
>4. low end MIPS (available from IDT, NEC)
>5. 68K based microcontroller.
>
>It would be great if anybody who has worked/evaluated the above microcontroller
>and give your feedback on the bases of
>a - Cost of the cost of microcontroller. (which vendor)
>b - ease of design. Would definitely help if some design is already available
>in the open source community.
>c - which flavor of linux will be best suited
>d - any other important criteria I am missed
A) Cost is a function of quantity! Since you didn't post forecasts,
then you won't get costs, regardless of what chip you go with. Also,
you have to factor in the cost of the support chips, which will be
more than the price of the microprocessor.
B) Ease-of-design? You haven't stated what you are trying to design,
so how do you expect off-the-shelf solutions.
C) It remains to be determined if LINUX is the correct O/S for the
job. Have you considered ASICs or DSPs? Both may cost less in the
long run.
D) No insult meant, but by the nature of these questions, you aren't
ready to start asking for available designs, or even LINUX flavor
information. You haven't discussed quantities, but expect to know
pricing. You don't have a hardware design, which means you also don't
know power requirements, potential FCC certification issues,
reliability, and so on.
If it was me, I wouldn't worry about software now, and get somebody on
the team which can help with physical component design. Maybe talk to
a company that you can farm this out to.
Good Luck
David
------------------------------
From: [EMAIL PROTECTED] (Pete Zaitcev)
Subject: Re: Design of A low end Net aware device with 1E + 1S interfaces
Date: Mon, 10 Jul 2000 02:30:56 GMT
> I am planning to implement a low end Net aware device.
> The device will only have 1 serial and 1 ethernet interface.
> I plan to use CS8900A as my ethernet
> controller. But I am still not sure about
> what processor to use. The criteria for choosing the processor is the lowest
> cost of the end product
> I plan to Use an embedded Linux for the project
>
> I am basically 4 processors
>
> 1. 8051 (not sure if it could handle the ethernet interface)
> 2. ARM based system-on-chips (from intel/cirrus)
> 3. x86 based systems.
> 4. low end MIPS (available from IDT, NEC)
> 5. 68K based microcontroller.
Consider PPC 860 and PPC 8260. 860 is small real estate CPU, capable
of running off single RAM chip. 8260 has serial and ethernet on-chip.
> b - ease of design. Would definitely help if some design is already available
> in the open source community.
Har har har! Open source hardware designs, eh? You ask too much. :)
[they do exist, but mostly among hobbists and radio hams].
--Pete
------------------------------
Subject: Re: Good Basic compiler for linux?
From: Michael Meissner <[EMAIL PROTECTED]>
Date: 10 Jul 2000 00:18:05 -0400
"cdaniel" <[EMAIL PROTECTED]> writes:
> What ever happened to Business Basic, we used to build some nice databases
> for the old Fortune *NIX boxes.
Hmmm, it looks like a generational gap. The above author refered to "Business
Basic", and everybody and their dog is posting about "Visual Basic". BB was a
basic that was available first on Data General computers (RDOS and later AOS),
and then later the UNIX (tm) computers such as Fortune (which were ns32k based
if memory serves) mentioned above. I don't recall if the BB was done by the
same company, or if it was a clone of the DG version. If the company is still
around, I would imagine they probably have done a Linux port by now, but I
haven't kept track of them since I left Data General, 10+ years ago.
However, for new code, you probably would be better off using perl, since perl
has hooks to talk to various data bases. I don't know whether TCL/TK or Python
has such hooks. As somebody else said, look for the Perl CPAN that provides a
collection of various perl programs.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: [EMAIL PROTECTED] phone: +1 978-486-9304
Non-work: [EMAIL PROTECTED] fax: +1 978-692-4482
------------------------------
From: [EMAIL PROTECTED]
Subject: C++ linking
Date: Mon, 10 Jul 2000 04:06:18 GMT
Hi everybody,
i'm new in here, can anyone explain how to
write a C++ program in Linux Redhat 6.2.
i can compiled it and how can i link it and
execute it.
by the way, what is the best way to write C++,
in command prompt?
thanks in advance anthony
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Mark Hahn <[EMAIL PROTECTED]>
Subject: Re: Linux, freeBSD, open BSD, netBSD?
Date: 10 Jul 2000 05:45:46 GMT
>> Which one is the best for a free web space and email site or another heavy
>> load system?
>>
> netBSD
that is, of course, utter bullshit. first, web and email serving does NOT
qualify as "heavy load". they're both very easy, and no Unix would even
lose its breath under that kind of simple load. choosing Linux vs *BSD
is largely a matter of taste/religion/upbringing; there is certainly no
performance reason to choose netBSD over Linux.
------------------------------
From: Tim Godfrey <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.networking,comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Ethertap Devices
Date: Mon, 10 Jul 2000 15:55:20 +1000
> Do you have this option compiled into your kernel?
>
> Kernel/User netlink socket (CONFIG_NETLINK) [Y/n/?] ?
>
Yes indeed I do...
I have also tried opening /dev/tap0 as O_RDWR.
Really stumped....
------------------------------
From: "Chun Seong Ng" <[EMAIL PROTECTED]>
Subject: I/O programming problem
Date: Mon, 10 Jul 2000 09:36:15 +0100
Dear all,
Sorry for the last message I've posted. I'd provided insufficient
information about my problem.
My problem is I cannot compile simple I/O program. The error message came
out was:
In file included from try2.c:3:
/usr/include/asm/io.h:78: syntax error before `extern'
My codes was:
#include <stdio.h>
#include <unistd.h>
#include <asm/io.h>
#define BASEPORT 0x378 /* lp1 */
int main()
{
/* Get access to the ports */
if (ioperm(BASEPORT, 3, 1)) {perror("ioperm"); exit(1);}
/* Set the data signals (D0-7) of the port to all low (0) */
outb(0, BASEPORT);
/* Sleep for a while (100 ms) */
usleep(100000);
/* Read from the status port (BASE+1) and display the result */
printf("status: %d\n", inb(BASEPORT + 1));
/* We don't need the ports anymore */
if (ioperm(BASEPORT, 3, 0)) {perror("ioperm"); exit(1);}
exit(0);
}
My questions are:
What does it means "syntax error before 'extern'"?
And where I can find alternative io.h to replace it? probably my io.h got
problem.
Is there any online, Internet, sites provide the header files like io.h?
Thanks
Regards,
Chun Seong
------------------------------
From: VanGross <[EMAIL PROTECTED]>
Subject: File Systems crash recovery ?
Date: Mon, 10 Jul 2000 13:49:12 +0200
Hi,
Where can I find information about File Systems crash recovery ?
I want to know what they do, and how much time it costs?
------------------------------
** 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
******************************