Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directions to edit cmdline don't work #147

Open
nightduck opened this issue Mar 5, 2024 · 1 comment
Open

Directions to edit cmdline don't work #147

nightduck opened this issue Mar 5, 2024 · 1 comment

Comments

@nightduck
Copy link

Following these instructions:

reference-system/README.md

Lines 133 to 143 in a25f704

dd if=/boot/firmware/boot.scr of=boot.script bs=72 skip=1
# edit boot.script and modify bootargs to
ubuntu@ubuntu:~$ cat boot.script | grep "setenv bootargs" | head -1
setenv bootargs " ${bootargs} rcu_nocbs=2,3 nohz_full=2,3 isolcpus=2,3 irqaffinity=0,1 audit=0 watchdog=0 skew_tick=1 quiet splash"
# generate boot.scr
mkimage -A arm64 -O linux -T script -C none -d boot.script boot.scr
# replace boot.scr
sudo cp boot.scr /boot/firmware/boot.scr

On a Pi 4 running Ubuntu 20.04 will not change the cmdline. Instead, you must edit /boot/firmware/cmdline.txt to say

zswap.enabled=1 zswap.zpool=z3fold zswap.compressor=zstd dwc_otg.lpm_enable=0 console=tty1 root=LABEL=writable rootfstype=ext4 rootwait fixrtc rcu_nocbs=2,3 nohz_full=2,3 isolcpus=2,3 irqaffinity=0,1 audit=0 watchdog=0 skew_tick=1 quiet splash

Reboot and the changes will be in effect. This fix is tested and confirmed working for me.

It's unclear if this is a distro issue between Ubuntu and Raspian.

5 weeks from now, I'll have free time to investigate myself. For now, I'm documenting the issue.

@razr
Copy link
Member

razr commented Mar 10, 2024

Thanks @nightduck for reporting it. I'll look into it next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants