Use the --bootloader flag to provide the bootloader file to the nrfutil nrf5sdk-tools pkg generate command.
With the --bootloader-version flag, you can specify the version of the bootloader. This version is used to validate the bootloader version on the target device. If the version of the bootloader on the target device is different from the version in the package, the update is rejected.
For example, the following command generates a package with the bootloader file bootloader.hex:
nrfutil nrf5sdk-tools pkg generate --hw-version 51 --sd-req 0x80 --bootloader-version 1 --bootloader bootloader.hex --key-file key.pem bl_dfu_package.zip
Note
--hw-version and --sd-req are both required when the debug flag is not set.