Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010 2011

Latest shouts directly from our packagers and call for public testing MIB packages
User avatar
GiuX
Utente
Utente
Posts: 238
Joined: 6 May 2009, 10:21
ROSA: Fresh
OpenMandriva: -
Kernel: 3.6.11nrjQL
Desktop: KDE 4.9.5
country: Italia

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by GiuX »

Si, l'avevo già fatto con il servizio cpupower, ma volevo qualche soluzione ufficiale... non vorrei che cambiando i file di configurazione poi con un aggiornamento risolutivo dovessi riandare a cambiarlo...

P.S. ho letto che "atd" dovrebbe fare le stesse cose di "crond" (il manuale di atd indica esplicitamente che sarà unito con crond...) pensavo quindi di disattivarlo completamente....

User avatar
GiuX
Utente
Utente
Posts: 238
Joined: 6 May 2009, 10:21
ROSA: Fresh
OpenMandriva: -
Kernel: 3.6.11nrjQL
Desktop: KDE 4.9.5
country: Italia

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by GiuX »

P.S. Nicco, ho notato che è ricomparso quel problemino sulla temperatura, ora sta sempre sopra quota 60°...

User avatar
NicCo
Amministratore
Amministratore
Posts: 4765
Joined: 6 December 2007, 19:54

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by NicCo »

GiuX wrote:P.S. Nicco, ho notato che è ricomparso quel problemino sulla temperatura, ora sta sempre sopra quota 60°...
Quale Kernel stai usando?

tutti i Kernel nrj sono adesso ONDEMAND

mentre su QL in base ai flavour, su quelli dove volevo dare maggiore reattività come:
Kernel QL desktop, realtime sono PERFORMANCE, quindi possono scaldare di più,
ma puoi sempre usare il comando cpupower per cambiare il profilo in ONDEMAND

diversamente, quelli realizzati con in mente principalmente, il risparmio enegetico:
Kernel QL laptop, netbook sono predefiniti come ONDEMAND

la cosa potrebbecambiare in seguito, perchè sembra che ONDEMAND vada bene
e non rallenti ill kernel, e cosi in futuro tutti i QL potrebbero essere ONDEMAND


Ciao, NicCo
.
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.

--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL

User avatar
GiuX
Utente
Utente
Posts: 238
Joined: 6 May 2009, 10:21
ROSA: Fresh
OpenMandriva: -
Kernel: 3.6.11nrjQL
Desktop: KDE 4.9.5
country: Italia

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by GiuX »

sto usando kernel-nrjQL-laptop

User avatar
Alexander83
Utente
Utente
Posts: 248
Joined: 10 April 2012, 14:50
ROSA: -
OpenMandriva: -
Kernel: -
Desktop: Kde
country: Italy

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by Alexander83 »

Alexander83 wrote:Non so quantificare il miglioramento
Dopo qualche giorno di utilizzo posso senz'altro dire che la batteria parecchio: 3 ore e 10 minuti di riproduzione video con vlc prima di arrivare alla soglia del 10% (che nel mio caso è la soglia che fa accendere la spia di batteria scarica). :D
Con la 2012.0 riuscivo ad arrivare a qualche minuto in più (con kernel nrj-laptop) ma solamente perchè potevo regolare la luminosità dello schermo più bassa (cosa che non riesco ancora a fare con la 2012.1)! :roll:
Aspettiamo con ansia i nuovi kernel... ;)
Desktop: Kubuntu 64bit
Notebook Asus X53SD-SX191V: Kubuntu 64bit
Linux 4 Ever

User avatar
oiram73
Utente senior
Utente senior
Posts: 405
Joined: 5 January 2009, 13:33
ROSA: -
OpenMandriva: 2014
Kernel: 3.19.8-nrjQL-realtim
Desktop: KDE 4.14.3
country: Italia
Location: Perugia
Contact:

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by oiram73 »

È un problema mio e solo mio?

Code: Select all

