David Relson wrote: > On Sun, 21 Jun 2009 14:54:36 -0400 > John P. Burkett wrote: > >> David Relson wrote: >>> On Sun, 21 Jun 2009 13:55:10 -0400 >>> Drake Donahue wrote: >>> >>>> <snip> >>>> >>>> I'm guessing you did an "emerge --depclean" sometime after >>>> compiling the 2.6.22-r2 kernel and after emerging a new >>>> gentoo-sources that erased your make files, This is something >>>> depclean loves to do while leaving 99% of the older kernel source >>>> files intact. I think depclean leaves your .config file in place. >>>> Been a few weeks since I burned myself last with this one. >>>> If you were following directions back in 2007 you should have a >>>> stored 2.6.22-r2 config in the /boot directory. >>>> >>>> Try "emerge =sys-kernel/gentoo-sources-2.6.22-r2 to re-emerge the >>>> old package and regain the make files. What the osmp is about >>>> beats me. >>>> >>>> or >>>> >>>> Emerge a new gentoo-sources, eselect it, configure, compile, >>>> install a new (current) kernel. >>> My understanding is that ati-drivers expects /usr/src/linux to >>> contain the source of the currently running kernel. >>> >>> I'm running a 2.6.28 kernel. I have downloaded 2.6.30 and built >>> that but have not yet rebooted. "emerge ati-drivers" failed with >>> 2.6.30 in /usr/src/linux. Changing directory names allowed >>> ati-drivers to build happily. >>> >> David, thank you for sharing your experience. On my system, doing >> "uname -r" gets the response "2.6.22-gentoo-r2-osmp". In >> my /usr/src/linux directory I currently have a .config file starting >> with the lines # Automatically generated make config: don't edit >> # Linux kernel version: 2.6.22-gentoo-r2 >> # Mon Sep 3 21:48:37 2007 >> Can you suggest how to change directory names to allow the ati-drivers >> to build? >> >> Best regards, >> John > > John, > > /usr/src/linux is what I'd want to see. Do you have just a few files > (like .config) or the full kernel source? Thanks for your continuing help with the ati-driver problem. Doing "ls -al" in my /usr/src/linux directory produces the following list: total 28451 drwxr-xr-x 19 root root 1088 Jun 8 01:16 . drwxr-xr-x 3 root root 136 Jun 8 01:19 .. -rw-r--r-- 1 root root 440 Sep 4 2007 ..tmp_kallsyms1.o.cmd -rw-r--r-- 1 root root 440 Sep 4 2007 ..tmp_kallsyms2.o.cmd -rw-r--r-- 1 root root 636 Sep 4 2007 ..tmp_vmlinux1.cmd -rw-r--r-- 1 root root 652 Sep 4 2007 ..tmp_vmlinux2.cmd -rw-r--r-- 1 root root 47220 Jun 21 13:34 .config -rw-r--r-- 1 root root 47220 Sep 3 2007 .config.old -rw-r--r-- 1 root root 365 Sep 4 2007 .missing-syscalls.d -rw-r--r-- 1 root root 1418737 Sep 4 2007 .tmp_System.map -rw-r--r-- 1 root root 1578817 Sep 4 2007 .tmp_kallsyms1.S -rw-r--r-- 1 root root 735072 Sep 4 2007 .tmp_kallsyms1.o -rw-r--r-- 1 root root 1578817 Sep 4 2007 .tmp_kallsyms2.S -rw-r--r-- 1 root root 735072 Sep 4 2007 .tmp_kallsyms2.o drwxr-xr-x 2 root root 10176 Sep 4 2007 .tmp_versions -rwxr-xr-x 1 root root 9069262 Sep 4 2007 .tmp_vmlinux1 -rwxr-xr-x 1 root root 9388791 Sep 4 2007 .tmp_vmlinux2 -rw-r--r-- 1 root root 2 Sep 4 2007 .version -rw-r--r-- 1 root root 640 Sep 4 2007 .vmlinux.cmd -rw-r--r-- 1 root root 252456 Sep 4 2007 Module.symvers -rw-r--r-- 1 root root 1418737 Sep 4 2007 System.map drwxr-xr-x 4 root root 96 Jun 8 01:16 arch drwxr-xr-x 2 root root 752 Jun 8 01:16 block drwxr-xr-x 2 root root 6640 Jun 8 01:16 crypto drwxr-xr-x 35 root root 968 Jun 8 01:16 drivers drwxr-xr-x 35 root root 4936 Jun 8 01:16 fs drwxr-xr-x 5 root root 152 Jun 8 01:16 include drwxr-xr-x 2 root root 736 Jun 8 01:16 init drwxr-xr-x 2 root root 680 Jun 8 01:16 ipc drwxr-xr-x 5 root root 3832 Jun 8 01:16 kernel drwxr-xr-x 4 root root 4512 Jun 8 01:16 lib drwxr-xr-x 2 root root 2616 Jun 8 01:16 mm drwxr-xr-x 23 root root 856 Jun 8 01:16 net drwxr-xr-x 6 root root 320 Jun 8 01:16 scripts drwxr-xr-x 2 root root 208 Jun 8 01:16 security drwxr-xr-x 16 root root 904 Jun 8 01:16 sound drwxr-xr-x 2 root root 424 Jun 8 01:16 usr -rwxr-xr-x 1 root root 9388791 Sep 4 2007 vmlinux
Does that appear to have what ati-drivers should need? Best regards, John It's my understanding that > ati-drivers need the full kernel source. Likely they use (or check) > some of the kernel's internal header files to "match up" the driver > with the kernel it's running against. > > If you've got the full kernel source, then all I can suggest is > getting source for the newest kernel, building it (using your > old .config as the starting point), rebooting, and (finally) emerging > ati-drivers. The steps up to and including rebooting should provide a > consistent kernel version and source tree and make ati-drivers happy. > > HTH, > > David > > -- John P. Burkett Department of Economics University of Rhode Island Kingston, RI 02881-0808 USA phone (401) 874-9195