You are not logged in.

#1 2004-10-23 01:20:12

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

kernel26nitro 2.6.9-nitro1

best nitro so far. works with stock nvidia driver, PREEMT, SMT, SMP, all working great. No java issues. Super speedy.

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

pkgname=kernel26nitro
origkernelver=2.6.9
nitrover=1
pkgver=${origkernelver}.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/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)
}

Offline

#2 2004-10-23 06:16:20

BoomN
Member
Registered: 2003-11-12
Posts: 37

Re: kernel26nitro 2.6.9-nitro1

Thanks for that one! I want to try out this kernel and the new software suspend ASAP

Offline

#3 2004-10-23 07:12:36

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: kernel26nitro 2.6.9-nitro1


Mr Green

Offline

#4 2004-10-23 14:48:12

BoomN
Member
Registered: 2003-11-12
Posts: 37

Re: kernel26nitro 2.6.9-nitro1

I know, thats partly what inspired me.  Those forums are the greatest sources of linux knowledge on the net

Offline

#5 2004-10-24 00:11:20

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

Re: kernel26nitro 2.6.9-nitro1

you need to have a config in the build directory. you can copy the config from /var/abs/kernels/kernel26 and then customize it when makepkg prompts you.

Offline

#6 2004-10-24 08:06:34

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: kernel26nitro 2.6.9-nitro1

Got it up & running now (after messing around with software suspend!) ... 8)

Nice logo.... smile


Mr Green

Offline

#7 2004-10-24 11:53:03

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: kernel26nitro 2.6.9-nitro1

Does this work with the new AL pkg for nvidia?  Or will I  need to revert to the old one?


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#8 2004-10-24 12:54:24

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: kernel26nitro 2.6.9-nitro1

stock drivers 6111 ... are ok....


Mr Green

Offline

#9 2004-10-24 13:04:24

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: kernel26nitro 2.6.9-nitro1

Mr Green wrote:

stock drivers 6111 ... are ok....

Yeah, but the AL package uses the patched version to work with 2.6.9... I'm wondering if that will work with nitro, since nitro is patched to work with the original


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#10 2004-10-24 13:10:37

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: kernel26nitro 2.6.9-nitro1

sorry I just use stock nvidia drivers, load them myself .....


Mr Green

Offline

#11 2004-10-24 14:31:59

mikep
Member
Registered: 2004-10-24
Posts: 13

Re: kernel26nitro 2.6.9-nitro1

lirc atiusb module doesnt seem to compile.

Which is unfortunate because thats what I wanted it for. Ah well.

Offline

#12 2004-10-25 14:08:35

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: kernel26nitro 2.6.9-nitro1

just built the package and installed. rebooted.. now it wont boot. it says "Cannot open root device". i am a sata disc user.  this was the same message i got when i tried to install the arch stock 2.6.8-1 kernel. i read a post on here that said changing an entry in the linux config file fixed this. the entry to change was "config_blk_dev_sd=m" to "y", well this option was already compiled into the kernel... so i dont know what could be the problem. did the naming convention change for sata discs?

thanks,

-khaz

Offline

#13 2004-10-25 14:19:12

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: kernel26nitro 2.6.9-nitro1

Are you using lilo & did you update it?


Mr Green

Offline

#14 2004-10-25 14:20:26

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: kernel26nitro 2.6.9-nitro1

hmm.. just downgraded to 2.6.8-3 and i get the same message. it says:

failed to open the device '/dev/discs/disc0/part3'
it also failed to activate the swap.

it appears that for now, the only kernel that i can successfully boot off of is:

kernel26-2.6.7-1


any suggestions ?

Offline

#15 2004-10-25 14:21:33

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: kernel26nitro 2.6.9-nitro1

i use grub.

Offline

#16 2004-10-25 14:23:52

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: kernel26nitro 2.6.9-nitro1

Check you ./boot dir see if vmlinuz26nitro is in there...

check grub settings ....

All I can think of atm


Mr Green

Offline

#17 2004-10-25 14:27:56

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: kernel26nitro 2.6.9-nitro1

yup, vmlinuz26nitro is there, and i change menu.lst to point to vmlinuz26nitro.

Offline

#18 2004-10-25 14:46:02

BoomN
Member
Registered: 2003-11-12
Posts: 37

Re: kernel26nitro 2.6.9-nitro1

khazdar wrote:

hmm.. just downgraded to 2.6.8-3 and i get the same message. it says:

failed to open the device '/dev/discs/disc0/part3'
it also failed to activate the swap.

it appears that for now, the only kernel that i can successfully boot off of is:

kernel26-2.6.7-1


any suggestions ?

Try getting rid of the devfs type names, ie root=/dev/discs/disc0/part3 --> root=/dev/hda3
I had the same problem when i didnt build devfs in the kernel, because the kernel cant understand devfs names until udev loads

Offline

#19 2004-10-25 14:49:31

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: kernel26nitro 2.6.9-nitro1

I was going to say add append="devfs=nomount"

not sure if it is the same for grub....


Mr Green

Offline

#20 2004-10-25 15:38:32

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: kernel26nitro 2.6.9-nitro1

I took out the "devfs=nomount" and I was able to boot!! yah.. i can use a new kernel now :-D

so.. whats so special w/ the nitro kernel anyway?

-khaz

Offline

#21 2004-10-25 15:44:50

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: kernel26nitro 2.6.9-nitro1

lol  Glad to hear you got it working ...


Mr Green

Offline

#22 2004-10-25 17:10:27

BoomN
Member
Registered: 2003-11-12
Posts: 37

Re: kernel26nitro 2.6.9-nitro1

khazdar wrote:

I took out the "devfs=nomount" and I was able to boot!! yah.. i can use a new kernel now :-D

so.. whats so special w/ the nitro kernel anyway?

-khaz

Good to hear it works.  If want to use udev, you're still going to have to change the format of root=

The nitro kernel is the -ck patchset with extra feature patches for supermount, vesafb-tng, orinoco, and a bunch of other things

Offline

#23 2004-10-25 19:07:18

khazdar
Member
From: ohio
Registered: 2003-11-06
Posts: 123

Re: kernel26nitro 2.6.9-nitro1

i'd like to be using udev.. could you post your fstab and menu.lst?

thx

Offline

#24 2004-10-27 16:29:24

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

Re: kernel26nitro 2.6.9-nitro1

2.6.9-nitro2 is out, and rock solid here.

Offline

#25 2004-10-27 16:32:40

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: kernel26nitro 2.6.9-nitro1

Is kswapd fixed  lol ..


Mr Green

Offline

Board footer

Powered by FluxBB