[root@localhost mario]# urpme cpupower
rimozione di cpupower-3.6.10-1-rosa.lts2012.0.x86_64
In preparazione...               ###################################################################################################
Redirecting to /bin/systemctl stop cpupower.service
errore durante la lettura delle informazioni sul servizio cpupower: File o directory non esistente
rimozione del pacchetto cpupower-3.6.10-1.x86_64
[root@localhost mario]# urpmi  cpupower


    http://abf.rosalinux.ru/downloads/kernels_36x_personal/repository/rosa2012lts/x86_64/main/release/cpupower-3.6.10-1-rosa.lts2012.0.x86_64.rpm
installazione di cpupower-3.6.10-1-rosa.lts2012.0.x86_64.rpm da /var/cache/urpmi/rpms                                                
In preparazione...               ###################################################################################################
      1/1: cpupower              ###################################################################################################
errore durante la lettura delle informazioni sul servizio cpupower: File o directory non esistente
[root@localhost mario]#
OMA-2014
oiram/bin/selom
Da ognuno secondo le proprie capacità ad ognuno secondo i propri bisogni!

User avatar
chuyx
Nuovo utente
Nuovo utente
Posts: 1
Joined: 30 December 2012, 4:42
ROSA: 2012.1
OpenMandriva: 2011
Kernel: 3.0
Desktop: kde4
country: mexico

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by chuyx »

COOL MAN! LEGENDARY! As we say in MEXICO MUY CHIDO Y MUY CHIGON this awesome kernel im goig to use in orvitux branch from unity linux

A.K.A CHUY_ Unity linux

User avatar
rolf
Utente
Utente
Posts: 112
Joined: 20 May 2009, 3:15
ROSA: R3 2012.1 x86_64
OpenMandriva: OMV 2014.0 x86_64
Kernel: 3.13.11-nrjQL-realti
Desktop: KDE 4.13.2
country: USA

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by rolf »

Hi. I've been running the following for some time:

Code: Select all

3.2.18-nrj-desktop-1mib
dkms-minimal-2.0.19-27.2-mdv2011.0.noarch
dkms-2.0.19-27.2-mdv2011.0.noarch
dkms-nvidia-current-295.40-2-mdv2011.0.x86_64
x11-driver-video-nvidia-current-295.40-2-mdv2011.0.x86_64
microcode-0.20120313-1-mib2011.0.noarch
dracut-017-16-rosa.lts2012.0.noarch
VirtualBox-4.2-4.2.6_82870_mdv2011.0-1.x86_64
The processor is Intel i7-2600K. The microcode does not automatically load. NicCo suggested try a newer kernel, some time ago, and these new nrjQL kernels look interesting, so I installed:

Code: Select all

kernel-nrjQL-desktop-3.6.6-69mib-1-1-mib2011.0.x86_64
kernel-nrjQL-desktop-devel-3.6.6-69mib-1-1-mib2011.0.x86_64
For a long time, I've had a problem with installkernel scripts failing to make an initrd with dracut. I thought I understood NicCo to say the 2012 rosa dracut to solve some problem and I have that one installed but, still no initrd got created for this kernel at installation. I can workaround by using mkinitrd-mkinitrd, so that is not my problem.

Perhaps because of this or for some other reason, a menu.lst entry does not get created but I can do that, also.

What I can't fix, yet, is that dkms fails to build the nvidia module. ISTR booting to a new kernel might succeed to build it when it fails at install time, so I made the initrd, the menu entry, and booted to nrjQL-desktop kernel. I will say that, for whatever reason, the boot seemed quite a bit more rapid. When the dkms nvidia build failed during boot, also, I did Ctrl-Alt-Del back to the old kernel, as I did not want harddrake or someone messing with my xorg.conf.

Booted to my long-working 3.2.18-nrj-desktop-1mib, I did this:

Code: Select all

[root@localhost rolf]# dkms build -m nvidia-current -v 295.40-2 -k 3.6.6-nrjQL-desktop-69mib

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.6.6-nrjQL-desktop-69mib SYSSRC=/lib/modules/3.6.6-nrjQL-desktop-69mib/build module.....(bad exit status: 2)

