Skip to content

Possible incorrect cmdline.txt flag #1234

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

Closed
OutsourcedGuru opened this issue Aug 1, 2019 · 7 comments
Closed

Possible incorrect cmdline.txt flag #1234

OutsourcedGuru opened this issue Aug 1, 2019 · 7 comments

Comments

@OutsourcedGuru
Copy link

plymouth.ignore_serial_console: tells Plymouth not to output a boot splash on any serial console which may be configured.

Having done plenty of research, I would suggest that this flag is plural rather than singular. And furthermore, there appears to be some confusion over the use of underscores versus hyphens in this flag.

This seemed to work as expected with Stretch using the singular version with underscores. After the upgrade to Buster it seems like undervoltage warnings from dmesg were clobbering the custom splash screen.

By changing my /boot/cmdline.txt to the plural version and appending fbcon=map:2 it's now behaving again with Buster.

I reference the main.c file in the source code of plymouth. It appears to be in plural and possess hyphens rather than underscores.

What's difficult is that there are many competing suggestions for setting up plymouth on Raspbian. Perhaps someone can look into this and as necessary, update the documentation here.

@ghost
Copy link

ghost commented Aug 2, 2019

I'm guessing this is in /configuration/cmdline-txt.md? Per https://gitlab.freedesktop.org/plymouth/plymouth/commit/6e50233b031ed301813de7f075ae0d606eae010c and some quick googling, it seems that plymouth.ignore-serial-consoles has always been the correct name of this option. The error in our docs appears to come from when that page was originally written - it seems nobody noticed until now, so good catch.

What does fbcon=map:2 do? I've read the relevant section of https://www.kernel.org/doc/Documentation/fb/fbcon.txt and I don't really understand what it is saying.

@OutsourcedGuru
Copy link
Author

Bringing that section here:

fbcon=map:<0123>

        This is an interesting option. It tells which driver gets mapped to
        which console. The value '0123' is a sequence that gets repeated until
        the total length is 64 which is the number of consoles available. In
        the above example, it is expanded to 012301230123... and the mapping
        will be:

		tty | 1 2 3 4 5 6 7 8 9 ...
		fb  | 0 1 2 3 0 1 2 3 0 ...

		('cat /proc/fb' should tell you what the fb numbers are)

	One side effect that may be useful is using a map value that exceeds
	the number of loaded fb drivers. For example, if only one driver is
	available, fb0, adding fbcon=map:1 tells fbcon not to take over the
	console.

	Later on, when you want to map the console the to the framebuffer
	device, you can use the con2fbmap utility.

Using a single number 2 rather than a list presumably repeats 2222222 as the one you want in all cases. The reference to this suggestion comes from Raspberry Pi StackOverflow here by Mich on Oct 18 '18 at 20:18 as a comment.

Presumably it maps terminals to framebuffers. Since Plymouth works using them, it's somehow involved.

@OutsourcedGuru
Copy link
Author

I'm trying to find where that was.

I think you have the correct file in question. Note

For what it's worth, I'm not convinced the blurb description next to this flag in the documentation is at all accurate. The purpose of the flag is to prevent many of the console messages from bubbling up to the terminal that's associated with Plymouth.

@ghost
Copy link

ghost commented Aug 3, 2019

For what it's worth, I'm not convinced the blurb description next to this flag in the documentation is at all accurate. The purpose of the flag is to prevent many of the console messages from bubbling up to the terminal that's associated with Plymouth.

From what I can see it is half accurate - Plymouth won't output a bootsplash on a serial terminal, but what it will do is, as you say, prevent the console boot messages - service startup and the like - from appearing on any serial console.

@ghost
Copy link

ghost commented Aug 3, 2019

See #1235

@OutsourcedGuru
Copy link
Author

Well done. (Thanks.)

@lurch
Copy link
Contributor

lurch commented Aug 5, 2019

Fixed in #1235

@lurch lurch closed this as completed Aug 5, 2019
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