OpenSatKit / pi-sat

Provides a cFS distribution that can be run on a Raspberry Pi. It also contains Raspbian configuration instructions and python tools that allow the cFS to communicate with the OSK's COSMOS platform.
Apache License 2.0
11 stars 2 forks source link

fix compiling errors #1

Open sprhawk opened 2 years ago

sprhawk commented 2 years ago

Fixed build error, mostly format specifier errors.

Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

Shawn531 commented 2 years ago

Fixed build error, mostly format specifier errors.

Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

The build error is fixed after I edited "dma.h", but it comes out another error while executing cFS.

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/mipea.so: undefined symbol: _mbox_fd 1980-012-14:03:56.51051 ES Startup: Could not load file:/cf/mipea.so. EC = 0xFFFFFFFF

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/gpio_demo.so: undefined symbol: gpio_clr 1980-012-14:03:56.52130 ES Startup: Could not load file:/cf/gpio_demo.so. EC = 0xFFFFFFFF

So the gpio_demo can't be executed because of these two errors. How could I fix it? Thanks

sprhawk commented 2 years ago

Fixed build error, mostly format specifier errors. Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

The build error is fixed after I edited "dma.h", but it comes out another error while executing cFS.

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/mipea.so: undefined symbol: _mbox_fd 1980-012-14:03:56.51051 ES Startup: Could not load file:/cf/mipea.so. EC = 0xFFFFFFFF

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/gpio_demo.so: undefined symbol: gpio_clr 1980-012-14:03:56.52130 ES Startup: Could not load file:/cf/gpio_demo.so. EC = 0xFFFFFFFF

So the gpio_demo can't be executed because of these two errors. How could I fix it? Thanks

My bad, try the latest commit. I forgot to add declaration of mbox_id in dma.c

Shawn531 commented 2 years ago

Fixed build error, mostly format specifier errors. Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

The build error is fixed after I edited "dma.h", but it comes out another error while executing cFS. OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/mipea.so: undefined symbol: _mbox_fd 1980-012-14:03:56.51051 ES Startup: Could not load file:/cf/mipea.so. EC = 0xFFFFFFFF OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/gpio_demo.so: undefined symbol: gpio_clr 1980-012-14:03:56.52130 ES Startup: Could not load file:/cf/gpio_demo.so. EC = 0xFFFFFFFF So the gpio_demo can't be executed because of these two errors. How could I fix it? Thanks

My bad, try the latest commit. I forgot to add declaration of mbox_id in dma.c

Thanks a lot. It work.