Running AVR Studio on Mandriva 2007 Official

Go To Last Post
16 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I know Mandriva is not supported but I would like to give this a shot.

After I "untarball" the "avr32studio-1.0-linux.gtk.x86" file I am able to simply double click on the "avr32studio" executable file. The problem is that I get this environment variable error message below and I don't have any documents on how to fix it. Any suggestions?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You also need to install the GNU toolchain. It could be that the SUSE RPMs will work nice for you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I downloaded the tool chain and used the software installer in Mandriva 2007. I get the following errors correspondingly.

Any suggestions?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have these files but I'm not too sure what to do with them.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You've got all the right things there, I think what's happening (not ever having used that package manager) is just that it isn't getting the dependencies in the right order. It is complaining that you don't have libavr32ocd installed but that is in your list of things to install. Howzabout you install libavr32ocd and libavr32ocd-devel in one pass then everything else subsequently, see how you go.

Or else you have the source package there too, you can compile your toolchain from scratch. Takes more time but should work without a problem.

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't know what order to install the rest in. It seems they all require a specific dependency. I have read to try "urpmi *rpm". Maybe this will find the correct order while urpmi has the option to find the required dependencies.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I ran urpmi *rpm and I get:

[root@localhost AVR Studio]# cd avr32
avr32_gnu_toolchain_source_1.1.0/     avr32_gnu_toolchain_suse101.zip
avr32_gnu_toolchain_source_1.1.0.zip  avr32studio-1.0-linux.gtk.x86/
avr32_gnu_toolchain_suse101/          avr32studio-1.0-linux.gtk.x86(2).zip
[root@localhost AVR Studio]# cd avr32_gnu_
avr32_gnu_toolchain_source_1.1.0/     avr32_gnu_toolchain_suse101/
avr32_gnu_toolchain_source_1.1.0.zip  avr32_gnu_toolchain_suse101.zip
[root@localhost AVR Studio]# cd avr32_gnu_toolchain_suse101
avr32_gnu_toolchain_suse101/     avr32_gnu_toolchain_suse101.zip
[root@localhost AVR Studio]# cd avr32_gnu_toolchain_suse101
[root@localhost avr32_gnu_toolchain_suse101]# ls
avr32gdbproxy-2.1.0-1.suse101.i586.rpm
avr32headers-1.1.1-1.suse101.noarch.rpm
avr32parts-1.1.0-1.suse101.noarch.rpm
avr32program-2.1.0-1.suse101.i586.rpm
avr32program-devel-2.1.0-1.suse101.i586.rpm
avr32trace-1.0.0-1.suse101.i586.rpm
binutils-avr32-2.17.atmel.1.0.0-1.suse101.i586.rpm
binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm
gcc-avr32-linux-4.1.2-atmel.1.0.0_1.suse101.i586.rpm
gcc-avr32-linux-c++-headers-4.1.2-atmel.1.0.0_1.suse101.i586.rpm
gcc-avr32-newlib-4.1.2-atmel.1.0.0_1.suse101.i586.rpm
gcc-avr32-newlib-c++-headers-4.1.2-atmel.1.0.0_1.suse101.i586.rpm
gdb-avr32-6.4.atmel.1.0.0-1.suse101.i586.rpm
gdb-avr32-linux-6.4.atmel.1.0.0-1.suse101.i586.rpm
libavr32ocd-2.1.0-1.suse101.i586.rpm
libavr32ocd-devel-2.1.0-1.suse101.i586.rpm
libavrtools-2.1.0-1.suse101.i586.rpm
libavrtools-devel-2.1.0-1.suse101.i586.rpm
uclibc-avr32-0.9.28.atmel.0.0.20070327-1.suse101.i586.rpm
uclibc-avr32-kernheaders-2.6.18.atmel.0.0.20070327-1.suse101.i586.rpm
[root@localhost avr32_gnu_toolchain_suse101]# urpmi *rpm
Some requested packages cannot be installed:
avr32gdbproxy-2.1.0-1.suse101.i586 (due to unsatisfied libavr32ocd[>= 2.1.0])
avr32program-2.1.0-1.suse101.i586 (due to missing libavr32ocd-2.1.0-1.suse101.i5            86)
avr32program-devel-2.1.0-1.suse101.i586 (due to missing libavr32ocd-devel-2.1.0-            1.suse101.i586)
avr32trace-1.0.0-1.suse101.i586 (due to unsatisfied libelf.so.0)
libavr32ocd-2.1.0-1.suse101.i586 (due to unsatisfied libelf.so.0)
libavr32ocd-devel-2.1.0-1.suse101.i586 (due to unsatisfied libavr32ocd[== 2.1.0]            )
Continue installation anyway? (Y/n)   

