Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error starting osk_42_lib.so and kit_to.so from cFS FSW Edu tab #72

Open
igor10091972 opened this issue Jul 13, 2021 · 10 comments
Open

Comments

@igor10091972
Copy link

igor10091972 commented Jul 13, 2021

Hi all!

I'm facing the following:
OSK starts normally when I press the Start cFS button on the Missions FSW tab: the System Time value increases and in the Cmd/Tlm server application, the LOCAL_CFS_INT line increases the number of bytes in the Byte Rx column. But when I try to do the same on the cFS FSW Edu tab, the System Time value does not change and the number of bytes in the Byte Rx column in the LOCAL_CFS_INT line does not change but changing in the CFDP_INT line. In this case, the terminal contains the following errors:

...
1980-012-14: 03: 20.25673 ES Startup: Loading shared library: /cf/osk_42_lib.so
Error loading shared library: ./cf/osk_42_lib.so: cannot open shared object file: No such file or directory
1980-012-14: 03: 20.25688 ES Startup: Could not load cFE Shared Library: -1
1980-012-14: 03: 20.25734 ES Startup: Loading file: /cf/kit_to.so, APP: KIT_TO
Error loading shared library: ./cf/kit_to.so: undefined symbol: round
1980-012-14: 03: 20.25754 ES Startup: Could not load cFE application file: /cf/kit_to.so. EC = 0xFFFFFFFF
....

Attempting to click Send Config Cmd Enable Telemetry nothing to do.

I would be grateful for any help or suggestions on how to try and fix these errors.

Igor

OS description: Ubuntu 18.04.5 LTS

Just in case, I will give the terminal full content below:

