程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> u-boot-u_boot的logo顯示問題,求大神幫忙看看,做的我心都碎了

u-boot-u_boot的logo顯示問題,求大神幫忙看看,做的我心都碎了

編輯:編程綜合問答
u_boot的logo顯示問題,求大神幫忙看看,做的我心都碎了

u-boot目錄下所有關於Logo的文件都有,網上搜了一些說要在配置文件裡添加配置語句,添加如下
#define CONFIG_CMD_BMP
#define CONFIG_VIDEO
#define CONFIG_VIDEO_LOGO
#define CONFIG_VIDEO_BMP_LOGO
#define VIDEO_FB_16BPP_WORD_SWAP
結果報錯如圖

最佳回答:


應該就那幾個關於 FB 的, 參考 readme:

  • Console Interface:
    Depending on board, define exactly one serial port
    (like CONFIG_8xx_CONS_SMC1, CONFIG_8xx_CONS_SMC2,
    CONFIG_8xx_CONS_SCC1, ...), or switch off the serial
    console by defining CONFIG_8xx_CONS_NONE

            Note: if CONFIG_8xx_CONS_NONE is defined, the serial
            port routines must be defined elsewhere
            (i.e. serial_init(), serial_getc(), ...)
    
            CONFIG_CFB_CONSOLE
            Enables console device for a color framebuffer. Needs following
            defines (cf. smiLynxEM, i8042, board/eltec/bab7xx)
                    VIDEO_FB_LITTLE_ENDIAN  graphic memory organisation
                                            (default big endian)
                    VIDEO_HW_RECTFILL       graphic chip supports
                                            rectangle fill
                                            (cf. smiLynxEM)
                    VIDEO_HW_BITBLT         graphic chip supports
                                            bit-blit (cf. smiLynxEM)
                    VIDEO_VISIBLE_COLS      visible pixel columns
                                            (cols=pitch)
                    VIDEO_VISIBLE_ROWS      visible pixel rows
                    VIDEO_PIXEL_SIZE        bytes per pixel
                    VIDEO_DATA_FORMAT       graphic data format
                                            (0-5, cf. cfb_console.c)
                    VIDEO_FB_ADRS           framebuffer address
                    VIDEO_KBD_INIT_FCT      keyboard int fct
                                            (i.e. i8042_kbd_init())
                    VIDEO_TSTC_FCT          test char fct
                                            (i.e. i8042_tstc)
                    VIDEO_GETC_FCT          get char fct
                                            (i.e. i8042_getc)
                    CONFIG_CONSOLE_CURSOR   cursor drawing on/off
                                            (requires blink timer
                                            cf. i8042.c)
                    CONFIG_SYS_CONSOLE_BLINK_COUNT blink interval (cf. i8042.c)
                    CONFIG_CONSOLE_TIME     display time/date info in
                                            upper right corner
                                            (requires CONFIG_CMD_DATE)
                    CONFIG_VIDEO_LOGO       display Linux logo in
                                            upper left corner
                    CONFIG_VIDEO_BMP_LOGO   use bmp_logo.h instead of
                                            linux_logo.h for logo.
                                            Requires CONFIG_VIDEO_LOGO
                    CONFIG_CONSOLE_EXTRA_INFO
                                            additional board info beside
                                            the logo
    
            When CONFIG_CFB_CONSOLE is defined, video console is
            default i/o. Serial console can be forced with
            environment 'console=serial'.
    
            When CONFIG_SILENT_CONSOLE is defined, all console
            messages (by U-Boot and Linux!) can be silenced with
            the "silent" environment variable. See
            doc/README.silent for more information.
    
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved