You are not logged in.

#1 2011-07-28 02:38:39

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Compiling and installing Tux On Ice, need a little help

I have a desktop system and a netbook that I would like to have hibernating when they aren't being used.  The wiki outlined roughly how to accomplish this with this page:  https://wiki.archlinux.org/index.php/Tuxonice

I downloaded from the AUR the kernel26-ice 2.6.38-4 to compile and install.  I managed to compile it (I think ... correctly I hope) but every time I try to get it installed with "mkinitcpio -p kernel26-ice.preset" the build fails with these errors:

[root@blackyunzi ~]# mkinitcpio -p kernel26-ice
/etc/mkinitcpio.d/kernel26-ice.preset: line 5: /etc/mkinitcpio.d/kernel26-ice.kver: No such file or directory
==> Building image from preset: 'default'
==> WARNING: No kernel version specified. Skipping image `default'
==> Building image from preset: 'fallback'
==> WARNING: No kernel version specified. Skipping image `fallback'
[root@blackyunzi ~]# cd ~heather/aur_builds/kernel26-ice/kernel26-ice/

I have tried to CD into the build directory just to make sure I was using the correct file but that has not helped.  I've never compiled my own kernel before today and I'm stymied as to what I'm doing wrong.  If it matters, I compiled it as a regular user in the folder where I downloaded it to.  The contents of my build directory:

[heather@blackyunzi kernel26-ice]$ ls -al  kernel26-ice
total 117308
drwxr-xr-x 2 heather heather     4096 Jul 27 19:52 .
drwxr-xr-x 3 heather heather     4096 Jul 27 19:08 ..
-rw-r--r-- 1 heather heather   236395 Apr 21 05:12 2.6.38.3-sched-bfs-401.patch
-rw-r--r-- 1 heather heather   125982 May 20 18:27 config
-rw-r--r-- 1 heather heather   120300 May 20 18:27 config.x86_64
-rw-r--r-- 1 heather heather 40977284 Jul 27 19:47 kernel26-ice-2.6.38-4-x86_64.pkg.tar.xz
-rw-r--r-- 1 heather heather      665 Jul 27 19:45 kernel26-ice.install
-rw-r--r-- 1 heather heather  3111082 Jul 27 20:01 kernel26-ice.preset
-rw-r--r-- 1 heather heather 74739098 Mar 14 19:40 linux-2.6.38.tar.bz2
-rw-r--r-- 1 heather heather   186457 Jun  2 19:36 patch-2.6.38.8.bz2
-rw-r--r-- 1 heather heather    12794 Jun  7 02:14 PKGBUILD
-rw-r--r-- 1 heather heather   451933 Apr  3 15:36 reiser4-for-2.6.38.patch.bz2
-rw-r--r-- 1 heather heather   129795 May  4 18:30 tuxonice-3.2-for-2.6.38.patch.bz2
[heather@blackyunzi kernel26-ice]$ 

The makepkg file shows that I only changed one setting, the "-j4" bit:

#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
          'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
          'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
          'rsync::/usr/bin/rsync -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/curl

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"

#-- Exclusive: will only run on x86_64
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
#-- Make Flags: change this for DistCC/SMP systems

## While using the kernel26-ice build CK recommends you ONLY compile this kernel 
## with the same number as how many cpu's you have.
## quoting his example:  IE you should ONLY do make -j4 on quad core, -j2 on dual core and so on.
MAKEFLAGS="-j4"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache check)
#  A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#-- check:    Run the check() function if present in the PKGBUILD
#
BUILDENV=(fakeroot !distcc color !ccache check)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
#  A negated option will do the opposite of the comments below.
#
#-- strip:     Strip symbols from binaries/libraries
#-- docs:      Save doc directories specified by DOC_DIRS
#-- libtool:   Leave libtool (.la) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman:    Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:     Remove files specified by PURGE_TARGETS
#
OPTIONS=(strip docs libtool emptydirs zipman purge)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'

# vim: set ft=sh ts=2 sw=2 et:

Mkinitcpio shows, after stripping out the comments:

MODULES="" 
FILES=""
HOOKS="base udev autodetect usbinput pata scsi sata lvm2 filesystems consolefont" 
(no compression options)

Finally, I put the kern26-ice.preset into the /etc/mkinitcpio folder and tried to install it from there but again I met failure.

