PostFrontal Forum
PostFrontal Forum
LK8000_Support_Forum | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 LK8000 International Support
 Developers
 LK8000 on PI 3b+ compiled but failed to run
 New Topic  Reply to Topic
Author  Topic Next Topic  

ziozanna
Pulcino

Italy
19 Posts

Posted - 12/06/2023 :  23:22:40  Show Profile  Reply with Quote
Good morning everyone

a little help to make LK run on PI

On raspberry native , last OS I ran this commands
$ make TARGET=$
$ make TARGET=PI install

Process complete as a charm

launching the app
zanna@raspberrypi:~/LK8000 $ ./LK8000-PI
* failed to add service - already in use?

Here the LOG
[016046406] . Starting LK8000 v7.4.5 Jun 12 2023 LINUX
[016046406] . System Name: Linux raspberrypi
[016046406] . Kernel Version: 6.1.32-v7+
[016046406] . Kernel Build: #1656 SMP Wed Jun 7 11:31:19 BST 2023
[016046406] . Machine Arch: armv7l
[016046406] . Free ram=380648 K storage=1974720 K
[016046829] . Host and Cpu informations not available
[016046829] . Program execution path : </home/zanna/LK8000/>
[016046829] . Program system directory : </home/zanna/LK8000/>
[016046829] . Program data directory : </home/zanna/LK8000/>
[016046851] .... LoadProfile </home/zanna/LK8000/_Configuration/DEFAULT_AIRCRAFT.acf> open failed
[016046851] .... LoadProfile </home/zanna/LK8000/_Configuration/DEFAULT_PILOT.plt> open failed
[016046851] .... LoadProfile </home/zanna/LK8000/_Configuration/DEFAULT_DEVICE.dvc> open failed
[016046851] .... LoadProfile </home/zanna/LK8000/_Configuration/DEFAULT_PROFILE.prf> open failed

Launching with help
zanna@raspberrypi:~/LK8000 $ ./LK8000-PI -help

**************** LK8000 command line help ******************
-help
-profile=filename
load filename as StartProfileFile
-x=n -y=n
use specified screen resolution, example -x=480 -y=272
-lcdsize=n
assume monitor size is n inches. The value must be multiplied by 10
and must be integer. Example for 4.5 inches, use -lcdsize=45
-dpi=n
assume screen density has n dpi , example -dpi=144
This value ovverrides -lcdsize
-refdpi=n
set reference DPI, default to 80.
-quant=n
force terrain quantization=n
-sysop
start with sysop mode active

Segmentation fault

Here the log
[016182447] [System exception] cannot create named mutex (lockfile): LOCK8000
[016182685] ------------------------------------------------------------
[016182685] . Starting LK8000 v7.4.5 Jun 12 2023 LINUX
[016182685] . System Name: Linux raspberrypi
[016182685] . Kernel Version: 6.1.32-v7+
[016182685] . Kernel Build: #1656 SMP Wed Jun 7 11:31:19 BST 2023
[016182685] . Machine Arch: armv7l
[016182685] . Free ram=379892 K storage=1974716 K
[016183116] . Host and Cpu informations not available
[016183116] . Program execution path : </home/zanna/LK8000/>
[016183116] . Program system directory : </home/zanna/LK8000/>
[016183116] . Program data directory : </home/zanna/LK8000/>

Any helps will be really apreciated

Andrea

brunotl
Pterodattilo

France
1101 Posts

Posted - 12/06/2023 :  23:56:20  Show Profile  Reply with Quote
build it with "DEBUG=y" in make command line ans run it in debbuger to see where is the segfault ...

Go to Top of Page

ziozanna
Pulcino

Italy
19 Posts

Posted - 14/06/2023 :  00:55:58  Show Profile  Reply with Quote
quote:
Originally posted by brunotl

build it with "DEBUG=y" in make command line ans run it in debbuger to see where is the segfault ...





Bruno thanks for the suggestion, I rebuild with debug but I don't know how to run in debugger mode. If you can help I execute
Anyway , apart of Segmentation Fault what does means

zanna@raspberrypi:~/LK8000 $ ./LK8000-PI
* failed to add service - already in use?

Thanks
Go to Top of Page

brunotl
Pterodattilo

France
1101 Posts

Posted - 14/06/2023 :  13:58:31  Show Profile  Reply with Quote
some Info about Raspberry Pi remote debugging found in other project :
- https://github.com/gloveboxes/Raspberry-Pi-with-Visual-Studio-Code-Remote-SSH-and-C-or-C-Development
- https://tttapa.github.io/Pages/Raspberry-Pi/C++-Development-RPiOS/Debugging.html
- https://github.com/Ed-Yang/rpidebug
Go to Top of Page

brunotl
Pterodattilo

France
1101 Posts

Posted - 14/06/2023 :  14:20:34  Show Profile  Reply with Quote
TIPS : PI target can't run on desktop environment, you need to stop X server before ...
Go to Top of Page

ziozanna
Pulcino

Italy
19 Posts

Posted - 14/06/2023 :  22:20:43  Show Profile  Reply with Quote
quote:
Originally posted by brunotl

TIPS : PI target can't run on desktop environment, you need to stop X server before ...



Yep I know thanks.

PI Starts on init 3 , multitasking with no graphics at all

Andrea
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.12 seconds. Snitz Forums 2000

Since 2006, owned and maintained by PostFrontal S.A.S. di Giuliano Golfieri & c. - VAT ID: IT05264240960
THIS WEBSITE ONLY USES FUNCTIONAL COOKIES
Privacy & Cookie Policy