Dear Niklaus,

in message <[EMAIL PROTECTED]> you wrote:
> 
> Thanks your for spotting my errors. I should have rechecked this patch before 
> submitting it, as it was based on a outdated script. Please review the 
> attached patch again which is based on a script which actually ran and 
> produced a running kernel.
> 
> I would also thanks you for providing the ELDK. It was really a lot easier
> to setup the ELDK once I switched from my PPC PowerBook to a MacMini. I can 
> really recommend it.

Thanks. I'm glad you like it.

> The only addition to the ELDK I made to run xeno-test was to copy my 
> Debian /usr/bin/which to the rootfs.

alias which='type -p'

>  -----------------------------------------
>  
>  A typical cross-compilation setup, in order to build Xenomai for a
> -PowerPC-405-based system:
> +PowerPC-405-based system. Here we use an ELDK cross-compiler and a
> +2.6.14 kernel.
>  
> -$ $xenomai_root/scripts/prepare-kernel.sh --arch=powerpc \
> -  
> --adeos=$xenomai_root/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.14-ppc-X.Y-ZZ.patch
>  \
> +$ $xenomai_root/scripts/prepare-kernel.sh --arch=ppc \
> +  
> --adeos=$xenomai_root/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.14-ppc-1.5-*.patch
>  \
>    --linux=$linux_tree
>  $ cd $linux_tree
> -$ mkdir ../build-powerpc-405-2.6.14
> -$ make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- 
> O=../build-powerpc-405-2.6.14 xconfig/gconfig/menuconfig 
> +$ build_root /path/to/eldk

"/path/to/eldk" might be misleading - at least  it  needs  an  expla-
nation;  I  would interpret this as "/opt/eldk", which is the default
installation directory of the ELDK, while I guess you  actually  mean
"/opt/eldk/ppc_4xx" ?

> +$ mkdir $build_root
> +$ make ARCH=ppc CROSS_COMPILE=ppc_4xx- O=$build_root 
> xconfig/gconfig/menuconfig
>  # select the kernel and Xenomai options
> -$ make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- 
> O=../build-powerpc-405-2.6.14 bzImage modules 
> -# then install as needed
> -$ mkdir $build_root && cd $build_root
> -$ $xenomai_root/configure --build=i686-linux --host=powerpc-405-linux-gnu
> +$ make ARCH=ppc CROSS_COMPILE=ppc_4xx- O=$build_root bzImage modules \
> +  modules_install

Be careful here. "modules_install" will try to run the native depmod,
which will not work. Recent builds (*) of the ELDK will allow to  add
a "DEPMOD=/opt/eldk/usr/bin/depmod.pl" argument to the make call.

[This extension was added in July, so you will have to wait for  ELDK
version 4.1 unless you build the ELDK from scratch from the sources.]


Thanks, and a Merry Christmas and a Happy New Year!

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
READ THIS BEFORE OPENING PACKAGE: According to Certain Suggested Ver-
sions of the Grand Unified Theory, the Primary Particles Constituting
this Product May Decay to Nothingness Within the  Next  Four  Hundred
Million Years.

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to