You are not logged in.
edited.
Last edited by methuselah (2009-01-13 23:36:56)
Offline
Yeah, but not much to see yet, though. The PKGBUILDs from AUR don't work yet, either, git repository doesn't respond.
Only the best is good enough.
Offline
edited.
Last edited by methuselah (2009-01-13 23:37:09)
Offline
Something wrong with the PKGBUILD?
Initialized empty Git repository in /tmp/yaourt-tmp-ty/aur-kernel26zen-git/kernel26zen-git/src/kernel26zen/.git/
fatal: The remote end hung up unexpectedly
./PKGBUILD: line 75: cd: /tmp/yaourt-tmp-ty/aur-kernel26zen-git/kernel26zen-git/src/kernel26zen: No such file or directory
fatal: Not a git repository
==> ERROR: master is not a valid object name
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build kernel26zen-git package.
Offline
update the pkgbuild
Offline
I should have read before posting, sorry
Offline
I'd like to try out the kernel26zen-git package in AUR, But I get an error after an hour of compiling:
CC arch/x86/lib/usercopy_32.o
AR arch/x86/lib/lib.a
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
block/built-in.o: In function `vr_dispatch_requests':
vr-iosched.c:(.text+0x13a14): undefined reference to `__udivdi3'
vr-iosched.c:(.text+0x13a59): undefined reference to `__udivdi3'
make: *** [.tmp_vmlinux1] Error 1
==> ERROR: Failed... Your source tree might be broken. Run 'make mrproper' in src/kernel26zen to clean it up
==> ERROR: Build Failed.
Aborting...
Any ideas as to what is going wrong?
Offline
Try running 'make mrproper' as instructed. You have probably tried to give it a .config file which the zen patchset doesn't like. AFAIK, the zen patchset doesn't like being given a .config file from any other kernel, especially not the -ARCH or vanilla kernel. You should make clean, make mrproper and make menuconfig and make the configuration yourself.
Only the best is good enough.
Offline
Here is an updated PKGBUILD with the correct header files located so that nvidia drivers will build.
# Maintainer: ilikenwf/Matt Parnell <parwok@gmail.com>
# Contributor: Patrick Bartels <p4ddy.b@gmail.com>
pkgname="kernel26zen-git"
pkgver=20081124
pkgrel="6"
pkgdesc="Stable and featureful Linux Kernel and modules based on linux-2.6 GIT tree"
url="http://zen-sources.org/"
arch=("i686" "x86_64")
license=("GPL2")
depends=("coreutils" "module-init-tools" "mkinitcpio>=0.5.15")
makedepends=("git")
conflicts=("kernel26zen")
backup=(boot/kconfig26zen
etc/mkinitcpio.d/kernel26zen.preset)
install=kernel26zen.install
source=(config.i686
config.x86_64
kernel26zen.preset
mkinitcpio-kernel26zen.conf)
md5sums=('e276e819b802b6beb9073cbfd673202d'
'602b6e0c936078255dc5aad5116bae7e'
'917036ce390cf8303f9104491d5ccd70'
'36858bd6a0bca63d2aa901b2e42d4a05')
#See CONFIG for _gitroot
_gitname="kernel26zen"
# Returns 1 if the current branch is a remote one
_is_remote() {
if [ $# -eq 1 ]; then
git config --get branch.$1.remote > /dev/null 2>&1
if [ $? -eq 0 ]; then
return 0
else
return 1
fi
else
return 1
fi
}
# Pulls the source tree via GIT
_checkout() {
msg "Fetching zen-sources..."
if [ ! -d $_gitname ]; then
warning "Do not delete src/ as it takes VERY long to clone zen sources via GIT"
msg2 "Cloning the project..."
git clone $_gitroot $_gitname
else
cd $startdir/src/$_gitname
msg2 "Recreating master to make sure, there is always a working branch..."
git branch -D master-new > /dev/null 2>&1
if ! git checkout -m -b master-new origin/master; then
error "Failed..."
warning "Trying git checkout with -f flag instead..."
warning "This will throw away local changes..."
warning "Press ENTER to continue or CTRL+C to abort..."
read
git checkout -f -b master-new origin/master
fi
git branch -D master
git branch -M master-new master
msg2 "Updating branch: master..."
git pull origin || return 1
fi
cd $startdir/src/$_gitname
_local="$(echo $_object | cut -d' ' -f 1)"
_remote="$(echo $_object | cut -d' ' -f 2)"
[ "$_remote" = "" ] && _remote="$_local"
_commit="$(git rev-parse $_remote)"
if [ $? -ne 0 ]; then
error "$_remote is not a valid object name"
return 1
fi
if ! git branch | grep $_local > /dev/null; then
msg2 "Creating branch: $_local based on $_remote..."
git branch $_local $_remote || return 1
fi
msg2 "Switching to branch: $_local ($_commit)..."
git checkout $_local || return 1
# If on a remote branch, this will pull the last commit of that branch
if _is_remote $_local; then
msg2 "Updating branch: $_local..."
git pull
fi
}
# Generates the commit ChangeLog
_changelog() {
msg "Generating commit ChangeLog..."
git log "v2.6.24-rc2-zen0..$_local" \
--pretty="format:%ai %an <%ae>%n%n * %H: %s%n%nBODY_START%n%b%nBODY_END" \
| sed -r -e 's/^([0-9]{4}-[0-9]{2}-[0-9]{2}) [0-9]{2}:[0-9]{2}:[0-9]{2} [\+-][0-9]{4}/\1/' \
-e '/^BODY_START$/,/^BODY_END$/{/^(BODY_START|BODY_END|<unknown>)$/d;s/(.*)/ \1/g}'
}
# Build function called by makepkg
build() {
_karch="x86"
cd $startdir/src
msg "Including package configuration..."
. $startdir/CONFIG
# Pull the kernel source
_checkout || return 1
if [ "$_generate_changelog" = "1" ]; then
_changelog > $startdir/ChangeLog
else
cp $startdir/ChangeLog.package $startdir/ChangeLog
fi
msg "Testing if current kernel version is supported by this PKGBUILD..."
vercmp "2.6.24" "$(make kernelversion)" > /dev/null
if [ $? -eq 1 ]; then
error "Failed"
return 1
fi
msg "Loading configuration..."
if [ -e $startdir/config.local ]; then
msg2 "Using custom kernel config (config.local)..."
cat $startdir/config.local > .config
elif [ -e $startdir/config.saved.$CARCH ]; then
msg2 "Using saved kernel config (config.saved.$CARCH)..."
cat $startdir/config.saved.$CARCH > .config
elif [ "$CARCH" = "x86_64" ]; then
cat ../config.x86_64 > .config
elif [ "$CARCH" = "i686" ]; then
cat ../config.i686 > .config
else
error "Unsupported architecture: $CARCH"
return 1
fi
if [ "$_date_localversion" = "1" ] && _is_remote $_local; then
_localversion="$(sed -rn 's/^CONFIG_LOCALVERSION="([^"]*)"$/\1/p' .config)"
[ -n "$_localversion" ] && msg2 "CONFIG_LOCALVERSION is set to: $_localversion"
_date="-`date +'%G%m%d'`"
msg2 "Appending $_date to CONFIG_LOCALVERSION..."
sed -i "s/^CONFIG_LOCALVERSION=.*$/CONFIG_LOCALVERSION=\"$_localversion$_date\"/" \
.config
fi
msg2 "Updating configuration..."
yes "" | make config > /dev/null
case "$_menu_method" in
menuconfig|xconfig|gconfig)
msg2 "Running make $_menu_method..."
make $_menu_method
;;
esac
msg2 "Determining whether UVesaFB is enabled..."
if grep "^CONFIG_FB_UVESA=[ym]$" .config > /dev/null; then
provides=("${provides[@]}" "kernel26zen-uvesafb")
else
warning "UVesaFB is disabled, framebuffer consoles and v86d won't work"
fi
if [ "$_save_config" = "1" ]; then
msg "Saving configuration..."
msg2 "Saving src/$_gitname/.config as config.saved.$CARCH"
cp .config $startdir/config.saved.$CARCH
if [ "$_date_localversion" = "1" ] && _is_remote $_local; then
msg2 "Restoring CONFIG_LOCALVERSION..."
sed -i "s/^CONFIG_LOCALVERSION=.*$/CONFIG_LOCALVERSION=\"$_localversion\"/" \
$startdir/config.saved.$CARCH
fi
fi
msg "Building kernel and modules..."
if ! make V="$_verbose" bzImage modules; then
error "Failed... Your source tree might be broken. Run 'make mrproper' in src/$_gitname to clean it up"
return 1
fi
_kernver="$(make kernelrelease)"
_basekernel="${_kernver/-*/}"
if [ "$_kernel_pkgver" = "1" ]; then
msg "Updating pkgver..."
[ 1 ] && pkgver="${_kernver//-/.}"
fi
# <3 pacman 3.1.0
msg "Updating provides array..."
[ 1 ] && provides=("${provides[@]}" "kernel26zen=${_kernver//-/.}")
msg "Installing kernel image..."
install -D -m644 System.map $startdir/pkg/boot/System.map26zen
install -D -m644 arch/$_karch/boot/bzImage $startdir/pkg/boot/vmlinuz26zen
install -D -m644 .config $startdir/pkg/boot/kconfig26zen
msg "Installing kernel modules..."
make INSTALL_MOD_PATH=$startdir/pkg modules_install
# Install fake kernel source
install -D -m644 Module.symvers $startdir/pkg/usr/src/linux-$_kernver/Module.symvers
install -D -m644 Makefile $startdir/pkg/usr/src/linux-$_kernver/Makefile
install -D -m644 kernel/Makefile $startdir/pkg/usr/src/linux-$_kernver/kernel/Makefile
install -D -m644 .config $startdir/pkg/usr/src/linux-$_kernver/.config
install -D -m644 .config $startdir/pkg/lib/modules/$_kernver/.config
# Install scripts directory and fix permissions on it
cp -a scripts $startdir/pkg/usr/src/linux-$_kernver
chmod og-w -R $startdir/pkg/usr/src/linux-$_kernver
# Install kernel headers
msg "Installing kernel headers..."
for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound video; do
msg2 "$i"
mkdir -p $startdir/pkg/usr/src/linux-$_kernver/include/$i
cp -a include/$i $startdir/pkg/usr/src/linux-$_kernver/include
done
msg "Installing headers for lirc..."
mkdir -p $startdir/pkg/usr/src/linux-$_kernver/drivers/media/video
cp drivers/media/video/*.h $startdir/pkg/usr/src/linux-$_kernver/drivers/media/video/
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
mkdir -p $startdir/pkg/usr/src/linux-$_kernver/drivers/media/video/$i
cp -a drivers/media/video/$i/*.h $startdir/pkg/usr/src/linux-$_kernver/drivers/media/video/$i
done
msg "Installing dm headers..."
mkdir -p $startdir/pkg/usr/src/linux-$_kernver/drivers/md
cp drivers/md/*.h $startdir/pkg/usr/src/linux-$_kernver/drivers/md
msg "Installing inotify.h..."
mkdir -p $startdir/pkg/usr/src/linux-$_kernver/include/linux
cp include/linux/inotify.h $startdir/pkg/usr/src/linux-$_kernver/include/linux/
msg "Installing CLUSTERIP file for iptables..."
mkdir -p $startdir/pkg/usr/src/linux-$_kernver/net/ipv4/netfilter/
cp net/ipv4/netfilter/ipt_CLUSTERIP.c $startdir/pkg/usr/src/linux-$_kernver/net/ipv4/netfilter/
msg "Installing wireless headers..."
mkdir -p $startdir/pkg/usr/src/linux-$_kernver/net/mac80211/
cp net/mac80211/*.h $startdir/pkg/usr/src/linux-$_kernver/net/mac80211/
msg "Installing Kconfig files..."
for i in `find . -name "Kconfig*"`; do
mkdir -p $startdir/pkg/usr/src/linux-$_kernver/`echo $i | sed 's|/Kconfig.*||'`
cp $i $startdir/pkg/usr/src/linux-$_kernver/$i
done
msg "Installing arch files..."
mkdir -p $startdir/pkg/usr/src/linux-$_kernver/arch/$_karch/kernel
cp arch/$_karch/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$_kernver/arch/$_karch/kernel
mkdir -p $startdir/pkg/usr/src/linux-$_kernver/arch/$_karch/include/asm
cp -r arch/$_karch/include/asm $startdir/pkg/usr/src/linux-$_kernver/arch/$_karch/include
cp arch/$_karch/Makefile* $startdir/pkg/usr/src/linux-$_kernver/arch/$_karch
cp -r arch/$_karch/configs $startdir/pkg/usr/src/linux-$_kernver/arch/$_karch
if [ "$CARCH" = "x86_64" ]; then
(cd $startdir/pkg/usr/src/linux-$_kernver/arch && ln -s $_karch x86_64)
else
(cd $startdir/pkg/usr/src/linux-$_kernver/arch && ln -s $_karch i386)
fi
msg "Fixing permissions..."
chown -R root:root $startdir/pkg/usr/src/linux-$_kernver
find $startdir/pkg/usr/src/linux-$_kernver -type d -exec chmod 755 {} \;
msg "Removing uneeded architectures..."
cd $startdir/pkg/usr/src/linux-$_kernver/arch
for i in *; do
[ "$i" != "$_karch" ] && rm -rf $i
done
msg "Creating important symlinks..."
cd $startdir/pkg/usr/src/linux-$_kernver/include
############# these are the instructions on the nvidia website to get nvidia drivers to build ###############
#ln -s asm-$_karch asm
mv asm-x86/asm-offsets.h ../arch/x86/include/asm
rmdir asm-x86
ln -s ../arch/x86/include/asm asm-x86
cd $startdir/pkg/lib/modules/$_kernver
rm -rf source build
ln -sf ../../../usr/src/linux-$_kernver build
cd $startdir/pkg/usr/src
ln -s linux-$_kernver linux-$_basekernel-zen
cd $startdir/pkg/lib/modules
ln -s $_kernver $_basekernel-zen
msg "Installing fallback mkinitcpio.conf and preset file..."
install -D -m644 $startdir/src/mkinitcpio-kernel26zen.conf \
$startdir/pkg/etc/mkinitcpio.d/kernel26zen-fallback.conf
install -D -m644 $startdir/src/kernel26zen.preset \
$startdir/pkg/etc/mkinitcpio.d/kernel26zen.preset
msg "Setting correct kernel version in install script..."
sed -i "s/_kernel_version=.*/_kernel_version=$_kernver/g" \
$startdir/kernel26zen.install
msg "Generating kernel26zen.kver..."
echo -e "# DO NOT EDIT THIS FILE\nALL_kver='$_kernver'" \
> $startdir/pkg/etc/mkinitcpio.d/kernel26zen.kver
}
Offline
is it in the AUR already?
Only the best is good enough.
Offline
Personally I think the zen default .config now should be to turn ON fast boot option in the kernel. Works a treat and the nvidia beta drivers are fast with 2.6.28. I am happy once again. 2.6.27 was a train wreck compared to the state of the kernel right now in .28-rc8
Offline
is it in the AUR already?
if your asking me, Then NO, you have to replace the PKGBUILD I posted with the one in the AUR for now till matt updates it.
Offline
I'd like to try out the kernel26zen-git package in AUR, But I get an error after an hour of compiling:
[...] vr-iosched.c:(.text+0x13a14): undefined reference to `__udivdi3' vr-iosched.c:(.text+0x13a59): undefined reference to `__udivdi3' make: *** [.tmp_vmlinux1] Error 1 ==> ERROR: Failed... Your source tree might be broken. Run 'make mrproper' in src/kernel26zen to clean it up ==> ERROR: Build Failed. Aborting...
Any ideas as to what is going wrong?
After disabling the io-schedulers bfq and v(r) it compiles.
Offline
BFQ works in 2.6.28-rc9-zen1:
broch[/usr/src]$ uname -r
2.6.28-rc9-zen1-RIGAUDON
broch[/usr/src]$ cat /var/log/messages.log | grep -i BFQ
Dec 23 09:58:05 sequoia io scheduler bfq registered (default)
Dec 23 10:20:41 sequoia io scheduler bfq registered (default)
Offline
Thanks mutlu_inek, It worked!
Offline
With the 2.6.28-zen1 i get this problem
LD drivers/w1/built-in.o
LD drivers/video/fb.o
LD drivers/video/built-in.o
LD [M] drivers/w1/wire.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 3 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
fs/built-in.o:(__ksymtab+0x7a8): undefined reference to `vfs_splice_to'
make: *** [.tmp_vmlinux1] Error 1
but i can't understand how to solve it
Last edited by t3ddy (2008-12-29 14:48:12)
Offline
AFAIK, vfs_splice_to is part of unionfs. If you don't use it, you can try disabling it for now and see if it compiles. Oh, and it did compile with it a few days ago.
Offline
AFAIK, vfs_splice_to is part of unionfs. If you don't use it, you can try disabling it for now and see if it compiles. Oh, and it did compile with it a few days ago.
I've had already disabled it.
As solution I've deleted the source folder, now it compiles fine.
Offline
edited.
Last edited by methuselah (2009-01-13 23:37:49)
Offline
PKGBUILD UPDATED! SEE AUR!
Jacko, thanks for updating the PKGBUILD. I was off the grid, and so I didn't even know what was wrong with the thing until I looked at the stuff you changed. Thanks man. I left a thanks in the changelog to you.
Re: Methuselah
I'm not a dev, but I'm a regular on the irc channel when I'm at school. I've submitted patches and things. I'm the closest thing you have to a dev running the Zen kernel under Arch. That said, if paddy would get back on the irc channel sometime, he is a dev and he at least used to run Arch.
3 Simple Steps to Font Perfection in Linux(My personal Site)
Free Stuff
Offline
this might be a little offtopic for this thread, but can anyone tell what the current state of tuxonice is in zen?
ᶘ ᵒᴥᵒᶅ
Offline
this might be a little offtopic for this thread, but can anyone tell what the current state of tuxonice is in zen?
yes.
IBM Thinkpad X60 Tablet | Zen-sources | My AUR Builds
Offline
yes.
yes what?
ᶘ ᵒᴥᵒᶅ
Offline