[yocto] How to run script before mount rootfs

2019-07-03 Thread Szabolcs Báder
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 defin

[yocto] How to run script before mount rootfs

2019-07-03 Thread Szabolcs Báder
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 defin

Re: [yocto] How to run script before mount rootfs

2019-07-04 Thread Szabolcs Báder
le 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 : > > Hi, > > I created for Raspberry Pi a s

[yocto] Help to add uboot/standalone binary program for yocto projects

2019-07-06 Thread Szabolcs Báder
Hello I follow my last email, I solved the reboot things. Works fine.. but I found a cool/interesting thing, what I would like to integrate. >> I read about standalone binaries (from C, or with Rust generated too?) could use at uboot. http://www.denx.de/wiki/view/DULG/UBootCmdGroupExec#Section_5.

[yocto] How to load into u-boot binary (srec) file

2019-07-08 Thread Szabolcs Báder
Hello, I created this code: ``` # u-boot standalone hello-world.c test image require recipes-core/images/core-image-base.bb COMPATIBLE_MACHINE = "^rpi$" ENABLE_UART="1" RPI_USE_U_BOOT="1" # maybe works?? CONFIG_STANDALONE_LOAD_ADDR="0x1000" DEPENDS = "u-boot-mkimage-native" SUMMARY="Hell