On 9/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi Gilles!

Hi Juergen,

please find attached a minimal configuration. Note that a kernel
generated with this configuration will not boot, you have to enable
your root block device (ide controller, scsi controller, or serial ata
controller) as well as the root filesystem (ext3, reiserfs, etc...).
You will be missing a lot of things, but at least xenomai should work.

>
>  I tried to de-feature my kernel configuration but without success so far.
>
>  Maybe the problem arises out of some missing step during setting up the
> system.
>  I would like to write down once how I did it, maybe the problem is
> somewhere therein although the proceeding is, at least in my opinion, pretty
> much straightforward.
>  Maybe it can, once checked and bugfixed, serve as a template as well for
> other users.

The installation procedure is described in README.INSTALL

>
>  Thanks so far
>
>  Juergen
>
>
>
>  # starting at a standard ubuntu 7.04 desktop edition
>  # from www.ubuntu.com
>
>  # logging in as superuser
>
>  # get necessary development packages
>  aptitude update
>  aptitude install build-essential
>  aptitude install kernel-package
>  aptitude install gcc
>  aptitude install libncurses5
>  aptitude install libncurses5-dev
>
>  # download linux 2.6.20.19 from www.kernel.org and put the archive to
> /usr/src
>  # download xenomai 2.3.3 from www.xenomai.org and put the archive to
> /usr/src
>
>  # unpack archives
>  cd /usr/src
>  tar xfv linux-2.6.20.19.tar.gz
>  tar xfv xenomai-2.3.3.tar.bz2
>
>  # prepare sources
>  cd linux-2-6-20.19
>  patch -p1 <
> ../xenomai-2.3.3/ksrc/arch/i386/patches/adeos-ipipe-2.6.20-i386-1.8-06.patch
>  cd /usr/src/xenomai-2.3.3
>  scripts/prepare-kernel.sh --linux=../linux-2.6.20.19 --arch=i386

Patching with the adeos patch is not necessary before running
prepare-kernel: prepare-kernel is doing it itself. Also, at this step,
watch that the patching runs correctly, that there are no rejects.

>
>  # configure kernel (see attached file (See attached file: .config), this
> one is, of course very much hardware dependent)
>  cd /usr/src/linux-2.6.20.19
>  make menuconfig
>
>  # build kernel
>  make-kpkg clean
>  make-kpkg --initrd kernel_image kernel_headers
>
>  # wait a while and get some coffee
>  #install new kernel
>  dpkg -i
> linux-image-2.6.20.19-gncu_2.6.20.19-gncu-10.00.Custom_i386.deb
>  dpkg -i
> linux-headers-2.6.20.19-gncu_2.6.20.19-gncu-10.00.Custom_i386.deb
>

Last time I used make-kpkg to generate a kernel package, it ran make
clean before compiling the kernel, which made the kernel compilation
really slow. So, if you want to try many kernel configurations, you
should compile your kernel with make and install it with make install.
Of course, once you have a configuration that works, you can use
make-kpkg to generate a kernel package.

>  # check if boot menu was updated properly, apply pnpbios.off lapic=1 to the
> kernel line
>  vim /boot/grub/menu.lst
>
>  # build xenomai
>  cd /usr/src/xenomai-2.3.3
>  ./configure
>  make
>  make install
>
>
>
>  # reboot
>
>  # verify that xenomai has started properly by looking at the xenomai
> containing outputs
>  dmesg
>
>  # test xenomai
>  cd /usr/xenomai/bin
>  ./latency

you can also do:
cd /usr/xenomai/testsuite/latency
./run


-- 
                                               Gilles Chanteperdrix

Attachment: config-2.6.20-minimal
Description: Binary data

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to