Raspberry Pi 4 Ubuntu 19.10 cannot enable cgroup memory at boostrap
Following @kremerol solution, I was able to get my RPI 4 with Ubuntu 20.04 working.
Run
sudo nano /boot/firmware/cmdline.txt
Edit the default file to look like below.
net.ifnames=0 dwc_otg.lpm_enable=0 console=serial0,115200 cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 console=tty1 root=LABEL=writable rootfstype=ext4 elevator=deadline rootwait fixrtc
NOTE: These are the 3 settings to add:
cgroup_enable=cpuset
cgroup_enable=memory
cgroup_memory=1
Save the file and reboot and the node status will change to ready.
You can check the status by running
sudo microk8s.kubectl get nodes
I've just had this exact problem after picking up a new rpi4 on Ubuntu 19.10. After a quick poke...
The /boot/firmware/README
file appears to detail the updated boot process. The second step in the process is to load /boot/firmware/config.txt
which specifies /boot/firmware/nobtcmd.txt
as the current cmdline
.
So modify /boot/firmware/nobtcmd.txt
and append: cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1
. Reboot and cat /proc/cmdline
I wouldn't be surprised if some magic (maybe enabling BT?) changes the cmdline to /boot/firmware/btcmd.txt
so it might be worth adding the change to that file too.
On Raspbian I had to add the following in /boot/cmdline.txt
cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
You must add this to the end of the existing line; if you add it at the bottom of file in a new line it doesn't work.