Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-04-2016, 06:22   #841
Registered User

Join Date: Oct 2009
Location: Aboard my boat, SE Asia 2014
Boat: Passport 45 Ketch
Posts: 29
Re: OpenCPN Runs on Embedded ARM

Ahh yes. Thank you Pavel, /var/log/syslog has all the details of running out of memory!
__________________

__________________
--
Larry & Trinda
1981 Passport 45 Ketch, The Katie Lee
svkatielee is offline   Reply With Quote
Old 12-04-2016, 08:52   #842
Registered User

Join Date: Mar 2007
Location: Toronto,SE Florida, East Med
Boat: Dehler, Cruising 41 - BEBECA
Posts: 47
Send a message via Skype™ to deltasig
Re: OpenCPN Runs on Embedded ARM

Larry,
I'm sorry I forgot to mention the need for some swap space but Pavel always runs to the rescue!

What OS did you finally compile on? Judging by the time of your message the build process should be over by now (I'm just having my mid-day coffee any success?

DS
__________________

__________________
deltasig is offline   Reply With Quote
Old 12-04-2016, 16:30   #843
Registered User

Join Date: Oct 2009
Location: Aboard my boat, SE Asia 2014
Boat: Passport 45 Ketch
Posts: 29
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by deltasig View Post
Larry,
What OS did you finally compile on? Judging by the time of your message the build process should be over by now (I'm just having my mid-day coffee any success?

DS
No success yet. I'm building on Armbian_5.05_Orangepih3_Debian_jessie_3.4.110_desk top.raw. Building directly on the Orange Pi PC. The default is only 128M swap, so I have not finished.

I think the slow compile time is also related to the slow SD, a Samsung HD class 10. But it dd'ed the image at 4.2 MB/s where the Samsung EVO 32 dd'ed at 19.1 MB/s. So it is obviously a slower SD card.

It's 6 am here and I have other things to do today, but the next step is to figure out how to increase the swap without having to re-download the upgrade packages over the 3rd world internet again.
__________________
--
Larry & Trinda
1981 Passport 45 Ketch, The Katie Lee
svkatielee is offline   Reply With Quote
Old 14-04-2016, 02:33   #844
Registered User

Join Date: Oct 2009
Location: Aboard my boat, SE Asia 2014
Boat: Passport 45 Ketch
Posts: 29
Re: OpenCPN Runs on Embedded ARM

I have success too!!
Leaving out the errors and re-tries this is what it took to compile:

Orange Pi PC w/ Samsung 8GBSD class 10, but only 4.2MB/s write speed copying the image
dd bs=4M of=/dev/mmcblk0 if=Armbian_5.05_Orangepih3_Debian_jessie_3.4.110_d esktop.raw

apt-get update; apt-get upgrade #79 MB again

sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev
git clone git://github.com/OpenCPN/OpenCPN.gitI

changed the CMakeLists.txt as follows in order for the Mali-400 to get in:
# find_path(OPENGLESv1_INCLUDE_DIR GLES/gl.h )
SET(OPENGLESv1_INCLUDE_DIR "/usr/include/GLES" )

I plugghed in a USB stick with a linux on it with a swap partition temporarily and did:
orangepipc# mkswap -f /dev/sda5
orangepipc# swapon /dev/sda5

To fix the: ERROR: /usr/bin/ld: cannot find -lEGL find the lib
ln -s /usr/lib/mali/libEGL.so /usr/lib/

make clean; make -j1

make install

It WORKS!! mostly.
Installing this way did not include the default world map or tcdata and I haven't heard the ships bells yet.

There were a number of steps to cleanup the armbian 5.05 for automount the USBsticks etc. that I intend to document on my blog. At the rate the Armbian team is progressing, the OS cleanup will not be necessary for long.

Thanks you guys for the help and all the previous posts that I was able to read.
__________________
--
Larry & Trinda
1981 Passport 45 Ketch, The Katie Lee
svkatielee is offline   Reply With Quote
Old 14-04-2016, 09:24   #845
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,399
Re: OpenCPN Runs on Embedded ARM

Is this writeup acceptable for pasting into an installation instruction sheet in the User Documentation? -It can be edited later, it is quite easy.
What would you title it? Also what is the link to your webpage? Thanks.

Quote:
Orange Pi PC w/ Samsung 8GBSD class 10, but only 4.2MB/s write speed copying the image
dd bs=4M of=/dev/mmcblk0 if=Armbian_5.05_Orangepih3_Debian_jessie_3.4.110_d esktop.raw

apt-get update; apt-get upgrade #79 MB again

sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev
git clone git://github.com/OpenCPN/OpenCPN.gitI

changed the CMakeLists.txt as follows in order for the Mali-400 to get in:
# find_path(OPENGLESv1_INCLUDE_DIR GLES/gl.h )
SET(OPENGLESv1_INCLUDE_DIR "/usr/include/GLES" )

I plugghed in a USB stick with a linux on it with a swap partition temporarily and did:
orangepipc# mkswap -f /dev/sda5
orangepipc# swapon /dev/sda5

To fix the: ERROR: /usr/bin/ld: cannot find -lEGL find the lib
ln -s /usr/lib/mali/libEGL.so /usr/lib/

make clean; make -j1

make install

It WORKS!! mostly.
Installing this way did not include the default world map or tcdata and I haven't heard the ships bells yet.

There were a number of steps to cleanup the armbian 5.05 for automount the USBsticks etc. that I intend to document on my blog. At the rate the Armbian team is progressing, the OS cleanup will not be necessary for long.
__________________
rgleason is offline   Reply With Quote
Old 14-04-2016, 11:35   #846
Registered User

Join Date: Mar 2007
Location: Toronto,SE Florida, East Med
Boat: Dehler, Cruising 41 - BEBECA
Posts: 47
Send a message via Skype™ to deltasig
Re: OpenCPN Runs on Embedded ARM

Larry,
Sounds good! did you try running OpenCPN with the OpenGL settings on? What FPS do you get?

DS
__________________
deltasig is offline   Reply With Quote
Old 14-04-2016, 18:05   #847
Registered User

Join Date: Oct 2009
Location: Aboard my boat, SE Asia 2014
Boat: Passport 45 Ketch
Posts: 29
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by rgleason View Post
Is this writeup acceptable for pasting into an installation instruction sheet in the User Documentation? -It can be edited later, it is quite easy.
What would you title it? Also what is the link to your webpage? Thanks.
Yes, it would be OK to include these in the User Doc. However a note should be included about the current date/time frame. The armbian linux for ARM development boards project is releasing updates regularly for all the Allwinner H3 arm chips. Anyone following these instructions will have to monitor the revisions.

The writeup has not really been spell-checked yet, but the title could be:
OpenCPN on Orange Pi an Allwinner H3 Arm SBC

My blog post is here:
KB7KMO Projects: OpenCPN on Orange Pi an Allwinner H3 Arm SBC

I would also make the .deb s available if anyone wants them. Not sure where to post them though.

deltasig:
I have not yet verified the optimized version (-DCFLAGS="-O2 -march=native) but should find time today. The DEBUG code showed FPS of 23 for CM93 vector charts and 100-300 for my raster charts of the Philippines.
__________________
--
Larry & Trinda
1981 Passport 45 Ketch, The Katie Lee
svkatielee is offline   Reply With Quote
Old 15-04-2016, 04:14   #848
Registered User

Join Date: Oct 2009
Location: Aboard my boat, SE Asia 2014
Boat: Passport 45 Ketch
Posts: 29
Re: OpenCPN Runs on Embedded ARM

rgleason and all,
You could have a look now. I cleaned the instructions up some.

KB7KMO Projects: OpenCPN on Orange Pi an Allwinner H3 Arm SBC
__________________
--
Larry & Trinda
1981 Passport 45 Ketch, The Katie Lee
svkatielee is offline   Reply With Quote
Old 15-04-2016, 10:54   #849
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,399
Re: OpenCPN Runs on Embedded ARM

I think it is best to just post your link with your title, in the User Documentation, and if you can try to keep your page up to date with the step by step details that would be great!

Thank you.

PS: Writeup Looks good to me, but I'm not familiar with the process...

See http://opencpn.org/ocpn/Install_Orange_pi_Allwinner
You can register on opencpn.org and then you will be able to edit this page to add more details.
See Editing the User Manual under the Developer section here
http://opencpn.org/ocpn/Edit-User-Manual-Main-Page
__________________
rgleason is offline   Reply With Quote
Old 20-04-2016, 02:56   #850
Registered User

Join Date: Oct 2009
Location: Aboard my boat, SE Asia 2014
Boat: Passport 45 Ketch
Posts: 29
Re: OpenCPN Runs on Embedded ARM

OpenCPN on armbian linux for ARM development boards, Debian Jessie.
I have the instructions for compiling for Orange Pi on my blog and for loading a debian package on github. I have update the link on the installing wiki.
Orange Pi | Official OpenCPN Homepage

However downloading a large binary from either place does not work well.

Is there a repository or ppa that I could put the packages into to make it easier to install?
(I turn my laptop off at night to save boat batteries)
__________________
--
Larry & Trinda
1981 Passport 45 Ketch, The Katie Lee
svkatielee is offline   Reply With Quote
Old 22-04-2016, 12:55   #851
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,399
Re: OpenCPN Runs on Embedded ARM

Larry,
I can certainly understand why you don't want your computer running all the time!
I think Pavel can help with that by providing an repository for your files on opencpn.org
download site.

Post Pavel and ask him...if he is not following this thread...
Send him a Private Message PM through your "User CP" to [Nohal]
please
__________________
rgleason is offline   Reply With Quote
Old 22-04-2016, 22:02   #852
Registered User

Join Date: Oct 2009
Location: Aboard my boat, SE Asia 2014
Boat: Passport 45 Ketch
Posts: 29
Re: OpenCPN Runs on Embedded ARM

I see there are install/build instructions for ARM in two places in the Documentation:
(should I split Orange Pi into two pieces, installing and compiling?)

OpenCPN Installation | Official OpenCPN Homepage
-Dedicated Marine OS - OpenPlotter
-Orange Pi
-Raspberry Pi RPI2\

Compiling - Linux | Official OpenCPN Homepage
-cubieboard2
-cubietruck
-Xoom
-slackware
__________________
--
Larry & Trinda
1981 Passport 45 Ketch, The Katie Lee
svkatielee is offline   Reply With Quote
Old 23-04-2016, 15:48   #853
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,399
Re: OpenCPN Runs on Embedded ARM

Yes, we have a Development manual and a User Manual. It would be appropriate to split the documentation. If you want to do it yourself you can register and log in, or I can do it.
__________________
rgleason is offline   Reply With Quote
Old 24-04-2016, 04:32   #854
Registered User

Join Date: Oct 2009
Location: Aboard my boat, SE Asia 2014
Boat: Passport 45 Ketch
Posts: 29
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by rgleason View Post
Yes, we have a Development manual and a User Manual. It would be appropriate to split the documentation. If you want to do it yourself you can register and log in, or I can do it.
OK, I can split it. I have some updates to do to it in a day or so anyway.
Thanks,
Larry
__________________
svkatielee is offline   Reply With Quote
Old 28-02-2017, 19:39   #855
Registered User

Join Date: Feb 2017
Posts: 4
Re: OpenCPN Runs on Embedded ARM

I have 3 Cubies, 2 CubieTrucks and a Cubie2. Both have Samsung S5P4418 Cortex A9 dual core processors. I use an SSD with all Three of them and they are lots faster than either of my 2 Rasberry's. OpenCPN builds and works fine on the Cubie's especially the CubieTrucks because they have 2G of RAM. The File System I use is Debian instead of Ubuntu cause its considerably faster.
__________________

__________________
ealltech is offline   Reply With Quote
Reply

Tags
opencpn

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open CPN and Google Earth bgrimwade OpenCPN 19 09-12-2011 16:32
OpenCPN Version 2.5 Release bdbcat OpenCPN 86 02-09-2011 19:14
OpenCPN Stops Running BobLarkin OpenCPN 2 31-08-2011 00:38
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 05:31



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 10:14.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.