As the docs state, “on devices using the GRUB bootloader”, RPI doesn’t use grub, so it doesn’t work.
You can edit the cmdline.txt directly, should be at /boot/piboot/. The snap set method is for systems where FDE is used to not break the integrity of TPM.
Beyond the hint that @gairepravesh gave already, are you aware that the kernel only adds changes to /proc/cmdline after you rebooted ? You wont see any immediate changes on the running system…
None of these appear to work for me. Even if i edit the cmdline.txt directly under /boot/pi-kernel*/cmdline.txt and add dtparam settings after a reboot they do not take effect. I have been reading that the only way to change device tree settings is to build your own pi-gadget snap and create your own model assertion for ubuntu core and burn that image ? Thats a lot of work just to change dtparam settings. To date what i have been doing is editing the config.txt but I can only reach this file by booting up my CM5 into USB (e.g. rpiboot) mode and actually editing the config.txt. This is cumbersome and I was hoping to change this.
Sorry, I didn’t actually realize the dtparam and just considered the problem statement to be adding cmdline params. Just for record, editing /boot/piboot/.snap/cmdline.txt is the correct way for editing cmdline in RPI. Its just that dtb’s are handled from config.txt by firmware so its not a valid arg for cmdline.
This was discussed here previously and a product feedback was created. I am not completely sure what’s the status of this as of now.