Re: Cannot compile kernel: problem with EXPORT_SYMBOL and EXPORT_SYMBOL_GPL symbols
On 17.02.2013 18:27, Ben Hutchings wrote: After that it worked smoothly. Thanks! Please can you send the complete configuration file and the contents of /proc/cpuinfo? Here it goes. cpuinfo is given the way it was reported by new kernel, its uname is: Linux centurion 3.2.0-4fix-686-pae #1 SMP Debian 3.2.35-2 i686 GNU/Linux -- With best regards, Dmitry config+cpuinfo.tar.bz2 Description: Binary data
Re: Cannot compile kernel: problem with EXPORT_SYMBOL and EXPORT_SYMBOL_GPL symbols
On 15.02.2013 20:40, Ben Hutchings wrote: -CONFIG_NR_CPUS=32 +CONFIG_NR_CPUS=2 Why? Well, it turned out that 686-pae kernel from repository does not boot on my PC: kernel hangs during initialization. 486 is booting OK. Recompilation for the native CPU was the last measure. If I am already playing with recompilation, why not to reduce the number of CPUs (as to help, that is saving 30 * 8Kb = 240Kb). Yes, because you changed the kernel module ABI without changing the binary package name. Interesting is that I have also changed few other options: CONFIG_X86_GENERIC=n CONFIG_MICROCODE_INTEL=n CONFIG_MICROCODE_AMD=n CONFIG_PREEMPT_NONE=y and it looks like this did not change ABI. That puzzled me. If you really think it's worth doing this (and you really want to use the official package as a basic, rather than 'make deb-pkg'), you have two basic options: 1. Add a distinguishing string after the ABI number in debian/config/defines. Please do not just change it to 5 as this could be confused with an official package name. 2. Define a new 'flavour' with this configuration change. Each flavour has its own ABI. You'll need to edit debian/config/i386/defines to add the flavour name and define it to use an extra configuration file which overrides CONFIG_NR_CPUS. I have changed the string to 4fix and I have overwritten the configuration with custom one: $ cp ../myconfig debian/config/kernelarch-x86/config-arch-32 After that it worked smoothly. Thanks! -- With best regards, Dmitry -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5120ea30.8040...@gmail.com
Re: Cannot compile kernel: problem with EXPORT_SYMBOL and EXPORT_SYMBOL_GPL symbols
On Sun, 2013-02-17 at 15:33 +0100, Dmitry Katsubo wrote: On 15.02.2013 20:40, Ben Hutchings wrote: -CONFIG_NR_CPUS=32 +CONFIG_NR_CPUS=2 Why? Well, it turned out that 686-pae kernel from repository does not boot on my PC: kernel hangs during initialization. 486 is booting OK. Recompilation for the native CPU was the last measure. If I am already playing with recompilation, why not to reduce the number of CPUs (as to help, that is saving 30 * 8Kb = 240Kb). Yes, because you changed the kernel module ABI without changing the binary package name. Interesting is that I have also changed few other options: CONFIG_X86_GENERIC=n CONFIG_MICROCODE_INTEL=n CONFIG_MICROCODE_AMD=n CONFIG_PREEMPT_NONE=y and it looks like this did not change ABI. That puzzled me. Changing CONFIG_NR_CPUS changes the size of objects in memory, which modules may depend on, whereas the others don't. (But turning off CONFIG_X86_GENERIC probably ought to be considered as changing ABI.) If you really think it's worth doing this (and you really want to use the official package as a basic, rather than 'make deb-pkg'), you have two basic options: 1. Add a distinguishing string after the ABI number in debian/config/defines. Please do not just change it to 5 as this could be confused with an official package name. 2. Define a new 'flavour' with this configuration change. Each flavour has its own ABI. You'll need to edit debian/config/i386/defines to add the flavour name and define it to use an extra configuration file which overrides CONFIG_NR_CPUS. I have changed the string to 4fix and I have overwritten the configuration with custom one: $ cp ../myconfig debian/config/kernelarch-x86/config-arch-32 After that it worked smoothly. Thanks! Please can you send the complete configuration file and the contents of /proc/cpuinfo? Ben. -- Ben Hutchings Experience is what causes a person to make new mistakes instead of old ones. signature.asc Description: This is a digitally signed message part
Cannot compile kernel: problem with EXPORT_SYMBOL and EXPORT_SYMBOL_GPL symbols
Dear Debian community, I am trying to recompile default kernel with one just option changed: -CONFIG_NR_CPUS=32 +CONFIG_NR_CPUS=4 I get problems with symbols on all modules (the error log is really long): LD [M] sound/usb/usx2y/snd-usb-usx2y.ko make[2]: Leaving directory `/home/dmitry/packages/kernel/linux-3.2.35/debian/build/build_i386_none_686-pae' python debian/bin/buildcheck.py debian/build/build_i386_none_686-pae i386 none 686-pae ABI has changed! Refusing to continue. Added symbols: bprm_change_interp module: vmlinux, version: 0x73a5ca09, export: EXPORT_SYMBOL ieee80211_get_mesh_hdrlenmodule: net/wireless/cfg80211, version: 0xa197b1ff, export: EXPORT_SYMBOL kernel_stack_pointer module: vmlinux, version: 0x79a71c48, export: EXPORT_SYMBOL_GPL snd_card_unref module: sound/core/snd, version: 0x549e0966, export: EXPORT_SYMBOL Changed symbols: DAC1064_global_init module: drivers/video/matrox/matroxfb_DAC1064, version: 0x8a6c84a0 - 0x145d0e0b, export: EXPORT_SYMBOL ... How can I overcome this problem? Thanks in advance. P.S. There are many reports on similar problem in this maillist, but the the ones I have looked through are connected with additional patches applied. In my case there are extra patches: kernel package is used as provided in repository, I just want to tune the config. * Linux kernel 3.2.0-4, sources are installed with standard apt-get source linux-image-3.2.0-4-686-pae * After all preparations, kernel was build for one target with fakeroot make -f debian/rules.gen binary-arch_i386_none_686-pae * Kernel compiles OK with default config. -- With best regards, Dmitry -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/511e7dba.1020...@gmail.com
Re: Cannot compile kernel: problem with EXPORT_SYMBOL and EXPORT_SYMBOL_GPL symbols
On Fri, Feb 15, 2013 at 07:26:02PM +0100, Dmitry Katsubo wrote: Dear Debian community, I am trying to recompile default kernel with one just option changed: -CONFIG_NR_CPUS=32 +CONFIG_NR_CPUS=4 Why? I get problems with symbols on all modules (the error log is really long): Yes, because you changed the kernel module ABI without changing the binary package name. [...] How can I overcome this problem? Thanks in advance. [...] If you really think it's worth doing this (and you really want to use the official package as a basic, rather than 'make deb-pkg'), you have two basic options: 1. Add a distinguishing string after the ABI number in debian/config/defines. Please do not just change it to 5 as this could be confused with an official package name. 2. Define a new 'flavour' with this configuration change. Each flavour has its own ABI. You'll need to edit debian/config/i386/defines to add the flavour name and define it to use an extra configuration file which overrides CONFIG_NR_CPUS. Ben. -- Ben Hutchings We get into the habit of living before acquiring the habit of thinking. - Albert Camus -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130215194036.gb9...@decadent.org.uk