| Author |
Message |
|
|
Post subject: kernel sources required for hardware - plz help
Posted: Aug 07, 2007 - 08:42 AM
|
|
Joined: Aug 07, 2007
Posts: 11
Status: Offline
|
|
hi guys, i'm new to sidux and i'm having problems installing a data capture card in sidux.
i went online to the card manufacturers website and downloaded a package containing drivers and software. when i try compile the package it gives me errors saying files are missing and 'undeclared (first use in this function)'. i called the card manufacturer and they say i must install the 'kernel sources' or atleast the 'build header files and the libraries'.
so basically i don't know how to install the 'kernel sources' or where to find them. i'm running sidux-2007-02-full, with kernel version 2.6.21.3-slh-smp-4.
i've only been using sidux for about a month now, so any help will be appreciated, thanks. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: kernel sources required for hardware - plz help
Posted: Aug 07, 2007 - 09:24 AM
|
|

Joined: Feb 24, 2007
Posts: 679
Location: Berlin, Germany
Status: Offline
|
|
Hi jab85,
the easiest way to get the sources is to make a dist-upgrade with smxi in init 3, because the first steps of smxi are to check your kernel and offer you to upgrade your kernel. in that step it pulls in the kernel headers and some related packages.
cheers Micha |
_________________ http://sidux.com/PNphpBB2-viewtopic-t-2403.html
|
| |
|
|
|
 |
|
|
Post subject: kernel sources required for hardware - plz help
Posted: Aug 07, 2007 - 10:39 AM
|
|

