building unmodified_drivers

Posted by C.J. Adams-Collier

This is the gist of it:

$ cd /usr/src/
# $ sudo chmod a+rwx .
$ wget ftp://ftp.suse.com/pub/projects/kernel/kotd/SLE11_BRANCH/src/kernel-source-2.6.27.39-0.0.0.25.15a4c6f.src.rpm
$ alien -tg kernel-source-2.6.27.39-0.0.0.25.15a4c6f.src.rpm
$ cd kernel-source-2.6.27.39
$ tar xfj linux-2.6.27.tar.bz2
$ for f in patches.*.tar.bz2; do
tar xfj $f || break;
done
$ for p in $(./guards x86_64 < series.conf); do
patch -d linux-2.6.27 -p1 < $p || break
done
$ cd linux-2.6.27
$ fakeroot make-kpkg debian
$ fakeroot make-kpkg build
$ sudo make install modules_install
$ cd /usr/src
$ hg clone http://xenbits.xen.org/xen-unstable.hg
$ cd xen-unstable.hg/unmodified_drivers/linux-2.6
$ XEN=/usr/src/xen-unstable.hg/xen XL=/usr/src/kernel-source-2.6.27.39/linux-2.6.27 ./mkbuildtree x86_64
$ make -C /usr/src/kernel-source-2.6.27.39/linux-2.6.27 M=$PWD modules
$ sudo make -C /usr/src/kernel-source-2.6.27.39/linux-2.6.27 M=$PWD modules_install

Post Title: building unmodified_drivers
Author: C.J. Adams-Collier
Posted: 20th November 2009
Filed As: Free Software, Software, debian, linux, novell, virtualization, xen
Tags:
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Opinions have been expressed on “building unmodified_drivers”. What is your opinion?
  1. On non-Debian hosts, you can replace the following with make all:

    $ fakeroot make-kpkg debian
    $ fakeroot make-kpkg build

  2. Filippo Giunchedi says:

    is the chmod a+rwx /usr/src needed? doesn’t sound like a good idea to me

Leave a Reply




This blog is gravatar enabled. Get yours registered at gravatar.com