Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-01-2012, 14:45   #1
Registered User

Join Date: Mar 2010
Posts: 24
OpenCPN Runs on Embedded ARM

hi,
thast days over the chrismas days i have worked to bring opencpn to my ARM-board. After some issues with compiling the librarys and configure the cmake it is running now on my "beagleboard xm" so for all interesting people the beagle board is a "open source" small embedded ARM-Cortex A8 based computer (100 x 100 mm) with only needs 2 W. It has DVI/S-Video
USB-Network etc..
So the opencpn runs fine , bat !!!
@developers
If i try to import the ENC charts it stops on the procedure like "ARCH 1/3220 in header of the dialog)
gpsd is killed bevore
i think it is a problem with the memory , because i have no swap partition.
If you use "strings" to read some things can you tell me where (which file, function). maybe i can modify it to char arrays for a smaller performance.

if i am ready i bring the complete Image for the beagle board here online

from opencpn to the openplotter !!

regards

Update:
the system not hangs ! i can do everythings on the system only the opencpn has no action ( processor usage by "top" is on 95% , the card reading and writing is working ->Oszilloskop tells me nice signals). bat the memory usage is at ..end.. so for linux no problem they deleting the cash very well.
__________________

__________________
ticki is offline   Reply With Quote
Old 03-01-2012, 05:34   #2
Registered User

Join Date: Mar 2010
Posts: 24
Re: opencpn runs on embedded ARM

so again,
i have startet opencpn with a standalone xinit session, now i have >200 MB memory free.

bat if i like to install the NOAA ENC -Charts the program hangs after
the second step ( ex. "COALINE 117/783" ) the CPU is up to 99 %
memory is available . Nobody has any idea ?
if i kill , and restart the program it is the same , directly after the start opencpn begin to converting and hangs.

Nobody has any idea ?

regards
__________________

__________________
ticki is offline   Reply With Quote
Old 03-01-2012, 06:03   #3
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: opencpn runs on embedded ARM

ticki...
Hard to say, your info is not sufficient to come up with something that makes much sense.
The overall experience with ARM is very limited here - Dave has non as far as I know, me neither.
If you want to know what's up and where your hang actually happens, add some debugging messages to the code - start in s57chart::BuildSENCFile() in s57chart.cpp and try to isolate the point you can't pass so we can try to do something about it.
How much physical memory does the machine have?
I regularly test on x86 Ubuntu 10.10 with 256 MB of RAM and no swap and don't get any hangs, even with 128MB + some swap everything works with lower performance (but even though being a virtual, the machine is not as slow as an ARM and the filesystem never is on a memory card or something similar).
Aside from the ENC ingesting everything else works? What's the performance and memory footprint with the raster charts?

Pavel
__________________
nohal is offline   Reply With Quote
Old 03-01-2012, 06:31   #4
Registered User

Join Date: Mar 2010
Posts: 24
Re: opencpn runs on embedded ARM

first thanks for your answer !
i will try now the rastercharts.

i have the following opensource board ->
BeagleBoard.org - hardware-xM
1 Ghz 512MB DDR-RAm
if i start with xfce4 an started opencpn there are 288MB memory free.
Note !I have no swap partition.

and i have limited the memory usage for opencpn by
MEMCacheLimit=150

the problem is at the moment that i can not debug , i have īfirst build up the enviroment for opencpn and the gdb on the ARM
__________________
ticki is offline   Reply With Quote
Old 03-01-2012, 08:41   #5
Registered User

Join Date: Mar 2010
Posts: 24
Re: opencpn runs on embedded ARM

hi nohal,
it works with the rastercharts very well. bat i think i have a problem with the memory management. the memory goes up if i download big files , i build new filesystem with swap partition.

bat important is : Opencpn runs now on the beagleboard ! great
on my small boat i have not so much energy , with that board no problem!

regards
__________________
ticki is offline   Reply With Quote
Old 03-01-2012, 13:20   #6
Registered User

Join Date: Mar 2010
Posts: 24
Re: opencpn runs on embedded ARM the video

hi @ all
i added the video .
sorry for my english and ... i am developer not movie star

__________________
ticki is offline   Reply With Quote
Old 03-01-2012, 15:25   #7
Registered User
 
Viking Sailor's Avatar

Join Date: Nov 2006
Location: San Francisco Bay
Boat: Fantasia 35 - s/v Feeling Good
Posts: 1,074
Re: opencpn runs on embedded ARM

ticki,

Well done! Congratulations on your porting OpenCPN to the ARM processor. You have made a significant contribution to small and low cost cruising. I look forward to hearing more about this great accomplishment. Thanks.

Best regards.

__________________
Viking Sailor is offline   Reply With Quote
Old 03-01-2012, 16:36   #8
Registered User

Join Date: Dec 2011
Location: Santa Barbara CA
Boat: Catalina 36 Mk I
Posts: 73
Re: opencpn runs on embedded ARM

