You are not logged in.

#201 2011-09-01 08:53:21

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

Is that supposed to be a "superior" version of the conservative governor? (found my answer).
btw: how's the state of tuxonice? I don't use an initramfs so tuxonice really interests me

Last edited by el mariachi (2011-09-01 08:57:22)

Offline

#202 2011-09-01 11:09:06

nous
Member
From: Across the Universe
Registered: 2006-08-18
Posts: 323
Website

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

el mariachi wrote:

Is that supposed to be a "superior" version of the conservative governor? (found my answer).
btw: how's the state of tuxonice? I don't use an initramfs so tuxonice really interests me

Never mind, the new cpufreq governor breaks compilation and I disabled it in the PKGBUILD until someone who's interested finds a solution. Tuxonice works uncompressed; however, its author has been notified of the problem and promised to look into it.

Offline

#203 2011-09-01 12:22:59

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

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

It didn't broke anything using this url to get the patch:

https://raw.github.com/gist/1172524/695 … file1.diff

and this to apply it:

  patch -Np1 -i "${srcdir}/gistfile1.diff" 

At this moment I'm using it, running on a testing linux-zen using the PKGBUILD from heftig's repo as guide. PKGBUILD used to build it:

https://github.com/alferpal/ArchLinux-S … /linux-zen

I'll edit this when I can confirm it doesn't break -pf build that way (slow conection right now so ~20min to get the sources)

EDIT: clean build

Last edited by ethail (2011-09-01 12:52:59)


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

#204 2011-09-01 13:01:20

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

:s I'm using it with linux-pf (pkgbuild from the aur) and nothing is broken

Offline

#205 2011-09-01 14:05:55

Lothium
Member
Registered: 2009-10-10
Posts: 192

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

Do you experience any better interactivity with this govenor? Best regards!

Offline

#206 2011-09-01 14:31:01

nous
Member
From: Across the Universe
Registered: 2006-08-18
Posts: 323
Website

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

Guys, currently the PKGBUILD of linux-pf does not apply the interactive governor patch, unless you uncomment the 2 relevant lines. Have you uncommented them?

Before, I used the exact same patch which applied cleanly, but the last stage of compilation failed.

  OBJCOPY arch/x86/boot/compressed/vmlinux.bin
  HOSTCC  arch/x86/boot/compressed/mkpiggy
  XZKERN  arch/x86/boot/compressed/vmlinux.bin.xz
ERROR: "sched_setscheduler_nocheck" [drivers/cpufreq/cpufreq_interactive.ko] undefined!

Offline

#207 2011-09-01 14:59:59

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

I didn't uncomment anything but the option to enable the governor was there in menuconfig and right now yacpi says my governor is "interactive".
I built the package this morning (GMT), has it been since that?

Offline

#208 2011-09-01 17:14:04

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

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

nous: I downloaded your current llinux-pf tarball, unpacked, replaced your lines with mine, makepkg -g to get md5sums, build, no error.

I'm going to do it again in another machine and I'll post the PKGBUILD here.

This will get edited in ~20 or so

EDIT:

It took a bit more than expected, but clean build again:

# Maintainer: Christos Nouskas <nous at archlinux dot us>
# PKGBUILD assembled from kernel26, kernel26-bfs, kernel26-ck
# Credit to respective maintainers

_major=3
_minor=0
#_patchlevel=0
_subversion=1
_basekernel=$_major.$_minor
_pkgname=linux-pf
_pfrel=3
_kernelname=-pf
_chakrapatches="http://chakra-project.org/sources/linux/patches/$_major"
_aufs3rel=20110815
_pfpatchhome="http://pf.natalenko.name/sources/${_basekernel}/"
_pfpatchname="patch-${_basekernel}.${_pfrel}${_kernelname}.bz2"

