Skip to content

Commit

Permalink
[nvidia-bluefield] Add the possibility to compile BFB image (sonic-ne…
Browse files Browse the repository at this point in the history
…t#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.
  • Loading branch information
oleksandrivantsiv authored and arun1355492 committed Jul 26, 2024
1 parent 2c07bff commit e1e6603
Show file tree
Hide file tree
Showing 7 changed files with 852 additions and 13 deletions.
11 changes: 11 additions & 0 deletions build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,17 @@ elif [ "$IMAGE_TYPE" = "dsc" ]; then

generate_onie_installer_image

elif [ "$IMAGE_TYPE" = "bfb" ]; then
echo "Build BFB installer"

if [[ $SECURE_UPGRADE_MODE != "no_sign" ]]; then
secure_upgrade_keys="--signing-key "$SECURE_UPGRADE_DEV_SIGNING_KEY" --signing-cert "$SECURE_UPGRADE_SIGNING_CERT""
fi

sudo -E ./platform/${CONFIGURED_PLATFORM}/installer/create_sonic_image --kernel $KVERSION "$secure_upgrade_keys"

sudo chown $USER $OUTPUT_BFB_IMAGE

else
echo "Error: Non supported image type $IMAGE_TYPE"
exit 1
Expand Down
3 changes: 3 additions & 0 deletions onie-image-arm64.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ ABOOT_BOOT_IMAGE=.sonic-boot.swi

## Output file name for dsc installer
OUTPUT_DSC_IMAGE=target/sonic-$TARGET_MACHINE.tar

## Output file name for bfb image
OUTPUT_BFB_IMAGE=target/sonic-$TARGET_MACHINE.bfb
Loading

0 comments on commit e1e6603

Please sign in to comment.