Closed ArneSchwerdt closed 8 months ago
I think this needs to be changed without switching the default to mtools / mcopy. Of course I'm happy for people to fork this code since it's just documentation
I'm not quite sure I understand the reasons. RPI is very popular in the IoT world and is used in industry projects. Therefore automation should be easy. The need for root permissions make it just harder to use it in any toolchain. Also losetup brings trouble in case someone tries to use it in lightweight virtualization like docker which is widely used in CI/CD. Mtools can be found in all Linux package manager repos(apt, apk, pacman, yum, nix, portage, brew) I checked and is even preinstalled in Ubuntu. Could you explain your concerns?
No objection to adding an option to using mtools but I'm not dropping the current implementation. I would suggest giving the user the option to use mtools
Adding an option would mean to uglify the script with too many if statements in my opinion. As you already said it is now fork/documented. For my specific cause, I simply make use of yoctos patch mechanism to apply the changes which seems to me a much more elegant solution. Thanks for your feedback.
I was about to create a recipe for Yocto to create signed boot image using the make-boot-image script. Unfortunately I ran into some issues:
I tested the modified version of the script on my RPI400 and it worked fine.