Click to See Complete Forum and Search --> : ./make.sh problems


DimGR
06-17-2004, 11:18 AM
i keep getting this error but kernel sources are already installed..



Please install the sources for kernel version 2.6.6
and unpack them into directory



whats going on

Choozo
06-17-2004, 12:17 PM
What does uname -r and ls -l /usr/src/ give you?

DimGR
06-17-2004, 12:23 PM
Originally posted by Choozo
What does uname -r and ls -l /usr/src/ give you?



uname -r
2.6.6



ls -l /usr/src
total 34016
-rw-r--r-- 1 dimgr dimgr 361 May 14 13:31 Makefile
-rw-r--r-- 1 root root 226576 Jun 5 09:35 fglrx-4.3.0-3.9.0.tar.gz
-rw-r--r-- 1 root dimgr 97338 Jun 17 12:06 fglrx-4.3.0-kernel-2.6.6-flavour_3.9.0-4+123.Custom_i386.deb
drwxr-xr-x 19 root root 4096 Jun 17 12:06 kernel-source-2.6.6
-rw-r--r-- 1 root root 34419556 May 11 19:47 kernel-source-2.6.6.tar.bz2
-rw-r--r-- 1 dimgr dimgr 849 Dec 10 2003 knoppix-kernel.README
-rw-r--r-- 1 dimgr dimgr 2122 Feb 26 22:38 knoppix-kernel.patch
-rw-r--r-- 1 dimgr dimgr 386 May 1 17:15 knoppix-kernel26.patch
lrwxrwxrwx 1 dimgr dimgr 12 Jun 14 18:10 linux -> linux-2.4.26
drwxr-xr-x 4 dimgr dimgr 4096 Apr 21 20:38 linux-2.4.26
drwxr-xr-x 3 root root 4096 Jun 5 09:35 modules
drwxr-xr-x 7 dimgr dimgr 4096 Nov 6 2003 rpm

XiaoKJ
06-17-2004, 12:29 PM
rm /usr/src/linux
cd /usr/src
ln -s kernel-sources-2.6.6 linux

you can compile after a restart....

Choozo
06-17-2004, 12:29 PM
There you have it, your problem that is.
/usr/src/linux is a symlink to /usr/src/linux-2.4.26 which don't match your running kernel (2.6.6).

rm /usr/src/linux
ln -s /usr/src/kernel-source-2.6.6 /usr/src/linuxshould take care of it.

DimGR
06-17-2004, 12:46 PM
Originally posted by Choozo
There you have it, your problem that is.
/usr/src/linux is a symlink to /usr/src/linux-2.4.26 which don't match your running kernel (2.6.6).

rm /usr/src/linux
ln -s /usr/src/kernel-source-2.6.6 /usr/src/linuxshould take care of it.