[sudo] password for kepler:
CFE_PSP: Default Reset Type = PO
CFE_PSP: Default Reset SubType = 1
CFE_PSP: Default CPU ID = 2
CFE_PSP: Default Spacecraft ID = 42
CFE_PSP: Default CPU Name: cfsat
CFE_PSP: Starting the cFE with a POWER ON reset.
Policy 1: available, min-max: 1-99
Policy 2: available, min-max: 1-99
Selected policy 2 for RT tasks, root task = 99
Maximum user msg queue depth = 10
OSAL: Registering VolumeTable map for ./cf on /cf
CFE_PSP: Clearing out CFE CDS Shared memory segment.
CFE_PSP: Clearing out CFE Reset Shared memory segment.
CFE_PSP: Clearing out CFE User Reserved Shared memory segment.
2031-194-12:41:33.12249 POWER ON RESET due to Power Cycle (Power Cycle).
2031-194-12:41:33.12255 ES Startup: CFE_ES_Main in EARLY_INIT state
CFE_PSP: CFE_PSP_AttachExceptions Called
2031-194-12:41:33.12260 ES Startup: CFE_ES_Main entering CORE_STARTUP state
2031-194-12:41:33.12260 ES Startup: Starting Object Creation calls.
2031-194-12:41:33.12261 ES Startup: Calling CFE_ES_CDSEarlyInit
2031-194-12:41:33.12304 ES Startup: Calling CFE_EVS_EarlyInit
2031-194-12:41:33.12311 Event Log cleared following power-on reset
2031-194-12:41:33.12312 ES Startup: Calling CFE_SB_EarlyInit
2031-194-12:41:33.12346 SB internal message format: CCSDS Space Packet Protocol version 1
2031-194-12:41:33.12354 ES Startup: Calling CFE_TIME_EarlyInit
1980-012-14:03:20.00000 ES Startup: Calling CFE_TBL_EarlyInit
1980-012-14:03:20.00019 ES Startup: Calling CFE_FS_EarlyInit
1980-012-14:03:20.00043 ES Startup: Core App: CFE_EVS created. App ID: 0
EVS Port1 42/2/CFE_EVS 1: cFE EVS Initialized. cFE Version 6.7.1.0
EVS Port1 42/2/CFE_EVS 14: No subscribers for MsgId 0x808,sender CFE_EVS
1980-012-14:03:20.05103 ES Startup: Core App: CFE_SB created. App ID: 1
1980-012-14:03:20.05150 SB:Registered 4 events for filtering
EVS Port1 42/2/CFE_SB 1: cFE SB Initialized
EVS Port1 42/2/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_SB
1980-012-14:03:20.10211 ES Startup: Core App: CFE_ES created. App ID: 2
EVS Port1 42/2/CFE_ES 1: cFE ES Initialized
EVS Port1 42/2/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_ES
EVS Port1 42/2/CFE_ES 2: Versions:cFE 6.7.1.0, OSAL 5.0.1.0, PSP 1.4.0.0, chksm 32145
EVS Port1 42/2/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_ES
EVS Port1 42/2/CFE_ES 91: Mission osk
EVS Port1 42/2/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_ES
EVS Port1 42/2/CFE_ES 92: Build 202107131541 kepler@ubuntu
1980-012-14:03:20.15317 ES Startup: Core App: CFE_TIME created. App ID: 3
EVS Port1 42/2/CFE_TIME 1: cFE TIME Initialized
1980-012-14:03:20.20386 ES Startup: Core App: CFE_TBL created. App ID: 4
EVS Port1 42/2/CFE_TBL 1: cFE TBL Initialized. cFE Version 6.7.1.0
1980-012-14:03:20.25450 ES Startup: Finished ES CreateObject table entries.
1980-012-14:03:20.25454 ES Startup: CFE_ES_Main entering CORE_READY state
1980-012-14:03:20.25457 ES Startup: Opened ES App Startup file: /cf/cfe_es_startup.scr
1980-012-14:03:20.25522 ES Startup: Loading shared library: /cf/cfs_lib.so
CFS Lib Initialized. Version 2.2.0.01980-012-14:03:20.25601 ES Startup: Loading shared library: /cf/osk_c_fw.so
OSK C Application Framework Library Initialized. Version 2.0.0
1980-012-14:03:20.25673 ES Startup: Loading shared library: /cf/osk_42_lib.so
Error loading shared library: ./cf/osk_42_lib.so: cannot open shared object file: No such file or directory
1980-012-14:03:20.25688 ES Startup: Could not load cFE Shared Library: -1
1980-012-14:03:20.25734 ES Startup: Loading file: /cf/kit_to.so, APP: KIT_TO
Error loading shared library: ./cf/kit_to.so: undefined symbol: round
1980-012-14:03:20.25754 ES Startup: Could not load cFE application file:/cf/kit_to.so. EC = 0xFFFFFFFF
1980-012-14:03:20.25800 ES Startup: Loading file: /cf/kit_ci.so, APP: KIT_CI
1980-012-14:03:20.25828 ES Startup: KIT_CI loaded and created
EVS Port1 42/2/KIT_CI 201: Socket bind failed. Status = 98
EVS Port1 42/2/KIT_CI 100: KIT_CI Initialized. Version 1.1.0
1980-012-14:03:20.25870 ES Startup: Loading file: /cf/fm.so, APP: FM
1980-012-14:03:20.25897 ES Startup: FM loaded and created
EVS Port1 42/2/FM 104: Free Space Table verify results: good entries = 3, bad = 0, unused = 5
EVS Port1 42/2/FM 1: Initialization complete: version 2.5.2.0
EVS Port1 42/2/FM 100: Child Task initialization complete
1980-012-14:03:20.25954 ES Startup: Loading file: /cf/md.so, APP: MD
1980-012-14:03:20.25973 ES Startup: MD loaded and created
EVS Port1 42/2/MD 52: MD Dwell Tbl verify results: good = 0, bad = 0, unused = 25
1980-012-14:03:20.26098 ES Startup: Loading file: /cf/mm.so, APP: MM
EVS Port1 42/2/MD 52: MD Dwell Tbl verify results: good = 0, bad = 0, unused = 25
1980-012-14:03:20.26124 ES Startup: MM loaded and created
EVS Port1 42/2/MM 1: MM Initialized. Version 2.4.1.0
EVS Port1 42/2/MD 52: MD Dwell Tbl verify results: good = 0, bad = 0, unused = 25
EVS Port1 42/2/MD 52: MD Dwell Tbl verify results: good = 0, bad = 0, unused = 25
1980-012-14:03:20.26288 ES Startup: Loading file: /cf/tftp.so, APP: TFTP
EVS Port1 42/2/MD 7: Dwell Tables Recovered: 0, Dwell Tables Initialized: 4
EVS Port1 42/2/MD 1: MD Initialized. Version 2.3.3.0
1980-012-14:03:20.26306 ES Startup: TFTP loaded and created
EVS Port1 42/2/TFTP 111: Socket bind failed. errno = 98
EVS Port1 42/2/TFTP 100: TFTP App Initialized. Version 1.1.0
1980-012-14:03:20.26348 ES Startup: Loading file: /cf/kit_sch.so, APP: KIT_SCH
1980-012-14:03:20.26369 ES Startup: KIT_SCH loaded and created
EVS Port1 42/2/KIT_SCH 25: Successfully replaced table 0 using file /cf/osk_sch_msg_tbl.json
EVS Port1 42/2/KIT_SCH 25: Successfully replaced table 1 using file /cf/osk_sch_sch_tbl.json
EVS Port1 42/2/KIT_SCH 101: KIT_SCH Initialized. Version 2.0.0
1980-012-14:03:20.36394 ES Startup: CFE_ES_Main entering APPS_INIT state
1980-012-14:03:20.36395 ES Startup: CFE_ES_Main entering OPERATIONAL state
EVS Port1 42/2/CFE_TIME 21: Stop FLYWHEEL
EVS Port1 42/2/KIT_SCH 406: Multiple slots processed: slot = 0, count = 2
EVS Port1 42/2/KIT_SCH 404: Major Frame Sync too noisy (Slot 1). Disabling synchronization.
[sudo] password for kepler:
CFE_PSP: Default Reset Type = PO
CFE_PSP: Default Reset SubType = 1
CFE_PSP: Default CPU ID = 2
CFE_PSP: Default Spacecraft ID = 42
CFE_PSP: Default CPU Name: cfsat
CFE_PSP: Starting the cFE with a POWER ON reset.
Policy 1: available, min-max: 1-99
Policy 2: available, min-max: 1-99
Selected policy 2 for RT tasks, root task = 99
Maximum user msg queue depth = 10
OSAL: Registering VolumeTable map for ./cf on /cf
CFE_PSP: Clearing out CFE CDS Shared memory segment.
CFE_PSP: Clearing out CFE Reset Shared memory segment.
CFE_PSP: Clearing out CFE User Reserved Shared memory segment.
2031-194-12:41:33.12249 POWER ON RESET due to Power Cycle (Power Cycle).
2031-194-12:41:33.12255 ES Startup: CFE_ES_Main in EARLY_INIT state
CFE_PSP: CFE_PSP_AttachExceptions Called
2031-194-12:41:33.12260 ES Startup: CFE_ES_Main entering CORE_STARTUP state
2031-194-12:41:33.12260 ES Startup: Starting Object Creation calls.
2031-194-12:41:33.12261 ES Startup: Calling CFE_ES_CDSEarlyInit
2031-194-12:41:33.12304 ES Startup: Calling CFE_EVS_EarlyInit
2031-194-12:41:33.12311 Event Log cleared following power-on reset
2031-194-12:41:33.12312 ES Startup: Calling CFE_SB_EarlyInit
2031-194-12:41:33.12346 SB internal message format: CCSDS Space Packet Protocol version 1
2031-194-12:41:33.12354 ES Startup: Calling CFE_TIME_EarlyInit
1980-012-14:03:20.00000 ES Startup: Calling CFE_TBL_EarlyInit
1980-012-14:03:20.00019 ES Startup: Calling CFE_FS_EarlyInit
1980-012-14:03:20.00043 ES Startup: Core App: CFE_EVS created. App ID: 0
EVS Port1 42/2/CFE_EVS 1: cFE EVS Initialized. cFE Version 6.7.1.0
EVS Port1 42/2/CFE_EVS 14: No subscribers for MsgId 0x808,sender CFE_EVS
1980-012-14:03:20.05103 ES Startup: Core App: CFE_SB created. App ID: 1
1980-012-14:03:20.05150 SB:Registered 4 events for filtering
EVS Port1 42/2/CFE_SB 1: cFE SB Initialized
EVS Port1 42/2/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_SB
1980-012-14:03:20.10211 ES Startup: Core App: CFE_ES created. App ID: 2
EVS Port1 42/2/CFE_ES 1: cFE ES Initialized
EVS Port1 42/2/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_ES
EVS Port1 42/2/CFE_ES 2: Versions:cFE 6.7.1.0, OSAL 5.0.1.0, PSP 1.4.0.0, chksm 32145
EVS Port1 42/2/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_ES
EVS Port1 42/2/CFE_ES 91: Mission osk
EVS Port1 42/2/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_ES
EVS Port1 42/2/CFE_ES 92: Build 202107131541 kepler@ubuntu
1980-012-14:03:20.15317 ES Startup: Core App: CFE_TIME created. App ID: 3
EVS Port1 42/2/CFE_TIME 1: cFE TIME Initialized
1980-012-14:03:20.20386 ES Startup: Core App: CFE_TBL created. App ID: 4
EVS Port1 42/2/CFE_TBL 1: cFE TBL Initialized. cFE Version 6.7.1.0
1980-012-14:03:20.25450 ES Startup: Finished ES CreateObject table entries.
1980-012-14:03:20.25454 ES Startup: CFE_ES_Main entering CORE_READY state
1980-012-14:03:20.25457 ES Startup: Opened ES App Startup file: /cf/cfe_es_startup.scr
1980-012-14:03:20.25522 ES Startup: Loading shared library: /cf/cfs_lib.so
CFS Lib Initialized. Version 2.2.0.01980-012-14:03:20.25601 ES Startup: Loading shared library: /cf/osk_c_fw.so
OSK C Application Framework Library Initialized. Version 2.0.0
1980-012-14:03:20.25673 ES Startup: Loading shared library: /cf/osk_42_lib.so
Error loading shared library: ./cf/osk_42_lib.so: cannot open shared object file: No such file or directory
1980-012-14:03:20.25688 ES Startup: Could not load cFE Shared Library: -1
1980-012-14:03:20.25734 ES Startup: Loading file: /cf/kit_to.so, APP: KIT_TO
Error loading shared library: ./cf/kit_to.so: undefined symbol: round
1980-012-14:03:20.25754 ES Startup: Could not load cFE application file:/cf/kit_to.so. EC = 0xFFFFFFFF
1980-012-14:03:20.25800 ES Startup: Loading file: /cf/kit_ci.so, APP: KIT_CI
1980-012-14:03:20.25828 ES Startup: KIT_CI loaded and created
EVS Port1 42/2/KIT_CI 201: Socket bind failed. Status = 98
EVS Port1 42/2/KIT_CI 100: KIT_CI Initialized. Version 1.1.0
1980-012-14:03:20.25870 ES Startup: Loading file: /cf/fm.so, APP: FM
1980-012-14:03:20.25897 ES Startup: FM loaded and created
EVS Port1 42/2/FM 104: Free Space Table verify results: good entries = 3, bad = 0, unused = 5
EVS Port1 42/2/FM 1: Initialization complete: version 2.5.2.0
EVS Port1 42/2/FM 100: Child Task initialization complete
1980-012-14:03:20.25954 ES Startup: Loading file: /cf/md.so, APP: MD
1980-012-14:03:20.25973 ES Startup: MD loaded and created
EVS Port1 42/2/MD 52: MD Dwell Tbl verify results: good = 0, bad = 0, unused = 25
1980-012-14:03:20.26098 ES Startup: Loading file: /cf/mm.so, APP: MM
EVS Port1 42/2/MD 52: MD Dwell Tbl verify results: good = 0, bad = 0, unused = 25
1980-012-14:03:20.26124 ES Startup: MM loaded and created
EVS Port1 42/2/MM 1: MM Initialized. Version 2.4.1.0
EVS Port1 42/2/MD 52: MD Dwell Tbl verify results: good = 0, bad = 0, unused = 25
EVS Port1 42/2/MD 52: MD Dwell Tbl verify results: good = 0, bad = 0, unused = 25
1980-012-14:03:20.26288 ES Startup: Loading file: /cf/tftp.so, APP: TFTP
EVS Port1 42/2/MD 7: Dwell Tables Recovered: 0, Dwell Tables Initialized: 4
EVS Port1 42/2/MD 1: MD Initialized. Version 2.3.3.0
1980-012-14:03:20.26306 ES Startup: TFTP loaded and created
EVS Port1 42/2/TFTP 111: Socket bind failed. errno = 98
EVS Port1 42/2/TFTP 100: TFTP App Initialized. Version 1.1.0
1980-012-14:03:20.26348 ES Startup: Loading file: /cf/kit_sch.so, APP: KIT_SCH
1980-012-14:03:20.26369 ES Startup: KIT_SCH loaded and created
EVS Port1 42/2/KIT_SCH 25: Successfully replaced table 0 using file /cf/osk_sch_msg_tbl.json
EVS Port1 42/2/KIT_SCH 25: Successfully replaced table 1 using file /cf/osk_sch_sch_tbl.json
EVS Port1 42/2/KIT_SCH 101: KIT_SCH Initialized. Version 2.0.0
1980-012-14:03:20.36394 ES Startup: CFE_ES_Main entering APPS_INIT state
1980-012-14:03:20.36395 ES Startup: CFE_ES_Main entering OPERATIONAL state
EVS Port1 42/2/CFE_TIME 21: Stop FLYWHEEL
EVS Port1 42/2/KIT_SCH 406: Multiple slots processed: slot = 0, count = 2
EVS Port1 42/2/KIT_SCH 404: Major Frame Sync too noisy (Slot 1). Disabling synchronization.

