Installing the vortex linux kernel headers

Based on DMP's Vortex processor / SoC this board is a full computer capable of running a standard Windows and Linux installation on the backpack of your robot.
6 postsPage 1 of 1
6 postsPage 1 of 1

Installing the vortex linux kernel headers

Post by SoBot » Wed Sep 29, 2010 5:50 pm

Post by SoBot
Wed Sep 29, 2010 5:50 pm

I need to install the linux-2.6.34.1-vortex86-sg headers. I have extracted the source files from the b2z file and run make. Please tell me how I should proceed from here?
I need to install the linux-2.6.34.1-vortex86-sg headers. I have extracted the source files from the b2z file and run make. Please tell me how I should proceed from here?
SoBot offline
Robot Builder
Robot Builder
Posts: 17
Joined: Wed Mar 31, 2010 3:10 pm

Post by matt.stevenson » Thu Sep 30, 2010 1:58 am

Post by matt.stevenson
Thu Sep 30, 2010 1:58 am

To get the headers you will need to compile them from the source. For the headers to be useful you will need an accompanying kernel built from the same source. I don't know too much about kernel/header versioning, so there's probably a way to compile the headers and use them with a precompiled kernel, but its not too hard to just compile a new kernel along with the headers. When I set my board up, I had to recompile the kernel with wifi support enabled in order to use any wifi.

Here are the basic steps which I found from this guide: http://www.debianadmin.com/step-by-step ... lenny.html

#apt-get install kernel-package ncurses-dev bzip2 module-init-tools initramfs-tools procps fakeroot

#mkdir ~/newkernel/

Copy source to newly created folder

#cp ~/linux-source-2.6.26.tar.bz2 ~/newkernel/

#cd /newkernel/

Extract the source using the following command

#tar xjf linux-source-2.6.26.tar.bz2

#cd linux-source-2.6.26

Configure kernel options (such as enable wifi modules)

#make menuconfig

#make-kpkg clean

This command actually compiles the kernel and headers. This will take several (3-5) hours. This will create a .deb package for your kernel and one for the header.

#make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers

#cd ..

This will install your new kernel and headers

#dpkg -i *.deb



Once you have the new kernel/headers installed, you will need to change your grub settings to boot from it.


Here's a second guide for compiling a kernel: http://newbiedoc.sourceforge.net/system/kernel-pkg.html
To get the headers you will need to compile them from the source. For the headers to be useful you will need an accompanying kernel built from the same source. I don't know too much about kernel/header versioning, so there's probably a way to compile the headers and use them with a precompiled kernel, but its not too hard to just compile a new kernel along with the headers. When I set my board up, I had to recompile the kernel with wifi support enabled in order to use any wifi.

Here are the basic steps which I found from this guide: http://www.debianadmin.com/step-by-step ... lenny.html

#apt-get install kernel-package ncurses-dev bzip2 module-init-tools initramfs-tools procps fakeroot

#mkdir ~/newkernel/

Copy source to newly created folder

#cp ~/linux-source-2.6.26.tar.bz2 ~/newkernel/

#cd /newkernel/

Extract the source using the following command

#tar xjf linux-source-2.6.26.tar.bz2

#cd linux-source-2.6.26

Configure kernel options (such as enable wifi modules)

#make menuconfig

#make-kpkg clean

This command actually compiles the kernel and headers. This will take several (3-5) hours. This will create a .deb package for your kernel and one for the header.

#make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers

#cd ..

This will install your new kernel and headers

#dpkg -i *.deb



Once you have the new kernel/headers installed, you will need to change your grub settings to boot from it.


Here's a second guide for compiling a kernel: http://newbiedoc.sourceforge.net/system/kernel-pkg.html
matt.stevenson offline
Savvy Roboteer
Savvy Roboteer
Posts: 37
Joined: Thu Apr 29, 2010 9:29 pm

Post by Photon1272 » Fri Oct 01, 2010 2:59 pm

Post by Photon1272
Fri Oct 01, 2010 2:59 pm

Hi,

this looks great, I had the same problem, so thanks for the tutorrial!
But, I had the kernel 2.6.29.1-vortex86dx running and was compiling the sources for linux-2.6.34.1-vortex86-sg, when this error msg appeared:

The UTS Release version in include/linux/version.h does not match current version: 2.6.34.1-vortex86dx


I then updated the kernel to linux-2.6.34.1-vortex86-sg and tried to compile again, with the same result:

