hlcdc: hlcdc@f0000000 { atmel,vl-bpix = <4>; atmel,guard-time = <1>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_pwm &pinctrl_lcd_rgb>; status = "okay"; u-boot,dm-pre-reloc; display-timings { u-boot,dm-pre-reloc; 480x272 { clock-frequency = <9000000>; hactive = <480>; vactive = <272>; hsync-len = <41>; hfront-porch = <2>; hback-porch = <2>; vfront-porch = <2>; vback-porch = <2>; vsync-len = <11>; u-boot,dm-pre-reloc; }; }; };
#define CONFIG_CMD_BMPEnable HLCD display driver in U-boot using make menuconfig and Select Device Drivers ---> Graphics support --->. Finally build uboot binary using make command.
>fatload mmc 1:1 0x22000000The another option is to store bmp image in a header file and build uboot binary including bmp header file. By default Microchip logo and text is already present in uboot/lib/at91/microchip_logo_8bpp.h. In case if you want to modify boot logo with different bmp image, replace unsigned char microchip_logo_8bpp[ ] array items in uboot/lib/at91/microchip_logo_8bpp.h file using hexdump application as shown below.; bmp display 0x22000000;
hexdump -v -e '15/1 "0x%02X, " 1/1 " 0x%02X, \n" ' file.bmp > bmp.txt replace microchip_logo_8bpp[ ] array items with above generated bmp.txt file itemsIf you want to disable text content under Microchip logo, Comment out below two lines in the function video_show_board_logo_info in uboot/board/atmel/board_name/board_name.c file.
/* for (s = buf, i = 0; i < len; s++, i++) vidconsole_put_char(con, *s); */
reserved-memory { #address-cells = <1>; #size-cells = <1>; ranges; display_reserved: framebuffer@3FD00000 { reg = <0x3FD00000 0x100000>; }; };Set memory-region property under hlcd device node as show in below (i.e. memory-region=<&display_reserved> )
hlcdc: hlcdc@f0000000 { compatible = "atmel,sama5d4-hlcdc"; reg = <0xf0000000 0x4000>; interrupts = <51 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&lcdc_clk>, <&lcdck>, <&clk32k>; clock-names = "periph_clk","sys_clk", "slow_clk"; status = "disabled"; memory-region = <&display_reserved>; }Build the Kernel and make sure CONFIG_OF_RESERVED_MEM=y is set in kernel config. while Linux booting, the Boot Logo screen will stay till the DRM device is gets configured by userspace application or /dev/fb0 emulation is created.
WebFaqBaseForm | |
---|---|
Boards | Sama5d4ek |
Components | U-Boot, Kernel, linux-4.1-at91, linux-4.4-at91, linux-4.9-at91, linux-4.14-at91, linux-4.19-at91, linux-5.4-at91 |
Summary | Boot Logo for At91 SOC's |
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
![]() |
BootLogo_menuconfig.png | manage | 90.9 K | 2018-05-03 - 21:01 | SandeepSheriker | BootLogo_menuconfig |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel® and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
ARM® and others are registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.