WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] linux-3.0.1apiheaders[should read nvidia compile error]  (Read 8648 times)

aus9

  • Guest
[SOLVED] linux-3.0.1apiheaders[should read nvidia compile error]
« on: September 22, 2012, 07:02:06 AM »
Hi

I am trying to complie a closed source driver which umm is naughty of me. I dowloaded the compiletc file and its dependency is linux-3.0.1_api_headers.tcz but I am on the  3.0.21 kernel.  I prefer not to do so but AFAIK  there are nvidia tczs here but they are old....280.13 is the most recent available here at TC according to my eyesight but I am looking for 304.43.

As I can see in tmp that I have the correct kernel headers, I can only assume its these other headers that need upgrading.

If you can understand where I am coming from.....feel free to upgrade or tell me where to go?

;)

http://www.nvidia.com/object/linux-display-ia32-304.43-driver.html
« Last Edit: September 23, 2012, 02:55:51 AM by aus9 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: linux-3.0.1_api_headers.tcz update request
« Reply #1 on: September 22, 2012, 07:23:13 AM »
These are the original kernel headers against which tc-4.x eglibc was compiled and thus, as far as I understand, should not be changed.

Perhaps you're confusing them with linux-headers-3.0.21-tinycore?
« Last Edit: September 22, 2012, 08:02:27 AM by Juanito »

aus9

  • Guest
Re: linux-3.0.1_api_headers.tcz update request
« Reply #2 on: September 22, 2012, 09:22:26 AM »
hi

thanks for the quick reply but still some issues.

Yes I have my headers for my kernel but here are the depends for subject package

Quote
bison.tcz
diffutils.tcz
file.tcz
findutils.tcz
flex.tcz
gawk.tcz
gcc.tcz
grep.tcz
m4.tcz
make.tcz
patch.tcz
pkg-config.tcz
sed.tcz
e2fsprogs_base-dev.tcz
eglibc_base-dev.tcz
fltk_base-dev.tcz
freetype_base-dev.tcz
gcc_base-dev.tcz
imlib2_base-dev.tcz
jpeg_base-dev.tcz
libpng_base-dev.tcz
libsysfs_base-dev.tcz
linux-3.0.1_api_headers.tcz
util-linux_base-dev.tcz
zlib_base-dev.tcz

I gather you are saying, there is no need to upgrade this package?

in which case, I am not sure how to resolve my nvidia error log.

I deliberately put compiletc and headers as "ondemand" clicked them, checked them in file manager that they were loaded in /tmp
exit to prompt and ran sudo sh (nvidia run file)
it claimed it could not build as it thought I had the wrong headers....but I have triple checked.

no matter.....sorry to have troubled you....I will find another way

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: linux-3.0.1_api_headers.tcz update request
« Reply #3 on: September 22, 2012, 09:49:44 AM »
Hi aus9
Quote
it claimed it could not build as it thought I had the wrong headers
Posting the first few errors would be much more useful than giving your own interpretation of the error messages.
Open a terminal, enter sudo su, and run it again. While holding down the left button on your mouse, use the pointer
to highlight the text. Move the mouse pointer to where you wish to paste, left click once, then center click once.
I think I also had to install one of the Xorg-dev extensions when I did this.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: linux-3.0.1_api_headers.tcz update request
« Reply #4 on: September 22, 2012, 10:04:35 AM »
I gather you are saying, there is no need to upgrade this package?

in which case, I am not sure how to resolve my nvidia error log.

I'm guessing that your package is looking for the kernel source - if this is the case, you can either prepare the kernel source (which works all of the time, but is time consuming) or use linux-headers-3.0.21-tinycore (which works most of the time).

Note that in both of the above cases you'll need to have compiletc loaded (and bash, ncurses-dev and perl5)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: linux-3.0.1_api_headers.tcz update request
« Reply #5 on: September 22, 2012, 10:22:57 AM »
Quote
or use linux-headers-3.0.21-tinycore (which works most of the time).
I used linux-headers.

