cancel
Showing results for 
Search instead for 
Did you mean: 

Rootfs, read only and st_image_core

Eldam
Senior

Hello ST Teams!

Question, again!

I'd like to know if the image "st-image-core" or "st-image-weston" are compatible with the "read-only-rootfs" from yocto append? (thud or dunfell)

Well I've already tried on the st-image-core and bitbake compilation failed, saying something about user-fs.

Any hints would be welcome!

Have a nice confined day!

1 ACCEPTED SOLUTION

Accepted Solutions
Eldam
Senior

Well after some attempt, i've been able to get a read only rootfs using st-image-core ans SDK2.

I've found that if I modify local.conf by adding "read-only-rootfs" in EXTRA_IMAGE_FEATURES

it cannot bitbake , stating errors about vendorfs and ldconfig

But, if i made a copy of st-image-core.bb (and rename it) and put it in my own layer (/meta-something/images/my-custom-image.bb)

i add 'read-only-rootfs' in the "image-features-part"

It bitbakes ok, and i have a rootfs in readonly mode.

The final goal is to have an almost stateless device in order to have a robust embedded device.

Next step, dive into simlink and others things!

seeya!

links that helped, in french, sorry!

https://www.blaess.fr/christophe/yocto-lab/sequence-II-2/index.html#utilisation-des-fonctionnalites-d-image

https://www.blaess.fr/christophe/yocto-lab/sequence-III-1/index.html#systeme-de-fichiers-en-lecture-seule

View solution in original post

2 REPLIES 2
Olivier GALLIEN
ST Employee

Hi @Eldam​ ,

I escalate your point to some expert.

In the meantime can you share exact error trace or even complete logs of the build ?

Thx

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Eldam
Senior

Well after some attempt, i've been able to get a read only rootfs using st-image-core ans SDK2.

I've found that if I modify local.conf by adding "read-only-rootfs" in EXTRA_IMAGE_FEATURES

it cannot bitbake , stating errors about vendorfs and ldconfig

But, if i made a copy of st-image-core.bb (and rename it) and put it in my own layer (/meta-something/images/my-custom-image.bb)

i add 'read-only-rootfs' in the "image-features-part"

It bitbakes ok, and i have a rootfs in readonly mode.

The final goal is to have an almost stateless device in order to have a robust embedded device.

Next step, dive into simlink and others things!

seeya!

links that helped, in french, sorry!

https://www.blaess.fr/christophe/yocto-lab/sequence-II-2/index.html#utilisation-des-fonctionnalites-d-image

https://www.blaess.fr/christophe/yocto-lab/sequence-III-1/index.html#systeme-de-fichiers-en-lecture-seule