Linux-Misc Digest #97, Volume #28 Wed, 13 Jun 01 09:13:02 EDT
Contents:
make oldconfig (thefoxyone)
Re: sound support in linux-2.2.16 (Dave Uhring)
Re: Compiling kernel for Red Hat 7.1 (Chris Nappin)
Multicast PIM-SM (Amanullah Khan)
alsa sound (croc)
Re: no sound from CD (Rick)
Re: no sound from CD (Martijn van Buul)
Kernel messages: is it really hd? (rennix)
Re: RH 7.1 and GeForce ("Maximus Idius")
Re: make oldconfig (Allen Ashley)
Re: Newbie C++/Suse question ("ThanhVu Nguyen")
Re: flushing the buffer in the kernel (Aravindh)
Re: Compile kernel in rescue mode (Lee Allen)
Re: DRI error (cross-posted) (Philip Willoughby)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (thefoxyone)
Subject: make oldconfig
Date: 13 Jun 2001 03:14:28 -0700
does this command use the old kernel settings as a basis for compiling
a new kernel
what i want to do is avoid trawling thru make xconfig or make
menuconfig before compiling my kernel when i've not really changed the
hardware just updated the kernel
------------------------------
From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: sound support in linux-2.2.16
Date: Wed, 13 Jun 2001 05:15:09 -0500
rohit wrote:
> hi,
> i had got the Redhat 7.0 distro and installed linux.i am not able to
> figure out whether my kernel supports it or not.iam not able to
> understand how to go about it.
> when i do : cat /dev/sndstat : no such device
>
> i also tried through sndconfig but when it tries to play the demo
> sound there is no sound.where might it have gone wrong.iam having pci
> card.
>
/snip/
> i have tried so many things but in anvil.will u be please kind enough
> to guide me.if u want any other data please let me no(also the way how
> to extract the data)so i can mail and for u to get easier to diagnose
> the problem.
> thanking u
> rohit
>
Your sound modules are loaded, try raising the volume with one of the
mixers you have available, e.g. "aumix -v100 -w100".
------------------------------
From: [EMAIL PROTECTED] (Chris Nappin)
Crossposted-To: comp.os.linux.redhat
Subject: Re: Compiling kernel for Red Hat 7.1
Date: 13 Jun 2001 03:25:30 -0700
> * Meeko wrote:
> ...I am trying to compile kernel 2.4.5 for my RH7.1
> system...
I've done this without any problems on a couple of boxes. I never
alter the symbolic links under /boot, just copy my new kernel image
(e.g. bzImage.custom.2.4.5) into /boot, add the settings to
/etc/lilo.conf, then run "/sbin/lilo" followed by "/sbin/lilo -q". The
output from these commands should show it has recognised a new kernel
image (asterix next to the name). Then reboot, check it is okay then
update your default kernal.
------------------------------
From: [EMAIL PROTECTED] (Amanullah Khan)
Subject: Multicast PIM-SM
Date: 13 Jun 2001 03:25:35 -0700
Hi
I am learner in Linux.
I am trying to run the PIM-SM code on linux. I have the linux kernel of
version 2.2.12-20 on i686. I have the PIM-SM code of version 2.1.0-alpha28
implemented by Pavlin Ivanov Radoslavov. I have some basic doubts
1. Earlier IP multicast support was not there, now I have recompiled the
kernel. Now I am not able to ping to 224.0.0.1 & 224.0.0.2. I searched thru
website I got to know that the route has to be added. My question is what is
the need to add the route explicitly, whereas in windows it is not needed?
2. I saw a file ipmr.c in linux which has the option of receving the PIM-SM
version 1 and version 2. My question is the PIM-SM code is already added in
the kernel or should I add the code to the kernel explicitly.
3. I have configured linux as a router. If I ping to the IP address 224.0.0.2
it is not replying.
Can anyone help me in this regard
Thanking you in advance
Regards
Aman
------------------------------
From: croc <[EMAIL PROTECTED]>
Subject: alsa sound
Date: Wed, 13 Jun 2001 16:59:44 +0300
Hi folks,
Have an onboard sound chip and had it working nice under rehatd 6.1 and
then drake 7.2 .. upgraded to drake 8.0 and there is nothing now. I did
origially have the startup sounds working and I could play mp3 files
(all legal of course ;) )So I tried installing alsa (which is what I did
sucessfully under redhat 6.1). I can compile and install the drivers and
the libraries but the utils fail with this upon make:
Making all in include
make[1]: Entering directory
`/usr/local/packages/alsa/alsa-utils-0.5.10/include'
make[1]: Leaving directory
`/usr/local/packages/alsa/alsa-utils-0.5.10/include'
Making all in alsactl
make[1]: Entering directory
`/usr/local/packages/alsa/alsa-utils-0.5.10/alsactl'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -c alsactl.c
In file included from alsactl.c:22:
alsactl.h:42: parse error before `snd_switch_t'
alsactl.h:42: warning: no semicolon at end of struct or union
alsactl.h:44: parse error before `}'
alsactl.h:47: parse error before `snd_ctl_hw_info_t'
alsactl.h:47: warning: no semicolon at end of struct or union
alsactl.h:49: parse error before `}'
alsactl.h:52: parse error before `snd_mixer_element_info_t'
alsactl.h:52: warning: no semicolon at end of struct or union
alsactl.h:53: warning: data definition has no type or storage class
alsactl.h:54: conflicting types for `next'
alsactl.h:43: previous declaration of `next'
alsactl.h:55: parse error before `}'
alsactl.h:59: parse error before `snd_mixer_info_t'
alsactl.h:59: warning: no semicolon at end of struct or union
alsactl.h:62: conflicting types for `next'
alsactl.h:54: previous declaration of `next'
alsactl.h:63: parse error before `}'
alsactl.h:67: field `info' has incomplete type
alsactl.h:71: confused by earlier errors, bailing out
make[1]: *** [alsactl.o] Error 1
make[1]: Leaving directory
`/usr/local/packages/alsa/alsa-utils-0.5.10/alsactl'
make: *** [all-recursive] Error 1
Any ideas?
I am using the 2.4.4 kernel and had tried installing BOTH the 0.5.10 AND
0.90beta4
Now even though I cannot compile the utils the bin 'amixer' comes up if
I just type 'ami' and then hit 'tab' but when I try to unmute the
channels it then says:
The ALSA sound driver was not detected in this system.
I just know that if I can get the utils installed then I can unmute this
darned stuff and have sound.
------------------------------
From: Rick <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.powerpc
Subject: Re: no sound from CD
Date: Wed, 13 Jun 2001 07:15:21 -0400
Rick wrote:
>
> Rick wrote:
> >
> > I have not been able to get sound from my CD. I can get xmms to play
> > streaming mp3s. I can get event sounds from X-Chat, but not a peep
> > frommy CD. I do not believe I g=had sound from GNOME either.
> >
>
> I have a mac g3 tower running LinuxPPC Q4. The CD does play audio in
> MacOS.
>
> > Can anyone point me to some solution?
> >
> > Any and all help appreciated,
More info - I just pulled the cover from the fron and plugged in
headphones, and then speakers. There IS sound. Why would theis be in
LinuxPPC and ot in MacOS ?
Thanks.
Rick
------------------------------
From: [EMAIL PROTECTED] (Martijn van Buul)
Crossposted-To: comp.os.linux.powerpc
Subject: Re: no sound from CD
Date: 13 Jun 2001 11:13:49 GMT
Reply-To: [EMAIL PROTECTED] (Martijn van Buul)
It occurred to me that Rick wrote in comp.os.linux.powerpc:
> More info - I just pulled the cover from the fron and plugged in
> headphones, and then speakers. There IS sound. Why would theis be in
> LinuxPPC and ot in MacOS ?
Check your mixer settings. There should be a nice GNOME or KDE tool
for that.
--
Martijn van Buul - [EMAIL PROTECTED] - http://www.stack.nl/~martijnb/
Geek code: G-- - Visit OuterSpace: mud.stack.nl 3333
Kees J. Bot: The sum of CPU power and user brain power is a constant.
------------------------------
From: [EMAIL PROTECTED] (rennix)
Crossposted-To: comp.os.linux.networking
Subject: Kernel messages: is it really hd?
Date: 13 Jun 2001 04:19:37 -0700
Hi,
since about 1 week I get these messages. They appear in the logfiles
as well as on the console. I dont get them when I log in remote
though....
Anyway
Is this really a hard drive error or is it just a problem with the DMA
BusMastering?
I wonder if could solve the problem just by rebooting the box and
disabling the DMA with hdparm - since (I guess) DMA is now enabled per
default in the 2.4.x kernel.
Its an RH7.0 with 2.4 kernel with a 20 GB HD which serves as Web- and
FTPServer.
Thats why I didnt reboot yet. Shit hits the fan if the box doesnt come
up again.
Now check it out:
Jun 12 20:05:23 max kernel: hda: dma_intr: status=0x51 { DriveReady
SeekComplete Error }
Jun 12 20:05:23 max kernel: hda: dma_intr: error=0x40 {
UncorrectableError }, LBAsect=1310896, sector=1310832
Jun 12 20:05:23 max kernel: end_request: I/O error, dev 03:01 (hda),
sector 1310832
Jun 12 20:05:23 max kernel: EXT2-fs error (device ide0(3,1)):
ext2_write_inode: unable to read inode block - inode=82216, block=1638
54
Jun 12 20:05:23 max kernel: hda: dma_intr: status=0x51 { DriveReady
SeekComplete Error }
Jun 12 20:05:23 max kernel: hda: dma_intr: error=0x40 {
UncorrectableError }, LBAsect=1310896, sector=1310832
Jun 12 20:05:23 max kernel: end_request: I/O error, dev 03:01 (hda),
sector 1310832
Jun 12 20:05:23 max kernel: EXT2-fs error (device ide0(3,1)):
ext2_write_inode: unable to read inode block - inode=82222, block=1638
54
Jun 12 20:08:43 max kernel: hda: dma_intr: status=0x51 { DriveReady
SeekComplete Error }
Jun 12 20:08:43 max kernel: hda: dma_intr: error=0x40 {
UncorrectableError }, LBAsect=1835152, sector=1835088
Jun 12 20:08:43 max kernel: end_request: I/O error, dev 03:01 (hda),
sector 1835088
Jun 12 20:08:43 max kernel: EXT2-fs error (device ide0(3,1)):
ext2_write_inode: unable to read inode block - inode=114875, block=229
386
Jun 12 20:10:00 max CROND[21668]: (root) CMD ( /sbin/rmmod -as)
Jun 12 20:12:41 max kernel: hda: dma_intr: status=0x51 { DriveReady
SeekComplete Error }
Jun 12 20:12:41 max kernel: hda: dma_intr: error=0x40 {
UncorrectableError }, LBAsect=1835152, sector=1835088
Jun 12 20:12:41 max kernel: end_request: I/O error, dev 03:01 (hda),
sector 1835088
Jun 12 20:12:41 max kernel: EXT2-fs error (device ide0(3,1)):
ext2_write_inode: unable to read inode block - inode=114862, block=229
386
Any suggestion is aprecciated
Thanx
------------------------------
From: "Maximus Idius" <[EMAIL PROTECTED]>
Subject: Re: RH 7.1 and GeForce
Date: Wed, 13 Jun 2001 20:20:43 +0900
it works.
I have Asus CUSL2 and Winfast GeForce 2MX- 32mb.
I choose resolution of 1260x768, with gnome.
Hope this may help.
max idius
--
"faeychyld" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Has anyone installed RH7 with a Geforce 2MX
> card.
>
> I find that the resolution
> I select determines whether I get icons
> or a gnome panel,and definately NO desktop
> popup menus ( rmb).
>
> This is with the default install desktop
> (sawfish I think).
>
> Oddly enough, the desktop with icons and gnome
> panel is intact during the Xconfigurator test,
> but when X finaly starts, thing go wrong.
>
> --
> -
> -
> -
> Regards F
------------------------------
From: [EMAIL PROTECTED] (Allen Ashley)
Subject: Re: make oldconfig
Date: 13 Jun 2001 11:44:49 GMT
[EMAIL PROTECTED] (thefoxyone) writes:
>does this command use the old kernel settings as a basis for compiling
>a new kernel
>what i want to do is avoid trawling thru make xconfig or make
>menuconfig before compiling my kernel when i've not really changed the
>hardware just updated the kernel
Yes, if you copy over your old .config file to the new kernel source
tree, make oldconfig will only ask you to define the options which are
new to the new kernel. Having said that, I found it necessary to examine
each option before I could get the 2.4 kernel to run when updating from
2.2
------------------------------
From: "ThanhVu Nguyen" <[EMAIL PROTECTED]>
Subject: Re: Newbie C++/Suse question
Date: Wed, 13 Jun 2001 07:45:49 -0400
I think the extension *.c is for c file, not c++ in linux.
Change the name to test.cc or test.C , then compile & make it again.
btw, just a small note, use:
#include <iostream>
#include <fstream>
using namespace std;
instead of the old header type :o)
"jan vandesompele" <[EMAIL PROTECTED]> wrote in message
news:9g79n8$50q$[EMAIL PROTECTED]...
> Hi,
>
> I'm trying to compile a simple program that includes 'iostream.h' and
> 'fstream.h' like this:
>
> #include <iostream.h>
> #include <fstream.h>
>
> When I to "make test", I get the error that the error
> test.c:2 iostream.h: No such file or directory
> test.c:2 fstream.h: No such file or directory
>
> I'm using Suse 7.1 and the include files are located in '/usr/include/g++'
> How can I make my compiler look for the needed files there automatically?
>
> Greetz,
> Jan Vandesompele
>
>
------------------------------
From: [EMAIL PROTECTED] (Aravindh)
Subject: Re: flushing the buffer in the kernel
Date: 13 Jun 2001 05:26:51 -0700
> # rm /var/log/boot.log
> # rm /var/log/dmesg
> # rm /var/log/messages
no that is not what i meant. i want to change the source of the output
statements used to display messages during bootup of the kernel and
then recompile the kernel. i am working on a proprietery system. so
some of the errors are getting lost in the buffer before it hits the
screen. i just want to do a fflush at the end of every write. i
thought the easiest way to do this was in the source of commands like
printk, puts etc. but is there an easier way to do so?
also i have not been able to find the source location of the output
commands. any place where i can find which functions are defined
where?
i also tried to use the standard fflush in some places and it did not
work. any other way to flush the buffer?
thanks
aravindh
------------------------------
From: [EMAIL PROTECTED] (Lee Allen)
Subject: Re: Compile kernel in rescue mode
Reply-To: [EMAIL PROTECTED]
Date: Wed, 13 Jun 2001 12:40:36 GMT
On Tue, 12 Jun 2001 11:21:49 -0700, "Dave" <[EMAIL PROTECTED]>
wrote:
>It looks like I will recompiling a new kernel (2.4.5) sometime, from Redhat
>2.4.2 which came with Redhat 7.1. This should fix a problem I've been
>having with my VT82C686B southbridge controller and the kernel. I can't
>boot into Linux, unless I use the Redhat rescue mode. This mode
>automatically mounts my hard drive to /mnt/sysimage. I'm planning on
>burning the Linux Kernel source to a CD-R disk in Windows, and then grabbing
>the kernel from there, and re-compiling in Linux.
>
>When I re-compile in Linux, what extra things do I need to be careful about
>since I am not in the regular form on Linux (whatever that means). Do I
>need to do anything with chroot?
>
>I mean, compiling the kernel sounds easy if you can boot into your system.
>But I'm guessing I'll have to do something different in rescue mode. I've
>already found some limitations of Redhat's rescue mode. For one, I can't
>see man pages.
You *might* be able to recompile your kernel from rescue mode. You
would have to mount your hard disk root filesystem and then chroot
into it.
Why can't you boot into your root filesystem?
-Lee Allen
------------------------------
From: Philip Willoughby <[EMAIL PROTECTED]>
Subject: Re: DRI error (cross-posted)
Date: Wed, 13 Jun 2001 13:38:23 +0100
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
Yesterday, Helge Hoel wrote:
>First I have to say that this
>message was crossposted to "comp.os.linux.misc, 3dfx.glide.linux,
>3dfx.products.voodoo3" I dont know which of the groups that's most
>correct, but you can send your answers to the most appropriate.
>
>I have recently installed slackware-current, and upgraded the XFree86
>server to 4.1.0. I got a voodoo3 3000 AGP board, and would now really like
>to view the GL screensavers, and play Tuxracer =) I then had to find a way
>to get DRI to work then. I recompiled my kernel, to the 2.4.5, in my
>kernel config, things look like this.
>
>-----------------------------------
>(*) /dev/agpgart (AGP Support)
>(*) Intel 440LX/BX/GX and I815/I840/I850 support (*) Direct Rendering
>Manager (XFree86 DRI support) (*) 3dfx Banshee/Voodoo3+
>-----------------------------------
>
>Yes, my motherboard is an Intel board, with 440BX chipset. So now I think
>my kernel should support DRI. Let's then move on to my XF86Config..
>
>-----------------------------------
>
><SNIPP>
>
>Load "glx"
>Load "dri"
>
>Section "dri"
>Mode 0666
>EndSection
>
><MORE SNIPP>
>
>Section "Device"
> Identifier "voodoo3 (generic)"
> Driver "tdfx"
>EndSection
>
>------------------------------------
>
>So now I guess my XF86Config should handle DRI too. Let's start XFree..
>here's some info from "/var/log/XFree86.0.log" ..
>
>-------------------------------------
>
><SNIPP>
>(II) TDFX(0): [drm] created "tdfx" driver at busid "PCI:1:0:0"
>(II) TDFX(0): [drm] added 4096 byteSAREA at 0xc5d33000
>(II) TDFX(0): [drm] mapped SAREA 0xc5d33000 to 0x40017000
>(II) TDFX(0): [drm] framebuffer handle = 0xe2000000
>(II) TDFX(0): [drm] added 1 reserved context for kernel
>(II) TDFX(0): [drm] Registers = 0xde000000
>(II) TDFX(0): visual configs initialized
>(II) TDFX(0): Using XFree86 Acceleration Architecture (XAA)
><MORE SNIPP>
>(==) TDFX(0): Backing store disabled
>(==) TDFX(0): Silken mouse enabled
>(II) TDFX(0): X context handle = 0x00000001
>(II) TDFX(0): [drm] installed DRM signal handler
>(II) TDFX(0): [DRI] installation complete
>(==) TDFX(0):
>Direct rendering enabled
>
>--------------------------------------
>
>I'm not a X guru, but it looks to me like everything's fine so far. Then
>after X have started, lets try "xdpyinfo"
>
>---------------------------------------
>number of extensions: 26
><SNIPP>
> GLX
> SGI-GLX
> XFree86-DRI
></SNIPP>
>----------------------------------------
>
>Theese extensions are listed. I've heard that theese are the one's I need
>for DRI. Now things are getting interesting.. I'll print you all the lines
>I think might help from "glxinfo"
>
>-----------------------------------------
>direct rendering: No
>server glx vendor string: SGI
>server glx version string: 1.2
>OpenGL vendor string: VA Linux Systems Inc.
>OpenGL renderer string: Mesa GLX Indirect
>OpenGL version string: 1.2 Mesa 3.4.2
>glu version: 1.3
>------------------------------------------
>
>First of all, glxinfo says that direct
>rendering isn't in use. It then says that OpenGL is rendered with "Mesa
>GLX Indirect" instead of my voodoo3 board. So I'm then asking you, why?
>
>"setpci 01:00.0 4.w" returns 0003, which means, no DMA support on my
>graphic card. I've heard bus-mastering-dma is required for DRI. So how do
>I turn this on? (If that's the problem).
It looks like your 3D programs are referencing the wrong libGL.so library. Use
the ldd tool to determine which library it is looking at, and then run the
following command replacing <LIB> with the full path:
strings <LIB> | grep DRI
If you get any output then this isn't the problem... I would assume that it is
though.
If it is the problem, then simply move the wrong libGL out of the way, to
/root, (you need to move libGL.so and all symlinks from/to it).
Then run ldconfig and everything should be peachy.
BTW Bus mastering does nothing on voodoo# boards -- if you try to enable it the
card will disable it.
Regards,
Philip Willoughby
- --
echo [EMAIL PROTECTED] | tr "bizndfohces" "pwgd9ociaku"
=====BEGIN PGP SIGNATURE=====
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7J17ETEXlrOaAVckRAqJzAJ92B5o4z0dClljTaC0FFvwceCtoLwCfZzpQ
x0zW1++aQAiHtpSZWghPi+I=
=j9LG
=====END PGP SIGNATURE=====
------------------------------
** 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 comp.os.linux.misc.
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-Misc Digest
******************************