Hi,
On avnet Raspbian system (as delivered with IoT gateway) I have hard time to enable cgroup memory.
I added to cgroup_enable=memory cgroup_memory=1 /boot/cmdline.txt with no effect.
Is there any special trick needed?
Hi,
On avnet Raspbian system (as delivered with IoT gateway) I have hard time to enable cgroup memory.
I added to cgroup_enable=memory cgroup_memory=1 /boot/cmdline.txt with no effect.
Is there any special trick needed?
I found interesting thing.
my cmdline.txt look like this:
cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 rootfstype=ext4 rootwait console=serial0,115200 root=/dev/mmcblk0p2 fsck.repair=yes cgroup_enable=memory cgroup_memory=1 elevator=deadline
but
dmesg | grep Kernel
shows:
[ 0.000000] Kernel command line: dwc_otg.lpm_enable=0 console=tty1 rootfstype=ext4 rootwait root=/dev/mmcblk0p2 fsck.repair=yes elevator=deadline
I am confused. From where is it coming?
Well, I think I found the problem: the one who parses
cmdline.txt
does not like empty lines before the validcmdline
: I have that:# comment
# <previous cmmdline line commented out>
# comment
<new cmdline>changing it to:
# comment
# <previous cmmdline line commented out>
# comment
<new cmdline>makes it work.
Be careful of newline characters as they are trouble too.
Also it is /boot/cmdline.txt.
So, I would test things by adding
disable_splash=1
and looking at
dmesg | grep Kernel
like before. This will stop the multi color splash screen...
Clem
Well, I think I found the problem: the one who parses
cmdline.txt
does not like empty lines before the validcmdline
: I have that:# comment
# <previous cmmdline line commented out>
# comment
<new cmdline>changing it to:
# comment
# <previous cmmdline line commented out>
# comment
<new cmdline>makes it work.
Be careful of newline characters as they are trouble too.
Also it is /boot/cmdline.txt.
So, I would test things by adding
disable_splash=1
and looking at
dmesg | grep Kernel
like before. This will stop the multi color splash screen...
Clem
clem57 my cmdline.txt is absolutely one liner. Single space between entries. I stumbled upon the other post
But mistery is solved. They use custom bootloader https://github.com/Avnet/smartedge-iiot-gateway-uboot
and treadme states:
Note:
We do not process cmdline.txt so if you need to change it then edit .config file entry BOOTCOMMAND=.
So now I need to follow their instruction and hopefully it will work.
Thanks for guidance on other steps.
BR,
Jerzy