You are not logged in.

#276 2011-06-10 01:45:41

sonay
Member
Registered: 2010-03-09
Posts: 75

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:

I would think you'd need to use this package, not the firmware package:  http://aur.archlinux.org/packages.php?ID=34281

All you need to do is make sure you're booted into kernel26-ck, then modify the PKGBUILD, specifically the depends and makedepends either deleting them or changing them to kernel26-ck and kernel26-ck-headers.  Since the kernel version is defined by $(uname -r) in the PKGBUILD, it is critically important that you're booted into the kernel of interest.

That's the happy ending smile

Offline

#277 2011-06-10 02:33:59

mrmylanman
Member
From: Altamonte Springs, FL, USA
Registered: 2011-03-13
Posts: 178

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Thanks a ton for this repository!  I have a Thinkpad X120e (Fusion APU) and it is a major PITA to compile kernels on it, because it takes around 4 hours to do so, so I'm glad to see these awesome kernels precompiled for me.  It works out great, and I can definitely tell the difference the ck patch set provides!


Arch user since 2011-03-13

Thinkpad X220 Intel Core i7-2640M CPU, 16GB DDR3-1333 RAM, 160GB Intel SATA II SSD & 60GB OCZ mSATA SSD, 12.5" IPS 1366x768 Display, 6-cell Battery
(Installation date:  2012-03-19)

Offline

#278 2011-06-10 08:30:55

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@mrmylanman - You're welcome.  Always happy to give back to the Arch community.
@sonay - I realized that you should only need to compile that package while booted into the ck kernel; my kernels provide "kernel26" and "kerenl26-headers" to avoid this but I was pretty tired when I typed my original reply.

$ grep provides PKGBUILD 
provides=("kernel26-ck=${pkgver}")
provides=("kernel26-ck-headers=${pkgver}" "kernel26-headers=${pkgver}")

Original post edited.

Last edited by graysky (2011-06-10 08:31:41)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#279 2011-06-10 09:51:31

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

I don't know if this is the right place to post this but the forcedeth driver isn't working too well on my ck-k8 kernel. I really don't know why, it did a couple of ck-k8 kernels ago, like the earlier 2.6.38's. Not with the 2.6.38.7-1 and 2.6.39.x. This is with bfq and without bfq activated. Take a look at my thread here: https://bbs.archlinux.org/viewtopic.php?id=120329
Just now I tried the standard arch 2.6.38.8-1  and forcedeth works as it should, it seems.
I really don't mean to double post but it seems to be ck-kernel related and Google is of no help with ck kernels and forcedeth driver. If I'm out of bounds please point me in the right direction...

By the way, my r8169 works fine.
PS logs in the other thread, the few there are.

Last edited by swanson (2011-06-10 09:52:59)

Offline

#280 2011-06-10 12:44:26

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

As the previous post, it's the wrong place but I don't know where to post this message.
I really like your Kernel26-ck in AUR but graysky something is failing in PKGBUILD.
When I try to rename the kernel with a different name and after a compilation, the name is always the same instead of "2.6.39-Madck" for example.
Here my PKGBUILD:

# Contributor: graysky <graysky AT archlinux DOT us>
# Contributor: MP2E <metroidcrazy AT gmail DOT com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
###########################################################################################################
#                                          Patch and Build Options
###########################################################################################################
#
## Note all kernels get the ck patch set with BFS so there is no option to enable/disable it!
#
_makenconfig="n"    # select additional kernel options prior to a build via nconfig
_usearchlogo="y"    # use the blue Arch logo rather then default tux logo when booting
_localmodcfg="y"    # make localmod config - compile ONLY probed modules - see notes below!
_use_current="y"    # use the current kernel's .config file - see notes below!
_BFQ_patches="n"    # add BFQ patches for the BFQ I/O scheduler
###########################################################################################################
#                                        More Details and References
###########################################################################################################
## LOCALMODCONFIG OPTION
 # As of mainline 2.6.32, running with this option will only build the modules that you currently have
 # probed in your system VASTLY reducing the number of modules build.
 #
 # WARNING - make CERTAIN that all modules are modprobed BEFORE you begin making the pkg!
 # Read, https://bbs.archlinux.org/viewtopic.php?pid=830221#p830221
 # To keep track of which modules are needed for your specific system/hardware, give my module_db script
 # a try: http://aur.archlinux.org/packages.php?ID=41689
 #
 # Note that if you use my script, this PKGBUILD will auto run the reload_data base for you to probe
 # all the modules you have logged!
 #
## USE CURRENT KERNEL'S .CONFIG
 # Enabling this option will use the .config of the RUNNING kernel rather than the ARCH defaults.
 # Useful when the package gets updated and you already went through the trouble of customizing your
 # config options.  NOT recommended when a new kernel is released, but again, convenient for package bumps.
## BFQ
 # read, http://algo.ing.unimo.it/people/paolo/disk_sched/
 #
###########################################################################################################

pkgname=kernel26-Madck
true && pkgname=(kernel26-ck kernel26-ck-headers)
_basekernel=2.6.39
pkgver=${_basekernel}.1
pkgrel=2
epoch=1
arch=('i686' 'x86_64')
license=('GPL2')
url="http://ck-hack.blogspot.com"
_archpatchversion=1
_ckpatchversion=2
_kernelname=-ck
_patchname="patch-${pkgver}-${_archpatchversion}-ARCH"
_ckpatchname="patch-${_basekernel}-ck${_ckpatchversion}"
_bfqpath="http://algo.ing.unimo.it/people/paolo/disk_sched/patches/2.6.39"
options=(!strip)
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2 # kernel source
    ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2 # arch patchset
    config config.x86_64 kernel26.preset # configs
    http://www.kernel.org/pub/linux/kernel/people/ck/patches/2.6/${_basekernel}/${_basekernel}-ck${_ckpatchversion}/${_ckpatchname}.bz2
    ${_bfqpath}/0001-block-prepare-I-O-context-code-for-BFQ-v2-for-2.6.39.patch
    ${_bfqpath}/0002-block-cgroups-kconfig-build-bits-for-BFQ-v2-2.6.39.patch
    ${_bfqpath}/0003-block-introduce-the-BFQ-v2-I-O-sched-for-2.6.39.patch
        logo_linux_mono.pbm # optional Arch logo for boot
        logo_linux_{clut224,vga16}.ppm) # optional Arch logo for boot

