My Raspbian Pi crashes to a Kernel panic when I start it up, and it suggested somewhere that an invalid cmdline.txt can cause this. What is in the cmdline.txt by default?

1 Answer 1


My (unaltered) PI2B has a /boot/cmdline.txt of

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

There should only be one uncommented line. It is not like /boot/config.txt where you have entries on multiple lines. Line starting with # are ignored so if you want to change the line I suggest you leave the original with a # at the start.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.