On Fri, 2005-05-06 at 19:13, Jan Kiszka wrote:
> Hello,
> 
> today I switched on the ARM architecture in RTnet's configure and tried 
> to build with some half-baked cross-environment (I have not real ARM 
> hardware around). The test was against RTAI 3.2 (CVS) and kernel 2.6.7. 
> Compilation worked except for the lxrt userspace example. If it may 
> already run - don't know. We are lacking at least some drivers for 
> specific on-board NICs, but "useless" rt_loopback should work. If one of 
> the ARM gurus around have the time, please take a look at the RTnet SVN 
> and report problems back.

I've checked out the trunk (revision 789) and gave it a shot
(linux-2.4.21-rmk1-crus1.4.2 on a EDB9301, current vulcano (with some
minor local modification that I haven't committed yet).

I was not able to pass the configure stage because of troubles with
DESTDIR detection:

[...]
checking for RTAI 24.1.x source tree... no
checking for RTAI 3 installation... /disk/work/armrtai/build/rtai/_xdev
checking for RTAI DESTDIR... configure: error: *** Cannot identify
DESTDIR

I've looked at configure.ac and I have to say I that I don't understand
how this should work:

#
# check if rtai-3 is installed with DESTDIR
# e.g.: 'make DESTDIR=/foo install'
#
    AC_MSG_CHECKING([for RTAI DESTDIR])
    RTNET_RTAI_PREFIX="`${RTAI_CONFIG} --prefix | sed -e s,[/]*$,,`"            
# strip trailing slashes
    if test "${RTNET_RTAI_PREFIX}" \!= "${RTAI_DIR}"; then
        RTNET_RTAI_DESTDIR="`echo ${RTAI_DIR} | sed -e 
s,${RTNET_RTAI_PREFIX}$,,`"
        export DESTDIR="${RTNET_RTAI_DESTDIR}"

        RTNET_RTAI_PREFIX="`${RTAI_CONFIG} --prefix | sed -e s,[/]*$,,`"        
# strip trailing slashes
        if test "${RTNET_RTAI_PREFIX}" = "${RTAI_DIR}"; then
            AC_MSG_RESULT([${DESTDIR}])
        else
            AC_MSG_ERROR([*** Cannot identify DESTDIR])
        fi

Note that RTNET_RTAI_PREFIX is assigned the same value twice
(/usr/realtime in my case) and RTAI_DIR is not changed between the two
tests. So if the first test (i.e. ${RTNET_RTAI_PREFIX}" \!=
"${RTAI_DIR}") is true, the second one will be false (and an error is
generated).

Another thing: maybe my directory layout is not compatible to your
assumptions (the line after the first test hints in that direction):

On the development machine (i386):
        /disk/work/armrtai/src/rtai             RTAI source directory
        /disk/work/armrtai/build/rtai           RTAI build directory
        /disk/work/armrtai/build/rtai/_xdev     RTAI install directory for 
cross-development
                                                (i.e. "make DESTIR=... install" 
in build dir.)
On the target machine (ARM):
        /usr/realtime                           RTAI installation

Mike
-- 
Dr. Michael Neuhauser                phone: +43 1 789 08 49 - 30
Firmix Software GmbH                   fax: +43 1 789 08 49 - 55
Vienna/Austria/Europe                      email: [EMAIL PROTECTED]
Embedded Linux Development and Services    http://www.firmix.at/



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to