So I went for it.

[root@localhost avr32_gnu_toolchain_suse101]# urpmi *rpm
Some requested packages cannot be installed:
avr32gdbproxy-2.1.0-1.suse101.i586 (due to unsatisfied libavr32ocd[>= 2.1.0])
avr32program-2.1.0-1.suse101.i586 (due to missing libavr32ocd-2.1.0-1.suse101.i5            86)
avr32program-devel-2.1.0-1.suse101.i586 (due to missing libavr32ocd-devel-2.1.0-            1.suse101.i586)
avr32trace-1.0.0-1.suse101.i586 (due to unsatisfied libelf.so.0)
libavr32ocd-2.1.0-1.suse101.i586 (due to unsatisfied libelf.so.0)
libavr32ocd-devel-2.1.0-1.suse101.i586 (due to unsatisfied libavr32ocd[== 2.1.0]            )
Continue installation anyway? (Y/n) y

warning: binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150
The following packages have bad signatures:
binutils-avr32-2.17.atmel.1.0.0-1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
gcc-avr32-linux-4.1.2-atmel.1.0.0_1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
gcc-avr32-linux-c++-headers-4.1.2-atmel.1.0.0_1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
gcc-avr32-newlib-4.1.2-atmel.1.0.0_1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
gcc-avr32-newlib-c++-headers-4.1.2-atmel.1.0.0_1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
gdb-avr32-6.4.atmel.1.0.0-1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
gdb-avr32-linux-6.4.atmel.1.0.0-1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
libavrtools-2.1.0-1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
libavrtools-devel-2.1.0-1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
uclibc-avr32-0.9.28.atmel.0.0.20070327-1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
uclibc-avr32-kernheaders-2.6.18.atmel.0.0.20070327-1.suse101.i586.rpm: Invalid signature (NOT OK (no key): binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm: Header V3 DSA signature: NOKEY, key ID c01dd150)
Do you want to continue installation ? (y/N) y
installing binutils-avr32-linux-2.17.atmel.1.0.0-1.suse101.i586.rpm uclibc-avr32-kernheaders-2.6.18.atmel.0.0.20070327-1.suse101.i586.rpm gcc-avr32-newlib-4.1.2-atmel.1.0.0_1.suse101.i586.rpm uclibc-avr32-0.9.28.atmel.0.0.20070327-1.suse101.i586.rpm gcc-avr32-linux-c++-headers-4.1.2-atmel.1.0.0_1.suse101.i586.rpm gdb-avr32-6.4.atmel.1.0.0-1.suse101.i586.rpm gcc-avr32-linux-4.1.2-atmel.1.0.0_1.suse101.i586.rpm libavrtools-devel-2.1.0-1.suse101.i586.rpm gcc-avr32-newlib-c++-headers-4.1.2-atmel.1.0.0_1.suse101.i586.rpm gdb-avr32-linux-6.4.atmel.1.0.0-1.suse101.i586.rpm libavrtools-2.1.0-1.suse101.i586.rpm binutils-avr32-2.17.atmel.1.0.0-1.suse101.i586.rpm
Preparing...                     #############################################
     1/12: libavrtools           #############################################
     2/12: binutils-avr32-linux  #############################################
     3/12: uclibc-avr32-kernheaders#############################################
     4/12: gcc-avr32-newlib      #############################################
     5/12: uclibc-avr32          #############################################
     6/12: gcc-avr32-linux-c++-headers#############################################
     7/12: gdb-avr32             #############################################
     8/12: gcc-avr32-linux       #############################################
     9/12: libavrtools-devel     #############################################
    10/12: gcc-avr32-newlib-c++-headers#############################################
    11/12: gdb-avr32-linux       #############################################
    12/12: binutils-avr32        #############################################