aus9

  • Guest
Re: linux-3.0.1_api_headers.tcz update request
« Reply #6 on: September 22, 2012, 09:56:23 PM »
Thankyou all for your replies. Yes I am guilty in not posting my errors but I had the first error in assuming it was this package.

Mods, pls consider moving this post and I can rename it please.

2) First I have read the nvidia readme and done some tests and checked various tcz are loaded into tmp-tcloop

3) I have renamed my vesa xorg to /etc/X11/xorg.conf

4) Having installed the extra suggested packages and ensure loaded I redid my attempt.

In console, I have not created a second tty so report that kernel build says 100% then next screen says error and to look at
nvidia log at --kernel module load error AND kernel messages.

These are at bottom of link of full output

http://ompldr.org/vZmxuMw/nvidia4.log

Code: [Select]
Kernel module load error: insmod: can't insert './kernel/nvidia.ko': unknown symbol in module, or unknown parameter
-> Kernel messages:
isa cs4231.0: please specify port
isa sb8.0: please specify irq
no AD1816A based soundcards found.
no Avance Logic based soundcards found
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
HDA Intel 0000:00:1b.0: irq 40 for MSI/MSI-X
HDA Intel 0000:00:1b.0: setting latency timer to 64
input: HDA Intel Line In at Ext Rear Jack as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
input: HDA Intel Mic at Ext Rear Jack as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
input: HDA Intel Mic at Ext Front Jack as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
input: HDA Intel Speaker at Ext Rear Jack as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
input: HDA Intel HP Out at Ext Front Jack as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
mtrr: base(0xfb000000) is not aligned on a size(0xe00000) boundary
mtrr: no MTRR for fb000000,e00000 found
mtrr: base(0xfb000000) is not aligned on a size(0xe00000) boundary
mtrr: no MTRR for fb000000,e00000 found
nvidia: Unknown symbol agp_bind_memory (err 0)
nvidia: Unknown symbol agp_enable (err 0)
nvidia: Unknown symbol agp_backend_acquire (err 0)
nvidia: Unknown symbol agp_bridges (err 0)
nvidia: Unknown symbol agp_free_memory (err 0)
nvidia: Unknown symbol agp_allocate_memory (err 0)
nvidia: Unknown symbol agp_unbind_memory (err 0)
nvidia: Unknown symbol agp_copy_info (err 0)
nvidia: Unknown symbol agp_backend_release (err 0)
ERROR: Installation has failed.

if interested there also appears to be a different higher up in log?