build() {
### Patch source with -ARCH patches
  # See http://projects.archlinux.org/linux-2.6-ARCH.git/
  msg "Patching source with-ARCH patches"
  cd ${srcdir}/linux-$_basekernel
  patch -Np1 -i ${srcdir}/${_patchname}
### Optionally replace the tux logo with the blue Arch logo
  if [ $_usearchlogo = "y" ]; then
   install -m644 ${srcdir}/logo_linux_clut224.ppm drivers/video/logo/
   install -m644 ${srcdir}/logo_linux_mono.pbm drivers/video/logo/
   install -m644 ${srcdir}/logo_linux_vga16.ppm drivers/video/logo/
  fi

### Patch source with ck patchset with BFS
  # Fix double name in EXTRAVERSION
  sed -i -re "s/^(.EXTRAVERSION).*$/\1 = /" ${srcdir}/${_ckpatchname}
  msg "Patching source with the ck2 patch set using bfs v0.406"
  patch -Np1 -i ${srcdir}/${_ckpatchname}

### Optionally patch source for BFQ patches
  if [ ${_BFQ_patches} = "y" ]; then
   msg "Patching source with BFQ patches"
   for p in $(ls ${srcdir}/000*.patch); do
    patch -Np1 -i $p
   done
  fi

### Clean tree and copy ARCH config over
  msg "Running make mrproper to clean source tree"
  make mrproper

  if [ "$CARCH" = "x86_64" ]; then
   cat ../config.x86_64 >./.config
  else
   cat ../config >./.config
  fi

### Optionally use running kernel's config
  # code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
  if [ ${_use_current} = "y" ]; then
   if [[ -s /proc/config.gz ]]; then
    msg "Extracting config from /proc/config.gz..."
    modprobe configs
    zcat /proc/config.gz > ./.config
   else
    warning "You kernel was not compiled with IKCONFIG_PROC!"
    warning "You cannot read the current config!"
    warning "Aborting!"
    exit
   fi
  fi

  if [ "${_kernelname}" != "" ]; then
   sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
  fi

  # If user patched to BFQ, set it as default io scheduler
  if [ ${_BFQ_patches} = "y" ]; then
   sed -i -e s'/CONFIG_CFQ_GROUP_IOSCHED=y/CONFIG_CFQ_GROUP_IOSCHED=y\nCONFIG_IOSCHED_BFQ=y\nCONFIG_CGROUP_BFQIO=y/' \
   -i -e s'/CONFIG_DEFAULT_CFQ=y/# CONFIG_DEFAULT_CFQ is not set\nCONFIG_DEFAULT_BFQ=y/' \
   -i -e '/CONFIG_DEFAULT_IOSCHED/ s,cfq,bfq,' ./.config
  fi

  msg "Running make prepare for you to enable patched options of your choosing"
  make prepare

### Optionally load needed modules for the make localmodconfig
  # See http://aur.archlinux.org/packages.php?ID=41689
  if [ $_localmodcfg = "y" ]; then
   msg "If you have modprobe_db installed, running reload_database now"
   if [ -e /usr/bin/reload_database ]; then
    /usr/bin/reload_database
   fi
   msg "Running Steven Rostedt's make localmodconfig now"
   make localmodconfig
  fi

  if [ $_makenconfig = "y" ]; then
   msg "Running make nconfig"
   make nconfig
  fi

  msg "Running make bzImage and modules"
  export KCFLAGS="${CFLAGS}"

  make ${MAKEFLAGS} bzImage modules
}

package_kernel26-ck() {
_Kpkgdesc='ARCH kernel with Brain Fuck Scheduler v0.406 and all the goodies in the ck2 patch set.'
pkgdesc="${_Kpkgdesc}"
provides=("kernel26-ck=${pkgver}")
backup=(etc/mkinitcpio.d/kernel26-ck.preset)
depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.12-2' 'mkinitcpio>=0.6.8-2')
install=kernel26.install
#conflicts=('kernel26-ck')
#groups=('ck-generic')
optdepends=('crda: to set the correct wireless channels of your country'
'lirc-ck: Linux Infrared Remote Control kernel modules for kernel26-ck'
'nvidia-ck: nVidia drivers for kernel26-ck'
'nvidia-beta-ck: nVidia beta drivers for kernel26-ck'
'modprobed_db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig')

  KARCH=x86
  cd ${srcdir}/linux-$_basekernel
  #get kernel version
  _kernver="$(make kernelrelease)"
  mkdir -p ${pkgdir}/{lib/modules,lib/firmware,boot}
  msg "Running make modules_install"
  make INSTALL_MOD_PATH=${pkgdir} modules_install
  cp System.map ${pkgdir}/boot/System.map26${_kernelname}
  cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}

  # add vmlinux
  install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux

  # install fallback mkinitcpio.conf file and preset file for kernel
  install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/kernel26-ck.preset

  # set correct depmod command for install
  sed \
  -e  "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
  -e  "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
  -i $startdir/kernel26.install
  sed -e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
  -e "s|default_image=.*|default_image=\"/boot/kernel26-ck.img\"|g" \
  -e "s|fallback_image=.*|fallback_image=\"/boot/kernel26-ck-fallback.img\"|g" \
  -i ${pkgdir}/etc/mkinitcpio.d/kernel26-ck.preset

  echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/kernel26-ck.kver

  # remove build and source links
  rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}

  # remove the firmware
  rm -rf ${pkgdir}/lib/firmware

  # gzip -9 all modules to save 100MB of space
  find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
}