i did
rm /usr/src/linux
rm: remove symbolic link `/usr/src/linux'? y
/$ cd /usr/src
dimgr@PenguinGR:/usr/src$ ln -s kernel-sources-2.6.6 linux


same error


/make.sh
Please install the sources for kernel version 2.6.6
and unpack them into directory




ls -l /usr/src
total 34016
-rw-r--r-- 1 dimgr dimgr 361 May 14 13:31 Makefile
-rw-r--r-- 1 root root 226576 Jun 5 09:35 fglrx-4.3.0-3.9.0.tar.gz
-rw-r--r-- 1 root dimgr 97338 Jun 17 12:06 fglrx-4.3.0-kernel-2.6.6-flavour_3.9.0-4+123.Custom_i386.deb
drwxr-xr-x 19 root root 4096 Jun 17 12:38 kernel-source-2.6.6
-rw-r--r-- 1 root root 34419556 May 11 19:47 kernel-source-2.6.6.tar.bz2
-rw-r--r-- 1 dimgr dimgr 849 Dec 10 2003 knoppix-kernel.README
-rw-r--r-- 1 dimgr dimgr 2122 Feb 26 22:38 knoppix-kernel.patch
-rw-r--r-- 1 dimgr dimgr 386 May 1 17:15 knoppix-kernel26.patch
lrwxrwxrwx 1 root dimgr 28 Jun 17 12:45 linux -> /usr/src/kernel-source-2.6.6
drwxr-xr-x 4 dimgr dimgr 4096 Apr 21 20:38 linux-2.4.26
drwxr-xr-x 3 root root 4096 Jun 5 09:35 modules
drwxr-xr-x 7 dimgr dimgr 4096 Nov 6 2003 rpm

Choozo
06-17-2004, 01:00 PM
Looks like your kernel source don't completely match your running kernel?

Also, the way your symlink is set up may cause problems.
It should read linux -> kernel-source-2.6.6 and not linux -> /usr/src/kernel-source-2.6.6 (I know, small difference but the compiler may throw a fit on those).
# cd /usr/src
# rm linux
# ln -s kernel-source-2.6.6 linux

should fix the link.

DimGR
06-17-2004, 01:08 PM
Originally posted by Choozo
Looks like your kernel source don't completely match your running kernel?

Also, the way your symlink is set up may cause problems.
It should read linux -> kernel-source-2.6.6 and not linux -> /usr/src/kernel-source-2.6.6 (I know, small difference but the compiler may throw a fit on those).
# cd /usr/src
# rm linux
# ln -s kernel-source-2.6.6 linux

should fix the link.


it does not work
same error again






ls -l
total 34064
-rw-r--r-- 1 dimgr dimgr 361 May 14 13:31 Makefile
-rw-r--r-- 1 root dimgr 48390 Jun 17 13:07 config
-rw-r--r-- 1 root root 226576 Jun 5 09:35 fglrx-4.3.0-3.9.0.tar.gz
-rw-r--r-- 1 root dimgr 97338 Jun 17 12:06 fglrx-4.3.0-kernel-2.6.6-flavour_3.9.0-4+123.Custom_i386.deb
drwxr-xr-x 19 root root 4096 Jun 17 13:07 kernel-source-2.6.6
-rw-r--r-- 1 root root 34419556 May 11 19:47 kernel-source-2.6.6.tar.bz2
-rw-r--r-- 1 dimgr dimgr 849 Dec 10 2003 knoppix-kernel.README
-rw-r--r-- 1 dimgr dimgr 2122 Feb 26 22:38 knoppix-kernel.patch
-rw-r--r-- 1 dimgr dimgr 386 May 1 17:15 knoppix-kernel26.patch
lrwxrwxrwx 1 dimgr dimgr 19 Jun 17 13:04 linux -> kernel-source-2.6.6
drwxr-xr-x 4 dimgr dimgr 4096 Apr 21 20:38 linux-2.4.26
drwxr-xr-x 3 root root 4096 Jun 5 09:35 modules
drwxr-xr-x 7 dimgr dimgr 4096 Nov 6 2003 rpm

XiaoKJ
06-17-2004, 01:16 PM
choozy, you are repeating me very completely!

DimGR, did you reboot?

is the kernel source the correct one?

Choozo
06-17-2004, 01:18 PM
Then your current running kernel does not match your kernel-source.
How did you install the 2.6.6 kernel (Knoppix I guess, from the listings in your /usr/src directory)?

Choozo
06-17-2004, 01:19 PM
Originally posted by XiaoKJ
choozy, you are repeating me very completely!
I guess we're typing at the same time here, and you hit the 'Submit' button 5 sec before me? :D

Anyways, I'm out of suggestions now, so go ahead :D

.... and its Choozo ....

DimGR
06-17-2004, 01:20 PM
Originally posted by Choozo
Then your current running kernel does not match your kernel-source.
How did you install the 2.6.6 kernel (Knoppix I guess, from the listings in your /usr/src directory)?


apt-get install kernel-source-2.6.6 :)

bwkaz
06-17-2004, 06:42 PM
What does ls -l /lib/modules/$(uname -r)/build say? Does the target directory of that symlink exist, and is it the directory that your kernel source is installed in?

The ATI driver may actually be doing the correct thing, and looking in /lib/modules/$(uname -r)/build for the kernel sources, instead of /usr/src/linux (there is no need for the /usr/src/linux symlink anymore, and hasn't been since whichever kernel started creating the /lib/modules/<kernel version>/build symlink)...

DimGR
06-17-2004, 09:24 PM
Originally posted by bwkaz
What does ls -l /lib/modules/$(uname -r)/build say? Does the target directory of that symlink exist, and is it the directory that your kernel source is installed in?

The ATI driver may actually be doing the correct thing, and looking in /lib/modules/$(uname -r)/build for the kernel sources, instead of /usr/src/linux (there is no need for the /usr/src/linux symlink anymore, and hasn't been since whichever kernel started creating the /lib/modules/<kernel version>/build symlink)...






ls -l /lib/modules/$(uname -r)/build
lrwxrwxrwx 1 root root 20 Jun 14 18:04 /lib/modules/2.6.6/build -> /usr/src/linux-2.6.6

DimGR
06-17-2004, 09:58 PM
i just checked my lsmod and fglrx was there! finally!!

bit i get this comments/ erros and i have no idea what they mean



fglrx: version magic '2.6.6-flavour preempt PENTIUM4 REGPARM 4KSTACKS gcc-3.3' should be '2.6.6 SMP preempt 386 gcc-2.95'
fglrx: no version magic, tainting kernel.
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
Unable to handle kernel paging request at virtual address d1bc2c54
printing eip:
c0142d3d
*pde = 0f9e5067
*pte = 00000000
Oops: 0000 [#1]
PREEMPT SMP
CPU: 0
EIP: 0060:[<c0142d3d>] Tainted: PF
EFLAGS: 00210046 (2.6.6)
EIP is at kmem_cache_alloc+0x15/0x4c
eax: 00000000 ebx: 00200286 ecx: c032a7b0 edx: d1bc2c54
esi: d1c3da80 edi: c032a7b0 ebp: c8b91fa8 esp: c8b91f88
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 11991, threadinfo=c8b90000 task=cf986c50)
Stack: d1c3dec0 d195115f d1bc2c54 c8b90000 d1c3da80 c032a7b0 c8b90000 c032a7b0
c032a794 c0133e47 40169000 0804e360 00000001 c8b90000 c010637b 40169000
0003efc1 0804e360 0804e360 00000001 bffff818 00000080 0000007b 0000007b
Call Trace:
[<d195115f>] firegl_init_module+0x26/0x161 [fglrx]
[<c0133e47>] sys_init_module+0x10f/0x230
[<c010637b>] syscall_call+0x7/0xb

Code: 8b 04 10 8b 08 85 c9 74 1a c7 40 0c 01 00 00 00 8d 50 10 49
end_request: I/O error, dev fd0, sector 0