Skip to content

Commit

Permalink
[marvell-arm64]: Enable SDK module for bookworm (#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 Nov 3, 2023
1 parent a072eff commit 26326fb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
3 changes: 1 addition & 2 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,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
5 changes: 2 additions & 3 deletions platform/marvell-arm64/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ include $(PLATFORM_PATH)/docker-syncd-mrvl-rpc.mk
include $(PLATFORM_PATH)/docker-saiserver-mrvl.mk
include $(PLATFORM_PATH)/libsaithrift-dev.mk
include $(PLATFORM_PATH)/one-image.mk
# TODO: update for bookworm
#include $(PLATFORM_PATH)/mrvl-prestera.mk
#include $(PLATFORM_PATH)/platform-nokia.mk
include $(PLATFORM_PATH)/mrvl-prestera.mk
include $(PLATFORM_PATH)/platform-nokia.mk

SONIC_ALL += $(SONIC_ONE_IMAGE) \
$(DOCKER_FPM) \
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
2 changes: 1 addition & 1 deletion src/sonic-linux-kernel
Submodule sonic-linux-kernel updated 25 files
+0 −0 patch/0001-armhf_secondary_boot_online.patch
+0 −80 patch/0001-dt-bindings-marvell-Document-the-AC5-AC5X-compatible.patch
+0 −0 patch/0002-arm64-dts-Update-cache-properties-for-marvell.patch
+0 −30 patch/0002-dt-bindings-net-mvneta-Add-marvell-armada-ac5-neta.patch
+0 −467 patch/0003-arm64-dts-marvell-Add-Armada-98DX2530-SoC-and-RD-AC5.patch
+62 −0 patch/0003-dt-bindings-ac5-Add-mmc-and-usb-properties.patch
+0 −57 patch/0004-arm64-dts-marvell-Add-UART1-3-for-AC5-AC5X.patch
+0 −0 patch/0004-dts-ac5-marvell-Add-switching-mmc-watchdog-node.patch
+0 −0 patch/0005-ac5-marvell-Add-watchdog-support.patch
+0 −43 patch/0005-arm64-dts-marvell-98dx25xx-Fix-i2c-gpios-property.patch
+76 −0 patch/0006-ac5-marvell-Add-support-for-emmc.patch
+0 −29 patch/0007-arm64-dts-marvell-AC5-AC5X-Fix-address-for-UART1.patch
+0 −0 patch/0007-usb-ehci-Add-support-for-ac5.patch
+0 −44 patch/0008-mtd-rawnand-marvell-Add-missing-layouts.patch
+21 −21 patch/0008-mv6xxx-Fix-i2c-lock-due-to-arb-loss.patch
+0 −0 patch/0009-dt-bindings-marvell-Add-ARMADA-7K-properties.patch
+0 −313 patch/0009-pinctrl-mvebu-Add-driver-for-98DX2530-SoC.patch
+0 −36 patch/0010-arm64-marvell-Enable-the-98DX2530-pinctrl-driver.patch
+8 −8 patch/0010-dts-marvell-Add-support-for-7020-comexpress.patch
+6 −7 patch/0011-arm64-dts-marvell-Add-Nokia-7215-IXS-A1-board.patch
+0 −69 patch/0011-net-mvneta-Add-support-for-98DX2530-Ethernet-port.patch
+0 −41 patch/0012-spi-a3700-Support-big-endianness-for-AC5-SPI-driver.patch
+0 −72 patch/0013-dt-bindings-ac5-Add-mmc-and-usb-properties.patch
+0 −61 patch/0016-ac5-marvell-Add-support-for-emmc.patch
+12 −23 patch/series

0 comments on commit 26326fb

Please sign in to comment.