Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

nvsound and 2.6.16-rc kernels [fixed]

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
22 posts • Page 1 of 1
Author
Message
sorcer-r
n00b
n00b
Posts: 7
Joined: Mon Apr 11, 2005 7:11 pm

nvsound and 2.6.16-rc kernels [fixed]

  • Quote

Post by sorcer-r » Wed Feb 22, 2006 9:08 pm

Hey all.... thought it might be usefull for others with the same problem I had:

If you compile the nforce-audio module on a 2.6.16-rcX kernel you will get problem with:

Code: Select all

nvsound: Unknown symbol remap_page_range (this function was replaced by remap_pfn_range in the kernel).... 
While the Makefile tries to detect wheter it should use remap_page_range or remap_pfn_range, it seems that the macro in the Makefile mis-detect this on 2.6.16-rcX kernels and enables the incorrect one.....

After some searching I found it was simply fixed by commenting out the wrong assumption in the Makefile like this: ('diff -u' output)

Code: Select all

--- nvsound.a/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/Makefile.kbuild    2005-10-22 03:59:44.000000000 +0200
+++ nvsound.b/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/Makefile.kbuild 2006-02-22 21:51:33.000000000 +0100
@@ -48,16 +48,16 @@
 EXTRA_LDFLAGS := -d

 # Figure out how many args remap_page_ranges() wants or new remap call
-ifeq ($(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_pfn_range), 1)
-  EXTRA_CFLAGS += -DNV_REMAP_PFN_RANGE_PRESENT
-else
-  REMAP_PAGE_RANGE := $(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_page_range)
-
-  ifeq ($(REMAP_PAGE_RANGE),5)
-   EXTRA_CFLAGS += -DREMAP_NEW
-  endif
+#ifeq ($(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_pfn_range), 1)
+EXTRA_CFLAGS += -DNV_REMAP_PFN_RANGE_PRESENT
+#else
+#  REMAP_PAGE_RANGE := $(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_page_range)
+
+#  ifeq ($(REMAP_PAGE_RANGE),5)
+#EXTRA_CFLAGS += -DREMAP_NEW
+#  endif

-endif
+#endif
Top
fiercely
n00b
n00b
Posts: 19
Joined: Tue Nov 15, 2005 9:44 pm
Location: Ottawa, ON, Canada

works like a charm!

  • Quote

Post by fiercely » Fri Mar 24, 2006 4:04 am

i just finished making my 2.6.16 vanilla kernel and encountered the same problem the solution posted worked really well.
Top
DCatcher
n00b
n00b
User avatar
Posts: 12
Joined: Thu Mar 18, 2004 7:57 pm
Location: FRG

  • Quote

Post by DCatcher » Mon Mar 27, 2006 3:46 pm

I experienced the same problem with Gentoo Sources 2.6.16, but I wasn't able to solve the problem.

summary
# emerge =media-sound/nforce-audio-1.0.0310 -> aborted after "Uncompressing NVIDIA nForce drivers"
# cd /var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main
# gvim Makefile.kbuild -> comment out lines 51-61
# make clean && make && make install && modprobe nvsound

make | grep -i warning
Warning: could not find /var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/.mcpmain.o.cmd for /var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/mcpmain.o
*** Warning: "remap_page_range" [/var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvsound.ko] undefined!
make install
mkdir -p //lib/modules/2.6.16-gentoo/kernel/sound/oss
install -b -m 755 nvsound.ko //lib/modules/2.6.16-gentoo/kernel/sound/oss
modprobe nvsound
FATAL: Error inserting nvsound (/lib/modules/2.6.16-gentoo/kernel/sound/oss/nvsound.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Any ideas?
Top
fiercely
n00b
n00b
Posts: 19
Joined: Tue Nov 15, 2005 9:44 pm
Location: Ottawa, ON, Canada

a solution

  • Quote

Post by fiercely » Mon Mar 27, 2006 6:22 pm

DCatcher wrote:I experienced the same problem with Gentoo Sources 2.6.16, but I wasn't able to solve the problem.

summary
# emerge =media-sound/nforce-audio-1.0.0310 -> aborted after "Uncompressing NVIDIA nForce drivers"
# cd /var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main
# gvim Makefile.kbuild -> comment out lines 51-61
# make clean && make && make install && modprobe nvsound

make | grep -i warning
Warning: could not find /var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/.mcpmain.o.cmd for /var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/mcpmain.o
*** Warning: "remap_page_range" [/var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvsound.ko] undefined!
make install
mkdir -p //lib/modules/2.6.16-gentoo/kernel/sound/oss
install -b -m 755 nvsound.ko //lib/modules/2.6.16-gentoo/kernel/sound/oss
modprobe nvsound
FATAL: Error inserting nvsound (/lib/modules/2.6.16-gentoo/kernel/sound/oss/nvsound.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Any ideas?
you commented all lines from 51 to 61. but you should not have commented line 52 that reads "EXTRA_CFLAGS += -DNV_REMAP_PFN_RANGE_PRESENT". so uncomment that line and make clean && make && make install etc :D
Top
DCatcher
n00b
n00b
User avatar
Posts: 12
Joined: Thu Mar 18, 2004 7:57 pm
Location: FRG

Re: a solution

  • Quote

Post by DCatcher » Mon Mar 27, 2006 7:50 pm

fiercely wrote:you commented all lines from 51 to 61. but you should not have commented line 52 that reads "EXTRA_CFLAGS += -DNV_REMAP_PFN_RANGE_PRESENT". so uncomment that line and make clean && make && make install etc :D
Thanks for the hint. Guess, I need new glasses :wink:

It's all working fine, now. =)
Top
darcon
n00b
n00b
User avatar
Posts: 46
Joined: Sat Jun 26, 2004 9:31 pm

  • Quote

Post by darcon » Tue Apr 04, 2006 5:59 am

I followed DCatcher's instructions, except I didn't comment line 52 in Makefile.kbuild, but I still get an error when I run

modprobe nvsound

Code: Select all

FATAL: Error inserting nvsound (/lib/modules/2.6.16-gentoo-r1/misc/nvsound.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Makefile.kbuild changes

Code: Select all

#ifeq ($(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_pfn_range), 1)
  EXTRA_CFLAGS += -DNV_REMAP_PFN_RANGE_PRESENT
#else
#  REMAP_PAGE_RANGE := $(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_page_range)
#
#  ifeq ($(REMAP_PAGE_RANGE),5)
#   EXTRA_CFLAGS += -DREMAP_NEW
#  endif
#
#endif
#
any ideas :?:

Edit: after nvsound got removed from portage I gave up, installed another soundcard I had lying around which hardware mixes fine.
Last edited by darcon on Sun Jun 11, 2006 3:37 pm, edited 1 time in total.
Top
KpR2000
n00b
n00b
Posts: 55
Joined: Mon Aug 18, 2003 5:04 pm

  • Quote

Post by KpR2000 » Thu Apr 06, 2006 12:35 pm

I get the same error as darcon.
I have also tried with EXTRA_CFLAGS += -DREMAP_NEW, but no success (same error)

Any other ideas?

Thanks in advance
Top
Fac3k
n00b
n00b
Posts: 5
Joined: Sat Mar 25, 2006 8:09 pm

  • Quote

Post by Fac3k » Fri May 05, 2006 8:15 pm

Well I ran into same problem. After changing Makefile.kbuild and compiling I still got

Code: Select all

FATAL: Error inserting nvsound (/lib/modules/2.6.16-gentoo-r1/misc/nvsound.ko): Unknown symbol in module, or unknown parameter (see dmesg)
while modprobbing
It seems that some modules aren`t updated after #make install , especially the one in /lib/modules/2.6.16-gentoo-r6/misc/ . I deleted nvsound.ko from there (as from any other possible place too :) ) and recompiled. After that I got error about missing nvmodule in /lib/modules/2.6.16-gentoo-r6/misc/ (why there?) so I did

Code: Select all

#modules-update
I have no problems with nvsound since then.

Many thanks go to sorcer-r for patch.
Top
KpR2000
n00b
n00b
Posts: 55
Joined: Mon Aug 18, 2003 5:04 pm

  • Quote

Post by KpR2000 » Sat May 06, 2006 10:55 am

yes modprobe nvsound is now working.

the error was, that "make install" script does _not_ copy nvsound.ko driver to /lib/modules/*/misc/. And in this location existed the old nvsound.ko driver :?

Code: Select all

make install
mkdir -p //lib/modules/2.6.16-*/kernel/sound/oss
install -b -m 755 nvsound.ko //lib/modules/2.6.16-*/kernel/sound/oss
Thanks to Fac3k and sorcer-r
Top
pszemas
Apprentice
Apprentice
Posts: 181
Joined: Tue Aug 02, 2005 10:17 pm

  • Quote

Post by pszemas » Fri Jun 09, 2006 3:45 pm

I made:

Code: Select all


emerge nforce-audio

ctrl+z after source unpacked

change Makefile.kbuild at

Code: Select all

# Figure out how many args remap_page_ranges() wants or new remap call
#ifeq ($(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_pfn_range), 1)
  EXTRA_CFLAGS += -DNV_REMAP_PFN_RANGE_PRESENT
#else
#  REMAP_PAGE_RANGE := $(shell sh $(src)/conftest.sh "$(CC)" "$(KERNEL_SOURCES)" "$(KERNEL_OUTPUT)" remap_page_range)
#
#  ifeq ($(REMAP_PAGE_RANGE),5)
  EXTRA_CFLAGS += -DREMAP_NEW
# endif
#
#endif
#

than

Code: Select all


cd /var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main 
mkdir -p //lib/modules/2.6.16-gentoo/kernel/sound/oss 
install -b -m 755 nvsound.ko //lib/modules/2.6.16-gentoo/kernel/sound/oss
modules-update

and modprobe nvsound gives

Code: Select all


FATAL: Error inserting nvsound (/lib/modules/2.6.16-gentoo-r9/misc/nvsound.ko): Unknown symbol in module, or unknown parameter (see dmesg)

and dmesg shows

Code: Select all

nvsound: Unknown symbol remap_page_range


:(
Top
fiercely
n00b
n00b
Posts: 19
Joined: Tue Nov 15, 2005 9:44 pm
Location: Ottawa, ON, Canada

if only i knew how to make patches

  • Quote

Post by fiercely » Fri Jun 09, 2006 4:00 pm

don't forget to also comment the line that reads: EXTRA_CFLAGS += -DREMAP_NEW
Top
pszemas
Apprentice
Apprentice
Posts: 181
Joined: Tue Aug 02, 2005 10:17 pm

  • Quote

Post by pszemas » Fri Jun 09, 2006 4:19 pm

I changed that, I get the same ;(
Top
fiercely
n00b
n00b
Posts: 19
Joined: Tue Nov 15, 2005 9:44 pm
Location: Ottawa, ON, Canada

i gotta learn how to make patches

  • Quote

Post by fiercely » Fri Jun 09, 2006 8:05 pm

maybe you should try doing it the longer way. start the emerge. then stop it instead of suspending it. modify the Makefile.kbuild (comment all lines from 51 to 61 except 52). then run make clean; make; make install etc...
Top
CaptainDangeax
n00b
n00b
User avatar
Posts: 21
Joined: Wed Mar 15, 2006 9:14 am
Location: Rennes, France

  • Quote

Post by CaptainDangeax » Tue Jul 04, 2006 5:16 pm

Thanx for the help about nvsound, it worked for me.
the map is not the territory.
Military plans are at best 50% reliable; if more, war would only have winners.
Athlon64 X2 4200+, Gigabyte s969 NForce3 Mainboard, 1GB Ram, NVidia 6600 GT 128MB graphic card, Gentoo 2005.1 for X86_64
Top
unixj
Tux's lil' helper
Tux's lil' helper
Posts: 147
Joined: Fri Jul 18, 2003 12:05 am

nvsound and 2.6.17 kernels

  • Quote

Post by unixj » Mon Aug 21, 2006 6:22 pm

I don't suppose anyone has tried getting media-sound/nforce-audio-1.0.0310 (which was removed from portage) to work with linux-2.6.17.6 and gcc 4.1.1? I get the following error:

Code: Select all

/var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvmain.c: At top level:
/var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvmain.c:2191: error: expected ')' before string constant
make[2]: *** [/var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvmain.o] Error 1
make[1]: *** [_module_/var/tmp/portage/nforce-audio-1.0.0310/work/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17.6'
I guess that's progress? Having to ditch a beautifully working hardware-mixing 5.1 audio to use a newer kernel?
Top
vipernicus
Veteran
Veteran
User avatar
Posts: 1462
Joined: Mon Jan 17, 2005 10:35 pm
Location: Your College IT Dept.
Contact:
Contact vipernicus
Website

  • Quote

Post by vipernicus » Mon Aug 21, 2006 6:31 pm

Aren't those drivers in the kernel now?

nforce-audio ebuild was removed from portage in May.
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Top
unixj
Tux's lil' helper
Tux's lil' helper
Posts: 147
Joined: Fri Jul 18, 2003 12:05 am

  • Quote

Post by unixj » Tue Aug 22, 2006 3:45 am

vipernicus wrote:Aren't those drivers in the kernel now?
You mean alsa? I know that alsa is in the kernel now but AFAIK the intel8x0 driver does not support hardware-level mixing. I would love to be wrong.
vipernicus wrote:nforce-audio ebuild was removed from portage in May.
Yep, I know. I don't understand why it would be removed when there is still a need for it. There was a hack to get it working on 2.6.16 but it's broken again on 2.6.17. If I can't get it working I'll move back to 2.6.16.
Top
ppurka
Advocate
Advocate
Posts: 3256
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Tue Aug 22, 2006 4:02 am

I have nvsound working here with 2.6.17 and gcc-4.1.1

I edited the file NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvmain.c to change the line 2191 to this:

Code: Select all

MODULE_PARM(vapu_enable);
I think this is mainly because MODULE_PARM is deprecated in the new kernel (IIRC it is mentioned in the kernel header files somewhere) and the arguments to the function have also changed.

You can follow this post on how to create a patched and custom NFORCE_installer.sh file.

Also, there is a thread in the nvidia forums which provides a patch to make it work with the non-deprecated function in the new kernel (this function becomes module_parm, I believe).


BTW, the sound quality of intel8x0 pales in comparison to the sound quality of the nvsound drivers. In addition there is proper hardware mixing provided by the nvsound driver (even playing quake3 + other sound applications), if you have a nforce2 chipset. It is sad that nvidia has stopped updating this driver and has not provided an alsa based one :(
Top
unixj
Tux's lil' helper
Tux's lil' helper
Posts: 147
Joined: Fri Jul 18, 2003 12:05 am

  • Quote

Post by unixj » Tue Aug 22, 2006 4:30 am

ppurka wrote:I have nvsound working here with 2.6.17 and gcc-4.1.1
You are awesome! I found a post on nvnews a few minutes ago suggesting the same thing but it didn't explain any detail. I tacked that change onto the existing patch and it now works!

I will look for the post about making it work with the non-deprecated function.
ppurka wrote: BTW, the sound quality of intel8x0 pales in comparison to the sound quality of the nvsound drivers. In addition there is proper hardware mixing provided by the nvsound driver (even playing quake3 + other sound applications), if you have a nforce2 chipset. It is sad that nvidia has stopped updating this driver and has not provided an alsa based one :(
Yes, I agree totally. It seems like only a few months ago that nvidia finally released a version of the driver that supported hardware-level mixing... And then a couple months later the ebuild is removed from portage! I estimate we can limp along for another 6 months.
Top
ppurka
Advocate
Advocate
Posts: 3256
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Tue Aug 22, 2006 5:08 am

unixj wrote: I estimate we can limp along for another 6 months.
I do hope so. However, I think I read in some kernel.org webpage in which the OSS drivers are slated to be removed before 2.6.19. I may be wrong, but if I can get hold of that webpage I will post a link here.

EDIT: Looking at this link, it seems the OSS drivers are being removed, so if the kernel headers don't change enough, the nvsound drivers should work in the near future too (yay !?), since no OSS config option needs to be turned on to run the nvsound drivers.
Top
unixj
Tux's lil' helper
Tux's lil' helper
Posts: 147
Joined: Fri Jul 18, 2003 12:05 am

  • Quote

Post by unixj » Wed Aug 23, 2006 4:52 am

Great! I don't expect nvidia to release a version for alsa, now that nforce2 is so old.
Top
ppurka
Advocate
Advocate
Posts: 3256
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Tue Aug 28, 2007 6:00 am

Just wanted to document this in the forum:
I got a compilation error like this with kernel 2.6.21:

Code: Select all

   include/linux/prefetch.h: In function 'prefetch_range': 
   include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arith 
   metic 
   In file included from /tmp/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main 
   /nvapucalls.h:22, 
                    from /tmp/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main 
   /nvmixer.c:15: 
   /tmp/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvaioctl.h: At top le 
   vel: 
   /tmp/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvaioctl.h:218: error 
   : 'device_type' defined as wrong kind of tag 
   make[4]: *** [/tmp/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvmixer 
   .o] Error 1 
   make[3]: *** [_module_/tmp/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main 
   ] Error 2 
   make[2]: *** [modules] Error 2 
-> Error. 
ERROR: The NVIDIA kernel module was not created. 
ERROR: Installation of the audio driver has failed.  Please see the file 
       '/var/log/nvidia-nforce-installer.log' for details.  You may find 
       suggestions on  fixing installation problems in the README available on 
       the Linux driver download page at www.nvidia.com.
To fix it, I changed the

"enum device_type{" in line 218, of nvsound/main/nvaioctl.h to
"enum Device_type{" (i.e. just did a simple rename of it) and it compiled fine :D

(The fix was inspired by this (unrelated) comment).
[topic=797019]emerge --quiet redefined[/topic] | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
Post Reply

22 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy