Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

Cross Compiler

Sun Jul 14, 2013 9:51 pm

OK sp I have been a lot more busy and lazy over the summer but I still couldnt set the path how would I do that step by step " iknow it seems simple."

EDIT it was simple lol

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

issue

Mon Jul 15, 2013 12:10 am

Code: Select all

checking build system type... armv7l-unknown-linux-gnu
checking host system type... armv7l-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/src/xenomai-2.6.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[email protected]:/usr/src/xenomai-2.6.1# make DESTDIR=$(pwd)/rpi install
bash: make: command not found
[email protected]:/usr/src/xenomai-2.6.1# tar cf - -C rpi usr/xenomai/{bin,lib,sbin,include} | tar xvf - -C /
/bin/tar: rpi: Cannot chdir: No such file or directory
/bin/tar: Error is not recoverable: exiting now
/bin/tar: This does not look like a tar archive
/bin/tar: Exiting with failure status due to previous errors
[email protected]:/usr/src/xenomai-2.6.1# echo /usr/xenomai/lib/ > /etc/ld.so.conf.d/xenomai.conf
[email protected]:/usr/src/xenomai-2.6.1# ldconfig -v
/sbin/ldconfig: Can't stat /usr/xenomai/lib: No such file or directory
/sbin/ldconfig: Path `/lib/arm-linux-gnueabihf' given more than once
/sbin/ldconfig: Path `/usr/lib/arm-linux-gnueabihf' given more than once
/lib/arm-linux-gnueabihf:
	libsepol.so.1 -> libsepol.so.1
	libgcc_s.so.1 -> libgcc_s.so.1
	libc.so.6 -> libc-2.13.so
	libpam.so.0 -> libpam.so.0.83.0
	libacl.so.1 -> libacl.so.1.1.0
	libdbus-1.so.3 -> libdbus-1.so.3.7.2
	libmemusage.so -> libmemusage.so
	libpam_misc.so.0 -> libpam_misc.so.0.82.0
	libgpg-error.so.0 -> libgpg-error.so.0.8.0
	libudev.so.0 -> libudev.so.0.13.0
	libresolv.so.2 -> libresolv-2.13.so
	libncursesw.so.5 -> libncursesw.so.5.9
	libbz2.so.1.0 -> libbz2.so.1.0.4
	librt.so.1 -> librt-2.13.so
	libattr.so.1 -> libattr.so.1.1.0
	libm.so.6 -> libm-2.13.so
	libSegFault.so -> libSegFault.so
	libnss_hesiod.so.2 -> libnss_hesiod-2.13.so
	libnsl.so.1 -> libnsl-2.13.so
	libz.so.1 -> libz.so.1.2.7
	libcom_err.so.2 -> libcom_err.so.2.1
	libss.so.2 -> libss.so.2.0
	libncurses.so.5 -> libncurses.so.5.9
	libexpat.so.1 -> libexpat.so.1.6.0
	libtinfo.so.5 -> libtinfo.so.5.9
	libthread_db.so.1 -> libthread_db-1.0.so
	libreadline.so.6 -> libreadline.so.6.2
	libblkid.so.1 -> libblkid.so.1.1.0
	libpcre.so.3 -> libpcre.so.3.13.1
	libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
	libutil.so.1 -> libutil-2.13.so
	libcidn.so.1 -> libcidn-2.13.so
	libnss_nis.so.2 -> libnss_nis-2.13.so
	libbsd.so.0 -> libbsd.so.0.4.2
	libgcrypt.so.11 -> libgcrypt.so.11.7.0
	libpamc.so.0 -> libpamc.so.0.82.1
	libnss_compat.so.2 -> libnss_compat-2.13.so
	libnss_nisplus.so.2 -> libnss_nisplus-2.13.so
	libpcprofile.so -> libpcprofile.so
	libslang.so.2 -> libslang.so.2.2.4
	liblzma.so.5 -> liblzma.so.5.0.0
	libsysfs.so.2 -> libsysfs.so.2.0.1
	libhistory.so.6 -> libhistory.so.6.2
	libnss_files.so.2 -> libnss_files-2.13.so
	libnss_dns.so.2 -> libnss_dns-2.13.so
	libuuid.so.1 -> libuuid.so.1.3.0
	libdl.so.2 -> libdl-2.13.so
	libkmod.so.2 -> libkmod.so.2.1.3
	libply-splash-core.so.2 -> libply-splash-core.so.2.1.0
	libpopt.so.0 -> libpopt.so.0.0.0
	ld-linux-armhf.so.3 -> ld-2.13.so
	libmount.so.1 -> libmount.so.1.1.0
	libcrypt.so.1 -> libcrypt-2.13.so
	libprocps.so.0 -> libprocps.so.0.0.1
	libselinux.so.1 -> libselinux.so.1
	libpthread.so.0 -> libpthread-2.13.so
	libanl.so.1 -> libanl-2.13.so
	libe2p.so.2 -> libe2p.so.2.3
	libext2fs.so.2 -> libext2fs.so.2.4
	libBrokenLocale.so.1 -> libBrokenLocale-2.13.so
	libply.so.2 -> libply.so.2.1.0
