<div dir="ltr"><div>Thanks Jonas!</div><div><br></div><div>Yes, I tried Swupdate, but not RAUC. I will try out and check it deeply!</div><div><br></div><div>I would like to create my own solution (as a learning path too). In this case, if I think good, that possible to solve with systemd (emergency boot etc) and uboot. I thought I can solve that with a kernel module or something similar, with an init script. I saw one solution.. but I forget where.. that was really smart hobby project on github. Therefore I asked the community, maybe somebody have experience in this area.. which is the best way to start that.<br></div><div><br></div><div>Regards,</div><div>Szabolcs<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Gmail <<a href="mailto:jonaskgandersson@gmail.com">jonaskgandersson@gmail.com</a>> ezt Ã­rta (idÅ‘pont: 2019. júl. 3., Sze, 20:44):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi,<div><br></div><div>You can have a look at <a href="https://wiki.yoctoproject.org/wiki/System_Update" target="_blank">https://wiki.yoctoproject.org/wiki/System_Update</a>. </div><div><br></div><div>I have used RAUC and u-boot on Rasperry Pi, there is an meta-rauc layer for Yocto. RAUC Dok at <a href="https://rauc.readthedocs.io/en/latest/" target="_blank">https://rauc.readthedocs.io/en/latest/</a>. RAUC have an u-boot example script for loading different rootfs on boot, have a look at there GitHub:</div><div><a href="https://github.com/rauc/rauc/blob/master/contrib/uboot.sh" target="_blank">https://github.com/rauc/rauc/blob/master/contrib/uboot.sh</a></div><div><br></div><div><div dir="ltr">Best regards</div><div dir="ltr">Jonas Andersson</div><div dir="ltr"><br>3 juli 2019 kl. 18:59 skrev Szabolcs Báder <<a href="mailto:sb@baader.hu" target="_blank">sb@baader.hu</a>>:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>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. <br></div><div><br></div><div>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?</div><div><br></div><div><br></div><div>Thanks in advance,</div><div>Szabolcs</div></div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>-- </span><br><span>_______________________________________________</span><br><span>yocto mailing list</span><br><span><a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a></span><br><span><a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a></span><br></div></blockquote></div></div></blockquote></div>