Welcome, Guest
Username: Password: Remember me

TOPIC: Crosscompile for Fox board G20 on Ubuntu 11.04

Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2465

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Hi,

Some info for you who are cross compiling for Fox G20 on Ubuntu.

In Ubuntu 11.04 (and also in Ubuntu 10) a newer version of glibc installed by the cross compiler than is used in the debian squeeze release from emdebian. This will cause cross compiled programs to segfault. Here is a thread on how to fix this problem.

http://groups.google.com/group/netusg20/browse_thread/thread/a613fd6e3550d147#

Note the the line in /etc/apt/sources.list should point at the lenny distro, not squeeze

deb www.emdebian.org/debian/ lenny main

There is also a patch for the V4.8.2-1 tarball that will fix problems with undefined when building the node, and problems with building rt_rtt

[url]files/tmp/pwrsrc_4.8.2_patch01.tar.gz[/url]

Copy wb_rtt_comppicture.sh to src/exp/com/src/os_linux/hw_arm and wb_gcg.sh to wb/exp/com/src/os_linux/hw_arm.

/Claes

Post edited by: claes, at: 2011/07/17 19:28
The administrator has disabled public write access.

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2467

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Hi Claes,

Thanks for these useful information. unfortunately, I'm even stuck before (I'm really beginner with pwre ...).

I tried to follow the Appendix A Embedded Linux in release note 4.8 but, when trying to add the arm project (pwre add arm482) I got the following error:

++ can't tie to /usr/local/pwrsrc/pwre_env_db! at /usr/local/pwrsrc/pwrsrc_4.8.2-1/src/tools/pwre/src/os_linux/pwre.pl line 130

Indeed I have downloaded the v4.8.2 source at /usr/local/pwrsrc/ and extracted them to /usr/loca/pwrsrc/pwrsrc_4.8.2-1/

I guess it comes from a wrong configuration of:
export pwre_env_db=/usr/loca/pwrsrc/pwrsrc/pwre_env_db

which I can understand because I don't have any pwre_env_db directory ... Is that normal or did I miss something. I searched for this directory but can't find it on my filesystem..
I have a /usr/loca/pwrsrc/pwrsrc_4.8.2-1/pwre_db instead that I try without success.

Probably a stupid error as this is my first try....

Thanks for any help

Snarf
The administrator has disabled public write access.

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2468

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Hi Snarf,

$pwre_env_db is a data file for pwre and contains the settings for the pwre environments. It's created when you create the first pwre environment. I use to put it in my home directory

export pwre_env_db=/home/claes/pwr_env_db

/Claes
The administrator has disabled public write access.

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2469

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Thanks,

...but question is: how to create the first pwre environment. Based on the build-howto.txt from Robert (section 3.2) I understood it was only required to sourcing the pwre_function and launching the pwre add function ???

But I got this error when I try to add it ....so what is the missing step ??

EDIT:
Or perhpas this error is due to another cause ??? but which one ?

Post edited by: Snarf77, at: 2011/07/19 12:20
The administrator has disabled public write access.

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2471

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Snarf,

For the Beagle Board (Ubuntu) I succeed:

www.proview.se/index.php?option=com_joom...310&catid=3#2310

I haven't uploaded to the board yet.....
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2473

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Thank you Marc,

I didn't notice this post before and I was doing the same kind of how to ...

My problem indeed was most probably a privilege problem (??) as setting the pwre_env_db to my home directory (as recommended by Claes) has solved this error....

It's now OK until next point...

Thank you all

Snarf
The administrator has disabled public write access.
Time to create page: 7.709 seconds