Page 1 of 1

Kernel headers 3.7.5

Posted: 18 Feb 2013, 17:04
by ddemetis
I need compile drivers for RALINK wireless adapter (3090sta) but i can't find anywhere headers for the 3.7.5 kernel.

Can you please provide as well the sources of kernel that were used in compiling the porteus 2.0 as .xzm? and be able get it from porteus package manager.

Re: Kernel headers 3.7.5

Posted: 18 Feb 2013, 18:04
by Hamza

Re: Kernel headers 3.7.5

Posted: 19 Feb 2013, 02:07
by wread
Is that not in the repo? If not, it is time to do so...

Re: Kernel headers 3.7.5

Posted: 19 Feb 2013, 02:37
by francois
Hi there Hamza, hi there wread. 8)

It is in Ponce's porteus Index of /i486/testing/Porteus-v2.0-rc2/packages/kernel-sources/:
http://dl.porteus.org/i486/testing/Port ... l-sources/:D

Re: Kernel headers 3.7.5

Posted: 19 Feb 2013, 09:12
by Hamza
The link I posted came from Ponce's server.

Re: Kernel headers 3.7.5

Posted: 24 Mar 2013, 02:42
by UrUtusUbU
you can tell me how you make the kernel headers?
bye

Re: Kernel headers 3.7.5

Posted: 24 Mar 2013, 13:31
by Hamza
They are outdated. Please upgrade to 2.0 final and use this crippled_sources-porteus-v2.0-i486-1ftm

Re: Kernel headers 3.7.5

Posted: 24 Mar 2013, 16:18
by UrUtusUbU
no sorry,
my question is how to make not where is :)
thanks.

Re: Kernel headers 3.7.5

Posted: 24 Mar 2013, 16:34
by Hamza
Full kernel archive may be found there

To get the kernel config, please run this command on the Porteus which is running 3.7.5 kernel.

Code: Select all

modprobe configs && zcat /proc/config.gz > .config

Re: Kernel headers 3.7.5

Posted: 24 Mar 2013, 17:47
by fanthom
@UrUtusUbU
tomorrow i'll post my script for creating crippled sources.

Re: Kernel headers 3.7.5

Posted: 24 Mar 2013, 19:14
by wread
Fine Bussines, fanthom!
I am needing them too, without them I can not run VBox! :Bravo:

Re: Kernel headers 3.7.5

Posted: 24 Mar 2013, 20:05
by UrUtusUbU
@Hamza thank you but it is not that either :)

@fanthom thanks
I do them with this one but sometimes it gives me errors in Kconfig.

Code: Select all

#!/bin/bash
mv System.map ../
make clean
mv ../System.map .
make prepare
make scripts
rm -Rf Documentation drivers fs net sound firmware
ls -1d arch/* | grep -v x86 | xargs rm -Rf
ls -1d include/* | grep asm- | grep -v x86 | grep -v generic | xargs rm -Rf
cp include/generated/* include/linux
echo "all jobs done"
perhaps did it have to open a new topic?

Re: Kernel headers 3.7.5

Posted: 25 Mar 2013, 06:52
by fanthom
here it is:

Code: Select all

#!/bin/bash

dest=`pwd`
cd $dest

echo "do you want to create crippled sources module? Answer y/n"
read ans
if [ "$ans" = "y" ]; then
name=`echo $dest | rev | cut -d/ -f1 | rev`
mkdir Porteus-patches && chmod -x *.patch && mv *.patch Porteus-patches
cp .config Porteus-patches/kernel.config
rm .config.old 2>/dev/null
mv System.map ../
make clean
mv ../System.map .
make prepare
make scripts
# remove a lot of stuff
rm -Rf Documentation drivers fs net sound firmware
ls -1d arch/* | grep -v x86 | xargs rm -Rf
ls -1d include/* | grep asm- | grep -v x86 | grep -v generic | xargs rm -Rf
cp -a include/generated/* include/linux
pushd include/linux && ln -sf uapi/linux/version.h version.h && popd
mkdir -p new/usr/src/$name
mv * new/usr/src/$name 2>/dev/null
mv .* new/usr/src/$name 2>/dev/null
cd new/usr/src
ln -s $name linux
cd ../../../
rm -f new/usr/src/$name/p_devel
mksquashfs new crippled_sources.xzm -b 256K -Xbcj x86
rm -r new
echo "all jobs done"
fi
must be run after kernel compilation inside a folder with full sources. be aware that original folder will be gone.

Re: Kernel headers 3.7.5

Posted: 26 Mar 2013, 23:14
by UrUtusUbU
yeah i know how to make it,
thanks very much fanthom.

someone know if I will have problems if I do a downgrade of the kernel to the version 3.4 Lts?