[yocto] How to run script before mount rootfs
Gmail
jonaskgandersson at gmail.com
Wed Jul 3 11:44:19 PDT 2019
Hi,
You can have a look at https://wiki.yoctoproject.org/wiki/System_Update.
I have used RAUC and u-boot on Rasperry Pi, there is an meta-rauc layer for Yocto. RAUC Dok at https://rauc.readthedocs.io/en/latest/. RAUC have an u-boot example script for loading different rootfs on boot, have a look at there GitHub:
https://github.com/rauc/rauc/blob/master/contrib/uboot.sh
Best regards
Jonas Andersson
> 3 juli 2019 kl. 18:59 skrev Szabolcs Báder <sb at baader.hu>:
>
> Hi,
>
> I created for Raspberry Pi a simple OS-boot-switcher. I change a param from rootfs, reboot and new OS run. I would like to add to for this flow a parameter to create ro boot and rootfs.
>
> I would like to read this parameter at boot and depend on this choose which OS will load. How could I define this at boot (eg. from cmdline.txt or with a shell script or load c code ..?). What is the best idea/ way to do that within Yocto?
>
>
> Thanks in advance,
> Szabolcs
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190703/528b2489/attachment-0001.html>
More information about the yocto
mailing list