make[1]: Leaving directory `/usr/src/linux-2.6.34.1-vortex86-sg'
test ! -e scripts/package/builddeb || mv -f scripts/package/builddeb scripts/package/builddeb.kpkg-dist
test ! -e scripts/package/Makefile || test -f scripts/package/Makefile.kpkg-dist || (mv -f scripts/package/Makefile scripts/package/Makefile.kpkg-dist && (echo
"# Dummy file "; echo "help:") > scripts/package/Makefile)
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |\
awk '$1 ~ /[hi]i/ { printf("%s-%s\n", $2, $3) }'> debian/buildinfo
uname -a >> debian/buildinfo
echo using the compiler: >> debian/buildinfo
grep LINUX_COMPILER include/linux/compile.h | \
sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> debian/buildinfo
grep: include/linux/compile.h: Datei oder Verzeichnis nicht gefunden
echo applied kernel patches: >> debian/buildinfo
echo done > debian/stamp/build/kernel
/usr/bin/make -f ./debian/rules debian/stamp/binary/pre-linux-image-2.6.34.1-vortex86dx
make[1]: Entering directory `/usr/src/linux-2.6.34.1-vortex86-sg'
====== making target debian/stamp/install/linux-image-2.6.34.1-vortex86dx [new prereqs: ]======
This is kernel package version 11.015.
echo "The UTS Release version in include/linux/version.h"; echo " \"\" "; echo "does not match current version:"; echo " \"2.6.34.1-vortex86dx
\" "; echo "Please correct this."; exit 2
The UTS Release version in include/linux/version.h
""
does not match current version:
"2.6.34.1-vortex86dx"
Please correct this.
make[1]: *** [debian/stamp/install/linux-image-2.6.34.1-vortex86dx] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.34.1-vortex86-sg'
make: *** [kernel_image] Fehler 2
Robot:/usr/src/linux-2.6.34.1-vortex86-sg#


Well, I have some basic understanding of linux, but my knowledge doesn't go so far... so what can I do?
Help is very much appreciated!
Hi,

this looks great, I had the same problem, so thanks for the tutorrial!
But, I had the kernel 2.6.29.1-vortex86dx running and was compiling the sources for linux-2.6.34.1-vortex86-sg, when this error msg appeared:

The UTS Release version in include/linux/version.h does not match current version: 2.6.34.1-vortex86dx


I then updated the kernel to linux-2.6.34.1-vortex86-sg and tried to compile again, with the same result:

make[1]: Leaving directory `/usr/src/linux-2.6.34.1-vortex86-sg'
test ! -e scripts/package/builddeb || mv -f scripts/package/builddeb scripts/package/builddeb.kpkg-dist
test ! -e scripts/package/Makefile || test -f scripts/package/Makefile.kpkg-dist || (mv -f scripts/package/Makefile scripts/package/Makefile.kpkg-dist && (echo
"# Dummy file "; echo "help:") > scripts/package/Makefile)
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |\
awk '$1 ~ /[hi]i/ { printf("%s-%s\n", $2, $3) }'> debian/buildinfo
uname -a >> debian/buildinfo
echo using the compiler: >> debian/buildinfo
grep LINUX_COMPILER include/linux/compile.h | \
sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> debian/buildinfo
grep: include/linux/compile.h: Datei oder Verzeichnis nicht gefunden
echo applied kernel patches: >> debian/buildinfo
echo done > debian/stamp/build/kernel
/usr/bin/make -f ./debian/rules debian/stamp/binary/pre-linux-image-2.6.34.1-vortex86dx
make[1]: Entering directory `/usr/src/linux-2.6.34.1-vortex86-sg'
====== making target debian/stamp/install/linux-image-2.6.34.1-vortex86dx [new prereqs: ]======
This is kernel package version 11.015.
echo "The UTS Release version in include/linux/version.h"; echo " \"\" "; echo "does not match current version:"; echo " \"2.6.34.1-vortex86dx
\" "; echo "Please correct this."; exit 2
The UTS Release version in include/linux/version.h
""
does not match current version:
"2.6.34.1-vortex86dx"
Please correct this.
make[1]: *** [debian/stamp/install/linux-image-2.6.34.1-vortex86dx] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.34.1-vortex86-sg'
make: *** [kernel_image] Fehler 2
Robot:/usr/src/linux-2.6.34.1-vortex86-sg#


Well, I have some basic understanding of linux, but my knowledge doesn't go so far... so what can I do?
Help is very much appreciated!
Photon1272 offline
Newbie
Newbie
Posts: 4
Joined: Mon Sep 27, 2010 4:08 pm

Post by roboard » Mon Oct 04, 2010 6:50 am

Post by roboard
Mon Oct 04, 2010 6:50 am

Photon1272 wrote:But, I had the kernel 2.6.29.1-vortex86dx running and was compiling the sources for linux-2.6.34.1-vortex86-sg, when this error msg appeared:

The UTS Release version in include/linux/version.h does not match current version: 2.6.34.1-vortex86dx


I then updated the kernel to linux-2.6.34.1-vortex86-sg and tried to compile again, with the same result...


Hi,

you may try again to compile the kernel source on newer Debian or Ubuntu.

For ones that need the kernel headers, we have added them in the Vortex86DX Kernel package; please go to http://www.roboard.com/download_ml.htm to download the kernel package again.

:)
Photon1272 wrote:But, I had the kernel 2.6.29.1-vortex86dx running and was compiling the sources for linux-2.6.34.1-vortex86-sg, when this error msg appeared:

The UTS Release version in include/linux/version.h does not match current version: 2.6.34.1-vortex86dx


I then updated the kernel to linux-2.6.34.1-vortex86-sg and tried to compile again, with the same result...


Hi,

you may try again to compile the kernel source on newer Debian or Ubuntu.

