Linux-Development-Sys Digest #415, Volume #8 Sun, 14 Jan 01 17:13:22 EST
Contents:
Re: Does kernel 2.2.18 need to be patched for raid??? (Tim Moore)
Re: 2.4.0 on Athlon 1G / VIA KT 133 (Philip Armstrong)
Re: Having problems creating my first module. (TatOOn)
Re: GetTickCount() in Linux? (Marc SCHAEFER)
Re: CVS question? (J.H.M. Dassen (Ray))
Re: Having problems creating my first module. (Kasper Dupont)
Re: Kernel2.4.0 - Unusual panic (Kasper Dupont)
Re: Having problems creating my first module. ("Brian Wagener")
cdrom.o module ("mpierce")
Is it possible to boot off of a usb floppy or usb cd-rom disk yet? (jtnews)
Viking 56LP-V and SoundBlaster PCI128 ("magicdeuXtrancE")
Re: can libraries be made to load> 0x40000000 (Ulrich Weigand)
Re: Compiling "irq" module (Thomas Petazzoni)
Re: Keyboard input (Thomas Petazzoni)
Re: 2.2.18 & USB Does It or Doesn't It (Clifford Kite)
Re: cdrom.o module (Clifford Kite)
Re: glibc-2.2 testing problem (J�rgen Koslowski)
Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x) ("Marcus J�ger")
Re: can libraries be made to load> 0x40000000 (Eric Taylor)
Re: 2.4.0 on Athlon 1G / VIA KT 133 ([EMAIL PROTECTED])
----------------------------------------------------------------------------
From: Tim Moore <[EMAIL PROTECTED]>
Crossposted-To:
alt.os.linux.mandrake,alt.os.linux.slackware,alt.uu.comp.os.linux.questions,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.setup,linux.dev.kernel
Subject: Re: Does kernel 2.2.18 need to be patched for raid???
Date: Sun, 14 Jan 2001 07:42:51 GMT
> Does mingo's raid patch raid-2.2.18-A2 get applied to kernel 2.2.18?
raid-2.2.18-B0 instead.
Also try to target a question rather than crossposting to 20 groups.
--
timothymoore
bigfoot
com
------------------------------
From: [EMAIL PROTECTED] (Philip Armstrong)
Subject: Re: 2.4.0 on Athlon 1G / VIA KT 133
Date: 14 Jan 2001 10:59:21 -0000
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
>Dave Platt wrote:
>Thanks for the reply. I was wondering if anyone would take my post
>seriously with the attitude I took. I am normally not that attitudinal
>about Linux stuff and am pretty forgiving, but the media made such a big
>deal out of this thing and it appears to me that it was put out there before
>it was ready. I think it was due to media pressure.
>
>But, anyway, in answer to your question, I am using the proper DMA 66 cable.
>This system has a removable hard drive and I have several identical disks I
>can run in it. One of disks contains a Windows system that I use to run
>some bench marking software that is pretty good. I have tested this machine
>quite thoroughly and have found that disk performance on this system under
>Windows is comparable to published results for other systems running DMA 66
>hard drives under Windows.
I have a suspicion that you're not actually activating UDMA 66. Given
that the documentation for how to turn it on is nonexistant, this is
hardly your fault however!
nb. The following is my supposition based on experience elsewhere +
reading the 2.4.0 source. Don't believe a word of it :)
1) I don't think the idebus thing is relevant at all. Ignore it.
2) Try hdparm -X67 , or 68 or 69.
The latter is because -X66 sets UDMA mode 2 transfers. AFAIK, UDMA-66
and UDMA-100 are somewhere in modes 2-5. Quoting the via ide driver
source:
* chipsets. Supports PIO 0-5, MWDMA 0-2, SWDMA 0-2 and
* UDMA 0-5 (includes UDMA33, 66 and 100) modes. UDMA100 isn't
* possible
* on any of the supported chipsets yet.
*
* UDMA66 and higher modes are autodetected only in case the BIOS has
* enabled them.
* To force UDMA66, use 'ide0=ata66' or 'ide1=ata66' on the kernel
* command line.
*/
so UDMA modes 0->5 include UDMA 33,66 and 100. hdparm -X67 sets UDMA
mode 3, -X68 mode 4 and so on.
Reading the source suggests that whilst windows goes ahead and turns
on UDMA 66 itself, linux may leave the bios to do it unless
specifically asked otherwise on the kernel command line. See what the
bios says on the issue too...
Hope some of the above makes things work for you...
Phil
--
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt
------------------------------
From: TatOOn <[EMAIL PROTECTED]>
Subject: Re: Having problems creating my first module.
Date: Sun, 14 Jan 2001 12:25:42 +0100
Hi,
Can you give me the reference of your book.
I'm looking for one ...
thx,
TatOOn
------------------------------
From: Marc SCHAEFER <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: GetTickCount() in Linux?
Date: 8 Jan 2001 08:12:17 GMT
In comp.os.linux.development.system Nils M. Lunde <[EMAIL PROTECTED]> wrote:
: I need to know the time used by a certain part of a program.
: In MS Windows I use the GetTickCount() function.
: This function does not tend to exist in Linux, so I wonder what I should
: do!?
- You can use profiling of your program, that will give you extensive
statistics without any requirement for changes whatsoever in your
program, just a few compile-time arguments, see gprof.
- UNIX maintains a wall-clock (total elapsed), and a CPU-used clock,
I think in getrusage(), at a resolution of about HZ.
- On the Pentium architecture, you might find the instruction counters
useful (but I am afraid in kernel mode only for now). This is
more precize, though.
------------------------------
From: [EMAIL PROTECTED] (J.H.M. Dassen (Ray))
Subject: Re: CVS question?
Date: Sun, 14 Jan 2001 11:44:27 +0100
Thomas Gibson <[EMAIL PROTECTED]> wrote:
>Rini van Zetten wrote:
>> there is a cvs newsgroup : gnu.cvs.help
>
>Unfortunately, my news server doesn't carry it ;-(.
In that case, try comp.software.config-mgmt, which is a general newsgroup on
software configuration management (systems).
HTH,
--
Ray Dassen <[EMAIL PROTECTED]>
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: Having problems creating my first module.
Date: Sun, 14 Jan 2001 13:06:02 +0000
Brian Wagener wrote:
>
> I just got my copy of Linux Device Drivers, but I can't get the "Hello
> World" module to work. I can insmod it, but it doesn't print anything like
> it is supposed to. I also get this error when I compile it: Below is also
> the code.
> Thanks.
>
> /tmp/ccGp7G0s.s: Assembler messages:
> /tmp/ccGp7G0s.s:9: Warning: Ignoring changed section attributes for .modinfo
>
> Hello.c
> #define MODULE
> #include <linux/module.h>
>
> int init_module(void) { printk("<1>Hello World\n"); return 0;}
> int cleanup_module(void) { printk("<1>Goodbye World\n"); return 0;}
>
> --
> Brian Wagener
>
> ForceConstant
> http://force.ath.cx
> http://shoptalk.tunacan.net
If you do this within X the messages will not be displayed
on the screen, you should be able to find them in the file
/var/log/messages. Try typing this command in another xterm:
tail -f /var/log/messages
--
Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: Kernel2.4.0 - Unusual panic
Date: Sun, 14 Jan 2001 13:12:16 +0000
D. Stimits wrote:
>
[...]
>
> If the lilo install failed because of BIOS virus or other security
> options, it'd be a problem. Possibly check your BIOS for anything that
> might break the boot sector write. Someone else recently mentioned a
> problem like this, but the error message was more informative.
I don't think lilo install can fail because of a BIOS
virus protection, Linux has its own harddiskdriver.
Does there exist BIOS virus protections working in
some other absurd way?
--
Kasper Dupont
------------------------------
From: "Brian Wagener" <[EMAIL PROTECTED]>
Subject: Re: Having problems creating my first module.
Date: Sun, 14 Jan 2001 14:46:57 GMT
Linux Device Drivers from O'Reilly.
--
Brian Wagener
ForceConstant
http://force.ath.cx
http://shoptalk.tunacan.net
"TatOOn" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi,
>
> Can you give me the reference of your book.
> I'm looking for one ...
>
> thx,
> TatOOn
>
------------------------------
From: "mpierce" <[EMAIL PROTECTED]>
Subject: cdrom.o module
Date: Mon, 15 Jan 2001 13:24:27 +1100
Does anyone know what option must be selected in compiling a kernel to
have this module created?
Marvin
------------------------------
Date: Sun, 14 Jan 2001 11:36:24 -0500
From: jtnews <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Is it possible to boot off of a usb floppy or usb cd-rom disk yet?
Is it possible to boot off of a USB floppy
or USB CDROM disk yet in Linux 2.2 or 2.4?
------------------------------
From: "magicdeuXtrancE" <[EMAIL PROTECTED]>
Subject: Viking 56LP-V and SoundBlaster PCI128
Date: Sun, 14 Jan 2001 12:04:27 -0500
Am I going to be able to use these devices under Linux? Also, if my dialup
requires scripting can I just import the scripting file from Windows?
Thanks
------------------------------
From: [EMAIL PROTECTED] (Ulrich Weigand)
Subject: Re: can libraries be made to load> 0x40000000
Date: 14 Jan 2001 18:19:50 +0100
Eric Taylor <[EMAIL PROTECTED]> writes:
>I've got a app that needs more
>than 1 gig virtual address space.
>All the libraries load at 0x40000000,
>if I could force these higher, I could
>have more address space (that sbrk could
>grab). I need all the dynamic memory to
>be contiguous so I can write it all out
>in one i/o.
This address is determined by the constant
TASK_UNMAPPED_BASE defined in include/asm/processor.h.
It defaults (on Intel) to TASK_SIZE / 3, which is 1 GB
(as TASK_SIZE is 3GB).
If you recompile your kernel with TASK_UNMAPPED_BASE
set to (say) 0x80000000, you should be able to sbrk()
up to nearly 2GB.
On the other hand, it might be easier to change your
app to use anonymous mmap() instead of sbrk() to
allocate its memory ... You should be able to
mmap() more than 1GB in the default configuration.
--
Dr. Ulrich Weigand
[EMAIL PROTECTED]
------------------------------
From: Thomas Petazzoni <[EMAIL PROTECTED]>
Subject: Re: Compiling "irq" module
Date: Sun, 14 Jan 2001 18:22:54 +0100
Reply-To: [EMAIL PROTECTED]
> I'm trying to compile the kernel module "irq" for managing interrupts
> in an user-mode process. The INSTALL file says it may be compiled in a
> 2.0.X and 2.2.X kernel, but when I try to compile it in a 2.2.X kernel,
> I get a lot of "parse error" messages concerning included libraries
> like hpfs_fs_i.h, iso_fs_i.h, and so on.
i had the same problem with a module for my TV card, or for another
sound card. the problem was that the link /usr/src/linux ==>
/usr/src/kernel-source-2.2.17 (my distribution is a debian). without
this link, the compiler cannot find the good header files.
thomas
--
PETAZZONI Thomas
[EMAIL PROTECTED] ICQ : 34937744
[EMAIL PROTECTED] http://kos.enix.org
------------------------------
From: Thomas Petazzoni <[EMAIL PROTECTED]>
Subject: Re: Keyboard input
Date: Sun, 14 Jan 2001 18:24:36 +0100
Reply-To: [EMAIL PROTECTED]
> I'd like to learn more about programming the keyboard under Linux. I
> basically need a way to read all keys and modifiers (e.g., I'd like to be
> able to read SHIFT-LEFT, PAGE UP, etc.). Where can I find more information
> on this topic?
>
> Also, in general, what's a good starting point for exploring the various
> Linux APIs?
it will depend on the library you want to use : Gtk (which relies on
Gdk), SDL, SVGALib, NCurses or something else...
each has a different API, and so a different manner to handle signals
such as keyboard keypress.
thomas
--
PETAZZONI Thomas
[EMAIL PROTECTED] ICQ : 34937744
[EMAIL PROTECTED] http://kos.enix.org
------------------------------
From: Clifford Kite <[EMAIL PROTECTED]>
Subject: Re: 2.2.18 & USB Does It or Doesn't It
Date: Sun, 14 Jan 2001 12:00:20 -0600
mpierce <[EMAIL PROTECTED]> wrote:
> Does it support USB?
> I've got a USB Zip250 configured as:
> /dev/sda4 /mnt/zip vfat noauto,user,rw 0 0
> I do:
> [root@localhost mpierce]# insmod ide-scsi
> Using /lib/modules/2.2.18/scsi/ide-scsi.o
> [root@localhost mpierce]# cd /dev
> [root@localhost /dev]# mount /mnt/zip
> mount: the kernel does not recognize /dev/sda4 as a block device
> (maybe `insmod driver'?)
> [root@localhost /dev]#
> If 2.2.18 supports USB then, I'm probably something minor that is not
> allowing 2.2.18 to recognise the device correctly.
> Anyone have suggestion as to how to fix this problem?
You can try inserting the usbcore and usb-storage modules, and the scsi
drive module sd_mod. Also make sure that /dev/sda4 is correct, I'd
expect it to use /dev/sdx1 where x is the first unused SCSI device.
This didn't work for me to support a HP315 camera under 2.2.18 though.
I had to go to the new 2.4.0 kernel and then it worked.
--
Clifford Kite <kite@inet%port.com> Not a guru. (tm)
/* Editing with vi is a lot better than using a huge swiss army knife.
Use =} to wrap paragraphs in vi. Or put map ^] !}fmt -72^M in
~/.exrc and use ^] to wrap to 72 columns or whatever you choose. */
------------------------------
From: Clifford Kite <[EMAIL PROTECTED]>
Subject: Re: cdrom.o module
Date: Sun, 14 Jan 2001 12:01:53 -0600
mpierce <[EMAIL PROTECTED]> wrote:
> Does anyone know what option must be selected in compiling a kernel to
> have this module created?
Try using "make menuconfig" and looking around. What you have to do
depends on what kind of CD drive you have.
--
Clifford Kite <kite@inet%port.com> Not a guru. (tm)
------------------------------
From: [EMAIL PROTECTED] (J�rgen Koslowski)
Subject: Re: glibc-2.2 testing problem
Date: 14 Jan 2001 20:18:34 GMT
J�rgen Koslowski ([EMAIL PROTECTED]) wrote:
: Andreas Jaeger ([EMAIL PROTECTED]) wrote:
: : This might be a broken make version since there has to be a binary
: : called mtrace.
: make is version 3.79.1 (from last July). I re-built gcc-2.95.2 but
: haven't had time yet to re-compile glibc-2.2. Perhaps on Monday I can
: report on how that worked.
It gave the same problem as before during "make check": mtrace is
missing :-(
-- J�rgen
--
J�rgen Koslowski If I don't see you no more on this world
ITI, TU Braunschweig I'll meet you on the next one
[EMAIL PROTECTED] and don't be late!
http://www.iti.cs.tu-bs.de/~koslowj Jimi Hendrix (Voodoo Child, SR)
------------------------------
From: "Marcus J�ger" <[EMAIL PROTECTED]>
Subject: Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x)
Date: Sun, 14 Jan 2001 21:56:41 +0100
Help!
I just installed Suse Linux 7.0 on my 80486 166 MHz 24 MB RAM box.
Installation worked fine, but after reboot system locked at tihs point:
"> request_module[block-major -3] root fs not mounted
> VFS: Cannot open root device "sda4" or xx:xx
> Please append a correct "root=" boot option
> Kernel panic: VFS: Unable to mount root fs on 03:01"
Booting from the linstall cd, loading the module for my scsi-adaptor
(ncr53c8x) and mounting root on /dev/sda4 works.
I downloaded the 2.4.0 kernel and tried to compile a kernel with this
special sccsi-mdoule. at first the make zImage said "system too large,
error1" and on the second try "error ksym..."
what are i'm doing wrong?
please help me.
------------------------------
From: Eric Taylor <[EMAIL PROTECTED]>
Subject: Re: can libraries be made to load> 0x40000000
Date: Sun, 14 Jan 2001 21:41:46 GMT
Ulrich Weigand wrote:
>
> Eric Taylor <[EMAIL PROTECTED]> writes:
>
> >I've got a app that needs more
> >than 1 gig virtual address space.
> >All the libraries load at 0x40000000,
> >if I could force these higher, I could
> >have more address space (that sbrk could
> >grab). I need all the dynamic memory to
> >be contiguous so I can write it all out
> >in one i/o.
>
> This address is determined by the constant
> TASK_UNMAPPED_BASE defined in include/asm/processor.h.
> It defaults (on Intel) to TASK_SIZE / 3, which is 1 GB
> (as TASK_SIZE is 3GB).
>
> If you recompile your kernel with TASK_UNMAPPED_BASE
> set to (say) 0x80000000, you should be able to sbrk()
> up to nearly 2GB.
>
> On the other hand, it might be easier to change your
> app to use anonymous mmap() instead of sbrk() to
> allocate its memory ... You should be able to
> mmap() more than 1GB in the default configuration.
>
> --
> Dr. Ulrich Weigand
> [EMAIL PROTECTED]
Thanks, very helpful. Will changing this affect anything
else? Seems like a pretty powerful constant, to have only
this one use.
I looked at anonymous mmap(), and tried a small program.
It seems to limit me to about 65meg per segment, but
will merge multiple contiguous segments into one segment.
I can use this, but will have to get some proprietary code
changed to do so. That is why I wanted to move up the
libraries.
One item I noticed was a code comment that in order to
have > 1 gig of PHYSICAL ram, the kernel would also
need to be reconfigured to start at the 2 gig boundary
instead of the 3 gig boundary.
Is this true? And if so,what is the connection between
kernel virtual space and how much physical ram is on
a system?
I had hoped that in the future, I could get a 3gig
private address space for my app. Some of these
configuration parameters seem like they may limit
this.
thanks
eric
------------------------------
Date: Sun, 14 Jan 2001 22:05:06 +0000
From: [EMAIL PROTECTED]
Subject: Re: 2.4.0 on Athlon 1G / VIA KT 133
Well I didn't give up on the 2.4.0 kernel. I found out the source of my
problems. I emailed Vojtech Pavlik the author of the vi82cxxx driver and he
replied very quickly and got me straightened out. That is so excellant.
What a guy!
> Upon booting the system I received messages from the kernel about setting
> idebus=XX to get the DMA 66 going. So I added the kernel option to
> lilo.conf and ran lilo. The kernel seemed to accept that and indicated a
> DMA 66 ide bus speed. But then the kernel went on to identify the disk as
> UDMA 33. So I used hdparm -X66 to set the mode. Well I was highly
> dissapointed to find out, using a disk benchmark, that there was absolutely
> no difference in disk speed compared to the 2.2.18 kernel which I know is
> running the disk at DMA 33. Based on my experience, DMA 66 does not work in
> 2.4.0 for my configuration.
The IDE driver is calling "idebus" the PCI clock. It's a misnomber. Should
be 33MHz for this system and I should not have used "idebus=66". That needs
to be explained better in linux/Documentation/ide.txt. Very misleading. I
still don't have UDMA 66 working, but Vojtech told there's a new via82cxxx
driver that should fix it. What I should have used is "ide0=ata66".
> What happened to the Soundblaster driver? With the 2.2.18 kernel, I just
> set the IRQ, IO, and DMA in the kernel config and it works fine. Now it
> tells me I have to enter the data as a kernel option and the driver doesn't
> even provide any status during boot. Well, I did add the kernel options,
> but no soundcard worky. The doc/Soundblaster said something about ISAPnP.
> I don't need or want that software since my BIOS does a perfectly fine job
> of configuring the card. So are they telling me that my Sound card has been
> broken all this time? Works pretty good for a broken one.
I tried using modular soundcard drivers and they worked normally. I tried
another time running with them compiled in and they worked this time. I
must have had bad syntax on the kernel boot option. Still need to pass the
MPU IO though. Documentation doesn't say how and/or if this can be done for
drivers compiled in.
> Well, I gave up on the 2.4.0 kernel when, for no reason at all, it stopping
> booting at init level 2 and started booting at init level 3. All I can say
> to that one is ??????
Yea, no wonder, telling the kernel that the PCI bus is 66MHz on a 33MHz
system could have all kinds of strange effects.
------------------------------
** 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 by posting to the
comp.os.linux.development.system newsgroup.
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
******************************