On 10/01/2005 09:26 PM [EMAIL PROTECTED] wrote:
> 
> 
> Hi ,
> recently i was using linux-2.4.19 stock kernel for ppc and rtai-24.1.12
> i got it compiled and was able to insmod modules even the rtnet modules
> also ,
> but i got stuck with rt_mpc8xx_enet.o module ,
> it was suggested on the mailing list to upgrade to higher version of
> kerne and rtai and also rtnet
> as i face lot many problems and bugs ,
> it was recommended to use linux-2.4.22 or above ,
> i have here the basic question
> i tried using linux-2.4.22 stock kernel and using rtai-24.1.13 stromblis
> verison and  even the other version of rtai ,
> but every time i used topatch i used to always get in function* pend_mm
> rthal undeclared  in sched.c .*
> i think rtai-24.1.13 only supports X86 version not for ppc version ,
> correct me if i am wrong , as lxrt is not supported in powerpc ,
> i am using the appropriate patch for linux-2.4.22  , patch-2.4.22-rthal5g ?
> or i should be using somethng else ?
> when i checked the code sched.c i saw #ifdef CONFIG_X86 in linux-2.4.19
> kernel patched one with #else mmdrop(...)
> where as i dont see it on other higher version of kernel ?
> is it not supported in higher version of kernel ?
> i need to qucikly fix on this versioning its bit confusing for rtai
> if someone has used rtai  for linux-2.4.22 or higher verison of kernel
> for ppc ,please guide me which kernel which rtai to be used ,
> in our company there is no cvs access so i am not able to download cvs
> kernel downlaods ummm......

Note that you need an appropriate version of the Linux kernel tree, RTAI
and RTnet. Furthermore, PowerPC support is not included in the normal
RTAI patches, e.g. the one you mentioned above.

I suggest to use:

- A recent version of the DENX linuxppc_2_4_devel tree (check
  http://www.denx.de for further information), which is a 2.4.25 kernel
  known to work well on MPC 8xx. There are rather recent tarballs at
  ftp://ftp.denx.de/pub/ppc/linux/ e.g.
  linuxppc_2_4_devel-2005-09-15-2320.tar.bz2 in case you don't have
  CVS or GIT access.

- A recent RTAI kernel patch from ftp://ftp.denx.de/pub/RTAI/patches,
  e.g. patch-denx-linuxppc_2_4_devel-2005_06_23_1722 should be OK:

  $ export CROSS_COMPILE=ppc_8xx-
  $ tar xjf linuxppc_2_4_devel-2005-09-15-2320.tar.bz2
  $ cd linuxppc_2_4_devel-2005-09-15-2320
  $ patch -p1 -b -z.ORIG < \
      ../patch-denx-linuxppc_2_4_devel-2005_06_23_1722
  $ make TQM862M_config
  $ make menuconfig
  ...
  [ ] CPM SCC Ethernet
  ...
  $ make dep
  $ make uImage

  Also read ftp://ftp.denx.de/pub/RTAI/README, please.

- RTnet 0.8.3 and head of CVS of the RTAI from the "stromboli" branch.
  There is a daily snapshot of the CVS tree available at
  https://gna.org/cvs/?group=rtai

  $ tar xzf rtai-snapshot.tar.gz
  $ cd rtai/stromboli/
  $ export CROSS_COMPILE=ppc_8xx-
  $ make
  ...
  Enter location of Linux source tree [...]:
  ...
  $ make
  $ cd ../..

  $ tar xjf rtnet-0.8.3.tar.bz2
  $ cd rtnet-0.8.3
  $ export DESTDIR=/opt/eldk/ppc_8xx
  $ ./configure --host=ppc-linux --build=i686-linux \
    --with-rtai=/temp/rtai/devel/rtai/stromboli --prefix=/usr/realtime \
    --enable-scc-enet --enable-fec-enet
  $ make
  $ make install
  $ ls -l $DESTDIR/usr/realtime/modules
  -rw-r--r--  1 wolf badboys 18070 Oct  3 13:37 rtai_rtdm.o
  -rw-r--r--  1 wolf badboys 45453 Oct  3 13:37 rtcfg.o
  -rw-r--r--  1 wolf badboys  3681 Oct  3 13:37 rt_loopback.o
  -rw-r--r--  1 wolf badboys 17342 Oct  3 13:37 rtmac.o
  -rw-r--r--  1 wolf badboys  9665 Oct  3 13:37 rt_mpc8xx_enet.o
  -rw-r--r--  1 wolf badboys  9722 Oct  3 13:37 rt_mpc8xx_fec.o
  -rw-r--r--  1 wolf badboys 75003 Oct  3 13:37 rtnet.o
  -rw-r--r--  1 wolf badboys 23163 Oct  3 13:37 tdma.o

I have tested RTnet on MPC 8xx with this combination recently.

Wolfgang.

> 
> 
> Thanks In Advance
> Neelu
> 
> *  *



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to