Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report