Open sprhawk opened 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
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
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.
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