Hello,
I am trying to implement a custom CLI on a Raspberry Pi for real-time project.
The desired flow is as follows:
1. I flash the Raspberry Pi with the application and connect to it via UART from a PC.
2. Using a serial terminal (PuTTY), I open the UART connection.
3. Initially, the terminal shows a blank screen.
4. After pressing Enter, a prompt ($) should appear, ready to accept commands and than the rest of the CLI functionality.
What i've tried to do:
I removed the console=serial0,115200 parameter from cmdline.txt to disable the default UART login console.
This was intended to free up the serial0 UART interface for the custom shell application.
I'm not sure if this enough, as u can see from the image, the Raspberry Pi's UART is still configured to display the default system login prompt (ubuntu login:).
I assume this means that the UART is being used by both your custom shell and the default system login, causing conflicts.
I would greatly appreciate it if someone could help me figure out this issue and provide all the necessary steps to resolve it, starting from the beginning.
![Image]()
I am trying to implement a custom CLI on a Raspberry Pi for real-time project.
The desired flow is as follows:
1. I flash the Raspberry Pi with the application and connect to it via UART from a PC.
2. Using a serial terminal (PuTTY), I open the UART connection.
3. Initially, the terminal shows a blank screen.
4. After pressing Enter, a prompt ($) should appear, ready to accept commands and than the rest of the CLI functionality.
What i've tried to do:
I removed the console=serial0,115200 parameter from cmdline.txt to disable the default UART login console.
This was intended to free up the serial0 UART interface for the custom shell application.
I'm not sure if this enough, as u can see from the image, the Raspberry Pi's UART is still configured to display the default system login prompt (ubuntu login:).
I assume this means that the UART is being used by both your custom shell and the default system login, causing conflicts.
I would greatly appreciate it if someone could help me figure out this issue and provide all the necessary steps to resolve it, starting from the beginning.
Statistics: Posted by matanpapa — Thu Nov 28, 2024 2:35 pm — Replies 0 — Views 40