Coder Social home page Coder Social logo

Comments (6)

Borillion avatar Borillion commented on June 9, 2024 2

😅 @mrsauravsahu , very strange. I was using sudo and it did not work. Mine are not symlinks.

image

I was able to have the kernel cmdline take effect with one important change in the method I used.
Edit the file directly on the microsd mounted on a different device. Using sudo to edit the file while the Pi is running the OS does nothing, the obvious hint in hindsight was the output from cat /proc/cmdline not having the options listed.

from linux.

zhengyi13 avatar zhengyi13 commented on June 9, 2024 1

You're not the only one to notice this:

Looks like the underlying issue is a change in the location for cmdline.txt.

ETA: well, I misread your initial report; my bad. If you've got that file in /boot/firmware as documented in https://www.raspberrypi.com/documentation/computers/configuration.html#the-boot-folder, I wonder what's broken?

from linux.

mrsauravsahu avatar mrsauravsahu commented on June 9, 2024

I was facing the same issue, when installing k3s on Rpi5

Updating my /boot/cmdline.txt to the snippet below fixed the issue, the pi is part of my cluster with k3s running.

console=serial0,115200 console=tty1 root=PARTUUID=ff577c67-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cgroup_memory=1 cgroup_enable=memory

from linux.

Borillion avatar Borillion commented on June 9, 2024

I was facing the same issue, when installing k3s on Rpi5

Updating my /boot/cmdline.txt to the snippet below fixed the issue, the pi is part of my cluster with k3s running.

console=serial0,115200 console=tty1 root=PARTUUID=ff577c67-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cgroup_memory=1 cgroup_enable=memory

Do you mean /boot/firmware/cmdline on Raspberry Pi OS ?

My /boot/cmdline.txt says not to edit the file and that the contents have moved.

Did you install any other packages?

from linux.

mrsauravsahu avatar mrsauravsahu commented on June 9, 2024

/boot/cmdline.txt

Screenshot 2024-02-17 at 11 31 33

Yes looks like the file is actually a symlink to /boot/firmware/cmdline.txt/, and it is write protected. Edit it using root.

sudo vim /boot/cmdline.txt

I had also run these two commands but they didn't fix the issue.

sudo rpi-update
sudo rpi-eeprom-update

from linux.

lukfd avatar lukfd commented on June 9, 2024

I would like to clarify that the k3s documentation specify that it is a requirement to append cgroup_memory=1 cgroup_enable=memory to the /boot/cmdline.txt file. I had to make the cmdline.txt modification right after downloading the OS in the SD card.

from linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.