You are not logged in.

#1 2004-03-06 06:04:18

yak8998
Member
Registered: 2004-03-01
Posts: 143

using different sources?

Has anyone here done so, or attempted to use different sources to build arch? It currently uses vanilla-sources, correct? I'm wondering if mm, gaming, or one of the other more "cutting-edge" sources would be a possibility?
all you would have to do is tell the installer no kernel, than open a virtual consule and compile your kernel by hand, correct? Will this produce any errors in the install process?

Just a thought, something I'd maybe be interested in playing with.


"Ignorance is bliss, for stupid people."
"open-source is [...] programming Darwinism."
Vaughan-Nichols

Offline

#2 2004-03-06 06:33:15

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: using different sources?

i don't about from install but i do know a few people that have fancy kernels they installed post install


AKA uknowme

I am not your friend

Offline

#3 2004-03-06 14:40:55

wdemoss
Member
From: WV - USA
Registered: 2004-01-18
Posts: 222

Re: using different sources?

I find it best to recompile "fancy" wink kernels after you install the base vanilla kernel. That way you always have a "safe" kernel to boot up into if you have problems with what ever you've fubared on your normal kernel (which i evenlually always do).

later,
wd


Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?

Offline

#4 2004-03-06 16:21:59

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: using different sources?

aye i was going to suggest that.


AKA uknowme

I am not your friend

Offline

#5 2004-03-06 16:57:32

yak8998
Member
Registered: 2004-03-01
Posts: 143

Re: using different sources?

alright, is there no where to get a set of full sources, can I only patch? (im looking at trying mm)


"Ignorance is bliss, for stupid people."
"open-source is [...] programming Darwinism."
Vaughan-Nichols

Offline

#6 2004-03-10 15:08:36

wdemoss
Member
From: WV - USA
Registered: 2004-01-18
Posts: 222

Re: using different sources?

Here is a link for compiling the -mm kernel http://kerneltrap.org/node/view/875

What i did was followed this until it was time to compile. Following are the steps as i remember them

* apply the patch, and configured the kernel for my system.
* create a /var/abs/local/kernel26-mm directory
* copy the .config you just created into that directory as config
* create a PKGBUILD file (will provide below)
* update the checksums in the the PKGBUILD file for their respective sources
* run makepkg
* pacman -A kernel26-mm-2.6.3.1.pkg.tar.gz
* update grub
* after rebooting, you'll need to reinstall any binary drivers you have installed (for me nvidia and ndiswrapper)

Here is the PKGBUILD

pkgname=kernel26-mm
pkgver=2.6.3
pkgrel=1
patchver=3
pkgdesc="The Linux Kernel and modules with low-latency patch by Andrew Morton (IDE support)"
url="http://www.kernel.org"
backup=('boot/kconfig26-mm')
depends=('module-init-tools')
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2             ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/$pkgver/$pkgver-mm$patchver/$pkgver-mm$patchver.bz2 
    config)
md5sums=('6063a7e424355ec52e0cb559fb99034d' 
     '5f380cd5928572108d1352b6a444785c' 
     'd723d59494028d49277f1cb3f352f105')

build() {

    cd $startdir/src/linux-$pkgver
    patch --strip=1 --input $startdir/src/$pkgver-mm$patchver || return 1
    
    cp ../config ./.config
    sed 's/^EXTRAVERSION =$/EXTRAVERSION =-mm$patchver/' Makefile > Makefile.mm$patchver
    make -f Makefile.mm$patchver || return 1
    
    mkdir -p $startdir/pkg/lib/modules
    make -f Makefile.mm$patchver INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1

    mkdir -p $startdir/pkg/boot
    cp System.map $startdir/pkg/boot/System.map26-mm$patchver
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26-mm$patchver
    install -D -m644 .config $startdir/pkg/boot/kconfig26-mm$patchver

    mkdir -p $startdir/pkg/usr/src/linux-$pkgver-mm$patchver
    cp -a * $startdir/pkg/usr/src/linux-$pkgver-mm$patchver/
    install -D -m644 .config $startdir/pkg/usr/src/linux-$pkgver-mm$patchver/.config

    cd $startdir/pkg/usr/src/linux-$pkgver-mm$patchver/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-$pkgver-mm$patchver
    
    cd $startdir/pkg/lib/modules/$pkgver-mm$patchver
    rm -f build; ln -sf /usr/src/linux-$pkgver-mm$patchver build

    cd $startdir/pkg/usr/src
    ln -sf /usr/src/linux-$pkgver-mm$patchver linux
}

this way when a new patch or kernel version comes out you only have to update the PKGBUILD, recompile and upgrade

HTH,
- wd


Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?

Offline

Board footer

Powered by FluxBB