You are not logged in.

#1 2005-06-21 20:44:03

Duke
Member
From: Montreal, Canada
Registered: 2004-06-22
Posts: 41

2.6.12 PKGBUILD?

Well, I wanted to try the 2.6.12 kernel, but I can't find the PKGBUILD anywhere.  I tried checking out the testing repository with the steps in the wiki, but this only leaves me with "base" and "extra" in /var/abs/testing and neither of those directories have anything kernel related.

I checked out all of unstable as well with abs, and it's not there either.

Offline

#2 2005-06-21 20:46:43

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: 2.6.12 PKGBUILD?

You should be able to use an old pkgbuild from abs and just change the kernel-version ..atleast I believe so...


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#3 2005-06-21 21:04:31

Duke
Member
From: Montreal, Canada
Registered: 2004-06-22
Posts: 41

Re: 2.6.12 PKGBUILD?

Well, I wanted to build a custom kernel (especially since there is no kernel26-scsi in testing and I boot off a scsi drive) but I wanted to see the patches used in the arch PKGBUILD, since I use the nvidia drivers and acpi would be nice (these patches were applied to the 2.6.11 kernels) and I don't know if they're the same as the older kernels patches.

Offline

#4 2005-06-21 21:36:57

Mith
Member
From: out there
Registered: 2004-10-05
Posts: 163

Re: 2.6.12 PKGBUILD?

Duke,
just do as Cybertron already said. Take the pkgbuild and config file of the standard kernel and just go from there. the pkgbuild really is the smallest part, the config is where all the kernel settings are based on.. just mess around with some settings until you find what you're looking for..
here's a pkgbuild I used for a 2.6.12 kernel with morph 1 patch
http://www.metawire.org/~mith/PKGBUILD
and that's the config for it
http://www.metawire.org/~mith/config
and the morph patch you can find at
http://morph-sources.homelinux.net/


ArchLinux (x86_64) w/ kdemod

Offline

#5 2005-06-21 21:45:23

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 2.6.12 PKGBUILD?

I assume you know about the amazing custom kernel PKGBUILD dibblethewrecker has posted to the wiki. One thing you may not know about is how to get the original source kernel PKGBUILD (with list of what patches are applied and such). This is available by looking up the kernel in CVS on the Arch front page (search for kernel26, then view the CVS entry). Or you can run the 'abs' command as root and find the PKGBUILD in /var/abs/kernels/kernel26/

HTH,
Dusty

Offline

#6 2005-06-21 21:45:47

Duke
Member
From: Montreal, Canada
Registered: 2004-06-22
Posts: 41

Re: 2.6.12 PKGBUILD?

I wasn't sure if the patches used for the old kernels would work for the new one, thanks though.  I'll go give it a shot now.

Offline

#7 2005-06-21 21:46:57

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 2.6.12 PKGBUILD?

ooooooh... No idea there. Its possible the patches have been included into the kernel sources, or they may still be needed... you'd have to research google to figure out for sure.

Dusty

Offline

#8 2005-06-21 21:54:34

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: 2.6.12 PKGBUILD?

another possibility is to use dribbles very good tutorial on kernel-pkgbuilding...it is really nice guide big_smile (in the wiki)

or use mine here (with cko-patches workes perfect with nvidia big_smile) the only thing needed is a config big_smile
EDIT: Saw that u wanted the kernel-2.6.12...well, commented out the patch, and changed the name...

# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org> #Maintainer: CyberTron
pkgname=kernel2612
pkgver=2.6.12
pkgrel=1
pkgdesc="The Linux Kernel 2.6.x.y and modules (IDE support)"
url="http://www.kernel.org"
depends=('module-init-tools')
install=kernel26.install

##### add any patch sources to this section
source=(config ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2)
#http://kem.p.lodz.pl/~peter/cko/rel/patch-2.6.11-cko5.bz2 )

# Function to grab var from src
getvar() {
  old=$(cat Makefile | grep "^$1")
  echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
  return 0
}

