cancel
Showing results for 
Search instead for 
Did you mean: 

How to access to bootfs from Distribution Package

Mark81
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

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.

View solution in original post

4 REPLIES 4
Fee
Senior

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
Associate III

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
ST Employee

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.

Yes, very useful! Thanks!