Pages: [1]   Go Down
Author Topic: [Solved] Arduino Uno on OpenSuse 11.4, anyone managed ?  (Read 2076 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just got my Arduino kit from Frtzing, looking a bit on how to install, here is what I did : (can of course also be done w/Yast

Based on infos from : http://arduino.cc/playground/Linux/OpenSUSE


#Add repo for Arduini
sudo zypper ar http://download.opensuse.org/repositories/home:/kwk:/arduino/openSUSE_11.4 Arduino

#Add repo for Ar
sudo zypper ar http://download.opensuse.org/repositories/CrossToolchain:/avr/openSUSE_11.4 Crosscompiling

#Install Arduino
sudo zypper in arduino

added myself (user) in groups uucp, lock and dialout

dmesg gave me :
...
[ 5716.933696] usb 1-1.2: new full speed USB device using ehci_hcd and address 6
[ 5717.020604] usb 1-1.2: New USB device found, idVendor=2341, idProduct=0001
[ 5717.020610] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 5717.020615] usb 1-1.2: Product: Arduino Uno
[ 5717.020618] usb 1-1.2: Manufacturer: Arduino (www.arduino.cc)
[ 5717.020621] usb 1-1.2: SerialNumber: 64935343233351118110
[ 5717.021112] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device

lsusb gave me :

Bus 001 Device 007: ID 2341:0001

launched arduino, it didn't see ttyACM0, so based on an info from http://www.arduino.cc/en/Guide/Troubleshooting#toc1

I symlinked
ln -s /dev/ttyACM0 /dev/ttyUSB0

Then Arduino saw it, but I tried to upload a test file and got the message :

Binary sketch size: 1978 bytes (of a 32256 byte maximum)
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

Got an info from http://www.arduino.cc/en/Guide/Troubleshooting#toc23  that I may be using a wrong version of avrdude !?

I used the avrdude from the same repo as Arduino :-/

What should I do ? Anyone got it working on OpenSuse 11.4 ? Any help would be appreciated :-)
« Last Edit: May 31, 2011, 01:20:11 pm by atuor » Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, what version of avrdude is it? 5.10 should be ok.

What device signature do you get?

Code:
Expected signature for ATMEGA328P is 1E 95 0F

Code:
avrdude -p atmega328p -P /dev/ttyUSB0 -v -c arduino 2>&1 | grep "signature"
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!

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I do get this

avrdude: Device signature = 0x1e950f

I tried to reproduce it in a VM since I crashed my test environment  partition, but on a VM I get a 'programmer not responding' although , probably an issue w/ the Virtual USB.

Anyway I installed it on phisical env. and still get the 'Invalid device signature.' :-/
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Please download the arduino software .tgz-file from THIS site and test again. It is only a few MB.

Corrected the .zip vs .tgz issue ;-)
« Last Edit: May 21, 2011, 11:40:39 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!

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ooops sorry, what do you mean by by THIS,site ? there is this one http://arduino.googlecode.com/files/arduino-0022.tgz , or do you mean another ? the zip file is for Windows, if you could confirm the right link would be perfect :-)
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, on arduino.cc there is a download link for linux 32bit ;-)

And yes, it links to google code.
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!

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, Thans for that, I got it from the site :-) but as I can see, this is not enough, it needs other packages to work, it tells me 'cannot find avr-g++' so I suppose bin-utils and some others., but which packages below are necessary ? Don't know what is provided in the download. I got this repois it OK ? I found it on this site (wiki) , or any other better ?  Thanks :-)