Apologies for the length but I'm getting frustrated with this issue.

Last edited by MoonSwan (2011-07-28 02:40:58)

Offline

#2 2011-07-28 03:10:15

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

Re: Compiling and installing Tux On Ice, need a little help

This is the stock kernel:

[karol@black ~]$ cat /etc/mkinitcpio.d/kernel26.preset
# mkinitcpio preset file for kernel26

########################################
# DO NOT EDIT THIS LINE:
source /etc/mkinitcpio.d/kernel26.kver
########################################
ALL_config="/etc/mkinitcpio.conf"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/kernel26.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/kernel26-fallback.img"
fallback_options="-S autodetect
[karol@black ~]$ cat /etc/mkinitcpio.d/kernel26.kver
# DO NOT EDIT THIS FILE
ALL_kver='2.6.39-ARCH'

(note this will change in linux3: ALL_kver will be set directly in kernel preset)

Can you post /etc/mkinitcpio.d/kernel26-ice.preset ? If mkinitcpio complains that it can't find some file, have you checked that the file is there and that it contains the needed info?

Offline

#3 2011-07-28 05:12:08

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Compiling and installing Tux On Ice, need a little help

Its a bug with the kernel26-ice package I think (though its always worked for me). I'm the maintainer, and am in the midst right now of updating it, please retry when linux-ice is uploaded.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#4 2011-07-28 18:39:34

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Compiling and installing Tux On Ice, need a little help

I shall do that Ngoonee and thank you very much for this package, it's exactly what I wanted for my systems.

@karol, I guess I'll redo it with the new update and if it still stalls I'll post the kernel26-ice preset.  The problem is that I couldn't see why it failed because all the files it had compiled were in the same build directory.  My only thought is that I used the "clean-up" option passed to mkpackage as "makepackage -sic," but would that remove files the kernel needs when installing it?

Offline

#5 2011-07-28 19:52:59

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

Re: Compiling and installing Tux On Ice, need a little help

MoonSwan wrote:

I have a desktop system and a netbook that I would like to have hibernating when they aren't being used.  The wiki outlined roughly how to accomplish this with this page:  https://wiki.archlinux.org/index.php/Tuxonice

I'm sure you'll be happy with tuxonice, once it's working, but you should be aware that it's not the only way to hibernate - there are other methods available that work with the default arch kernel package, something that might appeal to you.

Personally, I use pm-utils with the uswsusp backend. This setup works with any kernels that happen to be on my system.

Offline

#6 2011-07-28 20:34:32

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Compiling and installing Tux On Ice, need a little help

MoonSwan wrote:

I have a desktop system and a netbook that I would like to have hibernating when they aren't being used.  The wiki outlined roughly how to accomplish this with this page:  https://wiki.archlinux.org/index.php/Tuxonice
I downloaded from the AUR the kernel26-ice 2.6.38-4 to compile and install.

Hm... netbook.

If you don't mind trying bfs and bfq too, then you could give the pf-kernel that is mentioned in the wiki too a try:
http://aur.archlinux.org/packages.php?ID=50956

It has a repository here:

[pfkernel]
Server = http://dl.dropbox.com/u/11734958/$arch

and a thread: https://bbs.archlinux.org/viewtopic.php?id=103462

I'm not quite sure how netbook performance is affected by BFS...

It has the bonus to already be based on 3.0.

Last edited by Cdh (2011-07-28 20:35:50)


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#7 2011-07-28 21:09:19

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Compiling and installing Tux On Ice, need a little help

@TomK, I appreciate your posts and I will definitely look into your way of doing things !  Merci Monsieur. big_smile  More options are a good thing, after all.

@Cdh I did look at that kernel but I had no idea what all was being compiled into it.  The Tux looked simpler and my netbook doesn't need a lot of stuff compiled in just to surf the web and write.  Thanks muchly for your contribution though!

Edit:  I forgot to ask, does the order of uswsup and pmutils matter when I'm configuring/installing them?

Last edited by MoonSwan (2011-07-28 21:17:33)

Offline

#8 2011-07-28 22:05:38

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

Re: Compiling and installing Tux On Ice, need a little help

The order doesn't matter, no. Wiki pages should have everything you need.

Offline

Board footer

Powered by FluxBB