Quote
Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.0.21-tinycore/build SYSOUT=/lib/modules/3.0.21-tinycore/build'...
   NVIDIA: calling KBUILD...
   test -e include/generated/autoconf.h -a -e include/config/auto.conf || (      \
   echo;                        \
   echo "  ERROR: Kernel configuration is invalid.";      \
   echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
   echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";   \
   echo;                        \
   /bin/false)

so I tried to do this

Code: [Select]
sudo su
/usr/local/src/linux-headers-3.0.21-tinycore

make oldconfig
scripts/kconfig/conf --oldconfig Kconfig
can't find file Kconfig
make[1]: *** [oldconfig] Error 1
make: *** [oldconfig] Error 2

maybe I do need a full source?
« Last Edit: September 22, 2012, 10:02:36 PM by aus9 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: linux-3.0.1_api_headers.tcz update request
« Reply #7 on: September 22, 2012, 11:45:24 PM »
Kernel module load error: insmod: can't insert './kernel/nvidia.ko': unknown symbol in module, or unknown parameter
This happens when dependent modules are not loaded - the agp module(s) in this case.

Quote
   echo "  ERROR: Kernel configuration is invalid.";      \
   echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
   echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";   \
This happens when the kernel sources have not been prepared properly

Quote
/usr/local/src/linux-headers-3.0.21-tinycore

make oldconfig
The linux-headers-3.0.21-tinycore extension should work with no additional preparation

aus9

  • Guest
Re: [SOLVED] linux-3.0.1apiheaders[should read nvidia compile error]
« Reply #8 on: September 23, 2012, 03:09:25 AM »
Juanito

Yes I had forgotten to load onboot the graphics tcz to give me....nvidia-agp
installing allowed nvidia to compile and say it was complete

on reboot, TC showed I am not yet a first class idiot but a second class idiot.
I lost my xorg.conf and I won't trouble-shoot it today but will post my temporay filetool.lst
its bound to be wrong, and I also elected (at this stage) to name entire folders

Quote
etc/inittab
etc/passwd
usr/local/etc/asound.state
etc/X11/xorg.conf
lib/modules/3.0.21-tinycore/kernel/drivers/video/nvidia.ko
lib/modules/3.0.21-tinycore/modules.alias.bin
lib/modules/3.0.21-tinycore/modules.alias
lib/modules/3.0.21-tinycore/modules.dep
lib/modules/3.0.21-tinycore/modules.dep.bin
lib/modules/3.0.21-tinycore/modules.pcimap
lib/modules/3.0.21-tinycore/modules.symbols
lib/modules/3.0.21-tinycore/modules.symbols.bin
var/lib/nvidia
etc/OpenCL
usr/lib
usr/local/lib
usr/bin/nvidia-xconfig
usr/bin/nvidia-setup
usr/src/nvidia-304.83

I am marking this as solved as the Original question was resolved some time ago and if I need further help I should start a thread.

Whether or not I have to resolve the other issue of .....kernel sources have not been prepared properly
may or may not be discovered tomorrow as I am likely to jump to a vanilla kernel and see if that borks my system

I am on learning curve so don't fear a bork as TC is on my spare partition and can be easily rebuilt.

I did try to startx after nvidia claimed it was all done but the Black screen of Learning Curve hit me.

I have discovered that mydata.tgz sitting in tce has not been updated since nvidia was done....that could explain it.
---gives me something to check next time I try

thanks everyone its a blast

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: [SOLVED] linux-3.0.1apiheaders[should read nvidia compile error]
« Reply #9 on: September 23, 2012, 04:11:53 AM »
but will post my temporay filetool.lst

Code: [Select]
lib/modules/3.0.21-tinycore/kernel/drivers/video/nvidia.ko
usr/bin/nvidia-xconfig
usr/bin/nvidia-setup
You'd be better off making an extension out of these.

Code: [Select]
lib/modules/3.0.21-tinycore/modules.alias.bin
lib/modules/3.0.21-tinycore/modules.alias
lib/modules/3.0.21-tinycore/modules.dep
lib/modules/3.0.21-tinycore/modules.dep.bin
lib/modules/3.0.21-tinycore/modules.pcimap
lib/modules/3.0.21-tinycore/modules.symbols
lib/modules/3.0.21-tinycore/modules.symbols.bin
These will be created on loading your extension so no need to save them.

Code: [Select]
usr/lib
usr/local/lib
Definately not a good idea

Code: [Select]
var/lib/nvidia
etc/OpenCL
usr/src/nvidia-304.83
Probably not required?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: [SOLVED] linux-3.0.1apiheaders[should read nvidia compile error]
« Reply #10 on: September 23, 2012, 10:31:12 AM »
Hi aus9
Here is a thread by another forum member who tried to compile an nVidia driver:
http://forum.tinycorelinux.net/index.php/topic,12965.0.html
I attached a couple of scripts in Reply #8 that you are welcome to try.

aus9

  • Guest
Re: [SOLVED] linux-3.0.1apiheaders[should read nvidia compile error]
« Reply #11 on: September 24, 2012, 09:55:09 AM »
hi Rich and Juanito

Thanks heaps for the scripts, and other concerns re my backup. If I get into trouble,I will start a new thread. I have not done anything as I had been doing other things.

cheers for now.


aus9

  • Guest
Re: [SOLVED] linux-3.0.1apiheaders[should read nvidia compile error]
« Reply #12 on: September 24, 2012, 08:41:52 PM »
Rich

nvidia loads correctly as I type, on reboot...woo hoo

I will reply again here rather than hijack Floppy's post

 I built against xorg 7.6 and k 3.0.21 using a version for closed source nvidia 304.43. Yes I am aware that for card, there is now a updated version but not yet tested.

Due to a problem I had with backup from an ugly .filetool.lst I rebuilt some of my files to get rid of that pesky error. The error was entirely my fault due to ummm impatience and has nothing to do with me having only 6 brain cells left ok ;)

 So having previously built it it did not quite work the way I wanted it to.....my tcz does not have etc/X11.xorg.conf in it. I am thinking I might rebuild it so it does, otherwise ...maybe...if things go pear shaped I end up on the console login screen

