Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino on Linux on: August 28, 2006, 03:31:24 pm

So I looked into it and this is the specific error:

Copying dist files...
cp: cannot create regular file `work/lib/.svn/empty-file': Permission denied
cp: cannot create regular file `work/lib/.svn/entries': Permission denied
cp: cannot create regular file `work/lib/.svn/format': Permission denied
cp: cannot create regular file `work/lib/.svn/README.txt': Permission denied

and this is beause the build/linux/dist/lib contains a few read-only files:
-r--r--r-- 1 bbogart bbogart    0 2006-08-27 15:45 empty-file
-r--r--r-- 1 bbogart bbogart 6192 2006-08-27 15:45 entries
-r--r--r-- 1 bbogart bbogart    2 2006-08-27 15:45 format
-r--r--r-- 1 bbogart bbogart  118 2006-08-27 15:45 README.txt

Which seems to be an .svn directory.. does svn creates this itself, or are they checked in? I tried running through again and the errors can be ignored (I did not realize that at the time.) if the compile fails and someone tries to recompile though then they need to override the readonly to delete the work/ directory.

probably best to have all files read-write for the current user.

Thanks for applying the patch to the svn! I'll update the howto accordingly.

How do I debug a java freeze???

Thanks much for your help with us.  None of the core developers have regular access to a Linux box, so we rely on contributions to improve the process.  If you have any other suggestions or fixes, please let me know.  In particular, I'm curious about the need to chmod the Arduino files from svn.  Who owned them when they were checked out?  Did you check them out with a sudo?
2  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino on Linux on: August 26, 2006, 08:24:07 pm
I've documented the process of today at:
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino on Linux on: August 26, 2006, 06:52:41 pm
I've tried using the script higher in this thread, and using the instructions from

but no matter what I do I can't get arduino to find my avr-g++ binary (and I suppose neither the rest of the AVR toolkit)

ok, after searching it looks like these files refer to the tools/blah stuff:,,,

Seems to me there should be a function that has the job of choosing where all the avr and uisp tools are.

Ok, HCS is making some changed to these files and I'll post back here results.

anyone out there working on a debian package for arduino?

4  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino on Linux on: August 26, 2006, 05:20:23 pm
Looks like the processing .class files have hard references to the compiler tools.

On linux it should just run avr-g++ which will be in the PATH when installed from a package.

I don't see how to edit the source to point to my own avr tools... since its encased in a binary .class file and the SVN trunk seems to contain no files used to generate that .class file.. ?

Maybe adding a setting in the "Perferences" for the Avr tool path would be best..?

5  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino on Linux on: August 26, 2006, 04:48:01 pm
I was able to fix the "java.lang" problem by editing the CLASSPATH to find rt.jar

So thats all I can do since the output is meaningless to me. Looks like I can't attach it to this post:

./ gives me:

Exception in thread "main" java.lang.NoClassDefFoundError: processing/app/Base

Ok, looks like for some reason the script creates the work directory is such a way that it is not writible by the regular user?? so I did this:

sudo chown -R bbogart trunk/
sudo chgrp -R bbogart trunk/

looks like the svn script refers to something not in svn:

Extracting examples...
unzip:  cannot find or open ../shared/dist/, ../shared/dist/ or ../shared/dist/

I'm guessing these java erros are due to my old 1.3 version, off to try some different packages...

so I've switched to blackdown 1.4 and It seems to compile! It would be nice for the makefile to print out "success" or something when it works, since I did not realize it with all the errors.

I build with DIRAVR=/usr so that the build could find the avr compiler. Now when I run the environment ./ it says it can't find the compiler but it is in my path:

 which avr-g++

I'll post this and followup on the next steps.

6  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino on Linux on: August 26, 2006, 03:43:33 pm
Hey all,

I hope people are still watching this thread.

#1. I'm trying to get arduino working on debian/etch using only packages available from repos (java from blackdown, as well as rxtx) I had package issues with 1.4 so I'm using 1.3 right now. I'm currently getting stuck with Jikes could not find package "java.lang" in it is not provided by any of the java packges I see.

#2. Due to the "fun" of java I would greatly perfer a non java dependant version of arduino for linux. probably just a few scripts would do it, "arduino_upload" "arduino_download" "arduino_compile" and I guess a serial debugger... I've gone somewhere on this but even things like uuisp are not working quite so well:

uisp -dserial=/dev/ttyUSB0 -dspeed=9600 --download of=~/Projects/Arduino/test.pde -dprog=stk500 -dpart=ATmega8 -v=3

Programmer is not responding.

I saw somewhere on the playground that arduino uses the stk500. I was able to get a little more luck (downloading what I think is the firmware) using:

uisp -dserial=/dev/ttyUSB0 --download of=~/Projects/Arduino/test.pde -dprog=dasa -dpart=ATmega8 -v=3

Reset inactive time (t_reset) 1000 us
AVR Direct Parallel Access failed after 32 retries.
Override signature bytes, device ATmega8 assumed.
Vendor Code: 0x1e
Part Family: 0x93
Part Number: 0x07
Atmel AVR ATmega8 is found.
Downloading: flash

Is there a more simple guide than on what the arduino IDE actually does?

7  Forum 2005-2010 (read only) / Development / using arduino from command line on: September 04, 2006, 03:13:18 pm
What are the commands used by the JAVA IDE to compile & upload to the board?

I'd like to write a few scripts for minimalist systems w/out java.

How to compile the code?

How to upload it to the board?

Maybe a serial debugger?

8  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino USB bus resets on Shuttle PC on: October 29, 2009, 12:39:02 pm
Its certainly not a memory leak, but an actual bus reset. The OS says the Arduino disconnects and then gets reconnected with a different devicename.

The computer is doing a test in windows and the problem does not seem to be an issue. So it appears to be some interaction between Arduino, the Linux driver and the Shuttle chipset (Since XP on the same hardware works, same patch and arduino on different HW works, and all other USB peripherals on the same HW work fine!! (Keyboard/mouse/thumbdrives)) I guess I'll have to get on some kernel dev list... smiley-sad Maybe contact the FTDI devs.

I was just curious if anyone has Arduino working on the SN27p2 running Linux, and if so what kernel/flavour!

Thanks for taking a stab at it.
9  Forum 2005-2010 (read only) / Troubleshooting / Arduino USB bus resets on Shuttle PC on: October 28, 2009, 12:20:24 pm
Hey all,

I'm writing here since I'm completely at a loss at the problem I'm having with USB bus resets and Arduino. I have the first Arduino USB (Atmega8). I'm using Firmata to read analog data into PD.

On my development machine I can run a simple PD patch (just [arduino] and routing the analogue ins) attached to the Arduino with no circuit (just reading the noise off the analog ins) for days without problems.

On my Shuttle SN27p2 (installation machine) with the same OS (lenny) and setup PD crashes after a few hours. Looking at the log its clear that the USB bus gets reset which I assume then freezes PD.

The machine is currently at the computer store and they can't find anything wrong with it. USB keyboards, mice and thumb drives all work fine for weeks without problems. Its just the arduino that causes the bus reset.

1. Is anyone using an sn27p2 with arduino on any OS? How about Linux?

2. Could the old arduino have a bug that would only manifest on this new sn27p2 machine, and not on my older a8v machine??

3. Am I missing something obvious?

This is my first installation using Arduino and I hope there can be a solution.

Any advice appreciated. I'm at my wit's end.

B. Bogart
Pages: [1]