For ones that need the kernel headers, we have added them in the Vortex86DX Kernel package; please go to http://www.roboard.com/download_ml.htm to download the kernel package again.

:)
roboard offline
Savvy Roboteer
Savvy Roboteer
Posts: 302
Joined: Fri Jul 03, 2009 4:44 am

Back again....

Post by Photon1272 » Sun Oct 17, 2010 2:34 pm

Post by Photon1272
Sun Oct 17, 2010 2:34 pm

Hi,

thanks a lot for those kernel headers!

After setting up the system I installed the kernel headers with:
Code: Select all
dpkg -i linux-headers-2.6.34.1-vortex86-sg_1.0_i386.deb


Then I tried to do what I intented to do, installing ndiswrapper with
Code: Select all
m-a a-i ndiswrapper

(I got that from http://wiki.debian.org/NdisWrapper)

It then starts to try installing linux-headers-2.6.34.1-vortex86-sg:
Code: Select all
Daten über 1 Pakete aktualisiert.
Getting source for kernel version: 2.6.34.1-vortex86-sg
apt-get install linux-headers-2.6.34.1-vortex86-sg
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... 70%


mentioning that the newest version already exists, but then it says:

Code: Select all
Pech gehabt, es wurden keine zum aktuellen Kernel passende
Headers gefunden und es wurden keine weiteren
Kernel-Verzeichnisse angegeben.


means:
Bad luck, no appropriate kernel headers were found and no kernel folders were declared.

Then it also says, that the kernel headers can be installed from the package linux-headers-2.6.34.1-vortex86-sg.
In order to do so I should run
"module-assistant prepare" or "apt-get install linux-headers-2.6.34.1-vortex86-sg"

Something is missing there! How can the module assistant find the kernel headers?
At least, there must be a way to install ndiswrapper and get it running on that system....!

Thanks a lot for help...
Hi,

thanks a lot for those kernel headers!

After setting up the system I installed the kernel headers with:
Code: Select all
dpkg -i linux-headers-2.6.34.1-vortex86-sg_1.0_i386.deb


Then I tried to do what I intented to do, installing ndiswrapper with
Code: Select all
m-a a-i ndiswrapper

(I got that from http://wiki.debian.org/NdisWrapper)

It then starts to try installing linux-headers-2.6.34.1-vortex86-sg:
Code: Select all
Daten über 1 Pakete aktualisiert.
Getting source for kernel version: 2.6.34.1-vortex86-sg
apt-get install linux-headers-2.6.34.1-vortex86-sg
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... 70%


mentioning that the newest version already exists, but then it says:

Code: Select all
Pech gehabt, es wurden keine zum aktuellen Kernel passende
Headers gefunden und es wurden keine weiteren
Kernel-Verzeichnisse angegeben.


means:
Bad luck, no appropriate kernel headers were found and no kernel folders were declared.

Then it also says, that the kernel headers can be installed from the package linux-headers-2.6.34.1-vortex86-sg.
In order to do so I should run
"module-assistant prepare" or "apt-get install linux-headers-2.6.34.1-vortex86-sg"

Something is missing there! How can the module assistant find the kernel headers?
At least, there must be a way to install ndiswrapper and get it running on that system....!

Thanks a lot for help...
Photon1272 offline
Newbie
Newbie
Posts: 4
Joined: Mon Sep 27, 2010 4:08 pm

Re: Back again....

Post by roboard » Wed Oct 20, 2010 11:40 am

Post by roboard
Wed Oct 20, 2010 11:40 am

Photon1272 wrote:Something is missing there! How can the module assistant find the kernel headers?
At least, there must be a way to install ndiswrapper and get it running on that system....!

Thanks a lot for help...


Hi,

Our kernel packages does not follow debian naming conventions, so the program could not find the dicrectory of the kernel headers.

Please try to run the command as below.

# m-a -k /usr/src/linux-headers-2.6.34.1-vortex86-sg -l 2.6.34.1-vortex86-sg a-i ndiswrapper

Please also notice that the kernel module in offical debian/ubuntu archive server usually cannot be compiled with other kernel versions which is not equal to theirs. So, some problem might occur if you built the kernel module on OLD debian/ubuntu system.

We suggest you to consult other ndiswrapper guides to build it from scratch.

:)
Photon1272 wrote:Something is missing there! How can the module assistant find the kernel headers?
At least, there must be a way to install ndiswrapper and get it running on that system....!

Thanks a lot for help...


Hi,

Our kernel packages does not follow debian naming conventions, so the program could not find the dicrectory of the kernel headers.

Please try to run the command as below.

# m-a -k /usr/src/linux-headers-2.6.34.1-vortex86-sg -l 2.6.34.1-vortex86-sg a-i ndiswrapper

Please also notice that the kernel module in offical debian/ubuntu archive server usually cannot be compiled with other kernel versions which is not equal to theirs. So, some problem might occur if you built the kernel module on OLD debian/ubuntu system.

We suggest you to consult other ndiswrapper guides to build it from scratch.

:)
roboard offline
Savvy Roboteer
Savvy Roboteer
Posts: 302
Joined: Fri Jul 03, 2009 4:44 am


6 postsPage 1 of 1
6 postsPage 1 of 1
cron