@igor10091972 igor10091972 changed the title Error starting osk_42_lib.so and KIT_TO from cFS FSW Edu tab Error starting osk_42_lib.so and kit_to.so from cFS FSW Edu tab Jul 13, 2021
@igor10091972
Copy link
Author

igor10091972 commented Jul 13, 2021

Oh, I seem to have solved my trouble!

I just added the osk_42_lib to the list of applications for the cFS FSW Edu tab in source file ~/OpenSatKit-master/cfs/osk_defs/targets.cmake.
Thus, in order for OSK to start normally from the cFS FSW Edu tab, the edited list of applications should look like this:

SET (TGT2_APPLIST cfs_lib osk_42_lib osk_c_fw kit_ci kit_sch kit_to tftp fm md mm).

And if the connection to the Cmd / Tlm server does not automatically occur, the System Time does not start and the value of the LOCAL_CFS_INT packet counter in the Bytes Rx column does not start to increase, then you must click the

Send Config Command < Enable Telemetry > button.

Sincerely, Igor.

@dmccomas
Copy link
Contributor

Glad you were able to quickly work around the issue. My intention is to not have the 42 library loaded in the cFS education target so cfs/osk_defs/cfsat_cfe_es_startup.scr should not include the following line that loads the library

     CFE_LIB, /cf/osk_42_lib.so,   OSK_42_LIB_LibInit,  OSK_42_LIB,     0,   16384, 0x0, 0;

