Page 1 of 1
[SOLVED] Cant start Arduino in Mageia 2 beta 2

Posted:
Apr 15th, '12, 07:29
by janpihlgren
First:I am very happy to se that Arduino and corresponding libs are included in Mageia 2.
Second:When I installed the packages and tried to start Arduino IDE I'm comming to a window where I have to choose a folder where to hold sketches.
When I do that The window disappear and nothing more happens.
I have filed a buggreport, 5411 in bugzilla.
I'm really looking forward to be able to work with Arduino and hope that this problem will be easy to solv.
Re: Cant start Arduino in Mageia 2 beta 2

Posted:
May 16th, '12, 11:16
by anv
A few years ago I fund the same problems trying to use Mandriva official packets.
Then, I created a new rxtx packet named rxtx-nolock, and compiled newer versions of cross-compiler.
Also I found the problem with the groups (the user can't write to serial port) and the compilation of the samples (if you write the samples on a read-only directory, you can't use them). Then I created some scripts and a binary program that changes the group for the running Arduino ide.
It is available at the mageia repository. I added a comment to the bugzilla report for this packet, sugesting to use my packets as base for the Mageia Arduino packet. Meanwhile, you can use the blogdrake repo or make your own binaries (for 32 or 64 bits) from the sources:
ftp://ftp.blogdrake.net/mageia/mageia1/ ... a1.src.rpmftp://ftp.blogdrake.net/mageia/mageia1/ ... .1.src.rpmftp://ftp.blogdrake.net/mageia/mageia1/ ... .1.src.rpmftp://ftp.blogdrake.net/mageia/mageia1/ ... .1.src.rpmftp://ftp.blogdrake.net/mageia/mageia1/ ... .1.src.rpmftp://ftp.blogdrake.net/mageia/mageia1/ ... a1.src.rpmftp://ftp.blogdrake.net/mageia/mageia1/ ... a1.src.rpmNOTE: you MUST use the following packet for rxtx because it has a patch for
making it work with the new Arduino UNO hardware. Older versions will fail to
detect the ttyACM port.
http://217.11.101.18/anv/rxtx-nolock-2. ... .1.src.rpm
Re: Cant start Arduino in Mageia 2

Posted:
May 28th, '12, 06:56
by janpihlgren
Now I test this in Mageia 2.
Downloaded file rxtx 2.1.7 from
http://rxtx.qbang.org/wiki/index.php/DownloadedUnpacked the file with Ark
copied file librxtxSerial.so to /usr/lib (no rxtx package before)
made me a member of the uucp-group
It works!
This is also written in bug 5411
Re: Cant start Arduino in Mageia 2 beta 2

Posted:
May 28th, '12, 13:57
by doktor5000
Re: Cant start Arduino in Mageia 2 beta 2

Posted:
May 28th, '12, 14:16
by janpihlgren
Not solved, just a workaround!
Re: Cant start Arduino in Mageia 2 beta 2

