Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nvidia-bluefield] Load MFT drivers from the SONiC rootfs during BFB installation. #36

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions platform/nvidia-bluefield/installer/create_sonic_image
Original file line number Diff line number Diff line change
Expand Up @@ -292,15 +292,8 @@ create_bfb_image() {
copy_bin $tool
done

kernel_mft=$(dpkg -l | grep kernel-mft-dkms-modules | awk '/^ii/ {print $2}')
if [[ $kernel_mft == "" ]]; then
echo "ERROR: kernel-mft-dkms-modules package is not installed"
exit 1
fi

for tool in `dpkg -L mft` \
`dpkg -L mft-oem` \
`dpkg -L $kernel_mft` \
`dpkg -L xmlstarlet | grep -v share`
do
if [ -d $tool ]; then
Expand Down
11 changes: 11 additions & 0 deletions platform/nvidia-bluefield/installer/install.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,17 @@ if [[ $fw_upgrade_is_needed == "true" ]]; then
ex mkdir -p $sonic_fs_mountpoint
ex mount -t squashfs $sonic_fs_path $sonic_fs_mountpoint

kernel_mft=$(chroot $sonic_fs_mountpoint dpkg -l | grep kernel-mft-dkms-modules | awk '/^ii/ {print $2}')
mft_files=$(chroot $sonic_fs_mountpoint dpkg -L $kernel_mft)

for f in $mft_files; do
if [[ $sonic_fs_mountpoint/$f != *.ko ]]; then
continue
fi

insmod "$sonic_fs_mountpoint/$f"
done

ex mkdir -p /etc/mlnx/

ex ln -s /mnt/$image_dir/platform/fw/asic/fw-BF3.mfa /etc/mlnx/fw-BF3.mfa
Expand Down
Loading