Error! Bad return status for module build on kernel: 3.6.6-nrjQL-desktop-69mib (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/nvidia-current/295.40-2/build/ for more information.
and the make.log is here:

Code: Select all

[rolf@localhost build]$ cat make.log 
DKMS make.log for nvidia-current-295.40-2 for kernel 3.6.6-nrjQL-desktop-69mib (x86_64)
Thu Jan 10 08:05:28 PST 2013
NVIDIA: calling KBUILD...
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
/bin/false)
mkdir -p /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/nvidia-current/295.40-2/build
  cc -Wp,-MD,/var/lib/dkms/nvidia-current/295.40-2/build/.nv.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-mandriva-linux-gnu/4.6.1/include -I/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-3.6.6-nrjQL-desktop-69mib/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/lib/dkms/nvidia-current/295.40-2/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"295.40\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_nv.o /var/lib/dkms/nvidia-current/295.40-2/build/nv.c
In file included from include/linux/kernel.h:19:0,
                 from include/linux/sched.h:62,
                 from include/linux/utsname.h:35,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:38,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess.h:586:0,
                 from include/linux/poll.h:14,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:97,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:
/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:0:
/var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h: At top level:
/var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[3]: *** [/var/lib/dkms/nvidia-current/295.40-2/build/nv.o] Error 1
make[2]: *** [_module_/var/lib/dkms/nvidia-current/295.40-2/build] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
[rolf@localhost build]$
BTW, vboxhost fails to build, also, but I expect the reason is the same.

Thanks!

User avatar
GvMariani
Collaboratore
Collaboratore
Posts: 610
Joined: 27 July 2009, 11:31
ROSA: 2016.1 Fresh R10
OpenMandriva: -
Kernel: 4.19.13-nrj-desktop
Desktop: Plasma 5
country: Italy
Location: Cologno Monzese (MI) - Italia

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by GvMariani »

rolf wrote: and the make.log is here:

Code: Select all

[rolf@localhost build]$ cat make.log 
DKMS make.log for nvidia-current-295.40-2 for kernel 3.6.6-nrjQL-desktop-69mib (x86_64)
Thu Jan 10 08:05:28 PST 2013
NVIDIA: calling KBUILD...
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
/bin/false)
mkdir -p /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/nvidia-current/295.40-2/build
  cc -Wp,-MD,/var/lib/dkms/nvidia-current/295.40-2/build/.nv.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-mandriva-linux-gnu/4.6.1/include -I/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-3.6.6-nrjQL-desktop-69mib/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/lib/dkms/nvidia-current/295.40-2/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"295.40\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_nv.o /var/lib/dkms/nvidia-current/295.40-2/build/nv.c
In file included from include/linux/kernel.h:19:0,
                 from include/linux/sched.h:62,
                 from include/linux/utsname.h:35,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:38,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess.h:586:0,
                 from include/linux/poll.h:14,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:97,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:
/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:0:
/var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h: At top level:
/var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[3]: *** [/var/lib/dkms/nvidia-current/295.40-2/build/nv.o] Error 1
make[2]: *** [_module_/var/lib/dkms/nvidia-current/295.40-2/build] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
[rolf@localhost build]$
BTW, vboxhost fails to build, also, but I expect the reason is the same.
Thanks!
It looks like you don't have the kernel sources installed...
Or, at least uprmf tells me that the file not found (asm/system.h) is part of the kernel-sources package.

Also the build process already tells you that something is wrong in you build system: "ERROR: Kernel configuration is invalid"

GvM

User avatar
rolf
Utente
Utente
Posts: 112
Joined: 20 May 2009, 3:15
ROSA: R3 2012.1 x86_64
OpenMandriva: OMV 2014.0 x86_64
Kernel: 3.13.11-nrjQL-realti
Desktop: KDE 4.13.2
country: USA

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by rolf »

kernel-nrjQL-desktop-3.6.6-69mib-1-1-mib2011.0.x86_64
kernel-nrjQL-desktop-devel-3.6.6-69mib-1-1-mib2011.0.x86_64
It would be easy enough to install the kernel-source rpm and I'll try it in the morning. It's just that, for all the other kernels, kernel-devel is enough for building drivers.
Thanks!

[..]

Good morning! Kernel-source does not do it.

Code: Select all

