You are not logged in.

#1 2013-08-27 18:35:47

lampwins
Member
Registered: 2013-08-26
Posts: 2

Load new kernel

I am running arch on Thinkpad x230t and I found this guide with recommendations for running arch on this particular laptop:
https://wiki.archlinux.org/index.php/Le … nkPad_X230

I am trying to install the linux-ck kernel and am having some trouble. I downloaded the tarball and ran the PKGBUILD and ran for a while and finished without doinging anything alarming.

I made the recomended changes to:
/etc/mkinitcpio.conf
/etc/modprobe.d/modprobe.conf

And then tried to run:
mkinitcpio -p linux && mkinitcpio -p linux-ck

It created the first linux image without any problems but failed on the linux-ck, here is the full post:
mkinitcpio -p linux && mkinitcpio -p linux-ck
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.10.9-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 3.10.9-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: smsmdtv
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
[john@X230T-John ld.so.conf.d]$ sudo mkinitcpio -p linux-ck
==> Building image from preset: /etc/mkinitcpio.d/linux-ck.preset: 'default'
  -> -k /boot/vmlinuz-linux-ck -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-ck.img
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-linux-ck'
==> Building image from preset: /etc/mkinitcpio.d/linux-ck.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-ck -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-ck-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-linux-ck'


(Also, what do the 3 warning lines, on the linux image mean?)

What's going on here? Thanks for any help.

Last edited by lampwins (2013-08-27 18:36:13)

Offline

#2 2013-08-27 18:41:03

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Load new kernel

lampwins wrote:

I downloaded the tarball and ran the PKGBUILD and ran for a while and finished without doinging anything alarming.

Did you install the package that was created?

Offline

#3 2013-08-28 00:22:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 22,171
Website

Re: Load new kernel

You may want to check out Graysky's repo-ck.  I am one of many happy users of of that repo who would generally not otherwise use unofficial repos.

EDIT: I had glanced at that wiki and found it to seem quite biased and often overstated.  The stock kernel works just fine on laptops.  As for the salt (RE the next post) - I'd rather take that advice with a swimming pool of tequilla and a patio of salt.  Of course with that, I'd take any advice.

Last edited by Trilby (2013-08-28 02:31:02)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#4 2013-08-28 01:22:11

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,413

Re: Load new kernel

FWIW, much of the advice given on the x230 page has no basis in facts or evidence.  I would take the advice on that page with a swimming pool of salt.

Offline

#5 2013-08-28 01:42:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Load new kernel

lampwins wrote:

what do the 3 warning lines, on the linux image mean?)

Please search before asking: https://bbs.archlinux.org/viewtopic.php?id=166844


When pasting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Offline

#6 2013-08-29 01:54:05

luisgmarine
Member
Registered: 2013-03-31
Posts: 18

Re: Load new kernel

What is the output of

# pacman -Qm

From the error that you posted, it clearly states that it can't find the specified linux-ck kernel, which if you installed should be hanging out inside of your /boot directory.

You  might as well post the output of

ls /boot/

As for installing/compiling the linux-ck kernel, the Linux-ck ArchWiki, gives you a general idea, however its the same as installing any custom package (for me at least).  Below are the steps that I personally do, keep in mind that there might be other/easier ways. 

1. Download the latest linux-ck tarball from the AUR, and if you are using an nvidia card you can also grab the proper nvidia-ck package. 
2. Extract the tarball, and cd into the newly created folder
3. edit the PKGBUILD, the only things I change in this file, are the variables in the code below that are set equal to y (enabling the option)

### PATCH AND BUILD OPTIONS
# Set these variables to ANYTHING that is not null (y or hello or 2 or "I like icecream") to enable them
#
_pstates_pat=y   # Enable Haswell support for the new Intel pstate drive
_makenconfig=   # Tweak kernel options prior to a build via nconfig
_localmodcfg=y   # Compile ONLY probed modules
_use_current=   # Use the current kernel's .config file
_BFQ_enable_=y   # Enable BFQ as the default I/O scheduler
_NUMAdisable=y  # Disable NUMA in kernel config

I personally have just started messing around with the kernel configuration so I'm using localmodconfig as a starting point.  You can however load your own config, or start one from scratch.
4.Save & quit the file, then I personally run the command below, which compiles the package and if successful it installs it.  Keep in mind I'm pretty sure you have to have 'Sudo' set up on the system.

makepkg -ci 

If you don't have 'Sudo' or whatever, you can still just run

$ makepkg
# pacman -U pkgname-pkgver.pkg.tar.xz

5. If all is well, I update my grub2

# grub-mkconfig -o /boot/grub/grub.cfg

At this point, you should be able to boot into your new kernel.  Hopefully you use nvidia, and will notice that you have no X working.  You can follow the same outline to compile and install the proper nvidia-ck driver package.

Hope this helps.

Last edited by luisgmarine (2013-08-29 21:34:37)

Offline

Board footer

Powered by FluxBB