pkgname=linux-pf
pkgver=${_basekernel}.${_pfrel}
pkgrel=1
arch=(i686 x86_64)
_pkgdesc="Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ], aufs3 and squashfs-lzma."
pkgdesc=${_pkgdesc}
license=('GPL2')
groups=('base')
url="http://pf.natalenko.name/"
backup=(etc/mkinitcpio.d/${_pkgname}.preset)
options=(!strip)
depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.16' 'mkinitcpio>=0.7')
makedepends=('xmlto' 'docbook-xsl')
optdepends=('linux-docs: Kernel hackers manual - HTML documentation that comes with the Linux kernel.'
	    'crda: to set the correct wireless channels of your country'
	    'pm-utils: utilities and scripts for suspend and hibernate power management'
	    'tuxonice-userui: TuxOnIce userspace user interface'
	    'hibernate-script: set of scripts for managing TuxOnIce, hibernation and suspend to RAM'
	    'nvidia-pf: NVIDIA drivers for linux-pf'
	    'nvidia-beta-all: NVIDIA drivers for all installed kernels'
	    'modprobed_db: Keeps track of EVERY kernel module that has ever been probed. Useful for make localmodconfig.')
#provides=(${_pkgname}=${_basekernel} 'aufs3')	# for $pkgname-optimized
provides=(${_pkgname}=${_basekernel} 'aufs3' 'kernel26-pf')
#conflicts=(linux-pf-core2 linux-pf-k8 linux-pf-psc linux-pf-atom linux-pf-k7 linux-pf-p3 linux-pf-pm linux-pf-p4)
conflicts=('kernel26-pf')
replaces=('alsa-driver' 'ieee80211' 'hostap-driver26'
          'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
          'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
          'gspcav1' 'atl2' 'wlan-ng26' 'rt2500' 'aufs3'
          'nouveau-drm')
# below 'provides' is for when you have no other kernel (which is a bad idea anyway)
# provides=(${_pkgname}=${_basekernel} 'linux-headers' 'linux=${pkgver}' 'aufs3')
install='linux-pf.install'

source=(ftp://ftp.kernel.org/pub/linux/kernel/v${_basekernel}/linux-${_basekernel}.tar.bz2
	config config.x86_64		# the main kernel config files
	linux-pf.preset			# standard config files for mkinitcpio ramdisk
	logo_linux_clut224.ppm.bz2
	logo_linux_mono.pbm.bz2		# the archlinux boot logos
	logo_linux_vga16.ppm.bz2
	aufs3.0-base.patch::$_chakrapatches/aufs3/aufs3.0-$_aufs3rel-base.patch
	aufs3.0-kbuild.patch::$_chakrapatches/aufs3/aufs3.0-$_aufs3rel-kbuild.patch
	aufs3.0-standalone.patch::$_chakrapatches/aufs3/aufs3.0-$_aufs3rel-standalone.patch
	aufs3.0-$_aufs3rel.patch.bz2::$_chakrapatches/aufs3/aufs3.0-$_aufs3rel.patch.bz2
	channel-negative-one-maxim.patch	# hopefully fix "channel -1" aireplay-ng error
	https://raw.github.com/gist/1172524/695910ac537f31d55dbc307539a211fcd618ec4b/gistfile1.diff
	fix-i915.patch
	${_pfpatchhome}${_pfpatchname})	# the -pf patchset

