User defined shared libraries


#1

Hi,

We have some user defined shared libraries that are needed by our application. We tried copying then to “/usr/lib/” on FX30s board.
We get error “cp: can’t create ‘./libpcre.so.1’: Read-only file system”.

Can you let us know how we can remove the Read-Only flag or any folder where we can copy our libraries and use them.

Thanks,
Gowtham


#2

@gowtham1111,

You are going to need to recompile the system to build the drivers/libraries onto the system.

https://docs.legato.io/latest/basicBuild.html

Regards

Matt


#3

HI Matt,
Thanks for your reply. I tried recompiling the system. I am getting error as shown in the uploaded file. Can you please help in resolving the issues. I have gone through some of the links which refer to the same error. But I am not able to resolve the issue with the suggestions made in those links.

Also We want to add few additional directories into the target. can you point to the links to add additional directories to the framework so that we can see the folders in the target once the new framework is updated to the device.

wp85_Error.txt (13.4 KB)

Thanks,
Gowtham


#4

@gowtham1111,

I am not great at recompiling Legato frameworks or figuring out why Yocto recipes fail, you might be better off posting this on the Legato forum, there are some good experts there doing specifically this sort of thing.

Regards

Matt


#5

Hi Gowtham,
Have you downloaded the Source tarfile package and installed the toolchain for R14 from here?
https://source.sierrawireless.com/resources/airlink/software_downloads/fx30-firmware/fx30-firmware/

You only need the toolchain if you are building Legato or an application manually, outside of using Yocto.

Ideally, use the Yocto build and create a new Yocto layer and add it to the build environment. Then create a new recipe to install you libraries. If you need to compile from source, your recipe can do that too.

BR,
Chris