0
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« on: July 29, 2009, 03:57:18 am » |
I've got a couple of troubles. The first one is an error message "check_lock_status: No permission to create lock file. please see: How can I use Lock Files with rxtx? in INSTALL"
The other is the Arduino software cannot find header files in my system. I use ALTLinux distro. What should I do to fix these problems?
|
|
|
|
|
Logged
|
|
|
|
|
"The old Europe"
Offline
Edison Member
Karma: 0
Posts: 2003
Bootloaders suck!
|
 |
« Reply #1 on: July 29, 2009, 09:11:14 am » |
You need to make sure your user has RW permissions for the serial ports and the directory /var/lock.
On openSUSE this directory belongs to the UUCP group, but this may be different on your system.
drwxrwxr-t 6 root uucp 4096 2009-07-27 19:04 /var/lock/
Just add your user to the group that owns /var/lock and it should work. Remember to restart X to make the changes effective.
You must install the avr-gcc cross compiler + tools. I installed these packages:
avrdude cross-avr-gcc avr-libc cross-avr-binutils
avr-gcc must be reasonably up-to-date to work with ATMega328 chips. I think it should be > 4.3.1 to be on the safe side. There is some info in the playground.
|
|
|
|
« Last Edit: July 29, 2009, 09:14:35 am by madworm »
|
Logged
|
• Upload doesn't work? Do a loop-back test. • There's absolutely NO excuse for not having an ISP! • Your AVR needs a brain surgery? Use the online FUSE calculator. • My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets... • Microsoft is not the answer. It is the question, and the answer is NO!
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« Reply #2 on: July 29, 2009, 09:36:44 am » |
I have installed packages: $ rpm -qa|grep avr avrdude-docs-5.6-alt1 avr-gcc-4.2.2-alt1 avr-libc-doc-1.6.1-alt1 avrdude-5.6-alt1 avr-binutils-2.18.50.0.3-alt2 avr-libc-1.6.4-alt1 avr-gcc-c++-4.2.2-alt1
But they say that drwxrwxr-t root uucp /var/lock/ is contrary to the security policies of the distribution. It's better to put lock files in /var/lock/uucp/ or /var/lock/serial/
|
|
|
|
|
Logged
|
|
|
|
|
"The old Europe"
Offline
Edison Member
Karma: 0
Posts: 2003
Bootloaders suck!
|
 |
« Reply #3 on: July 29, 2009, 10:00:00 am » |
Still, the RW permissions must be there. So do You have RW permissions to /var/lock/serial ?
Well, I don't know if the lock file location is hard coded into this java lib. You can try replacing the rxtx library supplied with arduino with a package of your distribution. Just delete it and add a symlink to the new one.
|
|
|
|
« Last Edit: July 29, 2009, 10:03:47 am by madworm »
|
Logged
|
• Upload doesn't work? Do a loop-back test. • There's absolutely NO excuse for not having an ISP! • Your AVR needs a brain surgery? Use the online FUSE calculator. • My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets... • Microsoft is not the answer. It is the question, and the answer is NO!
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« Reply #4 on: July 29, 2009, 10:27:25 am » |
drwxrwx--- 2 root uucp 4096 Feb 25 21:01 serial I am in the uucp group. But drwxr-xr-x 10 root root 4096 Jul 21 10:11 lock
There is not an rxtx library in my distribution. Where can I get the sources to try to patch it and compile by myself?
|
|
|
|
|
Logged
|
|
|
|
|
"The old Europe"
Offline
Edison Member
Karma: 0
Posts: 2003
Bootloaders suck!
|
 |
« Reply #5 on: July 29, 2009, 10:50:42 am » |
Try this: http://rxtx.qbang.org/wiki/index.php/Main_PageI've never compiled it myself, maybe it works for you.
|
|
|
|
« Last Edit: July 29, 2009, 10:52:43 am by madworm »
|
Logged
|
• Upload doesn't work? Do a loop-back test. • There's absolutely NO excuse for not having an ISP! • Your AVR needs a brain surgery? Use the online FUSE calculator. • My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets... • Microsoft is not the answer. It is the question, and the answer is NO!
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« Reply #6 on: July 29, 2009, 11:01:19 am » |
Thanks a lot, I'll try to build it right now.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« Reply #7 on: July 30, 2009, 01:39:01 am » |
I've compiled rxtx myself, but starting arduino produces the following: $ ./arduino java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String; thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError: Could not initialize class gnu.io.RXTXCommDriver thrown while loading gnu.io.RXTXCommDriver
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #8 on: September 06, 2009, 04:24:52 am » |
This is the usual type of rubbish we linux users regularly have to put up with .I have exactly the same problem .
Becoming Root and adding my user to the uucp group fixed it thank you madworm.
I installed all the libraries on my Mandriva system and buggered if it didn't refuse to compile because it did not have avr-g++ . Ive spent days downloading and trying to get it to run and had to eventually give up and install Windows again just to be able to get my board up and running
Windows have got it won while each of these distributions insists on going its own way . The hardware manufacturers wont touch it and so we are always behind .
Just give up and concentrate on getting into Windows and stopping it writing home to Mother I reckon now.
|
|
|
|
« Last Edit: September 06, 2009, 04:41:50 am by tytower »
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« Reply #9 on: September 06, 2009, 10:06:35 am » |
I've try to run it with another distribution - Ubuntu. Successfully, so I don't need to install M$ Wendoze.
|
|
|
|
|
Logged
|
|
|
|
|
|