Skip to main content
yakabmarci
Associate III
September 14, 2019
Question

is there an easy and convenient way of updating rootfs

  • September 14, 2019
  • 1 reply
  • 642 views

i mean do the update somehow on the fly without removing the card from a running system, on the pc build a new rootfs and instead of removing the card, and do the copying on the pc, do this directly on the dk board. in principle it should be possible, i just need the 'magic' commands/scripts, or even have this new rootfs in ram on some ram drive

e.g. scp the new rootfs, then chroot to it, somehow

This topic has been closed for replies.

1 reply

Olivier GALLIEN
ST Technical Moderator
September 16, 2019

Hi @yakabmarci​ 

By connecting your board with ethernet you can update rootfs via "scp",then "sync" command to write it to SD-Card.

You have also solution to use remote rootfs via nfs or tftp server.

This page can help :

https://wiki.st.com/stm32mpu/wiki/How_to_boot_the_kernel_via_TFTP_from_U-Boot

Olivier

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.