You are not logged in.

#1 2009-07-29 18:53:10

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

kernel compilation error

Hello, I need to compile the current git version of the kernel because of some drivers being updated. I followed the "Kernel Compilation from Source" wiki. Here's what I've done:

renato@tosharch:~/kernel$ git git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git clone  #some days ago
renato@tosharch:~/kernel/linux-2.6$ git pull  #today
renato@tosharch:~/kernel/linux-2.6$ make mrproper
renato@tosharch:~/kernel/linux-2.6$ zcat /proc/config.gz > .config
renato@tosharch:~/kernel/linux-2.6$ make oldconfig
renato@tosharch:~/kernel/linux-2.6$ cp .config ../config-29luglio07 #backup copy as suggested in the wiki
renato@tosharch:~/kernel/linux-2.6$ make menuconfig  #changed LOCALVERSION
renato@tosharch:~/kernel/linux-2.6$ nano PKGBUILD  #copied the PKGBUILD from the wiki making the changes listed below
renato@tosharch:~/kernel/linux-2.6$ nano kernel26.install #same as above
renato@tosharch:~/kernel/linux-2.6$ makepkg -c
renato@tosharch:~/kernel/linux-2.6$ sudo pacman -U kernel26-rb-2.6.30-1-i686.pkg.tar.gz 
Password: 
loading package data...
checking dependencies...
(1/1) checking for file conflicts                   [######################################################] 100%
error: failed to prepare transaction (conflicting files)
kernel26-rb: /lib/firmware/3com/typhoon.bin exists in filesystem
kernel26-rb: /lib/firmware/acenic/tg1.bin exists in filesystem
kernel26-rb: /lib/firmware/acenic/tg2.bin exists in filesystem
kernel26-rb: /lib/firmware/adaptec/starfire_rx.bin exists in filesystem
kernel26-rb: /lib/firmware/adaptec/starfire_tx.bin exists in filesystem
kernel26-rb: /lib/firmware/advansys/3550.bin exists in filesystem
kernel26-rb: /lib/firmware/advansys/38C0800.bin exists in filesystem
kernel26-rb: /lib/firmware/advansys/38C1600.bin exists in filesystem
kernel26-rb: /lib/firmware/advansys/mcode.bin exists in filesystem
kernel26-rb: /lib/firmware/atmsar11.fw exists in filesystem
kernel26-rb: /lib/firmware/bnx2/bnx2-mips-06-4.6.16.fw exists in filesystem
kernel26-rb: /lib/firmware/bnx2/bnx2-mips-09-4.6.17.fw exists in filesystem
kernel26-rb: /lib/firmware/bnx2/bnx2-rv2p-06-4.6.16.fw exists in filesystem
kernel26-rb: /lib/firmware/bnx2/bnx2-rv2p-09-4.6.15.fw exists in filesystem
kernel26-rb: /lib/firmware/cis/LA-PCM.cis exists in filesystem
kernel26-rb: /lib/firmware/cxgb3/t3b_psram-1.1.0.bin exists in filesystem
kernel26-rb: /lib/firmware/cxgb3/t3c_psram-1.1.0.bin exists in filesystem
kernel26-rb: /lib/firmware/e100/d101m_ucode.bin exists in filesystem
kernel26-rb: /lib/firmware/e100/d101s_ucode.bin exists in filesystem
kernel26-rb: /lib/firmware/e100/d102e_ucode.bin exists in filesystem
kernel26-rb: /lib/firmware/edgeport/boot.fw exists in filesystem
kernel26-rb: /lib/firmware/edgeport/boot2.fw exists in filesystem
kernel26-rb: /lib/firmware/edgeport/down.fw exists in filesystem
kernel26-rb: /lib/firmware/edgeport/down2.fw exists in filesystem
kernel26-rb: /lib/firmware/edgeport/down3.bin exists in filesystem
kernel26-rb: /lib/firmware/emi26/bitstream.fw exists in filesystem
kernel26-rb: /lib/firmware/emi26/firmware.fw exists in filesystem
kernel26-rb: /lib/firmware/emi26/loader.fw exists in filesystem
kernel26-rb: /lib/firmware/emi62/bitstream.fw exists in filesystem
kernel26-rb: /lib/firmware/emi62/loader.fw exists in filesystem
kernel26-rb: /lib/firmware/emi62/midi.fw exists in filesystem
kernel26-rb: /lib/firmware/emi62/spdif.fw exists in filesystem
kernel26-rb: /lib/firmware/ess/maestro3_assp_kernel.fw exists in filesystem
kernel26-rb: /lib/firmware/ess/maestro3_assp_minisrc.fw exists in filesystem
kernel26-rb: /lib/firmware/kaweth/new_code.bin exists in filesystem
kernel26-rb: /lib/firmware/kaweth/new_code_fix.bin exists in filesystem
kernel26-rb: /lib/firmware/kaweth/trigger_code.bin exists in filesystem
kernel26-rb: /lib/firmware/kaweth/trigger_code_fix.bin exists in filesystem
kernel26-rb: /lib/firmware/keyspan_pda/keyspan_pda.fw exists in filesystem
kernel26-rb: /lib/firmware/keyspan_pda/xircom_pgs.fw exists in filesystem
kernel26-rb: /lib/firmware/korg/k1212.dsp exists in filesystem
kernel26-rb: /lib/firmware/mts_cdma.fw exists in filesystem
kernel26-rb: /lib/firmware/mts_edge.fw exists in filesystem
kernel26-rb: /lib/firmware/mts_gsm.fw exists in filesystem
kernel26-rb: /lib/firmware/ositech/Xilinx7OD.bin exists in filesystem
kernel26-rb: /lib/firmware/qlogic/1040.bin exists in filesystem
kernel26-rb: /lib/firmware/qlogic/12160.bin exists in filesystem
kernel26-rb: /lib/firmware/qlogic/1280.bin exists in filesystem
kernel26-rb: /lib/firmware/sun/cassini.bin exists in filesystem
kernel26-rb: /lib/firmware/tehuti/bdx.bin exists in filesystem
kernel26-rb: /lib/firmware/ti_3410.fw exists in filesystem
kernel26-rb: /lib/firmware/ti_5052.fw exists in filesystem
kernel26-rb: /lib/firmware/tigon/tg3.bin exists in filesystem
kernel26-rb: /lib/firmware/tigon/tg3_tso.bin exists in filesystem
kernel26-rb: /lib/firmware/tigon/tg3_tso5.bin exists in filesystem
kernel26-rb: /lib/firmware/whiteheat.fw exists in filesystem
kernel26-rb: /lib/firmware/whiteheat_loader.fw exists in filesystem
kernel26-rb: /lib/firmware/yamaha/ds1_ctrl.fw exists in filesystem
kernel26-rb: /lib/firmware/yamaha/ds1_dsp.fw exists in filesystem
kernel26-rb: /lib/firmware/yamaha/ds1e_ctrl.fw exists in filesystem
kernel26-rb: /lib/firmware/yamaha/yss225_registers.bin exists in filesystem

errors occurred, no packages were upgraded.

in the PKGBUILD and kernel26.install basically I changed pkgname, versions and name of files to be kernel26-rb instead of kernel26-my... could this have broken something?

here is my PKGBUILD:

pkgname=kernel26-rb
basekernel=2.6.30
pkgver=2.6.30
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
  install -Dm644 System.map $startdir/pkg/boot/System.map26-my
  install -Dm644 arch/x86/boot/bzImage $startdir/pkg/boot/vmlinuz26-rb
  install -Dm644 .config $startdir/pkg/boot/kconfig26-rb
  # set correct depmod command for install
  sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26.install
}