http://download.opensuse.org/repositories/CrossToolchain:/avr/openSUSE_11.4

   avr-example                    | package    | 1.2-1.1             | noarch | Crosscompiling   
  | avr-example                    | srcpackage | 1.2-1.1             | noarch | Crosscompiling   
  | avr-libc                       | package    | 1.7.1-1.1           | noarch | Crosscompiling   
  | avr-libc                       | srcpackage | 1.7.1-1.1           | noarch | Crosscompiling   
  | avrdude                        | package    | 5.10-42.1           | i586   | Crosscompiling   
  | avrdude                        | package    | 5.10-2.3            | i586   | openSUSE-11.4-Oss
  | avrdude                        | srcpackage | 5.10-42.1           | noarch | Crosscompiling   
  | avrdude-debuginfo              | package    | 5.10-42.1           | i586   | Crosscompiling   
  | avrdude-debugsource            | package    | 5.10-42.1           | i586   | Crosscompiling   
  | cross-avr-binutils             | package    | 2.19.1-32.1         | i586   | Crosscompiling   
  | cross-avr-binutils             | srcpackage | 2.19.1-32.1         | noarch | Crosscompiling   
  | cross-avr-binutils-debuginfo   | package    | 2.19.1-32.1         | i586   | Crosscompiling   
  | cross-avr-binutils-debugsource | package    | 2.19.1-32.1         | i586   | Crosscompiling   
  | cross-avr-gcc                  | package    | 4.3.3_20100125-27.1 | i586   | Crosscompiling   
  | cross-avr-gcc                  | srcpackage | 4.3.3_20100125-27.1 | noarch | Crosscompiling   
  | cross-avr-gcc-debuginfo        | package    | 4.3.3_20100125-27.1 | i586   | Crosscompiling   
  | cross-avr-gcc-debugsource      | package    | 4.3.3_20100125-27.1 | i586   | Crosscompiling   
  | cross-avr-insight              | package    | 6.8.1-34.1          | i586   | Crosscompiling   
  | cross-avr-insight              | srcpackage | 6.8.1-34.1          | noarch | Crosscompiling   
  | cross-avr-insight-debuginfo    | package    | 6.8.1-34.1          | i586   | Crosscompiling   
  | cross-avr-insight-debugsource  | package    | 6.8.1-34.1          | i586   | Crosscompiling   
  | cross-avr-insight-lang         | package    | 6.8.1-34.1          | noarch | Crosscompiling   
  | simulavr                       | package    | 0.1.2.6-4.3         | i586   | Crosscompiling   
  | simulavr                       | srcpackage | 0.1.2.6-4.3         | noarch | Crosscompiling   
  | simulavr-debuginfo             | package    | 0.1.2.6-4.3         | i586   | Crosscompiling   
  | simulavr-debugsource           | package    | 0.1.2.6-4.3         | i586   | Crosscompiling   
  | uisp             | package    | 20050207suse-151.1 | i586   | Crosscompiling   
  | uisp             | package    | 20050207suse-147.1 | i586   | openSUSE-11.4-Oss
  | uisp             | srcpackage | 20050207suse-151.1 | noarch | Crosscompiling   
  | uisp-debuginfo   | package    | 20050207suse-151.1 | i586   | Crosscompiling   
  | uisp-debugsource | package    | 20050207suse-151.1 | i586   | Crosscompiling


Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The minimum you need is:

avr-libc
cross-avr-gcc
cross-avr-binutils
avrdude
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!

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Great, seems to work :-) at least it said Done uploading.

I'll do some tests and make sure it works, then do a script &/or process with exact sequential steps to install it on OpenSuse 11.4 and post it here and/or a blog ;-)

I'll also try it on a Virtual Box, see if it works too.

Again many thanks for your help 'madworm' ;-)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just tried that same procedur with a Virtual Box image of OpenSuse 11.4, still need to find out why it says the board is not responding when trying to upload
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Tested it now and it works.

So basically, one could make a script or copy/paste the following commands


# Go to Home directory
cd

#Download the Linux package
wget http://arduino.googlecode.com/files/arduino-0022.tgz

#Extract
tar -zxvf arduino-0022.tgz

# Add Repo for crosscompiler
sudo zypper ar http://download.opensuse.org/repositories/CrossToolchain:/avr/openSUSE_11.4/CrossToolchain:avr.repo

#Install (confirm repo import and accept installation when asked)
sudo zypper in avr-libc cross-avr-gcc cross-avr-binutils avrdude

# Add to Groups lock and dialout
sudo /usr/sbin/usermod -A lock `whoami`
sudo /usr/sbin/usermod -A dialout `whoami`

Logout and login again, that's it, it worked fine for me  smiley
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Basic computer literacy is such a nice thing.

Happy coding.
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!

Pages: [1]   Go Up
Jump to: