Cruisers & Sailing Forums (https://www.cruisersforum.com/forums/)
-   OpenCPN (https://www.cruisersforum.com/forums/f134/)
-   -   OpenCPN Runs on Embedded ARM (https://www.cruisersforum.com/forums/f134/opencpn-runs-on-embedded-arm-74082.html)

ticki 02-01-2012 14:45

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 03-01-2012 05:34

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

nohal 03-01-2012 06:03

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

ticki 03-01-2012 06:31

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 03-01-2012 08:41

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 03-01-2012 13:20

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

Beagle board as chart plotter - YouTube

Viking Sailor 03-01-2012 15:25

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:

ChannelIslander 03-01-2012 16:36

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

nohal 03-01-2012 17:48

Re: opencpn runs on embedded ARM
 
Nick...
Choose your preferred dealer at BeagleBoard.org - buy

Pavel

dacust 03-01-2012 19:06

Re: opencpn runs on embedded ARM
 
Quote:

Originally Posted by ticki (Post 851636)
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

ticki 03-01-2012 23:37

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

nohal 04-01-2012 01:28

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

ChannelIslander 06-01-2012 23:01

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

Viking Sailor 07-01-2012 01:01

Re: opencpn runs on embedded ARM
 
Quote:

Originally Posted by ChannelIslander (Post 854532)
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:

ticki 07-01-2012 02:16

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


All times are GMT -7. The time now is 01:24.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.


ShowCase vBulletin Plugins by Drive Thru Online, Inc.