You are not logged in.

#1 2004-10-31 16:50:24

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

kernel26mm 2.6.10.rc1.mm2 will never go to extra

i finally found some time to play with the actual mm kernel - as a lot of stuff changed and now the rc1.mm2 is more stable than the 2.6.9.mm1, i'm going to include 2.6.10.rc1.mm2 to extra/kernels

the 2.6.10.rc1.mm2 do not work for me - it will not go to extra - details: scroll down

for the people in hurry:

# $Id: PKGBUILD,v 1.6 2004/10/22 14:59:57 damir Exp $
# Maintainer: damir <damir@archlinux.org>

pkgname=kernel26mm
origkernelver=2.6.10
mmver=mm2

rcver=rc1
prekernelver=2.6.9 # the version the rc needs to patch against


if [ -n $rcver ]    # $rcver is not NULL
then
    pkgver=${origkernelver}.${rcver}.${mmver}
    kernelver=${origkernelver}-${rcver}-${mmver}
else                # $rcver is  NULL
    pkgver=${origkernelver}.${mmver}
    kernelver=${origkernelver}-${mmver}
fi

pkgrel=1
pkgdesc="The Linux Kernel and modules (IDE support) [mm Kernel]"
url="http://kerneltrap.org/forum/linux/kernel/2.6/mm"
backup=('boot/kconfig26mm')
depends=('module-init-tools')
install=kernel26.install

if [ -n $rcver ]    # $rcver is not NULL
then
 source=( 
  ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$prekernelver.tar.bz2 
  ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/${origkernelver}-${rcver}/$kernelver/$kernelver.bz2 
  http://kernel.org/pub/linux/kernel/v2.6/testing/patch-${origkernelver}-${rcver}.bz2 
  config 
  logo_linux_clut224.ppm 
  )
else                # $rcver is  NULL
 source=( 
  ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$origkernelver.tar.bz2 
  ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/${origkernelver}/$kernelver/$kernelver.bz2 
  config 
  logo_linux_clut224.ppm 
  )
fi



build() {

  # PATCHING:
  # ---------

  if [ -n $rcver ]    # $rcver is not NULL
  then
        if [ -d $startdir/src/linux-${prekernelver} ] # *
        then
            cd $startdir/src/linux-${prekernelver}
            cat ../patch-${origkernelver}-${rcver} | patch -p1 || return 1
            echo "==> Kernel successfully patched to ${origkernelver}-${rcver}"
            sleep 2

            # unpack and apply mm-patch:
            cat ../${kernelver} | patch -p1 || return 1
            echo "==> Kernel successfully patched to ${kernelver}"
            sleep 2

            # rename to correct $kernelver dir
            mv $startdir/src/linux-${prekernelver} $startdir/src/linux-$kernelver || return 1
        fi
  else  # $rcver is NULL
        if [ -d $startdir/src/linux-${origkernelver} ] # *
        then
            # unpack and apply mm-patch:
            cat ../${kernelver} | patch -p1 || return 1
            echo "==> Kernel successfully patched to ${kernelver}"
            sleep 2

            # rename to correct $kernelver dir
            mv $startdir/src/linux-${origkernelver} $startdir/src/linux-$kernelver || return 1
        fi
  fi

  # * if we run the makepkg more than once and use 'makepkg -e' to save time:


  # BUILDING:
  # ---------

  cd $startdir/src/linux-$kernelver

  # prepare:
  if [ -f ../${kernelver} ]
  then
     rm ../${kernelver} # cleanup the existing patch (needed, if "makepkg -e" for another round)
  fi

  # cleanup of the tree (not essential, as kernel should be clean already, but let's make SURE it is :-)
  make mrproper

  # 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.map26mm

  cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26mm

  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/kconfig26mm

  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)
}

what i know to be broken in 2.6.9.mm1 is the PCMCIA Bridge i82365 (the one i have in my thinkpad :-( ), so i hope this is fixed now in the new one that is compiling now (the corespondent bug is here: http://bugzilla.kernel.org/show_bug.cgi?id=3676 )

EDIT: NOTE: This PKGBUILD is not yet fully tested (e.g. all cases of the if-statements) - handle with care!


EDIT: 2.6.10.rc1.mm2 do not let me use my keyboard (i cannot login when booting this kernel) :evil: ... i dumped it and will try the next one, when it comes out

in the meanwhile i'll have a look at the -ac kernel ... it is the stabilizing of the current_stable


The impossible missions are the only ones which succeed.

Offline

#2 2004-10-31 18:56:31

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: kernel26mm 2.6.10.rc1.mm2 will never go to extra

I'm confused... Too many edits tongue So is it going into extra or not?


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

#3 2004-10-31 19:43:43

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: kernel26mm 2.6.10.rc1.mm2 will never go to extra

punkrockguy318 wrote:

I'm confused... Too many edits tongue So is it going into extra or not?

red=crossed out
blue=new

sorry


no, it is not going to extra (too many issues - no keyboard is the main one)


The impossible missions are the only ones which succeed.

Offline

Board footer

Powered by FluxBB