Posted:
May 28th, '12, 14:34
by anv
The problem is the mageia packet rxtx does not contain the library. You should use librxtx. But it is an old version that has problems with Arduino.
The packet rxtx-nolock solves this problems and others (i.e. non root programs can't lock serial ports, and serial port locking is not needed nowdays, then locking should be disabled).
Re: Cant start Arduino in Mageia 2 beta 2

Posted:
May 28th, '12, 14:40
by doktor5000
But the initial problem is solved, a solution/workaround is available and the real solution and the discussion thereof will be done in the bug report.
So please mark this thread accordingly for other users to easily see that there's a solution available.
Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Posted:
May 28th, '12, 17:27
by anv
Yes, the solution is not to use the failes packet but download and compile it yourself. With this critiria all bugs are or solved or can't be solved at all.
Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Posted:
May 28th, '12, 21:33
by doktor5000
Well, the problem report in the forum and the workaround are separate from the bug report and the proper solution of the root cause of the problem, so i don't really get your comment.
Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Posted:
Jul 7th, '12, 06:02
by waferhead
Soooo... Where can we find this magic package "rxtx-nolock"?
I'm having severe serial issues with current kernels (not with an AVR, but similar) and if there's a better rxtx lib I think we'd all be interested!
The only file I've found so far that is still a valid link is
http://www.mmnt.net/db/0/2/ftp.blogdrak ... free/i586/ filename rxtx-nolock-2.2-0.1.pre2bdk2010.1-bdk.mdv2011.0.i586.rpm but that's just the binary. (direct link was blcoked for some reason)
Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Posted:
Jul 8th, '12, 11:04
by anv
The easier way is adding the Blogdrake repository. It includes all the needed packages and will automatically resolve the dependences:
Open a terminal, type "su" to become root, and copy/paste the following lines:
- Code: Select all
urpmi.addmedia --wget --update --nopubkey BDK-Free-i586 ftp://ftp.blogdrake.net/mageia/mageia2/free/i586
urpmi.addmedia --wget --update --nopubkey BDK-Free-noarch ftp://ftp.blogdrake.net/mageia/mageia2/free/noarch
urpmi.addmedia --wget --update --nopubkey BDK-NonFree-i586 ftp://ftp.blogdrake.net/mageia/mageia2/non-free/i586
Then you can install the arduino packet. The last version available is 1.0.1 but te 0.22 is available in case of you have some software with problems with 1.0 versions.
Also, you can install only the rxtx-nolock packet. It is the lastest version of rxtx compiled with --disable-lock to avoid writing to /var/lock (which requires special permissions that usually java programs does not have because you cant setuid/setgid a java program)
Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Posted:
Dec 30th, '12, 06:00
by waferhead
The easiest solution would be for the rxtx-nolock package to be the default in the std repos, as it is newer and works far better.
(it isn't just arduino that needs it)
Off to check for an existing bug report...
Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Posted:
Jan 3rd, '13, 21:02
by stevehendo34
I added the 3 blogdrake.net lines
went to root
urpmi rxtx-nolock
urpmi arduino
Afrer I enter the directory to save the schetches the screen still goes blank
What am I forgetting to do.
Not Arduino is not hooked up.
Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Posted:
Jan 3rd, '13, 22:13
by waferhead
stevehendo34 wrote:I added the 3 blogdrake.net lines
went to root
urpmi rxtx-nolock
urpmi arduino
Afrer I enter the directory to save the schetches the screen still goes blank
What am I forgetting to do.
Not Arduino is not hooked up.
You MAY need to symlink /usr/lib(or lib64)/rxtx-nolock/librxtxLibrary.so somewhere else so it's the default.
(Don't have an arduino, I am running Megasquirt so it gets linked into TunerStudios lib/ dir replacing the supplied version, I would assume it replaces the std librxtxLibrary.so in the system, but you might want to verify that)
Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Posted:
Jan 3rd, '13, 22:44
by stevehendo34
Here is whats in /usr/lib64/rxtx-nolock no /librxtxLibrary.so
- Code: Select all
bash-4.2$ ls -l
total 148
-rwxr-xr-x 1 root root 20944 Nov 8 11:22 librxtxI2C-2.2pre1.so
lrwxrwxrwx 1 root root 21 Jan 3 12:51 librxtxI2C.so -> librxtxI2C-2.2pre1.so
-rwxr-xr-x 1 root root 12920 Nov 8 11:22 librxtxParallel-2.2pre1.so
lrwxrwxrwx 1 root root 26 Jan 3 12:51 librxtxParallel.so -> librxtxParallel-2.2pre1.so
-rwxr-xr-x 1 root root 21144 Nov 8 11:22 librxtxRaw-2.2pre1.so
lrwxrwxrwx 1 root root 21 Jan 3 12:51 librxtxRaw.so -> librxtxRaw-2.2pre1.so
-rwxr-xr-x 1 root root 21440 Nov 8 11:22 librxtxRS485-2.2pre1.so
lrwxrwxrwx 1 root root 23 Jan 3 12:51 librxtxRS485.so -> librxtxRS485-2.2pre1.so
-rwxr-xr-x 1 root root 57864 Nov 8 11:22 librxtxSerial-2.2pre1.so
lrwxrwxrwx 1 root root 24 Jan 3 12:51 librxtxSerial.so -> librxtxSerial-2.2pre1.so
rxtx is not installed rxtx-nolock nd lib64rxtx2.2 are.
Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Posted:
Jan 4th, '13, 00:06
by waferhead
If you look on the bottom line, librxtxserialLibrary.so exists as a symlink.
You need to make sure the application can find/use it, as it may expect the library from the std pkg to be in a certain location.
Not having an arduino I can offer no further help, only with using rxtx-nolock.