[root@localhost avr32_gnu_toolchain_suse101]#   

12 things installed. I'll see how this ends up.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There are only two programs which I'm having a hard time with. Any suggestions?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

From your code post:

avr32gdbproxy-2.1.0-1.suse101.i586 (due to unsatisfied libavr32ocd[>= 2.1.0])
avr32program-2.1.0-1.suse101.i586 (due to missing libavr32ocd-2.1.0-1.suse101.i5            86)
avr32program-devel-2.1.0-1.suse101.i586 (due to missing libavr32ocd-devel-2.1.0-            1.suse101.i586)
avr32trace-1.0.0-1.suse101.i586 (due to unsatisfied libelf.so.0)
libavr32ocd-2.1.0-1.suse101.i586 (due to unsatisfied libelf.so.0) 

So the nub is that libavr32ocd is needed by the missing programs but cannot be installed because you don't have the elf access libraries. I don't know what these are likely to be called on Mandriva but on my Kubuntu install this library is supplied by the libelfg0 package.

See if you can find and install something to that effect :)

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

On a suse 10.2 I get the same problem in avr32studio:

avr32program: Found version 2.1.0 (Need version 2.2 or newer
avr32gdbproxy: Found version 2.1.0 (Need version 2.2 or newer

all dependencies are correct when installing the RPMs but the version of the studio and the suse version of the toolchain do not fit together. I started to compile the tool source package but I cannot find the two items missing. Which source package is concerned?
dvh

Where can these be found?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Those 2 packages aren't included in the source distribution actually :s

But you are absolutely right, even if you can get the binary packages installed (and you have), they are still 1 version too old for the current avr32studio to handle, that's a bit of an oopise ;)

Though now I think of it the Ubuntu ones up there are too old too, though the atmel .deb repository has correct versions. If you want to have a go at RPMing the .debs I can email them over (pm me with address) but I suggest you poke avr32@atmel.com in to posting the correct versions of things on their website :)

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So it seems that I can't finish this off until I install

1. due to unsatisfied libavr32ocd[>= 2.1.0]

2. due to unsatisfied libelf.so.0

1. Where do I get these?
2. Which one do I install first?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was given two files

1. avr32gdbproxy_2.2.0_1_i386.deb

2. avr32program_2.2.4_1_i386.deb

I tried using step (3) of this document http://www.linux-sxs.org/utiliti...

It seems like something was successful in installing being I see a bunch of files being copied.

[root@localhost 2.2_packages]# ar -xv avr
avr32gdbproxy_2.2.0_1_i386.deb  avr32program_2.2.4_1_i386.de
[root@localhost 2.2_packages]# ar -xv avr32gdbproxy_2.2.0_1_
x - debian-binary
x - control.tar.gz
x - data.tar.gz
[root@localhost 2.2_packages]# ls
avr32gdbproxy_2.2.0_1_i386/     avr32program_2.2.4_1_i386/
avr32gdbproxy_2.2.0_1_i386.deb  avr32program_2.2.4_1_i386.de
[root@localhost 2.2_packages]# cd avr32gd
avr32gdbproxy_2.2.0_1_i386/     avr32gdbproxy_2.2.0_1_i386.d
[root@localhost 2.2_packages]# cd avr32gdbproxy_2.2.0_1_i386
[root@localhost avr32gdbproxy_2.2.0_1_i386]# ls
control.tar.gz  data.tar.gz  debian-binary
[root@localhost avr32gdbproxy_2.2.0_1_i386]# tar -xzvf data.
./
./usr/
./usr/bin/
./usr/bin/avr32gdbproxy
./usr/share/
./usr/share/doc/
./usr/share/doc/avr32gdbproxy/
./usr/share/doc/avr32gdbproxy/changelog.gz
./usr/share/doc/avr32gdbproxy/copyright
./usr/share/doc/avr32gdbproxy/changelog.Debian.gz
[root@localhost avr32gdbproxy_2.2.0_1_i386]# cd..
[root@localhost 2.2_packages]# ls
avr32gdbproxy_2.2.0_1_i386/     avr32program_2.2.4_1_i386/
avr32gdbproxy_2.2.0_1_i386.deb  avr32program_2.2.4_1_i386.de
[root@localhost 2.2_packages]# ar -xv avr32
avr32gdbproxy_2.2.0_1_i386/     avr32program_2.2.4_1_i386/
avr32gdbproxy_2.2.0_1_i386.deb  avr32program_2.2.4_1_i386.de
[root@localhost 2.2_packages]# ar -xv avr32p
avr32program_2.2.4_1_i386/     avr32program_2.2.4_1_i386.deb
[root@localhost 2.2_packages]# ar -xv avr32program_2.2.4_1_i
ar: avr32program_2.2.4_1_i386: Is a directory
[root@localhost 2.2_packages]# ar -xv avr32program_2.2.4_1_i
x - debian-binary
x - control.tar.gz
x - data.tar.gz
[root@localhost 2.2_packages]# ls
avr32gdbproxy_2.2.0_1_i386/     avr32program_2.2.4_1_i386/
avr32gdbproxy_2.2.0_1_i386.deb  avr32program_2.2.4_1_i386.de
[root@localhost 2.2_packages]# cd avr32p
avr32program_2.2.4_1_i386/     avr32program_2.2.4_1_i386.deb
[root@localhost 2.2_packages]# cd avr32program_2.2.4_1_i386
[root@localhost avr32program_2.2.4_1_i386]# ls
control.tar.gz  data.tar.gz  debian-binary
[root@localhost avr32program_2.2.4_1_i386]# tar -xzvf data.t
./
./usr/
./usr/bin/
./usr/bin/avr32program
./usr/share/
./usr/share/doc/
./usr/share/doc/avr32program/
./usr/share/doc/avr32program/changelog.gz
./usr/share/doc/avr32program/copyright
./usr/share/doc/avr32program/changelog.Debian.gz
./usr/include/
./usr/include/avr32program/
./usr/include/avr32program/avr32program.hh
./usr/include/avr32program/elfparser.hh
./usr/include/avr32program/elfsection.hh
./usr/include/avr32program/elfsegment.hh
./usr/include/avr32program/hexfile.hh
./usr/lib/
./usr/lib/libavr32program.a
./usr/lib/libavr32program.so.1.2.1
./usr/lib/libavr32program.so.1
./usr/lib/libavr32program.so
[root@localhost avr32program_2.2.4_1_i386]# updatedb
/usr/bin/slocate: option requires an argument -- l
[root@localhost avr32program_2.2.4_1_i386]# cd..
[root@localhost 2.2_packages]# cd..
[root@localhost AVR Studio]# ls

But the problem is my system doesn't recognize that I have updated these packages. What can I do so it recognizes the newer versions of the *.*deb files?

I was also told
"

Hey, here be the .debs.

Apparently you can get the real RPMs from the YUM repo, I'd try and
track those down, the package dependencies are probably more accurate.
"
I know to use urpmf -filename to search for stuff in Mandriva but I don't know where to start for YUM. Anyone have any suggestions?

I know I'm using *.* deb (Debian files) but they were the only versions available for Linux. :roll: :cry: :shock:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Any news on where I can get these RPM's?

avr32program: (Need version 3.0 or newer)
avr32gdbproxy: (Need version 3.0 or newer)
avr32-gdb: Found version 6.7.1.atmel.1.0.3
avr32-g++: Found version 4.2.2-atmel.1.0.8
avr32-gcc: Found version 4.2.2-atmel.1.0.8
avr32-as: Found version 2.17.atmel.1.2.6
avr32-nm: Found version 2.17.atmel.1.2.6

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cool!
I'll try this and see if it works.
Thanks!