View previous topic :: View next topic |
Author |
Message |
nirax Guru


Joined: 06 Jul 2004 Posts: 319 Location: Germany, old Europe
|
Posted: Sat Jul 17, 2004 1:22 pm Post subject: new kernel: what to re-emerge? |
|
|
hi,
i switched from 2.4 to 2.6 kernel, and noticed the hard way that i also to need to re-emerge the ati-drivers after.
do i also need to re-emerge nforce-audio and nforce-net ?
(i use ati 9700 pro/ nforce2)
lsmod atm is:
Code: |
Module Size Used by
fglrx 211780 -
radeon 124756 -
nvidia_agp 5568 -
agpgart 27308 -
ohci_hcd 18984 -
|
when i tried to re-emerge nforce-audio i got strange output:
Code: |
emerge nforce-audio
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/nforce-audio-1.0.0261 to /
>>> md5 src_uri ;-) NVIDIA_nforce-1.0-0261.tar.gz
>>> Unpacking source...
>>> Unpacking NVIDIA_nforce-1.0-0261.tar.gz to /var/tmp/portage/nforce-audio-1.0.0261/work
>>> Source unpacked.
make nvaudio.o
make[1]: Entering directory `/var/tmp/portage/nforce-audio-1.0.0261/work/nforce/nvaudio'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -DREMAP_NEW -c -o nvhw.o nvhw.c
In file included from /usr/src/linux/include/asm/smp.h:18,
from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from nvhw.c:12:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux/include/asm/smp.h:18,
from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from nvhw.c:12:
/usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:43: error: `MAX_APICS' undeclared here (not in a function)
In file included from /usr/src/linux/include/asm/smp.h:20,
from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from nvhw.c:12:
/usr/src/linux/include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/io_apic.h:160: error: conflicting types for `mp_irqs'
/usr/src/linux/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from nvhw.c:12:
/usr/src/linux/include/asm/smp.h:71:26: mach_apicdef.h: No such file or directory
In file included from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from nvhw.c:12:
/usr/src/linux/include/asm/smp.h: In function `hard_smp_processor_id':
/usr/src/linux/include/asm/smp.h:75: warning: implicit declaration of function `GET_APIC_ID'
In file included from /usr/src/linux/include/linux/irq.h:20,
from /usr/src/linux/include/asm/hardirq.h:6,
from nvhw.h:31,
from nvhw.c:16:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/hardirq.h:6,
from nvhw.h:31,
from nvhw.c:16:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:72,
from /usr/src/linux/include/asm/hardirq.h:6,
from nvhw.h:31,
from nvhw.c:16:
/usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function)
make[1]: *** [nvhw.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/nforce-audio-1.0.0261/work/nforce/nvaudio'
make: *** [all] Error 2
!!! ERROR: media-sound/nforce-audio-1.0.0261 failed.
!!! Function src_compile, Line 27, Exitcode 2
!!! (no error message)
dinu log # emerge --pretend nforce-audio
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] media-sound/nforce-audio-1.0.0261
|
any hints?
greetings,
nirax[/code] |
|
Back to top |
|
 |
izomorfix Tux's lil' helper


Joined: 18 Jun 2003 Posts: 81 Location: Romania
|
Posted: Sat Jul 17, 2004 1:59 pm Post subject: |
|
|
You should look in the old /lib/modules/...2.4..../misc (or something)dir and see what you have here. You will probably know by the names of the modules. Yes you need to because you built those modules for 2.4.
Try using a newer version than the one you're trying to emerge.
BTW, make sure /usr/src/linux is pointing to the 2.6 sources dir _________________ 0100100100100000011011000110111101110110
0110010100100000010001110110010101101110
01110100011011110110111100100001 |
|
Back to top |
|
 |
nirax Guru


Joined: 06 Jul 2004 Posts: 319 Location: Germany, old Europe
|
Posted: Sat Jul 17, 2004 2:08 pm Post subject: |
|
|
hoi thanks for the quick answer;
linux points on the right kernel:
Code: |
src # ls -l
total 16
lrwxr-xr-x 1 root root 22 Jul 17 11:16 linux -> linux-2.6.7-gentoo-r11
drwxr-xr-x 16 root root 4096 Jul 6 04:12 linux-2.4.26-gentoo-r3
drwxr-xr-x 16 root root 4096 Jul 15 09:30 linux-2.4.26-gentoo-r5
drwxr-xr-x 19 root root 4096 Jul 17 13:47 linux-2.6.7-gentoo-r11
drwxr-xr-x 19 root root 4096 Jul 17 00:03 linux-2.6.7-gentoo-r8
|
cant find any /misc though also under the 2.4:
Code: |
cd /lib/modules/
dinu modules # ls
2.4.26-gentoo-r3 2.6.7-gentoo-r11 2.6.7-gentoo-r8
dinu modules # cd 2.4.26-gentoo-r3/
dinu 2.4.26-gentoo-r3 # ls
build modules.dep modules.ieee1394map modules.parportmap modules.pnpbiosmap pcmcia
kernel modules.generic_string modules.isapnpmap modules.pcimap modules.usbmap video
dinu 2.4.26-gentoo-r3 #
|
if i need to re-emerge it i dont udnerstand the error i get from emerging nvidia-audio now.
should i unmerge it first?
also i dont eh- get exactly why the audio is already working. audio works, net works and i didnt re-emerged the stuff yet for the new kernel.
merci pentru raspuns
greetings,
nirax, germany |
|
Back to top |
|
 |
izomorfix Tux's lil' helper


Joined: 18 Jun 2003 Posts: 81 Location: Romania
|
Posted: Sat Jul 17, 2004 2:18 pm Post subject: |
|
|
From what I know, the error you get is because that driver is for the 2.4 kernel. Please try a newer version like 1.0.0274 , first check if it's there.
Code: |
ls /usr/portage/media-sound/nforce-audio
|
BTW, please post your
Code: |
ls /lib/modules/linux-2.4.26-gentoo-r3/video
|
_____
Cu placere  _________________ 0100100100100000011011000110111101110110
0110010100100000010001110110010101101110
01110100011011110110111100100001 |
|
Back to top |
|
 |
nirax Guru


Joined: 06 Jul 2004 Posts: 319 Location: Germany, old Europe
|
Posted: Sat Jul 17, 2004 6:13 pm Post subject: |
|
|
hi, here the requested outputs thanks a lot for the strong support.
(multumesc pentrul supportul - am mai tras - o un pic pe romineste
Code: |
dinu 2.4.26-gentoo-r3 # ls /usr/portage/media-sound/nforce-audio/
ChangeLog Manifest files metadata.xml nforce-audio-1.0.0256.ebuild nforce-audio-1.0.0261.ebuild
|
Code: |
ls
build modules.dep modules.ieee1394map modules.parportmap modules.pnpbiosmap pcmcia
kernel modules.generic_string modules.isapnpmap modules.pcimap modules.usbmap video
dinu 2.4.26-gentoo-r3 # cd video/
dinu video # ls
fglrx.o
|
greetings,
nirax _________________ quot licet iovi non licet bovi |
|
Back to top |
|
 |
marthy n00b

Joined: 21 Jul 2004 Posts: 1
|
Posted: Thu Jul 22, 2004 7:09 am Post subject: the same problem |
|
|
I have the same problem .. I can not make module for kernel 2.6 .. and newer version of nforce-audio does not exist. So here is no other way how can I try to make this modul? .. I also did unmerge it after reboot emerge it back with link to 2.6 kernel source but module for this kernel was not made :/ ..
thanks a lot .. marthy
izomorfix wrote: | From what I know, the error you get is because that driver is for the 2.4 kernel. Please try a newer version like 1.0.0274 , first check if it's there.
Code: |
ls /usr/portage/media-sound/nforce-audio
|
BTW, please post your
Code: |
ls /lib/modules/linux-2.4.26-gentoo-r3/video
|
_____
Cu placere  |
|
|
Back to top |
|
 |
lokojones Tux's lil' helper


Joined: 29 Feb 2004 Posts: 131 Location: Canary Islands, Spain.
|
Posted: Thu Jul 22, 2004 7:59 pm Post subject: More... |
|
|
I've been looking for a solution to this problem for long time... the main problem is that lastest nforce drivers still do not work with 2.6.x kernels... I've made an ebuild file, so its possible to use 274 version of nforce drivers, wich is not provided by portage yet (also not available with ~x86) If someone wants this, I could sent it.. but I repeat it wont work with 2.6.x kernel...
insted of using nforce-net and nforce-audio from portage, you have to build in the kernel the modules for the Sis 7012 sound, and the reverse enginered nforce ethernet module (this one avaible only with gentoo-dev-sources I think..)
The sis 7012 module is not an nforce module.. i mean, you wont have 5.1 sound or hardware mixing.. but its ok if you only want to have normal sound.. i use a 2.6.x kernel, but i've got a 2.4.x for the case I want to have 5.1 sound (watching movies in my big tv )
The reverse enginered ethernet module works OK. _________________ Pure Gentoozo  |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|