build() {
  cd ${srcdir}/linux-${_basekernel}
  # This is for me, to test the PKGBUILD
  if [[ $NOEXTRACT = "0" ]]; then
     # Arch linux logo
     msg "Replacing penguins with arches"
     bzip2 -dk ${startdir}/logo_linux_*.bz2
     mv -f ${startdir}/logo_linux_*.p?m drivers/video/logo/
     msg "Applying pf-kernel patch"
     bzip2 -dc ${srcdir}/${_pfpatchname} | patch -Np1
     msg "Applying aufs3 patches"
     patch -Np1 < ${srcdir}/aufs3.0-base.patch
     patch -Np1 < ${srcdir}/aufs3.0-kbuild.patch
     patch -Np1 < ${srcdir}/aufs3.0-standalone.patch
     bzip2 -dc ${srcdir}/aufs3.0-$_aufs3rel.patch.bz2 | patch -Np1
     patch -Np1 < ${srcdir}/channel-negative-one-maxim.patch
     # Interactive governor patch
     # broken for now
     #mv ${srcdir}/gist*/gistfile1.diff ${srcdir}
     patch -Np1 -i "${srcdir}/gistfile1.diff" 
	msg "Getting patched!!!"
     # fix #19234 i1915 display size
     patch -Np1 -i ${srcdir}/fix-i915.patch

     if [ "$CARCH" = "x86_64" ]; then
	cat ${startdir}/config.x86_64 >| .config
     else
	cat ${startdir}/config >| .config
     fi
  fi
  sed -i "s/EXTRAVERSION = -${_pfrel}/EXTRAVERSION = ${_kernelname}/" Makefile
  _arch=$CARCH


#----------------------------------------
if [[ "$_BATCH" != "y" ]]; then		# for batch building
  echo
  echo "======================================================="
  msg "You might be prompted below for some config options"
  echo "======================================================="
  echo
  msg "Hit <Y> to use your running kernel's config"
  echo "    (needs IKCONFIG and IKCONFIG_PROC)"
  msg "Hit <L> to run make localmodconfig"
  msg "Hit <N> (or just <ENTER>) to build an all-inclusive kernel like stock -ARCH"
  echo "    (warning: it can take a looong time)"
  echo
  read answer
  shopt -s nocasematch
  if [[ "$answer" = "y" ]]; then
     msg "running 'sudo modprobe configs'"
     sudo modprobe configs
     if [[ -s /proc/config.gz ]]; then
	msg "Extracting config from /proc/config.gz..."
	zcat /proc/config.gz >| ./.config
     else
	msg "You kernel was not compiled with IKCONFIG_PROC."
	# Copied from kernel26-ck's PKGBUILD
	msg "Attempting to run /usr/bin/reload_database from modprobe_db..."
	if [ -e /usr/bin/reload_database ]; then
	   /usr/bin/reload_database
	fi
	msg "Running make localmodconfig instead..."
	chmod +x ./scripts/kconfig/streamline_config.pl
	./scripts/kconfig/streamline_config.pl >| config_strip
	mv config_strip .config
     fi
  elif [[ "$answer" = "l" ]]; then
     # Copied from kernel26-ck's PKGBUILD
     msg "Attempting to run /usr/bin/reload_database from modprobe_db..."
     if [ -e /usr/bin/reload_database ]; then
	/usr/bin/reload_database
     fi
     msg "Running the functional equivalent of make localmodconfig now..."
     chmod +x ./scripts/kconfig/streamline_config.pl
     ./scripts/kconfig/streamline_config.pl >| config_strip
     mv config_strip .config
     msg "An error about ksource in line 118 blah blah is NORMAL as is one about nvidia config too!"
  else
     msg "Using stock ARCH kernel .config (with BFS, BFQ and TuxOnIce enabled)."
  fi

  # Make some good use of MAKEFLAGS
  # MAKEFLAGS=`grep -v '#' /etc/makepkg.conf | grep MAKEFLAGS= | sed s/MAKEFLAGS=// | sed s/\"//g`
  # make prepare

  # Option for make menuconfig
  echo
  msg "Kernel configuration options before build:"
  echo "    <M> make menuconfig (console menu)"
  echo "    <N> make nconfig (newer alternative to menuconfig)"
  echo "    <G> make gconfig (needs gtk)"
  echo "    <X> make xconfig (needs qt)"
  echo "    <O> make oldconfig"
  echo "    <ENTER> to skip configuration and start compiling"
  read answer
  case "$answer" in
   m) make menuconfig
      ;;
   g) make gconfig
      ;;
   x) make xconfig
      ;;
   n) make nconfig
      ;;
   o) make oldconfig
      ;;
   default)
      ;;
  esac
  cp -v .config ${startdir}/config.local
  CPU=`egrep "MK8=y|MCORE2=y|MPSC=y|MATOM=y|MPENTIUMII=y|MPENTIUMIII=y|MPENTIUMM=y|MPENTIUM4=y|MK7=y|CONFIG_GENERIC_CPU=y|M686=y" ./.config`
  CPU=`sed -e "s/CONFIG_M\(.*\)=y/\1/" <<<$CPU`
  CPU=`sed -e "s/CONFIG_GENERIC_CPU=y/GENERIC/" <<<$CPU`
  CPU=`sed -e "s/^686$/GENERIC/" <<<$CPU`
  cp -v .config ${startdir}/config.$CPU-$CARCH

  # Give option to rename package according to CPU
  echo
  if [[ "$CPU" != "GENERIC" ]]; then
    echo "=============================================================="
    msg "Hit <ENTER>: to create a package named linux-pf"
    echo "             regardless of the CPU selected in config (recommended)"
    msg "Hit <P>    : to create a package named after the CPU selected"
    echo "             (e.g. linux-pf-core2 - for advanced users)"
    echo
    msg "This option affects ONLY the package name. Whether or not the"
    msg "kernel is optimized was determined at the previous config step."
    echo "=============================================================="
    read answer
    shopt -s nocasematch
    if [[ "$answer" = "p" ]]; then
       export _PKGOPT=y
    fi
  fi
fi	# batch check ends here
export CPU
#----------------------------------------

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

  # remove the sublevel from Makefile
  # this ensures our kernel version is always 3.X-pf
  # this way, minor kernel updates will not break external modules
  # we need to change this soon, see FS#16702
  sed -ri 's|^(SUBLEVEL =).*|\1|' Makefile

  # load configuration
  # yes "" | make config
  # Useful for repo maintainers.

  # build!
  make -j2 bzImage modules
}

package() {
  KARCH=x86
  cd ${srcdir}/linux-${_basekernel}
  _kernver=$(make kernelrelease)

  # work around the AUR parser
  # This allows building cpu-optimized packages with according package names.
  # Useful for repo maintainers.
  if [[ "$_PKGOPT" = "y" ]]; then	# package naming according to optimization
#    CPU=`egrep "MK8=y|MCORE2=y|MPSC=y|MATOM=y|MPENTIUMII=y|MPENTIUMIII=y|MPENTIUMM=y|MPENTIUM4=y|MK7=y|CONFIG_GENERIC_CPU=y|M686=y" ./.config`
#    CPU=`sed -e "s/CONFIG_M\(.*\)=y/\1/" <<<$CPU`
    case $CPU in
     CORE2)
	 pkgname="${_pkgname}-core2"
         pkgdesc="${_pkgdesc} Intel Core2 optimized."
         ;;
     K8)
         pkgname="${_pkgname}-k8"
         pkgdesc="${_pkgdesc} AMD K8 optimized."
         ;;
     PSC)
         pkgname="${_pkgname}-psc"
         pkgdesc="${_pkgdesc} Intel Pentium4/D/Xeon optimized."
         ;;
     ATOM)
         pkgname="${_pkgname}-atom"
         pkgdesc="${_pkgdesc} Intel Atom optimized."
         ;;
     K7)
         pkgname="${_pkgname}-k7"
         pkgdesc="${_pkgdesc} AMD K7 optimized."
         ;;
     PENTIUMII)
         pkgname="${_pkgname}-p2"
         pkgdesc="${_pkgdesc} Intel Pentium2 optimized."
         ;;
     PENTIUMIII)
         pkgname="${_pkgname}-p3"
         pkgdesc="${_pkgdesc} Intel Pentium3 optimized."
         ;;
     PENTIUMM)
         pkgname="${_pkgname}-pm"
         pkgdesc="${_pkgdesc} Intel Pentium-M optimized."
         ;;
     PENTIUM4)
	 pkgname="${_pkgname}-p4"
         pkgdesc="${_pkgdesc} Intel Pentium4 optimized."
         ;;
     default)
