forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- First installation for development phase: boot and run on BlueField-2 using BFB (Bluefield Boot Stream) - Support Grub - SONiC to SONiC installer must be working. - Integrate the bare minimum drivers/packages into the Kernel - Define SKU's to reflect BlueField-2 as host, no data ports yet - Docker deemed necessary for SDN appliance have to be running (except swss, syncd & pmon). No exceptions on host services. - Platform is named nvidia-bluefield. Individual variants are identified by OPN root. Eg: MBF2M516A
- Loading branch information
1 parent
6f8dbac
commit 650d107
Showing
120 changed files
with
2,655 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
|
||
REPO="mellanox/bluefield" | ||
TAG="bfb_builder_denian10-5.4-2.4.1.3-3.7.1.11866-1" | ||
|
||
CDIR="/root/sonic/conf" | ||
SDIR="/root/sonic" | ||
DDIR="/sonic/" | ||
TARGET_MACHINE=nvidia-bluefield | ||
|
||
fail_with_cmd() | ||
{ | ||
echo $1 | ||
exit 1 | ||
} | ||
|
||
# Check if the image already exists | ||
docker image inspect $REPO:$TAG &> /dev/null | ||
if [ $? -ne 0 ]; then | ||
echo "Image doesn't Exist, fetching $TAG from $REPO" | ||
docker pull $REPO:$TAG || fail_with_cmd "docker pull failed" | ||
fi | ||
|
||
. onie-image-arm64.conf | ||
|
||
SONIC_VERSION=$(cat $FILESYSTEM_ROOT/etc/sonic/sonic_version.yml | grep build_version | cut -f2 -d" ") | ||
|
||
echo "SONIC_VERSION: $SONIC_VERSION" | ||
|
||
if [ ! -f "$ONIE_INSTALLER_PAYLOAD" ]; then | ||
echo "SONIC Related Payload '$ONIE_INSTALLER_PAYLOAD' is not found at $(pwd) exiting" | ||
exit 1 | ||
fi | ||
|
||
docker run --privileged --init -e container=docker\ | ||
-e "CDIR=$CDIR" -e "SDIR=$SDIR" -e "DDIR=$DDIR" \ | ||
--mount type=bind,source="$(pwd)",target=/sonic \ | ||
$REPO:$TAG \ | ||
bash -c "mkdir -p $SDIR && | ||
rm -rf $SDIR/* && | ||
mkdir -p $CDIR && | ||
cp /sonic/$ONIE_INSTALLER_PAYLOAD $CDIR && | ||
cp /sonic/onie-image-arm64.conf $CDIR && | ||
cp /sonic/installer/bluefield/create_sonic_bfb $SDIR && | ||
cp /sonic/installer/bluefield/install.sh $SDIR && | ||
cp /root/workspace/install.bfb $SDIR && | ||
ls $SDIR && | ||
/root/sonic/create_sonic_bfb -s $SONIC_VERSION" || fail_with_cmd "docker run failed" | ||
|
||
echo "Building BFB Finished" | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
device/nvidia-bluefield/arm64-nvda_bf-mbf2h536c/Nvidia-MBF2H536C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../arm64-nvda_bf-mbf2m516a/Nvidia-MBF2H516A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Nvidia-MBF2H536C t1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../arm64-nvda_bf-mbf2m516a/installer.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../arm64-nvda_bf-mbf2m516a/platform_asic |
3 changes: 3 additions & 0 deletions
3
device/nvidia-bluefield/arm64-nvda_bf-mbf2m516a/Nvidia-MBF2H516A/hwsku.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"interfaces": {} | ||
} |
16 changes: 16 additions & 0 deletions
16
device/nvidia-bluefield/arm64-nvda_bf-mbf2m516a/Nvidia-MBF2H516A/port_config.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## | ||
## Copyright (c) 2017-2021 NVIDIA CORPORATION & AFFILIATES. | ||
## Apache-2.0 | ||
## | ||
## Licensed under the Apache License, Version 2.0 (the "License"); | ||
## you may not use this file except in compliance with the License. | ||
## You may obtain a copy of the License at | ||
## | ||
## http://www.apache.org/licenses/LICENSE-2.0 | ||
## | ||
## Unless required by applicable law or agreed to in writing, software | ||
## distributed under the License is distributed on an "AS IS" BASIS, | ||
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
## See the License for the specific language governing permissions and | ||
## limitations under the License. | ||
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Nvidia-MBF2H516A t1 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nvidia-bluefield |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.