Skip to content

Commit

Permalink
[marvell-arm64]: Enable SDK module for bookworm (sonic-net#16909)
Browse files Browse the repository at this point in the history
This patch enables compiling of Marvell platform
module and fixes sonic-platform-nokia compilation
issues for bookworm.
  • Loading branch information
Keshavg-marvell authored and yxieca committed Nov 22, 2023
1 parent 79463e1 commit 14b9870
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,7 @@ if [[ $TARGET_BOOTLOADER == uboot ]]; then
sudo LANG=C chroot $FILESYSTEM_ROOT mv /boot/u${INITRD_FILE} /boot/$INITRD_FILE
elif [[ $CONFIGURED_ARCH == arm64 ]]; then
sudo cp -v $PLATFORM_DIR/${sonic_asic_platform}-${CONFIGURED_ARCH}/sonic_fit.its $FILESYSTEM_ROOT/boot/
# TODO: fix for bookworm, probably needs arm64 patches in sonic-linux-kernel to be updated
#sudo LANG=C chroot $FILESYSTEM_ROOT mkimage -f /boot/sonic_fit.its /boot/sonic_${CONFIGURED_ARCH}.fit
sudo LANG=C chroot $FILESYSTEM_ROOT mkimage -f /boot/sonic_fit.its /boot/sonic_${CONFIGURED_ARCH}.fit
fi
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,12 +591,12 @@ static int nokia_7215_ixs_a1_cpld_probe(struct i2c_client *client,
return status;
}

static int nokia_7215_ixs_a1_cpld_remove(struct i2c_client *client)
static void nokia_7215_ixs_a1_cpld_remove(struct i2c_client *client)
{
struct cpld_data *data = i2c_get_clientdata(client);
sysfs_remove_group(&client->dev.kobj, &nokia_7215_ixs_a1_cpld_group);
kfree(data);
return 0;
return;
}

static const struct of_device_id nokia_7215_ixs_a1_cpld_of_ids[] = {
Expand Down
2 changes: 1 addition & 1 deletion platform/marvell-arm64/sonic_fit.its
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
};
fdt_ac5x {
description = "Flattened Device Tree blob for AC5x";
data = /incbin/("/usr/lib/linux-image-5.10.0-23-2-arm64/marvell/ac5-98dx35xx-rd.dtb");
data = /incbin/("/usr/lib/linux-image-6.1.0-11-2-arm64/marvell/ac5-98dx35xx-rd.dtb");
type = "flat_dt";
arch = "arm64";
compression = "none";
Expand Down

0 comments on commit 14b9870

Please sign in to comment.