[64studio-devel] Missing "asm-x86_64/tsc.h" file in kernel headers 2.6.19 i386
Brad Powell
bapowell at sbcglobal.net
Wed Feb 28 02:24:58 UTC 2007
Installed gcc-4.0 using the snapshot.debian.net repository. Rebuilt the rt2570 module, which went fine, but trying to modprobe still faulted:
FATAL: Error inserting rt2570 (/lib/modules/2.6.17-2-multimedia-486/kernel/drivers/net/wireless/rt2570.ko): Unknown symbol in module, or unknown parameter (see dmesg)
dmesg shows:
rt2570: no version for "struct_module" found: kernel tainted.
rt2570: no version magic, tainting kernel.
rt2570: Unknown symbol there_is_no_init_MUTEX_LOCKED_for_RT_semaphores
Free, getting this working is not critical for me; rather, I'm forging ahead in the hope that this is helping make 64Studio a better product in the future (and hopefully helping others who are in similar spots with trying to build kernel modules). If you're getting tired of me bugging you about this, just let me know.
Brad
----- Original Message ----
From: Free Ekanayaka <free at 64studio.com>
To: Brad Powell <bapowell at sbcglobal.net>
Cc: 64studio-devel at 64studio.com
Sent: Tuesday, February 27, 2007 4:01:48 AM
Subject: Re: Missing "asm-x86_64/tsc.h" file in kernel headers 2.6.19 i386
Hi Brad,
|--==> Brad Powell writes:
BP> Free,
BP> You are correct in that it appears I compiled the module with gcc-4.1, as that is what /usr/bin/gcc points to. However, I do not have gcc-4.0 installed on my system (a stock install of 64Studio 1.0.0 i386). Furthermore, I cannot find gcc-4.0 available as a package to install from the 64Studio or Debian stable/testing/unstable repositories. Am I missing something?
I've just checked, you're right, the 1.0.0 releases misses the gcc-4.0
packages, with which kernel 2.6.17-2-multimedia-486 was
compiled. That's a bug!
As a workaround you can use this APT source line (put it in sources.list):
deb http://snapshot.debian.net/archive pool gcc-4.0
and then
apt-get install gcc-4.0
and it should do the trick (remember to change the /usr/bin/gcc
symlink). Let us know, ciao!
Free
BP> Thank you for your assistance,
BP> Brad
BP> ----- Original Message ----
BP> From: Free Ekanayaka <free at 64studio.com>
BP> To: Brad Powell <bapowell at sbcglobal.net>
BP> Cc: 64studio-devel at 64studio.com
BP> Sent: Monday, February 26, 2007 3:51:59 AM
BP> Subject: Re: Missing "asm-x86_64/tsc.h" file in kernel headers 2.6.19 i386
|--==> Brad Powell writes:
BP> Out of curiousity, I installed 64Studio v1.0.0 from scratch and
BP> tried building the rt2570 driver using the original 2.6.17
BP> kernel. It actually built just fine, but when I try to
BP> "modprobe" it, I get the following error: FATAL: Error inserting
BP> rt2570
BP> (/lib/modules/2.6.17-2-multimedia-486/kernel/drivers/net/wireless/rt2570.ko):
BP> Invalid module format
BP> The kernel output from dmesg shows:
BP> rt2570: version magic '2.6.17-2-multimedia-486 preempt
BP> mod_unload 486 gcc-4.1' should be '2.6.17-2-multimedia-486
BP> preempt mod_unload 486 gcc-4.0'rt2570: no version for
BP> "struct_module" found: kernel tainted. rt2570: no version
BP> magic, tainting kernel. rt2570: Unknown symbol
BP> there_is_no_init_MUTEX_LOCKED_for_RT_semaphores
BP> Any ideas on how I might be able to fix this?
BP> It seems that the problem is that you are compiling with gcc-4.1
BP> instead of gcc-4.0. Please check this:
BP> ls -l /usr/bin/gcc
BP> it should point to /usr/bin/gcc-4.0, if not please replace the
BP> link. Let me know, ciao!
BP> Free
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.64studio.com/pipermail/64studio-devel/attachments/20070227/02d852a4/attachment.html
More information about the 64studio-devel
mailing list