Hi @aguapi,
The standard scenario for installing a system on EMMc, USB, SATA or NVMe looks like this
- Starting the system with my u-boot (it correctly generates smbios variables for bsdinatall to work).
- Login with superuser rights
- Run bsdinstall and install
- Tuning - if needed, and reboot.
I want to warn you that in the process, badinstall updates u-boot on EMMc even if you chose to install on EMMc, unfortunately this is the case
.
But at the same time, it will write spi u-boot to the efi section of emmc as a separate file and you can rewrite it yourself to spi.
instructions will be in /usr/local/share/u-boot/u-boot-rock-pi-4/README
To install this bootloader on an SPI flash just do:
=> load mmc 0 ${kernel_addr_r} u-boot-spi.bin
=> sf probe
=> sf update ${kernel_addr_r} 0 ${filesize}
To run my u-boot from an SD card, you should use mask rom mode.