package_kernel26-ck-headers() {
_Hpkgdesc='Header files and scripts to build modules for kernel26-ck.'
pkgdesc="${_Hpkgdesc}"
#conflicts=('kernel26-ck-headers')
#groups=('ck-generic')
provides=("kernel26-ck-headers=${pkgver}" "kernel26-headers=${pkgver}")

  mkdir -p ${pkgdir}/lib/modules/${_kernver}
  cd ${pkgdir}/lib/modules/${_kernver}
  ln -sf ../../../usr/src/linux-${_kernver} build
  cd ${srcdir}/linux-$_basekernel
  install -D -m644 Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Makefile
  install -D -m644 kernel/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
  install -D -m644 .config \
    ${pkgdir}/usr/src/linux-${_kernver}/.config
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include

  for i in acpi asm-generic config crypto drm generated linux math-emu \
   media net pcmcia scsi sound trace video xen; do
   cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
  done

  # copy arch includes for external modules
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
  cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/

  # copy files necessary for later builds, like nvidia and vmware
  cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
  cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}

  # fix permissions on scripts dir
  chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions

  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel

  cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
  if [ "$CARCH" = "i686" ]; then
   cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
  fi
  cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/

  # add headers for lirc package
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
  cp drivers/media/video/*.h  ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
  for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
   cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
  done
  # add docbook makefile
  install -D -m644 Documentation/DocBook/Makefile \
  ${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
  # add dm headers
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
  cp drivers/md/*.h  ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
  # add inotify.h
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
  cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
  # add wireless headers
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
  cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
  # add dvb headers for external modules
  # in reference to:
  # http://bugs.archlinux.org/task/9912
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
  cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
  # add dvb headers for external modules
  # in reference to:
  # http://bugs.archlinux.org/task/11194
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
  # fix if user disables dvb support
  [[ -e include/config/dvb/ ]] && cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
  # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
  # in reference to:
  # http://bugs.archlinux.org/task/13146
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
  cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
  cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
  # add dvb headers
  # in reference to:
  # http://bugs.archlinux.org/task/20402
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb
  cp drivers/media/dvb/dvb-usb/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends
  cp drivers/media/dvb/frontends/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners
  cp drivers/media/common/tuners/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/
  # add xfs and shmem for aufs building
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
  mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
  cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
   # copy in Kconfig files
  for i in `find . -name "Kconfig*"`; do
   mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
   cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
  done

  chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
  find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
  # strip scripts directory
  find ${pkgdir}/usr/src/linux-${_kernver}/scripts  -type f -perm -u+w 2>/dev/null | while read binary ; do
  case "$(file -bi "$binary")" in
    *application/x-sharedlib*) # Libraries (.so)
    /usr/bin/strip $STRIP_SHARED "$binary";;
    *application/x-archive*) # Libraries (.a)
    /usr/bin/strip $STRIP_STATIC "$binary";;
    *application/x-executable*) # Binaries
    /usr/bin/strip $STRIP_BINARIES "$binary";;
    esac
  done

  # remove unneeded architectures
  rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
}
# Global pkgdesc and depends are here so that they will be picked up by AUR
pkgdesc='ARCH kernel with Brain Fuck Scheduler v0.406 and all the goodies in the ck2 patch set.'
sha256sums=('584d17f2a3ee18a9501d7ff36907639e538cfdba4529978b8550c461d45c61f6'
            '993b68e45e3cd471bf30273f99dc70f3e9a2d73a339a436303eee9d550efb473'
            '5db14a3d01cb1e8da16185449d256011960491fae4415f49fb6546f028b50374'
            '9f286b4f98b041d5ab415c59274e93c160b9e170a67f6d8ed04d69c5ca5d14e6'
            'f226c292ab3c1a87b78a372ae7589e820a3d9673e3bdec87ead82f876789cb95'
            '0f54e42613c5d5a5c23125c108c21378e1a383bb628e5cb72d45d546d2dc0089'
            '7051be08f3318503c30d18f6b18937648074cfccc8c1e052cd296afab47d50fe'
            '0b2bae2acabae85f05913b6c2a1d49e5b19f913df38564bd5eed1ebf884406e0'
            '93d0c86c11e17dc0c3d89ba509537f7f0516bde52189b8c5ef27584871e4b368'
            '1e5bea8de1c2cc24498fb9a4fdbb313f36f38f671f2bfc46ccf7acbd7958a4b9'
            '111feb3ac4a8a80b6aae616c5dff8cd62e2b9c8719b390dfa72b45101592fadc'
            '5147681ae1ef8ca99d458f3a074058267876647b7287b702f5bcf07e795d7e43')

Thanks for some informations.
Take care!

Last edited by Ypnose (2011-06-10 12:53:51)


Github -- My terminal font Envypn

Offline

#281 2011-06-10 17:21:29

Zom
Member
From: Sweden
Registered: 2007-10-27
Posts: 430

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

The package name or the kernel name?

Because the kernel name is set in the kernel config before compilation.

Offline

#282 2011-06-10 18:37:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@swanson - I will answer in your other thread if I can.
@Ypnose - please start a new thread to help keep this one on-topic for repo related issues only (glad to look into it for you but at first glance you have only changed the name in the pkgname field and not the corresponding ones also.)

Last edited by graysky (2011-06-10 18:40:59)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#283 2011-06-10 22:34:48

sonay
Member
Registered: 2010-03-09
Posts: 75

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:

@mrmylanman - You're welcome.  Always happy to give back to the Arch community.
@sonay - I realized that you should only need to compile that package while booted into the ck kernel; my kernels provide "kernel26" and "kerenl26-headers" to avoid this but I was pretty tired when I typed my original reply.

$ grep provides PKGBUILD 
provides=("kernel26-ck=${pkgver}")
provides=("kernel26-ck-headers=${pkgver}" "kernel26-headers=${pkgver}")

Original post edited.

Thank you graysky, you have been more than great. I did the compile before the happy ending message and it is working good. However, my experience with kernel26-ck is not much good. I can feel a boost but occasionally I get complete locked downs, keyboard, mouse and xorg(possibly the root of all evil tongue) and I need to do hard shutdown by pressing the power button. I am also using bfq io scheduler, I'll change that and see if it helps. I might trace back the problem, if I can get some orientation. However log files may not be saved due to crash or hard shutdown.

Offline

#284 2011-06-11 11:57:11

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Hum, I read the whole topic and I don't know what package I have to install for a Phenom II 955 BE k10 based. Some persons installed the generic package and some others the k8 package. Wiki said it's OK for k8 package on K10, so what package i have to install? I am totally confused now.


Github -- My terminal font Envypn

Offline

#285 2011-06-11 13:07:09

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

EDIT: just hang tight.  I see now that there is a march setting specific to k10 per the gentoo safe cflags page which I will use.  I will build up a kernel-ck-k10 package.  Shouldn't take too long.

Last edited by graysky (2011-06-11 13:20:01)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#286 2011-06-11 14:46:43

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:

EDIT: just hang tight.  I see now that there is a march setting specific to k10 per the gentoo safe cflags page which I will use.  I will build up a kernel-ck-k10 package.  Shouldn't take too long.

You are the most useful guy in the world.


Github -- My terminal font Envypn

Offline

#287 2011-06-11 14:55:06

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@Ypnose - before I make the changes, can you verify that I have the settings right?  See this thread and please post there.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#288 2011-06-11 15:06:56

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

I did it: wink


Github -- My terminal font Envypn

Offline

#289 2011-06-11 18:43:28

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Thanks.  Modifying my build script was more tedious than I thought but I believe that it's done now.  x86_64 should be online.  i686 is building, then I have to manually inspect each package to ensure that I have all the sed modifications to conflicts, pkgname, pkgdesc, etc. correct but go ahead and update if you're using x86_64 and as usual please report any problems here.  I expect the i686 packages to be up in a few hours.

EDIT: and now they are up.  Please update and report errors as usual.  Hopefully, there won't be any smile

Last edited by graysky (2011-06-11 20:38:22)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#290 2011-06-11 23:31:45

silvik
Member
From: Bucharest/Romania
Registered: 2006-11-08
Posts: 110

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

could you please add nvidia-173xx for older cards? i bet that there are still quite a few people using them.
thanks

Offline

#291 2011-06-12 05:27:30

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

k10 working fine here! forcedeth too! Great!

Offline

#292 2011-06-12 10:04:29

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@silvik - sorry dude, but I have no older hardware to test the resulting packages.
@swanson - great, glad to hear it!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#293 2011-06-13 09:54:52

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Without criticism, I noticed a load average much higher with a ck kernel (k10), than the vanilla version. Especially during games.


Github -- My terminal font Envypn

Offline

#294 2011-06-13 19:45:54

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@Ypnose - dunno what to tell ya.

Functional differences in PKGBUILD:
Generic: CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
k10: CFLAGS="-march=amdfam10 -mtune=amdfam10 -O2 -pipe"

Functional differences in config.x86_64:
diff.gif


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#295 2011-06-18 10:45:54

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:

@Ypnose - dunno what to tell ya.

Functional differences in PKGBUILD:
Generic: CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
k10: CFLAGS="-march=amdfam10 -mtune=amdfam10 -O2 -pipe"

Hum, it was just an observation. I am sure, you did the right things. wink
I think it's related to CK patches.

Last edited by Ypnose (2011-06-18 10:48:05)


Github -- My terminal font Envypn

Offline

#296 2011-06-23 10:35:28

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Is it possible to have a separate mkinitcpio.conf for creating a new kernel image for kernel26-ck? I have followed the wiki suggestion and added bfq-iosched to the MODULES= line in mkinitcpio.conf, but if I were to create a new kernel image for kernel26 (non-ck) it would of course also take the same MODULES= line.


Also: is there maybe a patch set for CoreDuo CPUs available? I am running a CoreDuo L2400 which unfortunately is not a Core2Duo. :-)


EDIT: Actually, it seems as if I am not able to boot the kernel properly with bfq:
I have done exactly what was stated in the wiki:
+ added bfq-iosched to MODULES= in /etc/mkinitcpio.conf
+ added elevator=bfq to /boot/grub/menu.lst
+ created a new image with mkinitcpio -p kernel26
+ changed /boot/grub/menu.lst to read:

kernel /boot/vmlinuz26-ck root=/dev/disk/by-uuid/4a4e4ab4-352c-4bdf-983a-759a06650299 resume=/dev/disk/by-uuid/4444813a-6cc3-4d57-9b3c-4ba578e8d202 ro i915.modeset=1 elevator=bfq
initrd /boot/kernel26-ck.img

Is there anything I forgot doing?

EDIT2: The whole thing gets stuck the moment I add elevator=bfq to the kernel line in menu.lst; during start up, the system hangs at the following line:

io scheduler bfq registered (default)

If I remove elevator=bfq the last line of the kernel booting process then reads (as you can see, without (default) ):

io scheduler bfq registered

Any ideas?

Last edited by Stalafin (2011-06-23 11:05:48)

Offline

#297 2011-06-23 12:38:56

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

i think it will be better if BFQ is built in, then stuff will be easier to configure (just adding elevator=bfq in fact).

Offline

#298 2011-06-23 12:58:01

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

:confused: - why not simply add it to MODULES array and a one liner in /etc/rc.local?  This way majority of users who don't use it don't have it built into their kernels, just as a module if they want it.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#299 2011-06-23 13:21:36

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Well, not like that necessarily works... sad

Offline

#300 2011-06-23 13:34:16

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Stalafin, it is possible to use different configuration files for mkinitcpio by selecting the .conf file on the preset.

On /etc/mkinitcpio.d/kernel26-ck.preset or something like that you'll find this line:

ALL_config="/etc/mkinitcpio.conf"

Change it to point the file you want to use for -ck kernel, and then to generate the appropiate image:

mkinitcpio -p kernel26-ck

(change kernel26-ck for whatever your preset is)


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

Board footer

Powered by FluxBB