I know not to upload closed source so I hope you don't object to me showing what I have, in case it helps others?
Hidden as attachments

I won't show my slight modifications to your scripts as I only changed the versions,
but I did get an error in running the first script.....in console mode which vaguely read as
Code: [Select]
ps: invalid option option --'C'
usage ps [-O col (numbers I did not write down)
and it also mentions busybox
I am assuming that busybox did not have the option to use ps in the way wanted my the closed source script?

any how, I also "cheated" and copied that nvidia~.tcz to my tce/optional and then found I needed to use your depends list as mentioned on Floppy's post to fix up some missing depends

thank you very much for your patience and skills.

a Question if anyone reads this......would it be permissible to upload a "get nvidia script" for certain nvidia branches that couples a
wget command with your scripts ...suitably modified........and if was permitted....would you want it there with me acting a maintainer?


« Last Edit: September 24, 2012, 08:48:21 PM by aus9 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: [SOLVED] linux-3.0.1apiheaders[should read nvidia compile error]
« Reply #13 on: September 24, 2012, 10:24:00 PM »
Hi aus9
Quote
nvidia loads correctly as I type, on reboot...woo hoo
Congratulations. As witnessed by floppys experience, it can be quite an adventure.
Quote
Yes I am aware that for card, there is now a updated version but not yet tested.
A known working driver is always preferable to an unknown one that happens to be the latest.
Quote
.my tcz does not have etc/X11.xorg.conf in it.
Nor should it, that's what .filetool.lst is for.
Quote
I know not to upload closed source so I hope you don't object to me showing what I have, in case it helps others?
Those attachments are fine. Posting compiled programs and extensions are two of the bigger no nos.
Quote
I won't show my slight modifications to your scripts as I only changed the versions,
So I take it the scripts were of some use.
Quote
I am assuming that busybox did not have the option to use ps in the way wanted my the closed source script?
That's correct, but it apparently didn't stop the driver from compiling.
Quote
then found I needed to use your depends list as mentioned on Floppy's post
Yes, I forgot that I attached a copy of that in Reply #16.
Quote
would it be permissible to upload a "get nvidia script"
Yes. You can create a thread and post it under  General TC->Programming & Scripting - Unofficial
Once refined, you could submit it as an extension.

aus9

  • Guest
Re: [SOLVED] linux-3.0.1apiheaders[should read nvidia compile error]
« Reply #14 on: September 25, 2012, 01:04:32 AM »
Rich

Sorry for not making it more explicit. Were your scripts of "some" use.....NO!  They were the only way I got closed source stuff onto my TC system. ;) 

If I do make a "get closed source script" for various nv builds you can bet I will be naming you as the um script creator and I am just the maintainer.
This is what I was trying to allude to in my last question, but, I have failed to communicate. I assumed you were omnipresent and can read my mind!

Being stupid has it good points tho, unless you tell me not to do anything, I will have a go later. OFFTOPIC I am submitting a simple script update for inxi when my week' notice has expired so will find out just how bad I am.

once again.....Thanks heaps.....your scripts rock

Gordon