# Note to me: DO NOT EVER REMOVE THIS. It's for the AUR PKGBUILD parser.
         pkgname="${_pkgname}"
         pkgdesc="Linux kernel and modules with pf-kernel patch [-ck patchset (BFS included), TuxOnIce, BFQ], aufs3 and squashfs-lzma."
         conflicts=(linux-pf-core2 linux-pf-k8 linux-pf-psc linux-pf-atom linux-pf-k7 linux-pf-p3 linux-pf-pm linux-pf-p4 \
		    kernel26-pf-core2 kernel26-pf-k8 kernel26-pf-psc kernel26-pf-atom kernel26-pf-k7 kernel26-pf-p3 \
		    kernel26-pf-pm kernel26-pf-p4)
         ;;
    esac

    if [[ "$pkgname" != "$_pkgname" ]]; then
	suffix=`sed -e "s/linux-pf-//" <<<$pkgname`
	conflicts=('linux-pf' 'kernel26-pf' 'kernel26-pf-'$suffix)
    fi

    echo
    echo "======================================="
    msg  "The package will be named ${pkgname}"
    msg  "${pkgdesc}"
    echo "======================================="
    echo
  # second batch check ends here
  fi

  ### package_linux-pf

  mkdir -p ${pkgdir}/{lib/modules,lib/firmware,boot}
  make INSTALL_MOD_PATH=${pkgdir} modules_install
  cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz-${_pkgname}
  # add vmlinux
  install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux

  # install fallback mkinitcpio.conf file and preset file for kernel
  # make sure ${_pkgname} is used for the mkinitcpio process
  install -m644 -D ${srcdir}/${_pkgname}.preset ${pkgdir}/etc/mkinitcpio.d/${_pkgname}.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}/${_pkgname}.install
  sed \
     -e "s|default_image=.*|default_image=\"/boot/initramfs-${_pkgname}.img\"|g" \
     -e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${_pkgname}-fallback.img\"|g" \
     -i ${pkgdir}/etc/mkinitcpio.d/${_pkgname}.preset

  # remove build and source links
  rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
  # add compat symlink for the kernel image
  ln -sf vmlinuz-${_pkgname} ${pkgdir}/boot/vmlinuz26${_kernelname}
  # remove the firmware
  rm -rf ${pkgdir}/lib/firmware

  ### package_linux-pf-headers
  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/
  [[ -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}

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

# makepkg -g >>PKGBUILD
sha256sums=('64b0228b54ce39b0b2df086109a7b737cde58e3df4f779506ddcaccee90356a0'
            '26230ebb251a94a6360f73115d58b75725bf507ae4359956eb3da2ca61acddbe'
            'ef62748489c754253c1b4791edc4562ed3fef8e492c78bf821e248c09bf4128d'
            '82d660caa11db0cd34fd550a049d7296b4a9dcd28f2a50c81418066d6e598864'
            '03ed4eb4a35d42ae6beaaa5e6fdbada4244ed6c343944bba6462defaa6fed0bf'
            '51ea665cfec42d9f9c7796af2b060b7edbdeb367e42811f8c02667ad729f6b19'
            '9e1e81d80afac6f316e53947e1b081017090081cd30e6c4c473420b77af4b52b'
            '4d6e669f9bebc301d0acf3e0dedaaff84aaa19ef7633da3c11cc3430d232ce86'
            '0a6317502e91798b5c708c2e22f1d716147eaade0445c758bd3d8886f9cf4c63'
            'd4788dab7a7b3c16cfc8288a2c01ca79052b06085a51494e220c2da425a5e7d3'
            '2ace6764d7069f8a1b22ba25f8d6877360d047392b2916fdabaaf6f6c025aa3c'
            '19f7fc0753636c32026e444e23bd101bd21cfeb59661284678bf157dc35212f2'
            '3d2e615f5825b49d32679952af7085783c26f4f17dbe34e1fdb5c00eb8891a14'
            '9ccadbe3eb30bb283af3eb869c3a4bdb764628854811cc616a2e02e9ef398705'
            'd797f14f82476b6aa2602d03dcd42e453d5bf29e1dea1fe53d8f274b6c797a68')

There is the PKGBUILD

Last edited by ethail (2011-09-01 17:51:09)


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

#209 2011-09-01 18:22:40

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

ethail: that linux-zen PKGBUILD isn't working for me though... problems with cpufreq. I'll look into it..

Offline

#210 2011-09-01 18:29:46

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

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

el mariachi:

you mean the one in my github repo or the one I've just pasted?

The latter is -pf, not zen. About the zen in my github repo, it's likely to fail. I think it was just written to not fail me some night and I still haven't had time to correct it

Also, always remember to wipe the src folder before building, patching is likely to fail if not done that way.

EDIT: also, are you modprobing the interactive governor and so on?

Last edited by ethail (2011-09-01 18:32:26)


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

#211 2011-09-01 21:08:56

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

the one in your repo failed, the -pf from aur works flawlessly. I don't compile the kernel with modules, so no need for modprobing stuff. Interactive is working fine, I don't have time to benchmark and compare it to the others though.

OT: I like the zen kernel and use it.. it seems very quiet lately sad

Offline

#212 2011-09-01 21:12:00

nous
Member
From: Across the Universe
Registered: 2006-08-18
Posts: 323
Website

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

ethail: It still fails with the PKGBUILD you provided, and why wouldn't it?  Both PKGBUILDs download the same patch and apply it likewise.

  BUILD   arch/x86/boot/bzImage
Root device is (8, 5)
Setup is 17036 bytes (padded to 17408 bytes).
System is 2124 kB
CRC 7654811c
Kernel: arch/x86/boot/bzImage is ready  (#1)
ERROR: "sched_setscheduler_nocheck" [drivers/cpufreq/cpufreq_interactive.ko] undefined!
WARNING: modpost: Found 7 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

But since others (el mariachi) reported success, there must be something rotten in my system.

Offline

#213 2011-09-01 21:15:12

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

nous: yes, both the PKGBUILD from ethail and the one in AUR use the same patch and apply it in the same fashion. That is the error I get with the PKGBUILD for -zen... maybe the patch has been updated and it broke stuff?

Offline

#214 2011-09-01 21:32:15

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

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

@el mariachi: unlikely, page shows no change since Aug 26th. I've tested it right now.

By the way, the zen PKGBUILD was quoted as example, nothing more.

@nous: That's kind of really odd. I've tested that patch against -pf several times on two machines and it never gave an error. Both machines are x86_64

Well, not so odd, maybe:

https://gist.github.com/1172524#gistcomment-47437

Only tested on x86_64. Use at your own risk big_smile

I think I will stop using it until it gets better.


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

#215 2011-09-01 21:40:42

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

I'm using x86_64 too.. and only now I noticed that my cpu is stuck at 800Mhz.. (it isn't slow though big_smile) humm I think I'll a bit longer for this to mature too..

Offline

#216 2011-09-05 00:47:28

safrax
Member
Registered: 2011-06-04
Posts: 13

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

The interactive governor is working great for me.

  cpufreq stats: 2.20 GHz:2.56%, 2.20 GHz:0.01%, 2.10 GHz:0.01%, 2.00 GHz:0.01%, 1.90 GHz:0.02%, 1.80 GHz:0.02%, 1.70 GHz:0.02%, 1.60 GHz:0.02%, 1.50 GHz:0.03%, 1.40 GHz:0.03%, 1.30 GHz:0.04%, 1.20 GHz:0.04%, 1.10 GHz:0.05%, 1000 MHz:0.05%, 900 MHz:0.07%, 800 MHz:97.02%  (107996)
  cpufreq stats: 2.20 GHz:2.14%, 2.20 GHz:0.01%, 2.10 GHz:0.01%, 2.00 GHz:0.01%, 1.90 GHz:0.02%, 1.80 GHz:0.02%, 1.70 GHz:0.02%, 1.60 GHz:0.02%, 1.50 GHz:0.02%, 1.40 GHz:0.03%, 1.30 GHz:0.03%, 1.20 GHz:0.03%, 1.10 GHz:0.04%, 1000 MHz:0.04%, 900 MHz:0.06%, 800 MHz:97.52%  (85758)
  cpufreq stats: 2.20 GHz:1.60%, 2.20 GHz:0.01%, 2.10 GHz:0.01%, 2.00 GHz:0.01%, 1.90 GHz:0.01%, 1.80 GHz:0.01%, 1.70 GHz:0.01%, 1.60 GHz:0.01%, 1.50 GHz:0.01%, 1.40 GHz:0.01%, 1.30 GHz:0.02%, 1.20 GHz:0.02%, 1.10 GHz:0.02%, 1000 MHz:0.02%, 900 MHz:0.03%, 800 MHz:98.21%  (52420)
  cpufreq stats: 2.20 GHz:1.28%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 2.00 GHz:0.00%, 1.90 GHz:0.00%, 1.80 GHz:0.00%, 1.70 GHz:0.00%, 1.60 GHz:0.01%, 1.50 GHz:0.01%, 1.40 GHz:0.01%, 1.30 GHz:0.01%, 1.20 GHz:0.01%, 1.10 GHz:0.01%, 1000 MHz:0.01%, 900 MHz:0.01%, 800 MHz:98.63%  (35030)
  cpufreq stats: 2.20 GHz:1.57%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 2.00 GHz:0.00%, 1.90 GHz:0.01%, 1.80 GHz:0.01%, 1.70 GHz:0.00%, 1.60 GHz:0.00%, 1.50 GHz:0.01%, 1.40 GHz:0.01%, 1.30 GHz:0.01%, 1.20 GHz:0.01%, 1.10 GHz:0.01%, 1000 MHz:0.01%, 900 MHz:0.02%, 800 MHz:98.32%  (41591)
  cpufreq stats: 2.20 GHz:1.48%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 2.00 GHz:0.00%, 1.90 GHz:0.00%, 1.80 GHz:0.00%, 1.70 GHz:0.00%, 1.60 GHz:0.00%, 1.50 GHz:0.00%, 1.40 GHz:0.01%, 1.30 GHz:0.01%, 1.20 GHz:0.01%, 1.10 GHz:0.01%, 1000 MHz:0.01%, 900 MHz:0.01%, 800 MHz:98.44%  (35593)
  cpufreq stats: 2.20 GHz:1.32%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 2.00 GHz:0.00%, 1.90 GHz:0.00%, 1.80 GHz:0.00%, 1.70 GHz:0.00%, 1.60 GHz:0.00%, 1.50 GHz:0.00%, 1.40 GHz:0.00%, 1.30 GHz:0.00%, 1.20 GHz:0.00%, 1.10 GHz:0.01%, 1000 MHz:0.01%, 900 MHz:0.01%, 800 MHz:98.63%  (25563)
  cpufreq stats: 2.20 GHz:1.23%, 2.20 GHz:0.00%, 2.10 GHz:0.00%, 2.00 GHz:0.00%, 1.90 GHz:0.00%, 1.80 GHz:0.00%, 1.70 GHz:0.00%, 1.60 GHz:0.00%, 1.50 GHz:0.00%, 1.40 GHz:0.00%, 1.30 GHz:0.01%, 1.20 GHz:0.00%, 1.10 GHz:0.00%, 1000 MHz:0.01%, 900 MHz:0.01%, 800 MHz:98.72%  (14472)

My laptop is idle most of the time but it scales up to 2.2GHz as needed.

Offline

#217 2011-09-05 06:28:41

nous
Member
From: Across the Universe
Registered: 2006-08-18
Posts: 323
Website

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

safrax wrote:

The interactive governor is working great for me.

My laptop is idle most of the time but it scales up to 2.2GHz as needed.

So is mine with the on-demand governor, but I haven't tested the interactive one. Have you compared the two and seen a significant advantage of the latter?

Offline

#218 2011-09-06 12:39:54

safrax
Member
Registered: 2011-06-04
Posts: 13

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

nous wrote:
safrax wrote:

The interactive governor is working great for me.

My laptop is idle most of the time but it scales up to 2.2GHz as needed.

So is mine with the on-demand governor, but I haven't tested the interactive one. Have you compared the two and seen a significant advantage of the latter?

I haven't had time yet to sit down and do a side by side comparison of battery life with the interactive vs on-demand governors.  One of these days I'll get around to it and report back.

Offline

#219 2011-09-12 00:38:54

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

i686 repo seems to be maintained worse than the x86_64 one - kernel packages there are still at 3.0.2 and some nvidia packages are missing. I'd like to run the latest linux-pf, but due to the downtime of kernel.org I can't build my own packages.

Offline

#220 2011-09-12 01:01:12

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

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

lucke wrote:

i686 repo seems to be maintained worse than the x86_64 one - kernel packages there are still at 3.0.2 and some nvidia packages are missing. I'd like to run the latest linux-pf, but due to the downtime of kernel.org I can't build my own packages.

Well, if git is good enough you could try https://github.com/torvalds/linux I suppose.

Cheers.

Offline

#221 2011-09-12 05:24:07

nous
Member
From: Across the Universe
Registered: 2006-08-18
Posts: 323
Website

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

lucke wrote:

i686 repo seems to be maintained worse than the x86_64 one - kernel packages there are still at 3.0.2 and some nvidia packages are missing. I'd like to run the latest linux-pf, but due to the downtime of kernel.org I can't build my own packages.

I'm sorry, the packages had been built days ago but I had forgotten to run repo-add. As for the nvidia packages, well, I don't actually have a i686 box with nvidia and I don't really update the driver...

Last edited by nous (2011-09-12 05:25:41)

Offline

#222 2011-09-12 12:57:14

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

Much appreciated, nous.

Offline

#223 2011-09-23 09:18:11

trungpham
Member
Registered: 2010-10-21
Posts: 28

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

While original Arch kernel works fine, linux-pf stuck at boot and show "/etc/rc.d/functions: find: command not found" after "Remove leftover files". Clearly something wrong with linux-pf and rc.sysinit. Any ideas to fix? Thanks.

I found the cause. SOLVED.

Last edited by trungpham (2011-09-23 10:45:35)

Offline

#224 2011-09-23 09:20:24

kalpik
Member
From: India
Registered: 2007-05-08
Posts: 163
Website

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

My boot status is still broken, and dmesg messages creep into it sad

Offline

#225 2011-09-23 16:06:30

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,423

Re: The linux-pf thread; BFS/CK, TuxOnIce, BFQ, AUFS3

Thank you for precompiled packages, i've the feeling of a nice speed boost using it on an atom n280 netbook.

Anyway, it seems that powertop doesn't play good with your config:

No detailed statistics available; please enable the CONFIG_TIMER_STATS kernel option
This option is located in the Kernel Debugging section of menuconfig
(which is CONFIG_DEBUG_KERNEL=y in the config file)

Can you please enable it?

EDIT:
If you are wondering, that option has "almost zero" overhead:
http://www.mjmwired.net/kernel/Document … _stats.txt

Last edited by kokoko3k (2011-09-23 16:27:26)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB