-i 2 because this is where freebsd-boot resides. Without EFI it is most likely -i 1. The examples you can find with a search engine often come from the pre-EFI times. About the second command -i 1 should be ok. But I am not sure if this is necessary.am I right?
Don't do that, boot1.efifat is deprecated (IIRC removed on FreeBSD 13).gpart bootcode -p /boot/boot1.efifat -i 1 ada0
Your partitions support both UEFI and CSM boot. Best update both bootloaders. You can learn which method you are currently using withPS: Second pass is mandatory?
sysctl machdep.bootmethod, but anyways it doesn't hurt to have both bootloaders up to date.No. Read my howto. This is the old method.Second:
#gpart bootcode -p /boot/boot1.efifat -i 1 ada0
#gpart bootcode -p /boot/boot1.efifat -i 1 ada1