Skip to main content
Mark81
Associate III
February 8, 2020
Solved

How to access to bootfs from Distribution Package

  • February 8, 2020
  • 2 replies
  • 1546 views

Using the Distribution Package for STM32MP1 I'm able to access to the rootfs partition, example:

my_postprocess_function() {
	cp -dr /home/osboxes/www ${IMAGE_ROOTFS}/opt/
	chown -R daemon:daemon ${IMAGE_ROOTFS}/opt/www/
}

But how to access to bootfs partition? For example to add the `boot.scr.uimg` or `rproc-m4-fw.elf`. I cannot find a `${IMAGE_BOOTFS}` variable.

This topic has been closed for replies.
Best answer by Olivier GALLIEN

Hi @Mark81​ 

Please find attached a patch that suggest one solution to copy cube firmware exemples .elf inside bootfs.

Hope it can give you some insight for your need.

Olivier

2 replies

Fee
Associate II
February 10, 2020

Did you mount the bootfs (you can check that by using lsblk)? If not, try to mount the partiotion depending on your configuration. Then the access should be available via the rootfs.

Mark81
Mark81Author
Associate III
February 10, 2020

Mounting the partition as devloop is the ugly workaround I'm actually using.

I'm asking how to do this within the Distribution Package (Yocto).

Olivier GALLIEN
Olivier GALLIENBest answer
Technical Moderator
February 10, 2020

Hi @Mark81​ 

Please find attached a patch that suggest one solution to copy cube firmware exemples .elf inside bootfs.

Hope it can give you some insight for your need.

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.
Mark81
Mark81Author
Associate III
February 10, 2020

Yes, very useful! Thanks!