/usr/lib/arm-linux-gnueabihf:
	libply-boot-client.so.2 -> libply-boot-client.so.2.1.0
	libX11.so.6 -> libX11.so.6.3.0
	libXext.so.6 -> libXext.so.6.4.0
	libtasn1.so.3 -> libtasn1.so.3.1.16
	libdrm_radeon.so.1 -> libdrm_radeon.so.1.0.1
	libXfixes.so.3 -> libXfixes.so.3.1.0
	libXxf86vm.so.1 -> libXxf86vm.so.1.0.0
	libXdamage.so.1 -> libXdamage.so.1.1.0
	libp11-kit.so.0 -> libp11-kit.so.0.0.0
	libxcb-glx.so.0 -> libxcb-glx.so.0.0.0
	libpanel.so.5 -> libpanel.so.5.9
	libsqlite3.so.0 -> libsqlite3.so.0.8.6
	libapt-inst.so.1.5 -> libapt-inst.so.1.5.0
	libGL.so.1 -> libGL.so.1.2
	libnewt.so.0.52 -> libnewt.so.0.52.14
	libmenu.so.5 -> libmenu.so.5.9
	libpipeline.so.1 -> libpipeline.so.1.2.1
	libcrypto.so.1.0.0 -> libcrypto.so.1.0.0
	libgnutls-extra.so.26 -> libgnutls-extra.so.26.22.4
	libssl.so.1.0.0 -> libssl.so.1.0.0
	libapt-pkg.so.4.12 -> libapt-pkg.so.4.12.0
	libdb-5.1.so -> libdb-5.1.so
	libglapi.so.0 -> libglapi.so.0.0.0
	libexpatw.so.1 -> libexpatw.so.1.6.0
	libsemanage.so.1 -> libsemanage.so.1
	libgdbm.so.3 -> libgdbm.so.3.0.0
	libform.so.5 -> libform.so.5.9
	libpcreposix.so.3 -> libpcreposix.so.3.13.1
	libstdc++.so.6 -> libstdc++.so.6.0.17
	libustr-1.0.so.1 -> libustr-1.0.so.1.0.4
	libXdmcp.so.6 -> libXdmcp.so.6.0.0
	libtic.so.5 -> libtic.so.5.9
	libgnutls.so.26 -> libgnutls.so.26.22.4
	libformw.so.5 -> libformw.so.5.9
	libidn.so.11 -> libidn.so.11.6.8
	libdrm.so.2 -> libdrm.so.2.4.0
	libpanelw.so.5 -> libpanelw.so.5.9
	libX11-xcb.so.1 -> libX11-xcb.so.1.0.0
	libdrm_nouveau.so.1 -> libdrm_nouveau.so.1.0.0
	libXau.so.6 -> libXau.so.6.0.0
	libxcb.so.1 -> libxcb.so.1.1.0
	libmenuw.so.5 -> libmenuw.so.5.9
	libsigc-2.0.so.0 -> libsigc-2.0.so.0.0.0
	libgdbm_compat.so.3 -> libgdbm_compat.so.3.0.0
/usr/local/lib:
/lib:
	libip6tc.so.0 -> libip6tc.so.0.1.0
	libnih.so.1 -> libnih.so.1.0.0
	libipq.so.0 -> libipq.so.0.0.0
	libiptc.so.0 -> libiptc.so.0.0.0
	libxtables.so.7 -> libxtables.so.7.0.0
	libnih-dbus.so.1 -> libnih-dbus.so.1.0.0
	libip4tc.so.0 -> libip4tc.so.0.1.0
