Linux-Development-Sys Digest #36, Volume #8 Fri, 21 Jul 00 11:13:18 EDT
Contents:
Re: [ANN] Beta testing of CW for Linux on Intel and PowerPC (MWRon)
Re: How to deal with System.map and Module_info after updating kernel (James Alan
Brown)
Re: Resources for writing device drivers (MJ Dainty)
what is "kernel_version" ("yesong")
Help On Pthread ("Miles.Hu")
Re: Help On Pthread (Frank Sweetser)
Re: Help On Pthread (Kaz Kylheku)
Re: How to deal with System.map and Module_info after updating kernel (Wesley Wong)
Re: is there a port to windows media player? (Norman Levin)
Thanks Frank and kaz ("Miles.Hu")
A good IDE ([EMAIL PROTECTED])
Re: SCSI programming in Linux (Bart Lagerweij)
Re: How to deal with System.map and Module_info after updating kernel (Villy Kruse)
Re: A good IDE (Zoran Cutura)
Re: COMPRESSED File System (Krzysztof Strasburger)
Re: what is "kernel_version" (Mike Dowling)
Re: Interface i8255 ("Christian Dahmen")
device names ([EMAIL PROTECTED])
Re: A good IDE (Larry Ebbitt)
Re: (Q) Capturing everything at boot time (Timothy Murphy)
how to install Gentus in one disk partition only? (Vero)
Re: strange "mv" bug ([EMAIL PROTECTED])
re-linking an executable? (John-David Wellman)
Re: A good IDE (Diego Betancor)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (MWRon)
Crossposted-To: comp.os.linux.powerpc
Subject: Re: [ANN] Beta testing of CW for Linux on Intel and PowerPC
Date: Thu, 20 Jul 2000 19:05:38 -0400
In article <[EMAIL PROTECTED]>,
>| But why should they limit themselves to several distributions while
>| leaving out a couple of the major and important ones?
I was going to let this die but since it came up again. We have already
added one other distro to our list and if we have sufficient interest in
others we will add these too.
This is not a CW for RedHat release this will be CodeWarrior for Linux.
Ron
--
Metrowerks acquires HiWare AG to be European headquarters
http://www.metrowerks.com/news/hiware/
Metrowerks, a Motorola Company - Ron Liechty
"Software Starts Here" - [EMAIL PROTECTED]
------------------------------
From: James Alan Brown <[EMAIL PROTECTED]>
Subject: Re: How to deal with System.map and Module_info after updating kernel
Date: Fri, 21 Jul 2000 00:30:05 GMT
Wesley Wong wrote:
>
> When I am updating the kernel, I know I should make backup of my old
image
> file and probably old initrd.img file. But tutorials never mention about
> the System.map, and Module_info. They are still pointing to the old file?
> or Should I create new one? how? (I can't find any Module_info file in
> /usr/src/linux directories...)
>
>
>
> --
> Posted via CNET Help.com
> http://www.help.com/
When you compile your kernel it will create a system.map and all you need
to do is: cp system.map /boot/system.map-2.2.14 (whatever versison kernel
numbers -2.2.14 for example)
Make sure you type the command "lilo" before you reboot!
I always copy the system.map after copying bzImage to the /boot directory
and then run lilo
Note depmod will list any modules not used by your new kernel they are not
errors ok?
Example I don't use SCSI cards so I have compiled them out of my kernel.
depmod will reflect that fact and list them.
Regards,
James
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: MJ Dainty <[EMAIL PROTECTED]>
Subject: Re: Resources for writing device drivers
Date: Fri, 21 Jul 2000 00:37:26 GMT
On Wed, 19 Jul 2000, Grant Edwards wrote:
| In article <[EMAIL PROTECTED]>, MJ Dainty
|wrote:
|
| >I saw the O'Reilly "Linux Device Drivers" book, and given their
| >reputation, I'm tempted. However the book was published
| >1997/98, and I'm concerned that the book may be out of date
| >given the constantly advancing state of the kernel, so
| >something more up-to-date would be nice.
|
| IMO, Rubini is still worth reading. A second edition updated
| for 2.[234] would be on my short list of books to buy.
I was probably going to buy this book anyway, but I'll see if I can find
out whether an update is due any time now...
| Most of the information is still valid, but you do need to keep
| in mind that the examples are from 2.0 and 2.1 kernels, so you
| have to watch out for things that have changed since then.
|
| For a simple character mode driver, not a lot has changed.
I think it would be a character mode driver, it's for an DSP board that
drives a Motion Pod.
| A good exercise is to compare the examples in Rubini to driver
| source code that comes with the kernel you're using.
My project is probably not going to start until 2001, so I would presume
we would be well into 2.4.x mainstream kernels by then...
Thanks
Matt
------------------------------
From: "yesong" <[EMAIL PROTECTED]>
Subject: what is "kernel_version"
Date: Fri, 21 Jul 2000 09:48:58 +0800
Hi,
I have recompiled my 2.2.14 kernel and installed it.
But when i want to insmod some modules, the kernel says :
kernel_version needed, but can't be found
Is there any option i should turn on to compile the kernel?
------------------------------
From: "Miles.Hu" <[EMAIL PROTECTED]>
Subject: Help On Pthread
Date: Fri, 21 Jul 2000 02:42:47 GMT
Hello everyone,
I encount one problem, when I wrote the file followed, and used "gcc -o t
pt.c", then I got link errors"undefined reference to
'pthread_detach'(pthread_create)". Could you give me some tips?
Thanks a lot!
#include <pthread.h>
#include "errno.h"
#include <sys/types.h>
#include <wait.h>
#include "stdio.h"
typedef struct alarm_tag {
int seconds;
char message[64];
} alarm_t;
void *alarm_thread (void *arg)
{
alarm_t *alarm = (alarm_t *)arg;
int status = 0;
status = pthread_detach (pthread_self ());
if (0 != status) {
printf ("Error in Detach Pthread\n");
exit(1);
}
sleep (alarm->seconds);
printf ("%d %64[^\n]", alarm->seconds, alarm->message);
free (alarm);
return NULL;
}
void main()
{
char line[128];
int status = 0;
alarm_t *alarm;
pthread_t thread;
while (1) {
printf("Alarm: \n");
if (NULL == fgets (line, sizeof(line), stdin)) exit (0);
alarm = (alarm_t *) malloc (sizeof (alarm_t));
if (sscanf (line, "%d %64[^\n]", &alarm->seconds, alarm->message) < 2)
{
fprintf(stderr, "\nBad Command!\n");
free (alarm);
} else {
status = pthread_create (&thread, NULL, alarm_thread, alarm);
if (0 != status) {
printf ("Error in Create alarm thread\n");
exit (1);
}
}
}
}
------------------------------
From: [EMAIL PROTECTED] (Frank Sweetser)
Subject: Re: Help On Pthread
Date: 21 Jul 2000 03:12:05 GMT
Miles.Hu <[EMAIL PROTECTED]> wrote:
>Hello everyone,
>
>I encount one problem, when I wrote the file followed, and used "gcc -o t
>pt.c", then I got link errors"undefined reference to
>'pthread_detach'(pthread_create)". Could you give me some tips?
You need to tell gcc that it needs to link with libpthread - add
-lpthread
to the end of the gcc command line.
--
Frank Sweetser rasmusin at wpi.edu, fs at suave.net
Full-time WPI Network Tech, Part time Linux/Perl guy
Woody: What's going down, Mr. Peterson?
Norm: My cheeks on this barstool.
-- Cheers, Strange Bedfellows, Part 2
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Help On Pthread
Reply-To: [EMAIL PROTECTED]
Date: Fri, 21 Jul 2000 03:24:15 GMT
On Fri, 21 Jul 2000 02:42:47 GMT, Miles.Hu <[EMAIL PROTECTED]> wrote:
>#include <pthread.h>
>#include "errno.h"
>#include <sys/types.h>
>#include <wait.h>
>#include "stdio.h"
Also, you should never include system headers using the quoted
form. Use <errno.h>, <stdio.h>.
--
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.
------------------------------
From: Wesley Wong <[EMAIL PROTECTED]>
Subject: Re: How to deal with System.map and Module_info after updating kernel
Date: Fri, 21 Jul 2000 03:30:07 GMT
thanx for the reply... ok, so there goes System.map... but what about
module_info? (it's module.info or module_info I forgot)? will the old one
staying in the /boot mislead the system??? Should I delete it?
James Alan Brown wrote:
>
>
> When you compile your kernel it will create a system.map and all you
need
> to do is: cp system.map /boot/system.map-2.2.14 (whatever versison
kernel
> numbers -2.2.14 for example)
>
> Make sure you type the command "lilo" before you reboot!
>
> I always copy the system.map after copying bzImage to the /boot
directory
> and then run lilo
>
> Note depmod will list any modules not used by your new kernel they are
not
> errors ok?
>
> Example I don't use SCSI cards so I have compiled them out of my kernel.
>
> depmod will reflect that fact and list them.
>
> Regards,
> James
>
>
>
>
>
> --
> Posted via CNET Help.com
> http://www.help.com/
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
Date: Thu, 20 Jul 2000 12:44:11 -0400
From: Norman Levin <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
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?
Is this question related to X or is it another useless spam against
every linux group known to man.
Rick Ellis wrote:
>
> In article <[EMAIL PROTECTED]>,
> Stewart Honsberger <[EMAIL PROTECTED]> wrote:
>
> >>Perhaps, but there are plenty of .asp only sources on the net.
>
> >Check http://www.shoutcast.com - you'll find literally hundreds of streaming
> >MP3 servers. Pick and choose according to genre, bandwidth, and bitrate.
>
> How would that solve his desire to listen to a source that is only asp?
>
> --
> http://www.fnet.net/~ellis/photo/linux.html
--
Norman Levin
------------------------------
From: "Miles.Hu" <[EMAIL PROTECTED]>
Subject: Thanks Frank and kaz
Date: Fri, 21 Jul 2000 03:56:36 GMT
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.development,comp.os.linux.hardware
Subject: A good IDE
Date: Fri, 21 Jul 2000 06:18:33 GMT
what is the best IDE for Linux ?
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: bart@[NoSpam]cts-bv.nl (Bart Lagerweij)
Crossposted-To: comp.periphs.scsi
Subject: Re: SCSI programming in Linux
Date: 21 Jul 2000 07:07:00 GMT
Get all the PDF files from the following page:
http://www.t10.org/scsi-3.htm
you should look at SBC !!!
I started programming SCSI using this manual:
http://www.seagate.com/support/disc/download/scsi.exe
--
Bart Lagerweij - Computer Technology Systems - http://www.cts-bv.nl
(Please reply to the group)
* Get Bart's SCSITOOL (freeware) from http://www.nu2.nu
*
------------------------------
From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: How to deal with System.map and Module_info after updating kernel
Date: 21 Jul 2000 07:08:47 GMT
On Fri, 21 Jul 2000 03:30:07 GMT, Wesley Wong <[EMAIL PROTECTED]> wrote:
>thanx for the reply... ok, so there goes System.map... but what about
>module_info? (it's module.info or module_info I forgot)? will the old one
>staying in the /boot mislead the system??? Should I delete it?
>
Don't worry too much about that. It is used by some GUI admin program
which can manage the /etc/conf.modules file. The module-info file
contains information about parameters you can specify for each loaded
module, and that information doesn't change when you re-compile the
kernel, and in most cases not even when you upgrade to a newer kernel.
System.map is only essential for kernel logging and that only for fatal
kernel error messages; and also for the ps command to display the symbol
name in the WCHAN column when you do "ps l".
Villy
------------------------------
From: Zoran Cutura <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.development,comp.os.linux.hardware
Subject: Re: A good IDE
Date: Fri, 21 Jul 2000 09:48:17 +0200
[EMAIL PROTECTED] wrote:
>
> what is the best IDE for Linux ?
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Don't ask questions like this in here!
This is mainly a question of taste.
I use emacs or vi together with gcc/g++
and gdb.
Z
--
LISP is worth learning for the profound enlightenment experience you
will have when you finally get it; that experience will make you a
better programmer for the rest of your days. Eric S. Raymond
------------------------------
From: Krzysztof Strasburger <[EMAIL PROTECTED]>
Subject: Re: COMPRESSED File System
Date: 21 Jul 2000 09:09:28 GMT
"Norman Black" <[EMAIL PROTECTED]> wrote:
>> >Is there possible to create a compressed file system ?
>> Get an 80GB hard drive, and you will soon forget all about 1980's MSDOS
>hacks.
>Compressing is not a hack and has nothing to do with MSDOS, it was in use
>long before DOS in the mainframe and mini world. This is where Stacker came
>from before they offered the DOS product.
You are of course right here.
The transparent compression patches for ext2 can be found here:
http://www.netspace.net.au/~reiter/e2compr/
There is also the "double" driver on
http://perso.cybercable.fr/verbavat/double/
It gives the compression on the block device level. It is a bit outdated
(the latest patches are for kernel 2.0).
>
>Adding a big HD can possibly bring other issues. I have issues with a 3 year
>old machine. The IDE controller was old enough that it could only access
>8GB, so I bought an IDE controller, ATA-100 cards were all they had, and
>disabled the MB controller and Linux cannot run. The card is backwards
>compatible and other systems work, just not Linux (Mandrake 7.1, Kernel
>2.2.15).
Strange. I have a 80386 based computer (yes, it is over 10 years old).
There are 17 GB IDE hard disk and IDE CDROM inside. Everything works fine
with the oldest possible IDE controller (ISA card), only e2fsck takes
quite long time to finish its job. Did you try to tell setup the disk geometry
with the real number of sectors and heads, but cylinders limited to 1024,
then create a 1 cylinder partition for booting and tell linux via lilo
the real geometry?
Krzysztof
------------------------------
From: [EMAIL PROTECTED] (Mike Dowling)
Subject: Re: what is "kernel_version"
Date: 21 Jul 2000 10:09:37 GMT
On Fri, 21 Jul 2000 09:48:58 +0800, yesong <[EMAIL PROTECTED]> wrote:
>Hi,
>I have recompiled my 2.2.14 kernel and installed it.
>But when i want to insmod some modules, the kernel says :
>
> kernel_version needed, but can't be found
>
>Is there any option i should turn on to compile the kernel?
When you built the new kernel, did you also do
# make modules
# make modules_install
Cheers,
Mike
--
My email address [EMAIL PROTECTED] above is a valid email address.
It is, in fact, a sendmail alias; the digit 'N' is incremented regularly.
Spammed aliases will be deleted. Currently, mike[29,30]
are valid. If email to mikeN bounces, try mikeN+1.
------------------------------
From: "Christian Dahmen" <[EMAIL PROTECTED]>
Subject: Re: Interface i8255
Date: Tue, 18 Jul 2000 10:49:20 +0200
Danke f�r Deinen Tip,
am liebsten w�rde ich irgend eine L�sung kaufen, da ich a keine Zeit / Lust
f�r eine
entwicklung habe und b eine L�sung brauche.
Ich werde trotz dem einmal in die HOWTO schauen, vielleicht ist das ja recht
easy.
so denn
C. Dahmen
Iwo Mergler <[EMAIL PROTECTED]> schrieb in im Newsbeitrag:
[EMAIL PROTECTED]
> Christian Dahmen wrote:
> >
> > Hi,
> > ich bin auf der Suche nach einem Linuxtreiber (Kernel 2.1) f�r einen
> > i8255 Chip.
> > Bei Conrad habe ich mir die i8255 ISA Karte von bmc gekauft (top Teil),
nur
> > unter Linux finde ich keinen Treiber.
> >
> > Wer kann mir helfen?
> >
> > C.Dahmen
>
> Der 8255 ist relativ einfach gebaut. Wenn ich mich richtig erinnere, sind
das
> nur 4 8-Bit Register, Port A-C und ein Steuerregister. Es ist
wahrscheinlich
> am einfachsten, selber ein kleines Programm dafuer zu schreiben. Alles was
Du
> wissen musst, steht im IO-Port-Programming Howto. :^) Ich helfe Dir gerne
bei
> konkreten Problemen damit...
>
> Iwo
>
> [OP is looking for a driver for the 8255 chip. I suggested the
do-it-yourself
> approach.]
------------------------------
From: [EMAIL PROTECTED]
Subject: device names
Date: Fri, 21 Jul 2000 11:20:43 GMT
I am trying to relate the disk I/O in /proc/stat with a device name.
How can I match that data with the devices?
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Fri, 21 Jul 2000 08:33:55 -0400
From: Larry Ebbitt <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.hardware
Subject: Re: A good IDE
[EMAIL PROTECTED] wrote:
>
> what is the best IDE for Linux ?
>
It is very much a matter of personal taste. If you like a GUI, Kdevelop is
quite good and getting better rapidly. If you like the green-screen stuff,
emacs is powerful and many people use vi.
--
Larry Ebbitt - Linux + OS/2 - Atlanta
------------------------------
From: [EMAIL PROTECTED] (Timothy Murphy)
Subject: Re: (Q) Capturing everything at boot time
Date: 21 Jul 2000 13:55:23 +0100
Kevin Lacquement <[EMAIL PROTECTED]> writes:
>> Is there any simple way -- a kind of kernel "script" --
>> which will save everything that appears on the screen at boot-up?
>cat /var/log/bootlog
Thanks, I didn't know about that.
I think that taken with /var/log/dmesg
it contains all the boot info I could want,
even though it is not an exact copy of the boot-up screen.
--
Timothy Murphy
e-mail: [EMAIL PROTECTED]
tel: 086-233 6090
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
------------------------------
From: Vero <[EMAIL PROTECTED]>
Crossposted-To: alt.comp.periphs.mainboard.abit
Subject: how to install Gentus in one disk partition only?
Date: Fri, 21 Jul 2000 09:29:05 -0500
can Gentus [Red Hat6.1] be installed in just one partition?
> at least initially just for evaluation.
recommends three disk partition
doc recommends /boot ./swap and /root at 16, 8, 500 MB min size
--
Please be complete in any email submissions
else suffer Suspensional Consequenced Reality
serious email to ---- [EMAIL PROTECTED](Vero)
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: strange "mv" bug
Date: Fri, 21 Jul 2000 14:45:57 GMT
On Wed, 19 Jul 2000 14:22:25 +0200 Mario Klebsch <[EMAIL PROTECTED]> wrote:
| [EMAIL PROTECTED] (Daniel R. Grayson) writes:
|
|>Here is a fix.
|
|>- ep->node = (char *) node;
|>+ ep->node = (char *) strdup(node);
|
| Just adding a strdup()? Don't you have to add a matching free()
| somwhere to avoid creating a memory leak?
|
| Anyway, mv(1) doesn't normally live long enough to seriously complain
| about a memory leak. :-)
|
| 73, Mario
That would be a VERY huge command line to make not freeing the memory
an issue.
--
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil (at) ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]
------------------------------
From: John-David Wellman <[EMAIL PROTECTED]>
Subject: re-linking an executable?
Date: Fri, 21 Jul 2000 10:55:04 -0400
Anybody know of a way to re-link and executable file in linux? I would
like to take an arbitrary executable file for which I have no source
code and for which I do not control the original compilation, and be
able to relink it to include a different initial entry point (which is a
routine I have written) , and to include the library routines on which
that routine depends. Anyone ever try this in linux?
Thanks,
J-D
--
==============================================================================
John-David Wellman ([EMAIL PROTECTED])
IBM T. J. Watson Research Center phone: 914-945-2523
P.O. Box 218, Yorktown Hts, NY, 10598 fax: 914-945-4469
------------------------------
From: [EMAIL PROTECTED] (Diego Betancor)
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.development,comp.os.linux.hardware
Subject: Re: A good IDE
Date: Fri, 21 Jul 2000 14:59:42 GMT
Hi, I can tell you what I use. (C/C++)
For little things just emacs,
For the console I use Rhide that is Borland 3.1 like IDE.
In X I use JX
these last two I love.
http://www.tu-chemnitz.de/~sho/rho/rhide-1.4/rhide.html
http://www.newplanetsoftware.com/jx/jx2.html
[EMAIL PROTECTED] wrote:
>what is the best IDE for Linux ?
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
Diego Betancor @ Duo Business Communications
for email: dbetancor is my userid and my company's domain is duocom.net
** Do not send me unsolicited commercial e-mail spam of any kind **
------------------------------
** 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
******************************