RaspI setup for Prop
potatohead
Posts: 10,261
I have one of the new Pi devices due to arrive soon.
Those of you who have set up to use a Pi as dwv environment care to share linls, hints, etc... ?
I want to setup for C and SPIN aND am hoping I can get an image or something easy.
Those of you who have set up to use a Pi as dwv environment care to share linls, hints, etc... ?
I want to setup for C and SPIN aND am hoping I can get an image or something easy.
Comments
I'm not sure of the propeller-load questions are resolved yet (will the real propeller-load please stand up?). Need to do some digging in the forums.
So you need all the important stuff, like a terminal program and a copy of PropForth and Tachyon, right??? )
Right now, I'm building MongoDB on a RasPi2 - it has all four cores running flat out!
This one is heat-sunk, so hopefully it won't have a melt-down.
What would be more cool is a tar ball containing all the directories that need putting in /opt for all the Propeller tools and perhaps a script to set up any symlinks to binaries and such like.
That is a much smaller download and relieves you of having to supply all the source for all of Raspbian if anyone asks you as the GPL requires.
If I had not left my Pi2 in the office I would be building the Pi tools on the Pi now.
OK, a tar ball with:
prop-gcc
Openspin
PropellerIDE
SimpleIDE
the library of Spin goodies that ships with the Propeller tool (I don't think SimpleIDE includes that)
this assumes the propeller-load in prop-gcc is the latest/greatest/correctest one to use for a RasPi, if not, then a proper propeller-load needs to be included
Is there an issue with the proper QT libraries? 4 versus 5?
Any other issues?
I've been fighting MongoDB and work all afternoon, I need a nap before I start thinking about proptools.tar
Don't forget pi-propeller-load https://github.com/ZiCog/pi-propeller-load. That is the same as the prop-gcc loader but with the ability to use the UART on the Pi GPIO header directly connected to a Prop.
Hopefully pi-propeller-load should not be needed as those changes I made may have made their way into prop-gcc by now.
I'm not sure now how PropellerIDE would load via the GPIO.
You will need to install Qt5. You can install Qt5 from deb packages here: http://twolife.be/raspbian/ See all the packges listed here: http://twolife.be/raspbian/pool/test/qtbase-opensource-src/
and I suspect we will hear about thermal issues sooner or later with unventilated
cases for instance. make -j gets the processor chip too hot to touch continuously
with a bare board, something like 2.5W is being dissipated on the board, mainly
in the processor chip AAICT.
I should have asked this stuff AFTER I got my Pi. Dangit! Thanks all. I'll dig in here in a few days.
http://www.jameco.com/Jameco/workshop/circuitnotes/raspberry_pi_circuit_note_fig2a.jpg
- install the qt5 dev libs
- follow the instructions on learn.parallax.com to install SimpleIDE
- follow the instructions for PropellerIDE to install PropellerIDE
- install heater's modified pi-propeller-load
Enjoy developing for the Prop using any model Pi!
But now... now I can run PyCharm and IntelliJ IDEA . CLion doesn't run yet, as it's missing a dependency - but I'm hoping I can fix that when I get ahold of my USB-WiFi adapter.
Looking forward to this all-in-one RPi-Propeller package. Is there a version of PropGCC for pi hosted somewhere yet, or does that need to be compiled from source at the moment?
Install QT5 as instructed by Heater in post #5 above.
I had never added repositories to apt before. Easy as Pi!
[code]
1) edit /etc/apt/sources.list so it contains: (sudo vi /etc/apt/sources.list)
deb http://twolife.be/raspbian/ wheezy main backports
deb-src http://twolife.be/raspbian/ wheezy main backports
2) sudo apt-get update
3) sudo apt-get upgrade
(answer 'y' to the "install packages without verification message")
4) sudo apt-get install libqt5-*
(answer 'y' to the "install packages without verification" message)
5) follow the SimpleIDE installation instructions from here learn.parallax.com http://learn.parallax.com/propeller-c-set-simpleide/raspberrypi
This gives you a working SimpleIDE (dated but working) that can load a propeller board connected to the RasPi USB port. (I still need to play with a loader that works with Props connected to the RasPi UART.)
I next tried installing the latest PropellerIDE from LameStation. I'm having issues with that and there is a question into Brett.
I'm becoming less and less of an IDE guy since most of my Raspi's are running around headless. I did set up VNC this weekend but need to play with it more before I'm sold. (It doesn't let me go full screen on my 27 inch monitor and the fonts are crazy small as big as it allows me to go.)
I'd like to have an up to date prop-gcc, openspin and RasPi friendly loader built into something easily installable. I think that's where I'm headed for now, at least. OpenSpin I've built before on teh RasPi without issue before, prop-gcc and the loaders are something new.
Time to go build some packages!
Once you get the packages built, let us know where we can download them. I'd like to also host them on http://david.zemon.name/downloads, where I have other PropGCC packages as well.
I followed steps 1-5 and got a successful SimpleIDE and was able to compile a program and load a QuickStart... (yay!)
Next steps (Install PropellerIDE):
6) download the PropellerIDE distribution (.deb) file from: http://www.lamestation.com/propelleride/
OR directly download the propelleride .deb with wget:
wget https://github.com/parallaxinc/PropellerIDE/releases/download/0.25.1/propelleride-0.25.1-0-g5442b03-armhf.deb
7) sudo dpkg -i propelleride-0.25.1-0-g5442b03-armhf.deb
(this will install PropellerIDE and allow launching it by the name "propelleride" in the Terminal. This allows display of any errors that occur when PropellerIDE is launched the first time)
However, attempting to run propelleride at this point will output some errors which can be fixed (see below). PropellerIDE requires FTDI & GLES libraries, so you need to install them:
8) sudo apt-get install -y libftdi1
9) sudo apt-get install -y libGLESv*
PropellerIDE should now launch & run from the RPi's Desktop GUI as other installed apps do! My testing was run on a Raspberry Pi B2, with the latest Raspian installation (via the NOOBS image of 02/18/2015)...
EDIT: Well, it launches, runs and lets me compile and upload, BUT I'm not able to input text in the editor & find fields! (not yay!)
RE-EDIT: The error was when I was using VNC from another computer. The RPi itself is able to fully run PropellerIDE, now!
dgately
I'll have to recheck my PropellerIDE work. I thought I had gone back and installed the two packages you had and it still did not work. It is getting close but not quite yet!
Thanks for checking my results, I get sloppy sometimes (and forgetful).
Looks like my editing problem (not able to input text) was only happening through VNC. On the RPi itself, I'm able to edit text, run Find, etc.
So, PropellerIDE is working well!
dgately
I had performed both of these steps previously:
I did both of them again just for grins (and to verify I had done them)
For libftdi, I got this back as expected:
for libGLESv*, I was surprised with this:
libgles2-mesa was already the BUT this time around, apt-get found a BUNCH of things to select and install! If your install didn;t look like this last one I did, try running it again.
Now, PropellerIDE works like a champ!
I can easily see a RasPi2 and a powered USB hub stuck on the back of a monitor providing desktop computing for my workbench! Not bad for $35!
@Potatohead, you should have yours by now. Are you happily Propellering with your Pi??
cards with already installed SimpleIde and PropellerIDE tools on both older Pi's and the new Raspberry Pi 2. I am using "medium 900MHZ ARM" clock setting.
You guys should add a USB hard drive... it makes life much snappier on the Pi2!
http://www.mikronauts.com/2015/02/28/raspberry-pi-2-runs-nicely-on-a-sata-hard-drive-using-a-usbsata-enclosure/
I made a 200GB root partition and have the rest as data. MUCH snappier desktop use.
https://github.com/pimoroni/propeller-hat/blob/master/documentation/Propeller-IDE-Getting-Started.md
I also include a bleeding-edge build of p1load from https://github.com/dbetz/p1load, which you can easily build/install yourself. The version currently supplied with Propeller IDE is missing some of the more recent tweaks for easy Pi usage- specially when talking to Prop's using the Pi's /dev/ttyAMA0 rather than over USB.
I also use these steps to set up p1load: https://github.com/pimoroni/propeller-hat/blob/master/software/p1load/install
This is so it can talk serial ( via /dev/ttyAMA0 ) without needing to ask for a root password- which doesn't work if you just want to hit "run" in Propeller IDE.
I'm hoping to package the necessary Qt libraries up at some point, since installing from backports is problematic and if you don't understand apt pinning ( I surely don't ) then you can end up trashing your apt sources to the point where some installs will fail with dependency problems ( I had problems with SDL recently ).
I for one would love to see a howto on setting up one of these systems
The other problem is that the Raspi does not have an easy way of installing a printer, Local or Network, sort of a given on any other PC. So, if you have PropellerIDE installed, it becomes a hassle to get a print out of your program.
Has anybody considered using a Class 10 64GB uSD card, those seem to be coming down in price, matched with an external 2TB drive, could be a decent development system.
Now I am waiting for, the latest version of SimpleIDE and propellerIDE to become an easy install, and then I can proceed further.
Ray
It is basically the same procedure as using a USB flash stick for the root file system, here is a link to a thread discussing that:
http://www.raspberrypi.org/forums/viewtopic.php?f=29&t=44177
You might also enjoy
http://www.mikronauts.com/raspberry-pi/raspberry-pi-2-nas-experiment-howto/
It shows you how to set up a Pi 2 as a NAS (should also work on an older Pi)
http://www.howtogeek.com/169679/how-to-add-a-printer-to-your-raspberry-pi-or-other-linux-computer/
That setup for printer seems reasonable.
"New Raspberry Pi 2 board and kits in stock and shipping within 24 hours"
http://www.canakit.com/raspberry-pi/raspberry-pi-kits
Mine shipped yesterday and will be here Monday
re: Printer
Has anyone tried to print from the Pi through Google Cloud print? It should work.
I loaded Node.js and did a test (no problems)
I loaded sqlite3 (loaded fine)
I loaded Lazarus but ran into a problem and have to go through it again.
re; You don't need a heat sink on a Pi.
I have 2 heat sinks installed and overclocked the Pie 2. LOL
===============================================================================
Hi Robert,
Your Google account (robert????????@gmail.com) was just used to sign in from Safari on Mac.
Location: Nova Scotia, Canada*
Time: 9:09 pm Atlantic Daylight Time (GMT-3)
===========================================================
Google thinks it's a Mac .I knew I shoulden't have overclocked it LOL
I'm not sure if you already know this but when you want to use the serial port on the Pi you have to run sudo raspi-config and under
Advanced Options select Serial and disable the shell's use of the serial port. Reboot and retry. When I first started using a Pi this was not able to be done
from the raspi-config menu.