You are not logged in.

#1 2008-08-03 20:58:00

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

[SOLVED] Where'd I go wrong with my kernel?

This is my first time trying to make a kernel on my own using my own configs and whatnot. While it compiled fine and all, when I try to install with pacman I get this error:

loading package data...
checking dependencies...
(1/1) checking for file conflicts                   [#####################] 100%
(1/1) upgrading kernel26quad                        [#####################] 100%
>>>
>>> If you use the LILO bootloader, you should run 'lilo' before rebooting.
>>>
>>> Updating module dependencies. Please wait ...
>>> MKINITCPIO SETUP
>>> ----------------
>>> If you use LVM2, Encrypted root or software RAID,
>>> Ensure you enable support in /etc/mkinitcpio.conf .
>>> More information about mkinitcpio setup can be found here:
>>> http://wiki.archlinux.org/index.php/Mkinitcpio

>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k -quad -c /etc/mkinitcpio.conf -g /boot/kernel26quad.img
error: optional argument to '-k' begins with a '-'
  you probably don't want this....aborting.
mkinitcpio: usage
  -c CONFIG        Use CONFIG file. default: /etc/mkinitcpio.conf
  -k KERNELVERSION Use KERNELVERSION. default: 2.6.25-ARCH
  -s NAME          Save filelist. default: no
  -b BASEDIR       Use BASEDIR. default: /
  -g IMAGE         Generate a cpio image as IMAGE. default: no
  -a NAME          Append to an existing filelist. default: no
  -p PRESET        Build specified preset.
  -m MESSAGE       Print MESSAGE before passing control to kinit.
  -S SKIPHOOKS     Skip SKIPHOOKS (comma-separated) when building the image.
  -v               Verbose output. Default: no
  -M               Display modules found via autodetection.
  -L               List all available hooks.
  -H HOOKNAME      Output help for hook 'HOOKNAME'.
  -h               This message.
==> FAIL
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k -quad -c /etc/mkinitcpio.d/kernel26quad-fallback.conf -g /boot/kernel26quad-fallback.img
error: optional argument to '-k' begins with a '-'
  you probably don't want this....aborting.
mkinitcpio: usage
  -c CONFIG        Use CONFIG file. default: /etc/mkinitcpio.conf
  -k KERNELVERSION Use KERNELVERSION. default: 2.6.25-ARCH
  -s NAME          Save filelist. default: no
  -b BASEDIR       Use BASEDIR. default: /
  -g IMAGE         Generate a cpio image as IMAGE. default: no
  -a NAME          Append to an existing filelist. default: no
  -p PRESET        Build specified preset.
  -m MESSAGE       Print MESSAGE before passing control to kinit.
  -S SKIPHOOKS     Skip SKIPHOOKS (comma-separated) when building the image.
  -v               Verbose output. Default: no
  -M               Display modules found via autodetection.
  -L               List all available hooks.
  -H HOOKNAME      Output help for hook 'HOOKNAME'.
  -h               This message.
==> FAIL

The command '/sbin/mkinitcpio -k -quad -c /etc/mkinitcpio.conf -g /boot/kernel26quad.img' is nowhere in any files I made and I don't know how the -quad got inserted in it or from what. So really I'm asking what would cause that to happen so I can fix it.

Last edited by Reasons (2008-08-04 03:58:02)

Offline

#2 2008-08-03 21:15:20

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: [SOLVED] Where'd I go wrong with my kernel?

check your kernel26.install file. Take the one from abs for example.

Offline

#3 2008-08-03 23:08:31

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: [SOLVED] Where'd I go wrong with my kernel?

That was the problem but it gets overriden during the compile.

Offline

#4 2008-08-04 03:11:22

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: [SOLVED] Where'd I go wrong with my kernel?

Here is the end of the makepkg which is when the .install changes from 'KERNEL_VERSION=2.6.25-quad' to 'KERNEL_VERSION=-quad'.

==> Installing additional files
  -> Fixing permissions
cp: cannot stat `arch/x86_64/Makefile': No such file or directory
cp: cannot stat `arch/x86_64/kernel/asm-offsets.s': No such file or directory
  -> Adding headers
  -> Adding CLUSTERIP file for iptables
  -> Adding wireless headers
  -> Adding vmlinux
PKGBUILD: line 156: cd: /home/shawn/Desktop/kernel/pkg/lib/modules/-quad: No such file or directory
  -> Installing mkinitcpio.conf and preset file for kernel
  -> Removing unneeded architectures
==> Tidying install...
  -> Removing info/doc files...
  -> Compressing man pages...
  -> Stripping debugging symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Adding install script...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: kernel26quad (Sun Aug  3 20:09:33 PDT 2008)

Offline

#5 2008-08-04 03:58:16

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: [SOLVED] Where'd I go wrong with my kernel?

Forgot a line in the PKBUILD. . .

Offline

#6 2008-08-04 05:08:44

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: [SOLVED] Where'd I go wrong with my kernel?

Which line?


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#7 2008-08-04 05:28:45

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: [SOLVED] Where'd I go wrong with my kernel?

_revision='2.6.26' as later I use

  _kernver="$_revision-${_system}"

and without the revision, it just had 'quad' which would then overwrite the .install.


Now it's just not booting so I think I blew the mkinitcpio/config modules.

Last edited by Reasons (2008-08-04 05:30:35)

Offline

Board footer

Powered by FluxBB