From: Marek Szyprowski Date: Mon, 26 Feb 2024 07:47:53 +0000 (+0100) Subject: tizen: rpi: enable 'memory' cgroup by default X-Git-Tag: accepted/tizen/unified/20240315.111201~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c06efb29861d3ed4dabc52904f1475ee5aa3f637;p=platform%2Fkernel%2Fu-boot.git tizen: rpi: enable 'memory' cgroup by default The 'memory' cgroup is required for Tizen, but since kernel's commit "cgroup: Disable cgroup "memory" by default" it is disabled in RPi vendor kernels. Enable it directly from command line to avoid the need of patching vendor kernels. Signed-off-by: Marek Szyprowski Change-Id: I381e3cbdaaf409649b37a685536cc3fe52044a48 --- diff --git a/tizen/bootscript/tizen-boot-rpi4.scr b/tizen/bootscript/tizen-boot-rpi4.scr index bc34f03bc9..eb9d000411 100644 --- a/tizen/bootscript/tizen-boot-rpi4.scr +++ b/tizen/bootscript/tizen-boot-rpi4.scr @@ -93,7 +93,7 @@ echo "console: ${console}" setenv boot_prefixes \"/\" # To use cmdline for using serial console. /* Normal mode */ -setenv bootargs \"${tizen_bootarg} root=/dev/${rootdev} rw bootmode=${bootmode} partition_ab=${partition_ab} rootwait ${console} ${opts} ${ip_opt}\" +setenv bootargs \"${tizen_bootarg} cgroup_enable=memory root=/dev/${rootdev} rw bootmode=${bootmode} partition_ab=${partition_ab} rootwait ${console} ${opts} ${ip_opt}\" # Find the ramdisk offset and block count part start $bootdev $mmcrootdev $ramdiskpart ramdisk_start