and my kernel26.install

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

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

op=$1
shift

$op $*

any help appreciated

Renato

Offline

#2 2009-07-29 19:22:35

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: kernel compilation error

Install that package with option -f:
pacman -Uf package wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#3 2009-07-29 19:25:09

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: kernel compilation error

remove kernel26-firmware


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2009-07-29 19:33:11

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

Re: kernel compilation error

ok, still an error though...

renato@tosharch:~/kernel/linux-2.6$ sudo pacman -Rd kernel26-firmware
renato@tosharch:~/kernel/linux-2.6$ sudo pacman -U kernel26-rb-2.6.30-1-i686.pkg.tar.gz 
loading package data...
checking dependencies...
(1/1) checking for file conflicts                   [######################################################] 100%
(1/1) installing kernel26-rb                        [######################################################] 100%
>>> Updating module dependencies. Please wait ...
error: scriptlet failed to execute correctly

Offline

#5 2009-07-29 20:18:42

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: kernel compilation error

Use kernel26.install from kernel26 form ABS tree or modife it for you wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#6 2009-07-29 22:30:14

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

Re: kernel compilation error

SpeedVin wrote:

Use kernel26.install from kernel26 form ABS tree or modife it for you wink

Uhm, is there something wrong with the one I posted above that is causing that error? I had a look at that from the ABS tree and it seems to me the only difference is it is making the ramdisk which I would have done manually as explained in the wiki...

BTW, the last error I got, what does it mean?

Offline

#7 2009-07-30 10:01:50

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

Re: kernel compilation error

In the kernel26.install above I changed KERNEL_VERSION to the name of the directory in /lib/modules, that is 2.6.31-rc4-rb-0.4--00198-g7d3e91b

Now, if I ran pacman -U I still get the "scriptlet failed" error, but if I execute manually the instructions in kernel26.install all seems well... any clue?

renato@tosharch:~/kernel/linux-2.6$   KERNEL_VERSION=2.6.31-rc4-rb-0.4--00198-g7d3e91b
renato@tosharch:~/kernel/linux-2.6$   /sbin/depmod -A -v $KERNEL_VERSION > /dev/null 2>&1
renato@tosharch:~/kernel/linux-2.6$

Offline

#8 2009-07-30 21:13:40

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

Re: kernel compilation error

I guess about it 2.6.31-rc4-rb-0.4--00198-g7d3e91b, well, it's not a stable kernel release..

Offline

#9 2009-07-30 22:02:41

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: kernel compilation error

You could use a similar command like kernel26-git:

depmod $(pacman -Ql kernel26-git | grep -m1 -o "2.6.[0-9]\{2,\}\-git$")

Offline

#10 2009-07-31 09:09:58

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

Re: kernel compilation error

hadn't seen the kernel26-git PKGBUILD in the AUR, it seems great, I'll be trying it later today

Offline

Board footer

Powered by FluxBB