You are not logged in.

#1 2009-08-22 22:21:56

Neo_The_User
Member
From: The Matrix
Registered: 2009-03-30
Posts: 96
Website

[SOLVED] error: command failed to execute correctly

Hi. I am trying to compile a kernel (2.6.30.5) and if I dont use a kernel that looks like X.X.XX and looks like X.X.XX.X(X) then it doesn't work. I followed this guide: http://wiki.archlinux.org/index.php/Ker … rom_Source but it doesnt have an example when the kernel has an extra number or two after the first three sets of numbers. Please help. An exact yet very very simple PKGBUILD and kernel26.install file would be great. I can't figure out those PKGBUILDs in ABS that are around 100 lines of scripts.

ERROR:

loading package data...
(1/1) upgrading kernel26-core2                      [#####################] 100%
>>> Updating module dependencies. Please wait ...
error: command failed to execute correctly

PKGBUILD:

pkgname=kernel26-core2
basekernel=2.6.30
pkgver=2.6.30.5
pkgrel=1
pkgdesc="The Linux Kernel and modules"
arch=('x86_64')
url="http://www.kernel.org"
license=('GPL')
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
  install -Dm644 System.map $startdir/pkg/boot/System.map26-core2
  install -Dm644 arch/x86/boot/bzImage $startdir/pkg/boot/vmlinuz26-core2
  install -Dm644 .config $startdir/pkg/boot/kconfig26-core2
  # set correct depmod command for install
  sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26.install
}

kernel26.install

post_install () {
  echo ">>> Updating module dependencies. Please wait ..."
  KERNEL_VERSION=2.6.30.5
  /sbin/depmod -A -v $KERNEL_VERSION > /dev/null 2>&1
}

post_upgrade() {
  echo ">>> Updating module dependencies. Please wait ..."
  KERNEL_VERSION=2.6.30.5
  /sbin/depmod -A -v $KERNEL_VERSION > /dev/null 2>&1
}

op=$1
shift

$op $*

Last edited by Neo_The_User (2009-08-23 16:11:47)


AMD Phenom II X4 955 with Optimized Kernel
5 GB DDR2 RAM
320 GB SATA Hard Drive + 160 GB SATA Hard Drive
ATi RadeonHD 5830 GIGABYTE

Offline

#2 2009-08-23 05:48:02

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [SOLVED] error: command failed to execute correctly

Hello Neo_The_User!

By from /var/abs/core/kernel26/PKGBUILD:

_basekernel=2.6.30
pkgver=${_basekernel}.5

Was this PKGBUILD the starting point by you too ?

Offline

#3 2009-08-23 15:07:25

Neo_The_User
Member
From: The Matrix
Registered: 2009-03-30
Posts: 96
Website

Re: [SOLVED] error: command failed to execute correctly

I'm using the PKGBUILD from the http://wiki.archlinux.org/index.php/Ker … rom_Source guide and all i did was change some things around. I am not working in /var/abs. I am doing this in my home directory like the guide says. I'll try changing my pkgver is a bit. Thanks for your response! smile

Starting point? ermm.... I don't know what you mean.

I will report back results and see if your change fixed it. Thank you so much!

It works, thanks again!

Last edited by Neo_The_User (2015-11-29 03:12:58)


AMD Phenom II X4 955 with Optimized Kernel
5 GB DDR2 RAM
320 GB SATA Hard Drive + 160 GB SATA Hard Drive
ATi RadeonHD 5830 GIGABYTE

Offline

Board footer

Powered by FluxBB