Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Troubleshooting / Linux PowerPC on: March 03, 2006, 01:26:38 am
Hello world, I use a Debian GNU/Linux 3.1 on my TiBook G4 AND my led are blinking!

First of all tnx at Massimo and all Arduino's people!

If you are a enthusiastic linux powerpc owner and you want open your mind you need read how much follows...

step 1: RXTX are build for X86 architecture (little endian) so it don't works!


  • get librxtx source and recompile it!
    (http://www.rxtx.org/) or (apt-get source librxtx)

  • remove in 'configure'  all '-source 1.3' (I use j2sdk 1.3)

  • remove in 'src/Zystem.java' (I don't know: I'm not a Java Man. I drink orzo coffe! )

    else if (mode == J2SE_LOG_MODE)
                   {
                           java.util.logging.Logger.getLogger("gnu.io").fine (s);
                           return (true);
                   }


  • remove in 'src/RawImp.c' (it's a sola: it make a sys/io.h file not found!)

    #ifndef __APPLE__  /* dima */
    #include <sys/io.h>
    #endif /* dima */
    (see also http://lists.debian.org/debian-glibc/2003/03/msg00457.html)

  • compile'n'install! (./comfigure && make install) or (debian/rules binary && dpkg -i ../librxtx-java_2.1.7-1_powerpc.deb)

  • rename old RXTXcomm.jar file in 'trunk/build/shared/lib' in
    RXTXcomm.jar-little-endian

  • copy new BIG Endian RXTXcomm.jar (on debian /usr/share/java/RXTXcomm.jar) in to 'trunk/build/shared/lib'

  • rename 'trunk/build/linux/dist/lib' in 'trunk/build/linux/dist/lib-little-endian'

  • create a new 'trunk/build/linux/dist/lib'

  • copy all new BIG Endian librxtx (on Debian 'cp /usr/lib/librxtx* trunk/build/linux/dist/lib')


step 2:  ./make.sh (!!!)  smiley-wink


If you have only jre 1.3 comment in 'trunk/app/syntax/JEditTextArea.java':

   // no more need for reflection, pde requires use of java 1.4
   /*
   if (System.getProperty("java.version").startsWith("1.4")) {
   try {
       Class kWheelHandler =
         Class.forName("processing.app.syntax.WheelHandler");
       java.lang.reflect.Constructor konstructor =
         kWheelHandler.getConstructor(new Class[] { getClass() });
       konstructor.newInstance(new Object[] { this });
     } catch (Exception e) {
       System.err.println(e);
     }
   }
   //new WheelHandler(this);
   addMouseWheelListener(new MouseWheelListener() {
       public void mouseWheelMoved(MouseWheelEvent e) {
         if (!scrollBarsInitialized) return;
         int amt = e.getWheelRotation();
         vertical.setValue(vertical.getValue() + amt * 3);
       }
     });
   */

That it's all!

ps: Sorry for my terrifull english!
2  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino on Linux on: February 11, 2006, 10:48:10 am
I suggest append to make.sh

Code:


if [ ! -d work/tools/avr/bin/ ]
then
  mkdir -p work/tools/avr/bin/
  cd  work/tools/avr/bin/
  for i in avr-gcc  avr-objcopy  avr-objdump  avr-size  uisp
  do
             ln -s ${DIRAVR}/bin/${i}
  done
fi


My 10 Euro cent!
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino on Linux on: February 02, 2006, 12:13:29 am
On linux 2.6.x:

# modprobe ftdi_sio

# echo ftdi_sio >> /etc/modules
4  Forum 2005-2010 (read only) / Italiano / Re: Dorkbot Milano on: March 01, 2006, 06:20:52 pm
Ciao a tutti, ci sono anch'io!  ;D

Massimo me l'aveva gia' spiegato ma la mia memorie e' piuttosto volatile.

Potreste descriverlo? (torna utile a chi capita da queste parti)


Ciao
Fab
Pages: [1]