Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[kernel] nuevo kernel y kernel panics
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
Theasker
l33t
l33t


Joined: 18 Nov 2006
Posts: 656
Location: Zaragoza (Spain)

PostPosted: Wed Aug 26, 2009 5:48 pm    Post subject: [kernel] nuevo kernel y kernel panics Reply with quote

hola, por fin me he decidido a compilar el último kernel estable y después de copiar el .config del antigüo, cargarlo y recompilar el nuevo me da un kernel panic, y he pensado en aprovechar y hacer limpieza y sólo dejar en el kernel lo que necesito, pero eso son muuuuuchos reinicios con kernel panic y arrancar de nuevo y buscando he encontrado kexec y tiene muy buena pinta, alguien me podría aconsejar si lo ha usado y como usarlo para estos menesteres o ... ¿no es para esto?

gracias anticipadas y un saludo

http://en.wikipedia.org/wiki/Kexec
http://es.opensuse.org/Kexec
http://www.ibm.com/developerworks/linux/library/l-kexec.html
http://en.gentoo-wiki.com/wiki/Kexec --> en estos momentos no funciona
_________________
"Oigo y olvido. Veo y recuerdo. Hago y comprendo"
Back to top
View user's profile Send private message
Inodoro_Pereyra
Advocate
Advocate


Joined: 03 Nov 2006
Posts: 2631
Location: En la otra punta del cable

PostPosted: Wed Aug 26, 2009 6:04 pm    Post subject: Reply with quote

Si estás usando el mismo .config no tendría por que haber kernel panics... Has ejecutado make oldconfig sobre el .config viejo antes de configurar el kernel nuevo?

Si pegas el mensaje de error exacto que te da el kernel podemos tratar de encontrar en donde falla... Acerca de kexec, ni idea, nunca lo he necesitado.

Salud!
_________________
Mi Blog.

Si no fuera por C, estaríamos escribiendo programas en BASI, PASAL y OBOL.
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Thu Aug 27, 2009 8:28 am    Post subject: Reply with quote

kexec puede servirte pero no es la panacea, ganarás algo de tiempo en el reinicio sobre todo porque te vas a saltar el cierre del sistema actual y la parte del firmware ( la bios vaya) , pero poco mas. Prueba y nos cuentas :-)

saluetes
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Thu Aug 27, 2009 11:34 pm    Post subject: Reply with quote

En mi humilde opinión, vas a pasar más tiempo depurando problemas propios de kexec del que ahorrarás en la carga del firmware de tu bios. Claro que por otra parte, aprender cosas nuevas siempre tiene su encanto :p
Back to top
View user's profile Send private message
Theasker
l33t
l33t


Joined: 18 Nov 2006
Posts: 656
Location: Zaragoza (Spain)

PostPosted: Fri Aug 28, 2009 2:19 pm    Post subject: Reply with quote

Eso suponía yo también por lo que he hecho funcionar el kernel a la vieja usanza, y al compilar el nuevo kernel hay que recompilar algunas cosillas, y al recompilar nvidia-drivers me da error y he probado a instalarlo desde el kernel viejo y me pasa lo mismo, por lo que no es culpa del kerne aunque hay una línea que lo dice. Pego todos los mensajes de la compilación.

# emerge nvidia-drivers wrote:

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-173.14.18
* NVIDIA-Linux-x86-173.14.18-pkg0.run RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 2.6.30-gentoo-r4
* Checking for MTRR support ... [ ok ]
* Checking for SYSVIPC support ... [ ok ]
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86-173.14.18-pkg0
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 173.14.18....................................................................................................................................
* Applying NVIDIA_glx-defines.patch ... [ ok ]
* Applying NVIDIA_glx-glheader.patch ... [ ok ]
* Converting NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ]
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0 ...
* Preparing nvidia module
make -j4 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux HOST_CC=i686-pc-linux-gnu-gcc clean module
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv modules
make[2]: atención: el servidor de tareas no está disponible: se utilizará -j1. Añada `+' a la regla padre del make.
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv
cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -Iinclude -I/usr/src/linux-2.6.30-gentoo-r4/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -I/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"173.14.18\" -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/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c: En la función 'nvos_proc_create':
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:610: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:611: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:612: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:632: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:645: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:656: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:666: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:676: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:687: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:694: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c: En la función 'nvos_proc_add_warning_file':
/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.c:721: error: 'struct proc_dir_entry' no tiene un miembro llamado 'owner'
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/work/NVIDIA-Linux-x86-173.14.18-pkg0/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
*
* ERROR: x11-drivers/nvidia-drivers-173.14.18 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3791: Called linux-mod_src_compile
* environment, line 2823: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux HOST_CC=i686-pc-linux-gnu-gcc clean module
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/temp/environment'.
*

>>> Failed to emerge x11-drivers/nvidia-drivers-173.14.18, Log file:

>>> '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.18/temp/build.log'
[/quote]

El kexec lo tengo pendiente y cuando funcione todo lo probaré e intentaré hacer un mini howto

gracias anticipadas y saludos
_________________
"Oigo y olvido. Veo y recuerdo. Hago y comprendo"
Back to top
View user's profile Send private message
will198
Apprentice
Apprentice


Joined: 18 Aug 2009
Posts: 218

PostPosted: Fri Aug 28, 2009 2:29 pm    Post subject: Reply with quote

Hola,

No tengo mni idea de por que te da error, pero a mi el driver que me hacía el emerge no me funcionaba bien (cargaba y en teoría el glxgears y el glxinfo funciona y me decia que estaba todo ok, pero el openarena/quake3 me iba a saltos) así que decidí quitar todos lo relacionado con nvidia (emerge -C todo tipo de nvidia) y utilice el que viene en la página web de nvidia que es muy sencillito de instalar y creo que sólo necesitas tener las fuentes del kernel en /usr/src/linux... una vez instalado el openarena-quake3 como la seda.

por cierto yo tb estoy haciendo pruebas con el kernel y en una de estas el driver de nvidia se me ha quejado (y no se ha instalado) porque el kernel tenía el driver de nvidia para el frame buffer incluido en el kernel y decia que podía ocasionar conflictos (creo que el módulo se llama nvidiafb)

Yo probaría con el de nvidia que va muy bien.

Un saludo
Back to top
View user's profile Send private message
pcmaster
Advocate
Advocate


Joined: 04 Dec 2003
Posts: 2222
Location: Barcelona

PostPosted: Fri Aug 28, 2009 2:56 pm    Post subject: Reply with quote

Pues yo no he tenido ningún rpoblema al instalar el driver de nvidia con emerge. Tengo instalada la última versión estable (180.60).

Comprueba que NO hayas activado el framebuffer nvidia (los vesa sí puedes actvarlos) y que tengas compilado el kernel con compatibilidad agpgart (si la tarjeta es AGP) o PCI-express (si la tarjeta usa este bus).
_________________
pcmaster
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
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