-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
initramfs script output not sent to serial console #2863
Comments
I'm not sure from the description if this is what is expected on a kernel, or whether it's what all kernels on all devices do. ie Is it specific to the Pi kernel. Not even sure how I would find out! |
That's a valid point! I don't have access to a system with a built-in serial port that is not a Pi in order to compare the behavior. I'll try to find someone who does. |
@kpfleming Did you have any luck with this? |
I figured it was normal - on a Pi Zero to debug initramfs over serial to see the commands/output I've been appending " debug=y console=serial0" to cmdline.txt with " break=" for a BusyBox prompt. |
Unfortunately I have not had time to test this and my original project which required serial output is no longer needed. |
Try swaping your commandline initramfs init script is only using the last console (as there is only one for that part of th boot) This works for me to get initramfs working in qemu (which is using serial port in termal -nographic mode) But it should also work on the pi zero |
Describe the bug
When both serial and virtual (HDMI) consoles are configured, kernel startup messages appear on both consoles but output generated by scripts in the iniramfs only appears on the virtual console.
To reproduce
console=serial0,115200 console=tty1
.Expected behaviour
Kernel messages (
printk
) and stdout/stderr from scripts in initramfs should appear on both consoles.Actual behaviour
Only kernel messages appear on serial console.
System
cat /etc/rpi-issue
)? Raspbian 9.8vcgencmd version
)? 1.20181112-1uname -a
)? Linux home18 4.14.79-v7+ USB-Harddrive gets fully powered down #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linuxconfig.txt
Problem also occurs if cmdline specifies
ttyAMA0
for console.The text was updated successfully, but these errors were encountered: