You are not logged in.

#1 2004-10-14 06:21:13

hyp0luxa
Member
From: Miami, FL
Registered: 2004-07-10
Posts: 70

kernel26nitro [updated to 2.6.9-rc4-nitro1]

here's a PKGBUILD for 2.6.9-rc4-nitro1, adapted from dp's kernel26mm PKGBUILD.

# $Id: PKGBUILD,v 1.5 2004/08/22 16:43:06 damir Exp $
# Contributor: hyp0luxa <hyp0luxa@yahoo.com>

pkgname=kernel26nitro
origkernelver=2.6.9-rc4
newkernelver=2.6.9
rcver=4
nitrover=1
pkgver=${newkernelver}.rc${rcver}.nitro${nitrover}
kernelver=${origkernelver}-nitro${nitrover}
pkgrel=1
pkgdesc="The Linux Kernel and modules (IDE support) [nitro kernel]"
url="http://www.sepi.be/nitro.php"
backup=('boot/kconfig26nitro')
depends=('module-init-tools')

source=(http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-$origkernelver.tar.bz2 
          http://www.sepi.be/nitro/$kernelver/patch-$kernelver.bz2 
          config 
          logo_linux_clut224.ppm)

build() {

  # if we run the makepkg more than once and use 'makepkg -e' to save time:
  if [ -d $startdir/src/linux-${origkernelver} ]
  then
     cd $startdir/src/linux-${origkernelver}
     #apply nitro patchset
     patch -Np1 -i ../patch-$kernelver || return 1
     mv $startdir/src/linux-${origkernelver} $startdir/src/linux-$kernelver
  fi

  cd $startdir/src/linux-$kernelver

  #CLEAN-ME:
  if [ -f ../${kernelver} ]
  then
     rm ../${kernelver} # cleanup the existing patch (needed, if "makepkg -e" for another round)
  fi

  # get rid of the 'i' in i686
  carch=`echo $CARCH | sed 's|i||'`
  cat ../config | sed "s|#CARCH#|$carch|g" >./.config
  mv -f $startdir/config $startdir/config.orig

  # replace logo:
  cp $startdir/src/logo_linux_clut224.ppm $startdir/src/linux-$kernelver/drivers/video/logo/ && echo "==> logo replaced successfully"
  sleep 2

  # let's be "user-friendly":
  echo "==> "
  echo "==> How do you want to configure the kernel:"
  echo "==> ----------------------------------------"
  echo "==> (for ArchLinux defaults, use 'not_at_all (1)')"
  echo "==> "
  AUSWAHL="not_at_all menuconfig xconfig oldconfig config"
           select opt in $AUSWAHL; do
               if [ "$opt" = "not_at_all" ]; then
                yes "" | make config || return 1
                mv $startdir/config.orig $startdir/config
                break
               elif [ "$opt" = "menuconfig" ]; then
                make menuconfig || return 1
                cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
                break
               elif [ "$opt" = "xconfig" ]; then
                make xconfig || return 1
                cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
                break
               elif [ "$opt" = "config" ]; then
                make config || return 1
                cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
                break
               elif [ "$opt" = "oldconfig" ]; then
                make oldconfig || return 1
                cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
                break
               else
                clear
                echo "==> I don't understand (bad option) ... assuming you don't want "
                echo "==> to configure and use the defaults."
                sleep 1
                echo "==> 3..."
                sleep 1
                echo "==> 2..."
                sleep 1
                echo "==> 1..."
                sleep 1
                echo "==> 0: GO! --------------------------- :-)"
                yes "" | make config || return 1
                mv $startdir/config.orig $startdir/config
                break
               fi
           done

  echo ""
  echo "==> Building the kernel $kernelver will start in 2s ! "
  echo "==> Happy compiling and good luck :-)"
  echo ""
  sleep 2

  make clean bzImage modules || return 1

  mkdir -p $startdir/pkg/{lib/modules,boot}
  make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1

  cp System.map $startdir/pkg/boot/System.map26nitro

  cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26nitro

  install -D -m644 Makefile $startdir/pkg/usr/src/linux-$kernelver/Makefile
  install -D -m644 .config $startdir/pkg/usr/src/linux-$kernelver/.config
  install -D -m644 .config $startdir/pkg/boot/kconfig26nitro

  mkdir -p $startdir/pkg/usr/src/linux-$kernelver/include
  mkdir -p $startdir/pkg/usr/src/linux-$kernelver/arch/i386/kernel

  for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$kernelver/include/
  done

  # copy files necessary for later builds, like nvidia and vmware
  cp -a scripts $startdir/pkg/usr/src/linux-$kernelver/
  mkdir -p $startdir/pkg/usr/src/linux-$kernelver/.tmp_versions
  cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$kernelver/arch/i386/
  cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$kernelver/arch/i386/kernel/

  # copy in Kconfig files
  for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$kernelver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$kernelver/$i
  done
  cd $startdir/pkg/usr/src/linux-$kernelver/include && ln -s asm-i386 asm
  chown -R root.root $startdir/pkg/usr/src/linux-$kernelver
  cd $startdir/pkg/lib/modules/$kernelver && 
    (rm -f build; ln -sf /usr/src/linux-$kernelver build)
}

Notes:
You can use SMP, SMT, and PREEMPT now.
If you run VMWARE, do not use 1GB_LOWMEM (VMWARE modules won't compile)
If you're going to compile in Reiser4, be sure that 4K stacks is off
If you have an nVidia card, you can use the regular arch nvidia package

Enjoy!

Offline

#2 2004-10-14 10:00:37

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: kernel26nitro [updated to 2.6.9-rc4-nitro1]

2.6.9 will be out in a week (at least this is the rumors)


The impossible missions are the only ones which succeed.

Offline

#3 2004-10-14 18:10:18

soniX
Member
From: Oslo, Norway
Registered: 2004-01-23
Posts: 161

Re: kernel26nitro [updated to 2.6.9-rc4-nitro1]

I read some info a while ago indicating that Java would become unstable, or even crash running with some patchsets....
Google wouldnt give me any usefull info, since these kind of bugs apear and get fixed every week. And what didnt work last week might no work now, and vice versa..
Does anyone have any info on this, cause a kernel made for desktop use sounds good for my notebook. (but not if it brakes java, cause that is what im using my notebook for... and playing with arch ofcourse)

Offline

#4 2004-10-14 18:18:08

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: kernel26nitro [updated to 2.6.9-rc4-nitro1]

soniX wrote:

I read some info a while ago indicating that Java would become unstable, or even crash running with some patchsets....
Google wouldnt give me any usefull info, since these kind of bugs apear and get fixed every week. And what didnt work last week might no work now, and vice versa..
Does anyone have any info on this, cause a kernel made for desktop use sounds good for my notebook. (but not if it brakes java, cause that is what im using my notebook for... and playing with arch ofcourse)

kernel26mm supports java (BUT if you want to try it, wait for the 2.6.9 release, as the 2.6.8.1-mmX are not really good, because 2.6.8.1 is the most unstable one since 2.4.16)


The impossible missions are the only ones which succeed.

Offline

#5 2004-10-14 18:19:49

hyp0luxa
Member
From: Miami, FL
Registered: 2004-07-10
Posts: 70

Re: kernel26nitro [updated to 2.6.9-rc4-nitro1]

i'm not sure. i had java issues with 2.6.9-rc2-love4, and 2.6.9-rc3-nitro2 kernels, but java's working fine with this one.

Offline

Board footer

Powered by FluxBB