Skip to main content
Eldam
Senior
October 30, 2020
Solved

Rootfs, read only and st_image_core

  • October 30, 2020
  • 2 replies
  • 1478 views

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!

This topic has been closed for replies.
Best answer by Eldam

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

2 replies

Olivier GALLIEN
Technical Moderator
November 5, 2020

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
EldamAuthorBest answer
Senior
November 16, 2020

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