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

Backport 6.1 to kirkstone -> no serial console #1222

Open
nandra opened this issue Sep 14, 2023 · 7 comments
Open

Backport 6.1 to kirkstone -> no serial console #1222

nandra opened this issue Sep 14, 2023 · 7 comments

Comments

@nandra
Copy link
Contributor

nandra commented Sep 14, 2023

Hi, I'm using kirkstone release of this layer in my project but would like to use new kernel 6.1. I've backported it to my layer (basically took it from master branch). Kernel seems to boot but I cannot see any output on serial console. In kirkstone I've set console=ttyAMA0,115200 in cmdline.txt file. Does something changed between kernel releases? I've tried to change to console=ttyS0,155200 but witout success. Any ideas what else I can check please? Thanks.

@agherzan
Copy link
Owner

@nandra Maybe it requires a bootloader update, too. Could you cross-check a RaspberryOS? That is strange, though, as I know people booting it fine - even though I haven't tested it until now.

@nandra
Copy link
Contributor Author

nandra commented Sep 19, 2023

@agherzan I've checked and rpi-firmware is same on kirkstone & master if you mean by "bootloader update"

@mainmachine
Copy link

mainmachine commented Dec 5, 2023

Looks like /etc/udev/rules.d/99-com.rules in a kirkstone build is different than versus bookworm. Kirkstone has this section which is absent from what I see on RPIOS:

KERNEL=="ttyAMA0", PROGRAM="/bin/sh -c '\
	ALIASES=/proc/device-tree/aliases; \
	if cmp -s $$ALIASES/uart0 $$ALIASES/serial0; then \
		echo 0;\
	elif cmp -s $$ALIASES/uart0 $$ALIASES/serial1; then \
		echo 1; \
	else \
		exit 1; \
	fi\
'", SYMLINK+="serial%c"

So udev on kirkstone is setting up a serial on uart, presumably the master branch is not doing this. About to attempt porting 6.1 to kirkstone myself so I can check this, but you can compare /etc/udev/rules.d/99-com.rules between kirkstone and master builds to verify.

kirkstone_99-com.rules.txt
bookworm_99-com.rules.txt

EDIT: Master is in fact pulling this file from upstream as of this commit.

@yayay
Copy link

yayay commented Apr 10, 2024

@nandra were you able to boot a 6.1 Linux kernel from the kirkstone branch?

I'm not having much success with that. I don't get any kernel log output on the serial console.

@nandra
Copy link
Contributor Author

nandra commented Apr 13, 2024

@yayay Please try to update also rpi firmware (bootfiles). It should work then.

@yayay
Copy link

yayay commented Apr 15, 2024

@nandra I see.
I have tried RPIFW_DATE ?= "20230405", but still no boot. (instead of RPIFW_DATE ?= "20220830")
Which version are you using?

@yayay
Copy link

yayay commented Apr 26, 2024

In my case, the kernel was panicking early in the boot process during a USB controller init and I wasn't getting the printout on serial console because tty numbering has changed for some reason.
Now,
5.15 -> 6.1
ttyAMA0 -> ttyAMA1
ttyAMA1 -> ttyAMA5

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

4 participants