You are not logged in.
Pages: 1
Is it possible to compile only one driver?
I have tried to compile own kernel with these instructions http://wiki.archlinux.org/index.php/Ker … rom_Source ( With makepkg and pacman)
but i get errors when try to install it.
pacman -Uf kernel26-my-2.6.28-1-i686.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) upgrading kernel26-my [############################################] 100%
>>> Updating module dependencies. Please wait ...
error: scriptlet failed to execute correctly
I need only matrox drivers... ![]()
Offline
The scriptlet mentioned in the error message is the *.install file in your build directory. Check it to see why it won't execute. Paste it here if you would like someone else to have a look.
It is possible to compile one driver only, using normal kernel/module build processes. You could even make an Arch package if you wanted, but it would be a bit messy IMO - better to just install the module manually after the build completes.
Offline
My kernel source is 2.6.28.7
And i'm using /usr/src/linux directory
Filename is "kernel26.install" like in the instructions
Here it is:
post_install () {
echo ">>> Updating module dependencies. Please wait ..."
KERNEL_VERSION=2.6.28
/sbin/depmod -A -v $KERNEL_VERSION > /dev/null 2>&1
}
post_upgrade() {
echo ">>> Updating module dependencies. Please wait ..."
KERNEL_VERSION=2.6.28
/sbin/depmod -A -v $KERNEL_VERSION > /dev/null 2>&1
}
op=$1
shift
$op $*And here is PKGBUILD
pkgname=kernel26-my
basekernel=2.6.28
pkgver=2.6.28
pkgrel=1
pkgdesc="The Linux Kernel and modules"
arch=('i686')
url="http://www.kernel.org"
depends=('module-init-tools')
provides=(kernel26)
install=kernel26.install
build() {
# build!
cd ..
_kernver="${basekernel}${CONFIG_LOCALVERSION}"
make || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
cp System.map $startdir/pkg/boot/System.map26-my
cp arch/x86/boot/bzImage $startdir/pkg/boot/vmlinuz26-my
install -D -m644 .config $startdir/pkg/boot/kconfig26-my
# set correct depmod command for install
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26.install
}Offline
Please use code tags where appropriate.
I have fixed it for you this time.
Offline
I did install 2.6.27 kernel manually. No problems there.
Offline
Pages: 1