build() {
  cd $startdir/src/linux-$pkgver

  ##### Uncomment and apply any patches here
#  patch -Np1 -i ../patch-2.6.11-cko5 || return 1

  # get rid of the 'i' in i686
  carch=`echo $CARCH | sed 's|i||'`
  cat ../config | sed "s|#CARCH#|$carch|g" >./.config

  ##### Load config - uncomment your preferred config method
  #yes "" | make config
  #make oldconfig || return 1
  make menuconfig
  #make xconfig
  #make gconfig

  ##### NO USER CHANGES BELOW HERE #####

  # save the current pkgname
  old_pkgname=$pkgname

  # set pkgname for build purposes - DO NOT alter!
  pkgname=kernel26

  # save the updated config to build with today's date
  cp ./.config $startdir/config-$(date +%b%d-%Hh)

  # get EXTRAVERSION from Makefile to create a unique pkgname and /usr/src directory
  _kernextra=$(getvar "EXTRAVERSION")
  # grab the 2.6.x.y version suffix from pkgver
  _y="`echo $pkgver | cut --delim "." --fields 4`"
  # remove .y version suffix from _kernextra
  _kernextra="`echo $_kernextra | sed "s|.$_y||g"`"

  # Read the full kernel version info from new config to use in pathnames and pkgname
  . ./.config

  # Kernel custom - to create a unique pkgname (see below)
  _kerncust="${_kernextra}${CONFIG_LOCALVERSION}"
  # Kernel release - will be the same as Makefile
  _kernrel="${pkgver}${_kerncust}"
  # Get the pkgver suffix for unique pkgname and /boot file suffices
  _pkgversuf="`echo $pkgver | sed "s|2.6.||g" | sed "s|.||g"`"
  # Set /boot file suffices from kernel release and pkgver suffix
  _kernboot="${_pkgversuf}${_kerncust}"

  # Set a new pkgname from  kernel release and pkgver suffix
  pkgname="${pkgname}${_pkgversuf}${_kerncust}"

  # build!
  echo
  echo -n "Do you want to make clean (default YES)? (YES/NO): "
  read choice
  echo
  echo -n "Press any key to start make or CTRL+C to quit"
  read anykey

  if [ "${choice}" = "NO" ] ; then
        make bzImage modules || return 1
  else
        make clean bzImage modules || return 1
  fi

  mkdir -p $startdir/pkg/{lib/modules,boot}
  make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
  cp System.map $startdir/pkg/boot/System.map26${_kernboot}
  cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26${_kernboot}
  install -D -m644 Makefile 
    $startdir/pkg/usr/src/linux-${_kernrel}/Makefile
  install -D -m644 .config 
    $startdir/pkg/usr/src/linux-${_kernrel}/.config
  install -D -m644 .config $startdir/pkg/boot/kconfig26${_kernboot}
  mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/include
  mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/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-${_kernrel}/include/
  done
  # copy files necessary for later builds, like nvidia and vmware
  cp -a scripts $startdir/pkg/usr/src/linux-${_kernrel}
  mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/.tmp_versions
  cp arch/i386/Makefile $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/
  cp arch/i386/kernel/asm-offsets.s 
    $startdir/pkg/usr/src/linux-${_kernrel}/arch/i386/kernel/
  # copy in Kconfig files
  for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-${_kernrel}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-${_kernrel}/$i
  done
  cd $startdir/pkg/usr/src/linux-${_kernrel}/include && ln -s asm-i386 asm
  chown -R root.root $startdir/pkg/usr/src/linux-${_kernrel}
  cd $startdir/pkg/lib/modules/${_kernrel} && 
    (rm -f source build; ln -sf /usr/src/linux-${_kernrel} build)

  # Correct the pkgname in our PKGBUILD - this allows correct gensync operation
  # NOTE: pkgname variable must be declared with first 10 lines of PKGBUILD!
  cd $startdir
  sed -i "1,11 s|pkgname=$old_pkgname|pkgname=$pkgname|" ./PKGBUILD
}
# vim:syntax=sh

http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#9 2005-06-21 21:58:44

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 2.6.12 PKGBUILD?

CyberTron wrote:

another possibility is to use dribbles

Dribble? I love it!  8)

Dusty

Offline

#10 2005-06-21 22:03:02

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

Re: 2.6.12 PKGBUILD?

I, on the other hand, do not lol

Offline

#11 2005-06-21 22:05:25

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: 2.6.12 PKGBUILD?

sorry big_smile my mistake..*but your nick is soooo long *

dibble it is big_smile


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#12 2005-06-21 22:45:51

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: 2.6.12 PKGBUILD?

btw, the 2.6.12 pkgbuild is out now...(it is a mm version)


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#13 2005-06-21 23:49:50

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: 2.6.12 PKGBUILD?

CyberTron wrote:

....*but your nick is soooo long *

hehe....

I always think of a battleship or aircraft carrier whenever I look down at his name on the bottom of the page....

Offline

#14 2005-06-21 23:54:03

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 2.6.12 PKGBUILD?

I think of those beefy tattooed guys who buy(!?) wrecked cars and part them out.

Offline

#15 2005-06-22 10:12:37

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

Re: 2.6.12 PKGBUILD?

dtw is good for short - funny you should say that dusty...

Offline

#16 2005-06-22 10:31:00

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: 2.6.12 PKGBUILD?

Have you a problem with dibble? That's how I've addressed you previously........

Offline

#17 2005-06-22 10:47:12

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

Re: 2.6.12 PKGBUILD?

nah! course not smile

Offline

Board footer

Powered by FluxBB