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

No prompt available in graphic mode but serial console #191

Open
anncheng-arm opened this issue Jun 12, 2024 · 3 comments
Open

No prompt available in graphic mode but serial console #191

anncheng-arm opened this issue Jun 12, 2024 · 3 comments

Comments

@anncheng-arm
Copy link

anncheng-arm commented Jun 12, 2024

Failure/Symptom

No prompt available after booting into ACS via graphic mode but working fine in serial console.
Unplug/plug external USB device, the USB messages were output properly in graphic mode/serial mode which means vga driver works properly, looks more like inittab/init script issues.

Booting logs from serial console: acs_console.zip

image

Configuration

  • System: RaspberryPI 4
  • ACS Version:
@anncheng-arm
Copy link
Author

I cannot find root.sh in entire file system which is used by initab, is this set correctly?

console::respawn:/sbin/getty -n -L -l /root.sh console 0 vt100

@chetan-rathore
Copy link
Collaborator

Hello @anncheng-arm,

Omitting console=ttys0 and tty=AMA0 from the command line worked on rpi4, can you please check if it works on the DUT.

Thanks,
ACS team

@anncheng-arm
Copy link
Author

anncheng-arm commented Jun 19, 2024

@chetan-rathore

Here is Linux Kernel document to explain how /dev/console binds to getty (tty0 – graphic mode, ttyS0 – Serial console for 16550, ttyAMA0 – ARM UART PL011).
serial-console

I've also tested this on my RPi4 and Ampere system. Removing ttyS0 and ttyAMA0 results in /dev/console binding to tty0, which is why you can see output and prompts on the graphical interface. However, this also means there is no init.sh output and prompt from the serial port anymore. You can simply move tty0 to be the last parameter, and the output/prompt will then go to the graphical mode.

I reported this issue because ODMs typically check from the graphical interface first. If there is no prompt, they might think the system has hung during testing. However, I am guessing if ACS is designed intentionally to direct all tests and prompts to the serial console only, it prevents accidental resets or test terminations from the different shell session of graphical interface(tty0).

We may not need to address this issue if this design is intentional. Or we may just need to init the getty tty0 properly in /etc/inittab to get it to prompt which is good enough.

@anncheng-arm anncheng-arm changed the title [AmpereAltraMax] No prompt available in graphic mode but serial console No prompt available in graphic mode but serial console Jun 20, 2024
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