Skip to content

Commit 1c2aa32

Browse files
[nvidia-bluefield] Add the possibility to compile BFB image (sonic-net#19512)
- Why I did it Add the possibility to compile BFB (BlueField boot stream) image for the nvidia-bluefield platform. The BFB image fully overwrites the DPU's SSD and can be used for DPU recovery. - How I did it Add new bfb image type to build_image.sh script. Add scripts under the "nvidia-bluefield" platform to create the binary file. - How to verify it Configure nvidia-bluefield platform. Run make target/sonic-nvidia-bluefield.bfb command to compile the image.
1 parent 12542bf commit 1c2aa32

File tree

7 files changed

+852
-13
lines changed

7 files changed

+852
-13
lines changed

build_image.sh

+11
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,17 @@ elif [ "$IMAGE_TYPE" = "dsc" ]; then
253253

254254
generate_onie_installer_image
255255

256+
elif [ "$IMAGE_TYPE" = "bfb" ]; then
257+
echo "Build BFB installer"
258+
259+
if [[ $SECURE_UPGRADE_MODE != "no_sign" ]]; then
260+
secure_upgrade_keys="--signing-key "$SECURE_UPGRADE_DEV_SIGNING_KEY" --signing-cert "$SECURE_UPGRADE_SIGNING_CERT""
261+
fi
262+
263+
sudo -E ./platform/${CONFIGURED_PLATFORM}/installer/create_sonic_image --kernel $KVERSION "$secure_upgrade_keys"
264+
265+
sudo chown $USER $OUTPUT_BFB_IMAGE
266+
256267
else
257268
echo "Error: Non supported image type $IMAGE_TYPE"
258269
exit 1

onie-image-arm64.conf

+3
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ ABOOT_BOOT_IMAGE=.sonic-boot.swi
5353

5454
## Output file name for dsc installer
5555
OUTPUT_DSC_IMAGE=target/sonic-$TARGET_MACHINE.tar
56+
57+
## Output file name for bfb image
58+
OUTPUT_BFB_IMAGE=target/sonic-$TARGET_MACHINE.bfb

0 commit comments

Comments
 (0)