Page 1 of 1

Path to console

Posted: 2024-01-03 14:56
by Seplus
Hello!
First of all, I want to thank the Luckfox team for a great product.
I'm new to embedded Linux.
I'm using Pico mini B, after a few days of research,
I was able to connect the IPS display (ST7789) to the development board.
Image
Now I want to get a command line on this display. The 5.1 kernel has the ST7789 driver.
But I don't understand how to make it work.
I probably need to enable the framebuffer and configure the device tree.
In the future I would like to make a miniature NES/SNES console. =)
I think I can find all the information on my own, over a long period of time.
But I would like to ask you to help me walk this path.

Re: Path to console

Posted: 2024-01-04 12:52
by Luckfox Taylor
I'm sorry for any confusion, but it seems like you're referring to a specific configuration related to adding console drivers in the kernel and modifying device tree source files (DTS or DTSI) to redirect logs to the screen.

To achieve this, you would typically need to:

1. Add Console Driver to the Kernel:

Modify the kernel configuration to include the appropriate console driver. This might involve enabling the necessary options in the kernel configuration menu (make menuconfig or similar).
Update Device Tree Source Files:

https://wiki.luckfox.com/Luckfox-Pico/L ... enuconfig/

2. Add or modify the chosen node in the device tree source to include the console settings, such as console=tty1 or console=tty0.For example:

Code: Select all

chosen {
    bootargs = "earlycon=uart8250,mmio32,0xff4c0000 console=tty1 console=ttyFIQ0 root=/dev/mmcblk1p7 rootwait snd_soc_core.prealloc_buffer_size_kbytes=16 coherent_pool=0";
};
The statement "console=ttyFIQ0" directs the console to use the FIQ (Fast Interrupt Request) serial port, while "tty1" and "tty0" are associated with the screen console.