Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Why do you choose LCD screen display by default when uboot starts?

Shulou Source: shulou.com Published: 2022-06-02 09:25:50 09月22日 Update

This article mainly explains why you choose LCD screen display by default when uboot starts. Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn why you choose LCD screen display by default when uboot starts.

LCD screen display is selected by default when uboot starts.

The problem of uboot startup screen display has been bothering me for a long time. I think you all have similar problems. I have thought about it for a long time. I have finally figured it out during this period of time of working with Electric Fish Electronics. Now I will share it with you:

Modify the / uboot/board/freescale/mx6sabresd/mx6sabresd.c file as follows:

Modify the following parts:

Struct display_info_t const displays [] = {{

.bus =-1

.addr = 0

.pixfmt = IPU_PIX_FMT_RGB24

.clients = NULL

.enable = enable_lvds

.mode = {

.name = "Hannstar-XGA"

.refresh = 60

.xres = 1920

.yres = 1080

.Pixclock = 6734

.left _ margin = 90

.right _ margin = 50

.upper _ margin = 30

.lower _ margin = 6

.hsync _ len = 24

.vsync _ len = 3

.sync = FB_SYNC_EXT

.vmode = FB_VMODE_NONINTERLACED

}}, {

.bus =-1

.addr = 0

.pixfmt = IPU_PIX_FMT_RGB24

.clients = NULL

.enable = do_enable_hdmi

.mode = {

.name = "HDMI"

.refresh = 60

.xres = 640

.yres = 480

.Pixclock = 39721

.left _ margin = 48

.right _ margin = 16

.upper _ margin = 33

.lower _ margin = 10

.hsync _ len = 96

.vsync _ len = 2

.sync = 0

.vmode = FB_VMODE_NONINTERLACED

}}, {

.bus = 0

.addr = 0

.pixfmt = IPU_PIX_FMT_RGB24

.clients = NULL

.enable = enable_rgb

.mode = {

.name = "SEIKO-WVGA"

.refresh = 60

.xres = 800

.yres = 480

.Pixclock = 29850

.left _ margin = 89

.right _ margin = 164,

.upper _ margin = 23

.lower _ margin = 10

.hsync _ len = 10

.vsync _ len = 10

.sync = 0

.vmode = FB_VMODE_NONINTERLACED

}}}

Size_t display_count = ARRAY_SIZE (displays)

After the modification, it is shown in the following figure:

Struct display_info_t const displays [] = {{

.bus = 0

.addr = 0

.pixfmt = IPU_PIX_FMT_RGB24

.clients = NULL

.enable = enable_rgb

.mode = {

.name = "CLAA-WVGA"

.refresh = 57

.xres = 800

.yres = 480

.Pixclock = 37037

.left _ margin = 40

.right _ margin = 60

.upper _ margin = 10

.lower _ margin = 10

.hsync _ len = 20

.vsync _ len = 10

.sync = 0

.vmode = FB_VMODE_NONINTERLACED

}}, {

.bus =-1

.addr = 0

.pixfmt = IPU_PIX_FMT_RGB666

.clients = NULL

.enable = enable_lvds

.mode = {

.name = "Hannstar-XGA"

.refresh = 60

.xres = 1024

.yres = 768

.Pixclock = 15385

.left _ margin = 220

.right _ margin = 40

.upper _ margin = 21

.lower _ margin = 7

.hsync _ len = 60

.vsync _ len = 10

.sync = FB_SYNC_EXT

.vmode = FB_VMODE_NONINTERLACED

}}, {

.bus =-1

.addr = 0

.pixfmt = IPU_PIX_FMT_RGB24

.clients = NULL

.enable = do_enable_hdmi

.mode = {

.name = "HDMI"

.refresh = 60

.xres = 640

.yres = 480

.Pixclock = 39721

.left _ margin = 48

.right _ margin = 16

.upper _ margin = 33

.lower _ margin = 10

.hsync _ len = 96

.vsync _ len = 2

.sync = 0

.vmode = FB_VMODE_NONINTERLACED

}}}

Size_t display_count = ARRAY_SIZE (displays)

At this point, I believe you have a deeper understanding of why you choose LCD screen display by default when uboot starts, so you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Screen selection question content learning practical deeper interest practical simple operation file method time more friends electronic electronic fish website parts Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Redmi Shulou Tech Info Microsoft OPPO Reno