Joined: Dec 04, 2006
Posts: 258
Location: Nördliche Lüneburger Heide
Status: Offline
|
|
Hello,
the above mentioned method suggested from michaaa62 helps in most cases. If you need more, go into "Downloads" on this web-page and then you will see some directories.. Dive into "kernel" and there you will find the actual kernels as zip-files.
Mostly at the bottom of the list you will find alsa an .tar.bz2 file which ist the complete source code[of the current kernel- version.
But beware: Asa far as I know the actual add-ons and patches from sidux are not include in this package!
An other method ist to get an actual kernel-zip into an directory and unpack it there (unzip *.zip).
Install the kernel with install-kernel-sidux.sh" and add additional modules if you know you need them (an ls before is pretty helpfull to see whats available) with dpkg -i 'modulename.deb'
Then boot the system with the new kernel and go again into the directory where you unpacked the kernel. Make sure you can connect to the internet and get the sources with "kernel-source-ng.nash"
This gets the complete kernelsource and adds all the changes and pacthes fom sidux(mostly or all from slh) and you should have an up-todate kernel-source in /usr/src/ afterwards
Hope the above ist not too confusing but that is the way I have done it before when complete kernelsource was required.
Idonot know whether the smxi script can handle this also but if not, i would suggest for implementation
regards
Reiner Schmidt[/b][/u] |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: kernel sources required for hardware - plz help
Posted: Aug 07, 2007 - 03:24 PM
|
|
Joined: Aug 07, 2007
Posts: 11
Status: Offline
|
|
so i did as you said:
downloaded kernel-2.6.22.1-slh-smp-7
unzipped it
ran ./install-kernel-sidix.sh
restarted and the kernel was installed all fine...
but when i run ./kernel-source-ng.bash it gives me a error 'Invalid kernel version string!'. i tried ./kernel-source-ng.bash 2.6.22.1-slh-smp-7 no luck . my sources.list file is pointing to the online archives so don't think that could be it. can you please give me the exact command to run. i'm new to all this sorry. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: kernel sources required for hardware - plz help
Posted: Aug 07, 2007 - 03:27 PM
|
|

Joined: Nov 26, 2006
Posts: 172
Location: Hagen
Status: Offline
|
|
| ./kernel-source-ng.bash -k2.6.22.1 -nslh-smp -r7 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: kernel sources required for hardware - plz help
Posted: Aug 07, 2007 - 03:31 PM
|
|
Joined: Aug 07, 2007
Posts: 11
Status: Offline
|
|
ok i tried ./kernel-source-ng.bash -k 2.6.22.1 and it's downloading something.... let me wait and see, thanks for all the help so far . |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: kernel sources required for hardware - plz help
Posted: Aug 07, 2007 - 04:10 PM
|
|

Joined: Dec 02, 2006
Posts: 1046
Location: East Coast
Status: Offline
|
|
|
jab85 wrote:
i must install the 'kernel sources' or atleast the 'build header files and the libraries'
...
downloaded kernel-2.6.22.1-slh-smp-7
unzipped it
ran ./install-kernel-sidix.sh
restarted and the kernel was installed all fine...
That's all you needed to install the kernel's headers. Try to build the driver just with that.
./kernel-source-ng.bash -k2.6.22.1 -nslh-smp -r7 is meant to download and prepare the kernel source.
If you can't build the driver you wanted with only the hearders, then you will have to use the kernel-source-ng.bash |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: kernel sources required for hardware - plz help
Posted: Aug 07, 2007 - 05:27 PM
|
|
Joined: Nov 28, 2006
Posts: 4303
Status: Offline
|
|
| just so it's clear, whenever you install a new kernel with smxi all the steps listed are done automatically, the zip file is downloaded and extracted into the directory /usr/src/kernel-downloads/<kernel-name>/.... and it runs the installer script, then leaves all the stuff there in case you need it for things like this. |
_________________ sidux Maintenance script: dist-upgrade, kernel install, general utilities: smxi
Backup script [using rdiff-backup]: rd-h2.sh
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: kernel sources required for hardware - plz help
Posted: Aug 08, 2007 - 07:29 AM
|
|
Joined: Aug 07, 2007
Posts: 11
Status: Offline
|
|
thanks for all the advice, i ran the kernel-source-ng.bash command it downloaded the linux-2.6.22.tar.bz2 file and some other patches. when it came to extracting the linux-2.6.22.tar.bz2 file it gave this error:
Unpacking linux-2.6.22.tar.bz2...
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
tar: Child returned status 2
tar: Error exit delayed from previous errors
Failed!
i tried the bzip2recover no hope. if i manually download the linux-2.6.22.tar.bz2 from the downloads section how would i install it...??
EDIT: i downloaded linux-2.6.22.tar.bz2 from the downloads section. i'm gonna try put it in the usr/src/ folder and try again...my only worry is the one that is there is 127mb and the one i downloaded is 43mb..?? anyways lemme give it a shot |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: kernel sources required for hardware - plz help
Posted: Aug 08, 2007 - 10:45 AM
|
|
Joined: Aug 07, 2007
Posts: 11
Status: Offline
|
|
ok in trouble now. i installed all the sources, but that wasn't the problem. so i called the card manufacturer and he said i should extract the package to a different folder into usr/ and some files into user/lib/... so i did. i didn't overwrite anything in the process but now the computer won't log in.
so i chose the 'fluxBox' option and it let me in luckily... but now i can't open konqueror or konsole.... just iceweasel, which is why i'm here. is there some way i can get to the folders and delete the files i extracted there..??
EDIT: i've got an ubuntu livecd that i can boot up from and see the harddrive. but i dont have access to delete the files. how can i delete them with an ubuntu livecd??
EDIT: i used the sudo command in the ubuntu console and removed all the files i had writen to those folders. restarted sidux but no change. login screen comes, i enter password, hit enter.... and it just returns to the same login screen. i can only get into the fluxBox option(hence i am here)
i'll just have to reformat tomorrow  |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: kernel sources required for hardware - plz help
Posted: Aug 08, 2007 - 12:11 PM
|
|

Joined: Feb 24, 2007
Posts: 679
Location: Berlin, Germany
Status: Offline
|
|
Hi jab85, may be someone can help you if you offer some information.
which files did you copy after you contacted the support, what does your /var/log/kdm.log file look like? What does the output of df-h / look like. it looks like you just screwed some KDM files int he copy and then remove process.
cheers Micha |
_________________ http://sidux.com/PNphpBB2-viewtopic-t-2403.html
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: kernel sources required for hardware - plz help
Posted: Aug 08, 2007 - 01:14 PM
|
|

Joined: Dec 02, 2006
Posts: 1046
Location: East Coast
Status: Offline
|
|
More info can help a lot. What exactly is the driver you want to build. Maybe someone in here has built it before or there's already a debian package
I still think that running the kernel-source-ng.bash was unnecessary. I'm wondering if you tried to build the driver after you ran install-kernel.sh and rebooted.
In case you decide to reinstall (easiest but not prettiest solution) don't forget to backup your stuff. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: kernel sources required for hardware - plz help
Posted: Aug 10, 2007 - 08:47 AM
|
|
Joined: Aug 07, 2007
Posts: 11
Status: Offline
|
|
i backed up and reformatted. sorry i couldn't provide more info about the problem... i've only been using sidux for just under a month now. its a data capture card from eagle electronics. i downloaded the driver package from here:
http://www.eagle.co.za/download/download/edre_linux.tar.gz
its only 1mb, maybe someone can take a look at it and help me on how to go about installing it. should be similar to other cards. the card manufacturer says i must extract into usr/ and then run make... i did it and had to reformat . |
|
|
| |
|
|
|
 |
|
|