Here's a picture of the cfsat target.

cfsat_target

I'm trying to get v3.1 out ASAP and it will have improved 'quick start' documentation for each target. And hopefully no bugs :-)

@dmccomas
Copy link
Contributor

When I removed osk_42_lib.so from the startup script I found another latent bug. KIT_TO relies on the round() function in the standard math libraries so its cmakelist.txt file should have the math library specified and it doesn't. osk_42_Lib does include the math libraries so kit_to coudl dynamically link to the math libaries but when I removed osk_42_lib kit)to failed to load.

In kit_to's cmakelist.txt I added the following line be below the line "add_cfe_app(kit_to ${APP_SRC_FILES})"
target_link_libraries (kit_to m)

@igor10091972
Copy link
Author

igor10091972 commented Jul 18, 2021 via email

@igor10091972
Copy link
Author

igor10091972 commented Jul 19, 2021 via email

@igor10091972
Copy link
Author

igor10091972 commented Jul 19, 2021 via email

@igor10091972
Copy link
Author

igor10091972 commented Jul 19, 2021 via email

@igor10091972
Copy link
Author

igor10091972 commented Jul 20, 2021 via email

@dmccomas
Copy link
Contributor

dmccomas commented Jul 27, 2021 via email

@APathak666
Copy link

APathak666 commented Feb 4, 2022

Oh, I seem to have solved my trouble!

I just added the osk_42_lib to the list of applications for the cFS FSW Edu tab in source file ~/OpenSatKit-master/cfs/osk_defs/targets.cmake. Thus, in order for OSK to start normally from the cFS FSW Edu tab, the edited list of applications should look like this:

SET (TGT2_APPLIST cfs_lib osk_42_lib osk_c_fw kit_ci kit_sch kit_to tftp fm md mm).

And if the connection to the Cmd / Tlm server does not automatically occur, the System Time does not start and the value of the LOCAL_CFS_INT packet counter in the Bytes Rx column does not start to increase, then you must click the

Send Config Command < Enable Telemetry > button.

Sincerely, Igor.

I am facing the same problem (Major Frame Sync too noisy (Slot 1). Disabling synchronization.). I checked my "targets.cmake" file in osk_defs, and "osk_42_lib" is already added to the list of applications. However, I continue to get this error. Any idea what could be causing this?

Also, I am running into this issue irrespective of whether I start cFS from "cFS education" or "Mission FSW"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants