[SOLVED] Cant start Arduino in Mageia 2 beta 2

This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : https://bugs.mageia.org = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....

[SOLVED] Cant start Arduino in Mageia 2 beta 2

Postby janpihlgren » Apr 15th, '12, 07:29

First:
I am very happy to se that Arduino and corresponding libs are included in Mageia 2. :D

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.
Last edited by janpihlgren on May 28th, '12, 14:43, edited 1 time in total.
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: Cant start Arduino in Mageia 2 beta 2

Postby anv » May 16th, '12, 11:16

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.rpm
ftp://ftp.blogdrake.net/mageia/mageia1/ ... .1.src.rpm
ftp://ftp.blogdrake.net/mageia/mageia1/ ... .1.src.rpm
ftp://ftp.blogdrake.net/mageia/mageia1/ ... .1.src.rpm
ftp://ftp.blogdrake.net/mageia/mageia1/ ... .1.src.rpm
ftp://ftp.blogdrake.net/mageia/mageia1/ ... a1.src.rpm
ftp://ftp.blogdrake.net/mageia/mageia1/ ... a1.src.rpm

NOTE: 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
anv
 
Posts: 5
Joined: May 16th, '12, 11:11

Re: Cant start Arduino in Mageia 2

Postby janpihlgren » May 28th, '12, 06:56

Now I test this in Mageia 2.

Downloaded file rxtx 2.1.7 from http://rxtx.qbang.org/wiki/index.php/Downloaded
Unpacked 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
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: Cant start Arduino in Mageia 2 beta 2

Postby doktor5000 » May 28th, '12, 13:57

Image
;)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cant start Arduino in Mageia 2 beta 2

Postby janpihlgren » May 28th, '12, 14:16

Not solved, just a workaround!
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: Cant start Arduino in Mageia 2 beta 2

Postby anv » May 28th, '12, 14:34

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).
anv
 
Posts: 5
Joined: May 16th, '12, 11:11

Re: Cant start Arduino in Mageia 2 beta 2

Postby doktor5000 » May 28th, '12, 14:40

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Postby anv » May 28th, '12, 17:27

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.
anv
 
Posts: 5
Joined: May 16th, '12, 11:11

Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Postby doktor5000 » May 28th, '12, 21:33

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Postby waferhead » Jul 7th, '12, 06:02

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)
waferhead
 
Posts: 171
Joined: Jun 11th, '11, 06:36

Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Postby anv » Jul 8th, '12, 11:04

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)
anv
 
Posts: 5
Joined: May 16th, '12, 11:11

Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Postby waferhead » Dec 30th, '12, 06:00

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...
waferhead
 
Posts: 171
Joined: Jun 11th, '11, 06:36

Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Postby stevehendo34 » Jan 3rd, '13, 21:02

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.
stevehendo34
 
Posts: 9
Joined: Nov 16th, '12, 04:48

Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Postby waferhead » Jan 3rd, '13, 22:13

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)
waferhead
 
Posts: 171
Joined: Jun 11th, '11, 06:36

Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Postby stevehendo34 » Jan 3rd, '13, 22:44

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.
Last edited by isadora on Jan 3rd, '13, 22:50, edited 1 time in total.
Reason: For readability command-output placed between code-tags. ;)
stevehendo34
 
Posts: 9
Joined: Nov 16th, '12, 04:48

Re: [SOLVED] Cant start Arduino in Mageia 2 beta 2

Postby waferhead » Jan 4th, '13, 00:06

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.
waferhead
 
Posts: 171
Joined: Jun 11th, '11, 06:36


Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest

cron