[root@localhost rolf]# urpmi kernel-source-3.6.6-69mib


    http://abf.rosalinux.ru/downloads/kernels_36x_personal/repository/mandriva2011/x86_64/main/release/kernel-source-3.6.6-69mib-1-1-mib2011.0.noarch.rpm
installing kernel-source-3.6.6-69mib-1-1-mib2011.0.noarch.rpm from /var/cache/urpmi/rpms                                     
Preparing...                     ###########################################################################################
      1/1: kernel-source-3.6.6-69mib
                                 ###########################################################################################
[root@localhost rolf]# dkms build -m nvidia-current -v 295.40-2 -k 3.6.6-nrjQL-desktop-69mib

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.6.6-nrjQL-desktop-69mib SYSSRC=/lib/modules/3.6.6-nrjQL-desktop-69mib/build module.....(bad exit status: 2)

Error! Bad return status for module build on kernel: 3.6.6-nrjQL-desktop-69mib (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/nvidia-current/295.40-2/build/ for more information.
[root@localhost rolf]# cat /var/lib/dkms/nvidia-current/295.40-2/build/mak
makefile  make.log  
[root@localhost rolf]# cat /var/lib/dkms/nvidia-current/295.40-2/build/make.log 
DKMS make.log for nvidia-current-295.40-2 for kernel 3.6.6-nrjQL-desktop-69mib (x86_64)
Fri Jan 11 03:51:24 PST 2013
NVIDIA: calling KBUILD...
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
/bin/false)
mkdir -p /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/nvidia-current/295.40-2/build
  cc -Wp,-MD,/var/lib/dkms/nvidia-current/295.40-2/build/.nv.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-mandriva-linux-gnu/4.6.1/include -I/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-3.6.6-nrjQL-desktop-69mib/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/lib/dkms/nvidia-current/295.40-2/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"295.40\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_nv.o /var/lib/dkms/nvidia-current/295.40-2/build/nv.c
In file included from include/linux/kernel.h:19:0,
                 from include/linux/sched.h:62,
                 from include/linux/utsname.h:35,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:38,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess.h:586:0,
                 from include/linux/poll.h:14,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:97,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:
/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:0:
/var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h: At top level:
/var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[3]: *** [/var/lib/dkms/nvidia-current/295.40-2/build/nv.o] Error 1
make[2]: *** [_module_/var/lib/dkms/nvidia-current/295.40-2/build] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
[root@localhost rolf]# rpm -ql kernel-source-3.6.6-69mib | grep asm/system.h
/usr/src/linux-3.6.6-69mib/arch/arm/include/asm/system.h
/usr/src/linux-3.6.6-69mib/tools/perf/util/include/asm/system.h
[root@localhost rolf]# ll /usr/src/linux-3.6.6-69mib/arch/arm/include/asm/system.h
-rw-r--r-- 1 root root 232 Sep 30 16:47 /usr/src/linux-3.6.6-69mib/arch/arm/include/asm/system.h
[root@localhost rolf]# ll /usr/src/linux-3.6.6-69mib/tools/perf/util/include/asm/system.h
-rw-r--r-- 1 root root 12 Sep 30 16:47 /usr/src/linux-3.6.6-69mib/tools/perf/util/include/asm/system.h
[root@localhost rolf]#

User avatar
rolf
Utente
Utente
Posts: 112
Joined: 20 May 2009, 3:15
ROSA: R3 2012.1 x86_64
OpenMandriva: OMV 2014.0 x86_64
Kernel: 3.13.11-nrjQL-realti
Desktop: KDE 4.13.2
country: USA

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by rolf »

Ok. A google search for "dkms nvidia build fail asm/system.h not found" brings up a launchpad bug as the first result:
https://bugs.launchpad.net/ubuntu/+sour ... bug/993506

I tried to follow the workaround, copying the arm headers to x86. For each "file not found" error, I copied the header, one at a time, tried the dkms build, copied the next reported missing header, tried to build, etc.

Code: Select all

