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

core-linux sample build fails to start #2

Closed
ghost opened this issue Apr 18, 2019 · 3 comments
Closed

core-linux sample build fails to start #2

ghost opened this issue Apr 18, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 18, 2019

I've tried running the cFE core-linux sample build in fresh VMs of CentOS 7, Ubuntu 16.04, and Ubuntu 18.04, and am getting the same error each time I try to run core-linux.bin:

CFE_PSP: Default Reset Type = PO
CFE_PSP: Default Reset SubType = 1
CFE_PSP: Default CPU ID = 1
CFE_PSP: Default Spacecraft ID = 66
CFE_PSP: Default CPU Name: CPU1
CFE_PSP: Starting the cFE with a POWER ON reset.
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.
2029-107-16:47:31.25462 POWER ON RESET due to Power Cycle (Power Cycle).
2029-107-16:47:31.25465 ES Startup: CFE_ES_Main in EARLY_INIT state
CFE_PSP: CFE_PSP_AttachExceptions Called
2029-107-16:47:31.25466 ES Startup: CFE_ES_Main entering CORE_STARTUP state
2029-107-16:47:31.25467 ES Startup: Starting Object Creation calls.
2029-107-16:47:31.25467 ES Startup: Calling CFE_ES_CDSEarlyInit
2029-107-16:47:31.25470 ES Startup: Calling CFE_EVS_EarlyInit
2029-107-16:47:31.25474 Event Log cleared following power-on reset
2029-107-16:47:31.25474 ES Startup: Calling CFE_SB_EarlyInit
2029-107-16:47:31.25477 ES Startup: Calling CFE_TIME_EarlyInit
1980-012-14:03:20.00000 ES Startup: Calling CFE_TBL_EarlyInit
1980-012-14:03:20.00008 ES Startup: Calling CFE_FS_EarlyInit
1980-012-14:03:20.00016 ES Startup: OS_TaskCreate error creating core App: CFE_EVS: EC = 0xFFFFFFFF
CFE_PSP_Panic Called with error code = 0x00000006. Exiting.
The cFE could not start.

I get a few warnings when running make, but they don't seem to be a problem:

>>> [POST-BUILD] COPY BUILT FILES TO <CFS_PROM_APPS> <<<
 >> Create Directories <<
mkdir -p ./exe/cf
mkdir -p ./exe/cf/apps
mkdir -p ./exe/cf/log
mkdir -p ./exe/cf/upload
mkdir -p ./exe/cf/download
mkdir -p ./exe/ram

 >> Change Permissions <<
chmod 775 ./exe/*.bin
chmod 644 ./exe/*.so
chmod 644 ./exe/*.tbl
chmod: cannot access './exe/*.tbl': No such file or directory
../cfs.mak:232: recipe for target 'cfs_copy_installs' failed
make: [cfs_copy_installs] Error 1 (ignored)
chmod 644 ./exe/*.scr

 >> Copy Files <<
'./exe/core-linux.bin' -> './exe/cf/apps/core-linux.bin'
'./exe/ci_lab.so' -> './exe/cf/apps/ci_lab.so'
'./exe/sample_app.so' -> './exe/cf/apps/sample_app.so'
'./exe/sample_lib.so' -> './exe/cf/apps/sample_lib.so'
'./exe/sch_lab.so' -> './exe/cf/apps/sch_lab.so'
'./exe/to_lab.so' -> './exe/cf/apps/to_lab.so'
../cfs.mak:232: recipe for target 'cfs_copy_installs' failed
make: [cfs_copy_installs] Error 1 (ignored)

../cfs.mak:232: recipe for target 'cfs_copy_installs' failed
make: [cfs_copy_installs] Error 1 (ignored)
'./exe/cfe_es_startup.scr' -> './exe/cf/apps/cfe_es_startup.scr'

>>> DONE! <<<

There are no *.tbl files, which is causing the first couple warnings, and ./exe/cf/apps/cfe_es_startup.scr exists, so that seems to be fine as well.

I've tried this with the 6.5.0a release and building from master and see the same boot error.

@skliper
Copy link
Contributor

skliper commented Apr 18, 2019

https://coreflightsystem.org/ has links to submit bugs or contact the cFS community for support.

@skliper skliper transferred this issue from nasa/cFE May 31, 2019
@skliper
Copy link
Contributor

skliper commented May 31, 2019

Have you tried the rc-6.6.0a branch at https://github.com/nasa/cFS and associated instructions? Should work on most standard linux workstations.

@ghost
Copy link
Author

ghost commented Jun 20, 2019

I was attempting to run cFE within docker. It looks like docker doesn't provide all of the OS-level control cFE requires. Runs fine on a normal virtual machine.

@ghost ghost closed this as completed Jun 20, 2019
This issue was closed.
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

1 participant