From 40eddde466cf2b48a3c1f53a2a8f6da868a53023 Mon Sep 17 00:00:00 2001 From: AI Dev Date: Fri, 6 Nov 2026 19:15:06 +0000 Subject: [PATCH] ambarella s3l: enable CONFIG_QUOTA so vendor iav.ko loads The S3L SDK's iav.ko is prebuilt with MODVERSIONS off and hardcodes the kernel's struct offsets. It reads inode->i_cdev at offset 272, but without CONFIG_QUOTA the stock kernel's struct inode has it at 264: QUOTA adds i_dquot[2] (8 bytes) ahead of it. Enabling CONFIG_QUOTA aligns the struct so iav_open() follows i_cdev to the right cdev and the driver initialises instead of dereferencing a bogus context. --- br-ext-chip-ambarella/board/s3l/s3l.generic.config | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/br-ext-chip-ambarella/board/s3l/s3l.generic.config b/br-ext-chip-ambarella/board/s3l/s3l.generic.config index 542b106c3..2a6f1ad05 100644 --- a/br-ext-chip-ambarella/board/s3l/s3l.generic.config +++ b/br-ext-chip-ambarella/board/s3l/s3l.generic.config @@ -2088,8 +2088,13 @@ CONFIG_FSNOTIFY=y # CONFIG_DNOTIFY is not set CONFIG_INOTIFY_USER=y # CONFIG_FANOTIFY is not set -# CONFIG_QUOTA is not set -# CONFIG_QUOTACTL is not set +CONFIG_QUOTA=y +# CONFIG_QUOTA_NETLINK_INTERFACE is not set +CONFIG_PRINT_QUOTA_WARNING=y +# CONFIG_QUOTA_DEBUG is not set +# CONFIG_QFMT_V1 is not set +# CONFIG_QFMT_V2 is not set +CONFIG_QUOTACTL=y # CONFIG_AUTOFS4_FS is not set # CONFIG_FUSE_FS is not set CONFIG_GENERIC_ACL=y