/usr/lib:
	libboost_iostreams.so.1.48.0 -> libboost_iostreams.so.1.48.0
	libperl.so.5.14 -> libperl.so.5.14.2
	libboost_iostreams.so.1.46.1 -> libboost_iostreams.so.1.46.1
	libnfnetlink.so.0 -> libnfnetlink.so.0.2.0
	libcwidget.so.3 -> libcwidget.so.3.0.0
	libxapian.so.22 -> libxapian.so.22.5.0
	libept.so.1.aptpkg4.12 -> libept.so.1.0.5.4.12
	libident.so.0 -> libident.so.0.22
	libboost_iostreams.so.1.50.0 -> libboost_iostreams.so.1.50.0
	libsigc-1.2.so.5 -> libsigc-1.2.so.5.0.7
	libboost_iostreams.so.1.49.0 -> libboost_iostreams.so.1.49.0
[email protected]:/usr/src/xenomai-2.6.1# 

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

HELP

Mon Jul 15, 2013 2:27 am

SO close stuck on Install required packages

Code: Select all

>         libgl1-mesa-swx11 python-xlib python-gtkglext1 python-configobj python-glade2 python-numpy build-essential 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgl1-mesa-glx : Conflicts: libgl1
 libgl1-mesa-swx11 : Conflicts: libgl1
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Help and Thanks.

kinsa
Posts: 457
Joined: Sat Dec 01, 2012 10:16 pm

Re: LinuxCNC

Mon Jul 15, 2013 2:52 am

Are you compiling on RPi?

Your logs shows that you are compiling xenomai natively.

Cheers
42

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

No

Mon Jul 15, 2013 4:58 am

I wasn't what should I do to program for pi

kinsa
Posts: 457
Joined: Sat Dec 01, 2012 10:16 pm

Re: No

Mon Jul 15, 2013 5:20 am

Beutrocks wrote:I wasn't what should I do to program for pi
Did you install qemu on step 3.1?

Compiling xenomai on the pc needs chroot to the qemu environment.
42

kinsa
Posts: 457
Joined: Sat Dec 01, 2012 10:16 pm

Re: LinuxCNC

Mon Jul 15, 2013 5:22 am

There is no need to start from scratch. You can use the image that I previously posted.

Cheers
42

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

Which Post

Mon Jul 15, 2013 1:52 pm

sorry which one.

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

Is this wrong

Mon Jul 15, 2013 2:07 pm

Code: Select all

[email protected]:~/Desktop/rpi$ sudo cp -a emc2-dev rootfs/usr/src/
[email protected]:~/Desktop/rpi$ sudo chroot rootfs
[email protected]:/# 





kinsa
Posts: 457
Joined: Sat Dec 01, 2012 10:16 pm

Re: Which Post

Mon Jul 15, 2013 3:22 pm

Beutrocks wrote:sorry which one.
The image?: http://www.raspberrypi.org/phpBB3/viewt ... 82#p354382
Beutrocks wrote:SO close stuck on Install required packages

Code: Select all

>         libgl1-mesa-swx11 python-xlib python-gtkglext1 python-configobj python-glade2 python-numpy build-essential 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgl1-mesa-glx : Conflicts: libgl1
 libgl1-mesa-swx11 : Conflicts: libgl1
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Help and Thanks.
Try excluding the libgl1-mesa-swx11 package. I'm not sure why this fails for you. I haven't tested this lately, maybe there were some updates to raspbian.
42

toshtiger
Posts: 1
Joined: Mon Jul 15, 2013 6:34 pm

Re: LinuxCNC

Mon Jul 15, 2013 6:37 pm

Is there any plans to sell the picnc board???

many thanks

Tony

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

Thanks

Tue Jul 16, 2013 2:08 am

Thanks a lot I didn't know you had a pre-made image for picnc i'll try it out then maybe you could help me with pic interface and programming. I will use openBSD from rpi to pic preferably JTAG but ICSP works too.

EDIT: I will test with some old printer/scanner steppers and if it works I will pic out my polulus and steppers.

kinsa
Posts: 457
Joined: Sat Dec 01, 2012 10:16 pm

Re: LinuxCNC

Tue Jul 16, 2013 2:29 am

toshtiger wrote:Is there any plans to sell the picnc board???

many thanks

Tony
No plans yet as this is still very much in work in progress state.

If you're interested to play, I still have some spare PCBs left. Although these boards have some glaring mistakes :)

Cheers!
42

kinsa
Posts: 457
Joined: Sat Dec 01, 2012 10:16 pm

Re: Thanks

Tue Jul 16, 2013 2:41 am

Beutrocks wrote:Thanks a lot I didn't know you had a pre-made image for picnc i'll try it out then maybe you could help me with pic interface and programming. I will use openBSD from rpi to pic preferably JTAG but ICSP works too.

EDIT: I will test with some old printer/scanner steppers and if it works I will pic out my polulus and steppers.
Sure, just let me know what issues you will encounter. But do note the timezone difference.

BTW, you will need the pickit2/3 programmer to do ICSP. JTAG is the only option if you don't have one.
42

hybris
Posts: 52
Joined: Mon Jun 03, 2013 8:50 pm
Location: Tyrol / Austria

Re: LinuxCNC

Fri Jul 19, 2013 5:23 pm

hey kinsa

So when i connect in this circuit the pic programmer on icsp i can program the pic32mx150f128b.
and then i could refuse it and with that circuit connected via step/dir my motors should be alive? is that right?
and if i use the pololu drivers i could take this setup as firmware for my pic.

thanks again!
greets

kinsa
Posts: 457
Joined: Sat Dec 01, 2012 10:16 pm

Re: LinuxCNC

Sat Jul 20, 2013 3:11 am

hybris wrote:hey kinsa

So when i connect in this circuit the pic programmer on icsp i can program the pic32mx150f128b.
and then i could refuse it and with that circuit connected via step/dir my motors should be alive? is that right?
and if i use the pololu drivers i could take this setup as firmware for my pic.

thanks again!
greets
Yup, that sounds right.

Good luck!
42

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

sorry

Sun Jul 21, 2013 1:12 am

cant delete this :x
Last edited by Beutrocks on Sun Jul 21, 2013 1:33 am, edited 1 time in total.

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

boot

Sun Jul 21, 2013 1:14 am

I had to fix a broken sd slot all better now but i cant ssh to my pi or see hdmi. when i boot with hdmi I see a color screen for about half a second then black. When I boot with no hdmi and network the pi boots up and all the lights turn on but I don't see the ip or device show up on my router. Any thoughts.
p.s. I don't have any wierd connection security and I am connecting through ethernet.

kinsa
Posts: 457
Joined: Sat Dec 01, 2012 10:16 pm

Re: boot

Sun Jul 21, 2013 1:39 am

Beutrocks wrote:I had to fix a broken sd slot all better now but i cant ssh to my pi or see hdmi. when i boot with hdmi I see a color screen for about half a second then black. When I boot with no hdmi and network the pi boots up and all the lights turn on but I don't see the ip or device show up on my router. Any thoughts.
p.s. I don't have any wierd connection security and I am connecting through ethernet.
You'll need to edit config.txt to enable hdmi. I did not cleanup it up when I posted the image.

See here: http://www.raspberrypi.org/phpBB3/viewt ... 66#p362066
42

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

Thanks

Sun Jul 21, 2013 3:36 am

worked but whats the login.

kinsa
Posts: 457
Joined: Sat Dec 01, 2012 10:16 pm

Re: LinuxCNC

Sun Jul 21, 2013 4:03 am

rpi, pw: linuxcnc
42

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

remote desktop

Sun Jul 21, 2013 4:36 am

I'm using remote desktop but it doesn't do anything but show up as a black screen I can sort of right click and see those features but noting else.

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

Also

Sun Jul 21, 2013 4:41 am

have you made the modifications for breadboard picware. Can I also just temporarily test if it works by powering a stepper without my polulu. I will get them soon.

kinsa
Posts: 457
Joined: Sat Dec 01, 2012 10:16 pm

Re: LinuxCNC

Sun Jul 21, 2013 5:04 am

See my previous post for the updated firmware.

You will need the pololu's to drive any steppers. You can check the signals though.

Cheers
42

Beutrocks
Posts: 52
Joined: Mon Apr 22, 2013 4:00 am

Thank you so much

Sun Jul 21, 2013 5:23 am

Ok should be smooth sailing from here. One last thing before I hopefully don't have too many more posts how should I configure my wifi adapter I tried editing etc/network nano interface and typed in what I saw on adafruit but no dice I am using a popular edimax for rpi.

EDIT: You said in a previous post that picnc_bb.hex was available for download but you would have to modify it for breadboard.

Return to “Automation, sensing and robotics”