You are not logged in.
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
Thanks for that one! I want to try out this kernel and the new software suspend ASAP
Offline
Offline
I know, thats partly what inspired me. Those forums are the greatest sources of linux knowledge on the net
Offline
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
Got it up & running now (after messing around with software suspend!) ... 8)
Nice logo....
Mr Green
Offline
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
stock drivers 6111 ... are ok....
Mr Green
Offline
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
sorry I just use stock nvidia drivers, load them myself .....
Mr Green
Offline
lirc atiusb module doesnt seem to compile.
Which is unfortunate because thats what I wanted it for. Ah well.
Offline
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
Are you using lilo & did you update it?
Mr Green
Offline
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
i use grub.
Offline
Check you ./boot dir see if vmlinuz26nitro is in there...
check grub settings ....
All I can think of atm
Mr Green
Offline
yup, vmlinuz26nitro is there, and i change menu.lst to point to vmlinuz26nitro.
Offline
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
I was going to say add append="devfs=nomount"
not sure if it is the same for grub....
Mr Green
Offline
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
Glad to hear you got it working ...
Mr Green
Offline
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
i'd like to be using udev.. could you post your fstab and menu.lst?
thx
Offline
2.6.9-nitro2 is out, and rock solid here.
Offline
Is kswapd fixed ..
Mr Green
Offline