[root@localhost asm]# cp  /usr/src/linux-3.6.6-69mib/arch/arm/include/asm/system.h /usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/
[..]
[root@localhost asm]# cp  /usr/src/linux-3.6.6-69mib/arch/arm/include/asm/compiler.h /usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/
[..]
[root@localhost asm]# cp  /usr/src/linux-3.6.6-69mib/arch/arm/include/asm/system_info.h /usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/
[..]
[root@localhost asm]# cp  /usr/src/linux-3.6.6-69mib/arch/arm/include/asm/system_misc.h /usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/
[..]
At the end was another failure

Code: Select all

[root@localhost asm]# cat /var/lib/dkms/nvidia-current/295.40-2/build/make.log 
DKMS make.log for nvidia-current-295.40-2 for kernel 3.6.6-nrjQL-desktop-69mib (x86_64)
Fri Jan 11 06:54:58 PST 2013
NVIDIA: calling KBUILD...
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
/bin/false)
mkdir -p /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/nvidia-current/295.40-2/build
  cc -Wp,-MD,/var/lib/dkms/nvidia-current/295.40-2/build/.nv.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-mandriva-linux-gnu/4.6.1/include -I/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-3.6.6-nrjQL-desktop-69mib/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/lib/dkms/nvidia-current/295.40-2/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"295.40\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_nv.o /var/lib/dkms/nvidia-current/295.40-2/build/nv.c
In file included from include/linux/kernel.h:19:0,
                 from include/linux/sched.h:62,
                 from include/linux/utsname.h:35,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:38,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess.h:586:0,
                 from include/linux/poll.h:14,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:97,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv.c:13:
/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-current/295.40-2/build/nv.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.6.6-nrjQL-desktop-69mib/scripts/recordmcount  "/var/lib/dkms/nvidia-current/295.40-2/build/nv.o"; fi; fi;
  cc -Wp,-MD,/var/lib/dkms/nvidia-current/295.40-2/build/.nv-acpi.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-mandriva-linux-gnu/4.6.1/include -I/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-3.6.6-nrjQL-desktop-69mib/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/lib/dkms/nvidia-current/295.40-2/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"295.40\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_acpi)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/lib/dkms/nvidia-current/295.40-2/build/.tmp_nv-acpi.o /var/lib/dkms/nvidia-current/295.40-2/build/nv-acpi.c
In file included from include/linux/kernel.h:19:0,
                 from include/linux/sched.h:62,
                 from include/linux/utsname.h:35,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:38,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-acpi.c:15:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess.h:586:0,
                 from include/linux/poll.h:14,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-linux.h:97,
                 from /var/lib/dkms/nvidia-current/295.40-2/build/nv-acpi.c:15:
/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/linux-3.6.6-nrjQL-desktop-69mib/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/var/lib/dkms/nvidia-current/295.40-2/build/nv-acpi.c: In function ‘nv_acpi_remove’:
/var/lib/dkms/nvidia-current/295.40-2/build/nv-acpi.c:303:9: error: too many arguments to function ‘acpi_os_wait_events_complete’
include/acpi/acpiosxf.h:208:6: note: declared here
make[3]: *** [/var/lib/dkms/nvidia-current/295.40-2/build/nv-acpi.o] Error 1
make[2]: *** [_module_/var/lib/dkms/nvidia-current/295.40-2/build] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
[root@localhost asm]#
I see later in that bug advice to edit the nvidia source and, finally, a report that the bug is fixed in 295.53

I might try to update dkms-nvidia but I think I saw some problems with that/2011/Xorg. :?:

User avatar
rolf
Utente
Utente
Posts: 112
Joined: 20 May 2009, 3:15
ROSA: R3 2012.1 x86_64
OpenMandriva: OMV 2014.0 x86_64
Kernel: 3.13.11-nrjQL-realti
Desktop: KDE 4.13.2
country: USA

Re: Kernel 3.6.10 nrjQL for ROSA 2012.0 / 2012.1 & MDV 2010

Post by rolf »

In Rosa Fresh, I am already at nvidia-310.19

Code: Select all

[rolf@localhost ~]$ uname -r
3.6.10-nrjQL-desktop-69rosa
The installkernel scripts made an initrd and, to me, a new, complex menu entry in grub2/grub.cfg

All seems to work well and the nvidia module built without error. Good job! :)

Post Reply