You are not logged in.

#1 2004-12-27 04:57:54

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

[new] kernel-2.6.10-ck1-nitro1

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

pkgname=kernel26nitro
origkernelver=2.6.10
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://mitglied.lycos.de/nitrosources/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
  cp -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"

  # 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 "==> Press [ENTER] to start compiling kernel $kernelver or [CTRL-C] to halt... "
  read KEY
  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/$origkernelver-ck1 && 
    (rm -f build; ln -sf /usr/src/linux-$kernelver build)

}

Offline

#2 2004-12-27 05:45:22

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [new] kernel-2.6.10-ck1-nitro1

hey no fair, thats my job! tongue

Offline

#3 2004-12-27 13:32:54

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: [new] kernel-2.6.10-ck1-nitro1

:oops:  sorry m8... wont happen again wink

Offline

#4 2004-12-27 14:24:05

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [new] kernel-2.6.10-ck1-nitro1

z4ziggy wrote:

:oops:  sorry m8... wont happen again wink

nah thats cool, its good that someone else is doin somethin. it'll save me some time when i update my pkgbuild big_smile

besides yours is different, it allows the user to configure it, whereas mine will just follow plain arch config.

Offline

#5 2004-12-27 14:29:51

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: [new] kernel-2.6.10-ck1-nitro1

actually, its not mine :

# Contributor: hyp0luxa <hyp0luxa@yahoo.com>

im just the ripper wink

Offline

#6 2004-12-27 14:53:44

Searinox
Member
Registered: 2004-09-14
Posts: 44

Re: [new] kernel-2.6.10-ck1-nitro1

Do I have to use the config from the abs-tree or do i need a special one?

Offline

#7 2004-12-27 15:01:27

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

Re: [new] kernel-2.6.10-ck1-nitro1

use the one from ABS-tree .... (for 2.6 ;-)) ....

you may find it breaks on some low-level scsi drivers .... don't panic easy to fix

enjoy

8)


Mr Green

Offline

#8 2004-12-28 02:11:39

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: [new] kernel-2.6.10-ck1-nitro1

just some remarks about 2.6.10-ck1-nitro1 :

my usb is making me lotta problems (after removing and reattching it, uhci-hcd will report it working once out of ten tries :S the led wont start either) but iono if its just my hw, nitro, or 2.6.10.

besides that, i noticed a major performance gain with this kernel - again, dunno if its the nitro or 2.6.10...

Offline

#9 2004-12-28 02:56:26

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [new] kernel-2.6.10-ck1-nitro1

Try playing with the PLug and Play settings, and in particular disabling ACPI PNP.

I've got a gut feeling that option will/is causing your problems.....

Offline

#10 2004-12-28 03:17:34

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: [new] kernel-2.6.10-ck1-nitro1

i dont have ACPI enabled nor Plug n Play... so i doubt its that. i think its in the kernel/nitro. we'll know for sure once more ppl will use it.

Offline

#11 2004-12-28 04:32:19

colnago
Member
From: Victoria, BC
Registered: 2004-03-25
Posts: 438

Re: [new] kernel-2.6.10-ck1-nitro1

I am feeling the usb problems that z4ziggy had too. 

Check out this new thread:
http://bbs.archlinux.org/viewtopic.php?t=8883

Offline

#12 2004-12-28 05:05:58

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: [new] kernel-2.6.10-ck1-nitro1

hehe... feels like the wind is heading our way...

though i dont use hotplug nor i dont get any errors on bootup - the usb problem still occurs... i tweaked and tweaked the kernel (removed all options from usb-storage options) but for vain... i guess we can just cross our fingers and wait for a patch soon wink

Offline

#13 2004-12-28 06:44:56

nggalai
Member
From: Switzerland
Registered: 2004-08-01
Posts: 215
Website

Re: [new] kernel-2.6.10-ck1-nitro1

z4ziggy wrote:

i dont have ACPI enabled nor Plug n Play... so i doubt its that. i think its in the kernel/nitro. we'll know for sure once more ppl will use it.

I have the same issues with a vanilla 2.6.10 kernel, so I don't think it's due to the nitro patchset.

Also, if anybody has any idea how to get rid of the hotplug startup issues without disabling hotplug, feel free to share. wink

93,
-Sascha.rb

Offline

#14 2004-12-28 10:22:26

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [new] kernel-2.6.10-ck1-nitro1

ooooooook......
the hotplug startup issues are caused by all the new PNP stuff.
i've made a package without this and am uploading it now.

Either way, all my usb stuff works though.

Offline

#15 2004-12-28 10:30:16

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

Re: [new] kernel-2.6.10-ck1-nitro1

Errr I'm getting confused  :?  is 2.6.10-ck1-nitro1 the same as 2.6.10-nitro1 ?

As for USB I get usbdevfs not found on boot up (or /proc/bus/usb not found )

I do not use hotplug so I guess usb in 2.6.10 needs some fixing ???

Mr Green losing track of his kernel builds  lol


Mr Green

Offline

#16 2004-12-28 13:31:35

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [new] kernel-2.6.10-ck1-nitro1

Mr Green wrote:

Errr I'm getting confused  :?  is 2.6.10-ck1-nitro1 the same as 2.6.10-nitro1 ?

As for USB I get usbdevfs not found on boot up (or /proc/bus/usb not found )

I do not use hotplug so I guess usb in 2.6.10 needs some fixing ???

Mr Green losing track of his kernel builds  lol

They're the same kernel,

I updated it and reuploaded the kernel with the new pnp stuff off.
http://aslan.no-ip.com/~iphitus/arch/ke … pkg.tar.gz

iphitus

Offline

#17 2004-12-29 01:31:33

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: [new] kernel-2.6.10-ck1-nitro1

ok, regarding the usb problem, i downsized the problem to ehci-hcd module only. once i remove this module or add it to my blacklist, all works fine smile

Offline

#18 2005-01-17 07:44:06

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [new] kernel-2.6.10-ck1-nitro1

how do your pkgbuild handle the patchset appending it's own extraversion and people adding their own localversion?

Offline

#19 2005-01-18 12:33:31

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [new] kernel-2.6.10-ck1-nitro1

mine has an arch localversion and the extra version is modified to -nitro1, i took the cko out.

Offline

Board footer

Powered by FluxBB