That is very cool.

Are you the developer of the Beagle Board? If not, where can one purchase them?

What OS does the BB run?

Very good work. I am interested in this , as my Macbook takes way too much power.

Thanks

Nick
__________________
___________________
1984 Catalina 36 Mk I
Santa Barbara, Calif.
ChannelIslander is offline   Reply With Quote
Old 03-01-2012, 17:48   #9
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: opencpn runs on embedded ARM

Nick...
Choose your preferred dealer at BeagleBoard.org - buy

Pavel
__________________
nohal is offline   Reply With Quote
Old 03-01-2012, 19:06   #10
Obsfucator, Second Class
 
dacust's Avatar

Cruisers Forum Supporter

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,743
Re: opencpn runs on embedded ARM

Quote:
Originally Posted by ticki View Post
so again,
i have startet opencpn with a standalone xinit session, now i have >200 MB memory free.

bat if i like to install the NOAA ENC -Charts the program hangs after
the second step ( ex. "COALINE 117/783" ) the CPU is up to 99 %
memory is available . Nobody has any idea ?
if i kill , and restart the program it is the same , directly after the start opencpn begin to converting and hangs.

Nobody has any idea ?

regards
One thing is make sure you have quilting turned OFF so it only tries one chart.

I have not gone back to document, but if I continually "Ingest" ENC charts, eventually, the program hangs, running out of memory (that's on my 6gb Win 7 machine). So, I think there is maybe a memory leak somewhere.

I need to go back and try it on the latest beta and, if it still does it, document it for Dave.

-dan
dacust is offline   Reply With Quote
Old 03-01-2012, 23:37   #11
Registered User

Join Date: Mar 2010
Posts: 24
Re: opencpn runs on embedded ARM

hi @all
no i am not the developer of the beagleboard. but i am big fan !
all can be work also with the pandaboard . the panda has the same CPU
and more memory. i think BeagleBoard XM is has all what we need.

i have testet with multiple charts to. when loading the S57 Charts the memory has a Overflow. Today i will create a new version with a SWAP-Partition(virtual memory ). then i write the results here.

Anybody has a Idea for good platform to Upload the comlplete SD-CARD Image and description ? My Webserver is to small.

regards
__________________
ticki is offline   Reply With Quote
Old 04-01-2012, 01:28   #12
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: opencpn runs on embedded ARM

ticki...
How big is the image? I host my code and downloads on github.com, but am not sure if it's a right place for your project, anyway there's a soft limit of 300MB for your downloads. It would probably even be possible to get space from ibiblio - The Public's Library and Digital Archive, but the process will be a little more complicated I suppose.
It would be really nice if the image came with a description helping the others to do it themsleves, so it's easier in the future for the other people with all those different ARM flavors available...
Or if none of it suits your needs, let me know, I could probably host the file on my machine.

Pavel
__________________
nohal is offline   Reply With Quote
Old 06-01-2012, 23:01   #13
Registered User

Join Date: Dec 2011
Location: Santa Barbara CA
Boat: Catalina 36 Mk I
Posts: 73
Re: opencpn runs on embedded ARM

ticki, pavel, anyone who knows:

what about a low-amp monitor?

I am liking this a lot Could see having three of these ready to go with OCPN and charts loaded, as double redundant backup, all for less than the cheapest laptop.

Monitor?

Thx

Nick
__________________
___________________
1984 Catalina 36 Mk I
Santa Barbara, Calif.
ChannelIslander is offline   Reply With Quote
Old 07-01-2012, 01:01   #14
Registered User
 
Viking Sailor's Avatar

Join Date: Nov 2006
Location: San Francisco Bay
Boat: Fantasia 35 - s/v Feeling Good
Posts: 1,074
Re: opencpn runs on embedded ARM

Quote:
Originally Posted by ChannelIslander View Post
ticki, pavel, anyone who knows:

what about a low-amp monitor?

I am liking this a lot Could see having three of these ready to go with OCPN and charts loaded, as double redundant backup, all for less than the cheapest laptop.

Monitor?

Thx

Nick
This one looks good. LCD LVDS add-on board

__________________
Viking Sailor is offline   Reply With Quote
Old 07-01-2012, 02:16   #15
Registered User

Join Date: Mar 2010
Posts: 24
Re: opencpn runs on embedded ARM

hi,
i ordered this LVDS add on and the monitor in december. if i received it, i will test and tell you the results.

I have also ready now running opencpn with vector charts, bat the peroformance is not so good. opencpn needs full memory and 50-75 % of the CPU. after some hour 3-4 open cpn hangs. (only with the vectorcharts). so i can work, configure etc. bat no data available. the serial line works( cat /dev/ttyS2 shows the data).

has any body here description for the memory params of the opencpn.conf ?

Maybe we can optimize some things

@nohal
thanks for the offer, bat i think 300MB are to small for the complete Image.

regards
ticki
__________________

__________________
ticki 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 03:45.


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.