Hello,
I'm encountering a peculiar issue with U-Boot where a BMP image appears blurry when displayed, whereas the same image displays correctly in the kernel. I've summarized the key points of the problem below:
Color Depth Matching: I want to ensure that the color depth (bits per pixel) of the image and the framebuffer in U-Boot match correctly to avoid color distortion.
Scaling or Interpolation: I suspect that scaling or interpolation settings in U-Boot may be affecting image quality. How can I verify and control these settings?
Framebuffer Resolution: I've confirmed that the framebuffer resolution in U-Boot is set correctly, matching the resolution of the image. However, blurriness persists.
Framebuffer Initialization: I've checked the framebuffer initialization code in U-Boot, and it seems to be configured correctly.
Steps followed:
In uboot console enter the below commands
ext4load mmc ${mmcdev}:${mmcpart_logo} ${logo_addr} splash.bmp
bmp display ${logo_addr}
Hardware details
custom imx8qxp board
Lvds display
image info:
Header Signature: BM
File Size: 2457654
Reserved: 0
Data Offset: 54
InfoHeader Size: 40
Image Width: 1024
Image Height: 600
Planes: 1
Bit Count: 32
Compression: 0
Image Size: 0
X Pixels per Meter: 0
Y Pixels per Meter: 0
Colors Used: 0
Colors Important: 0
came to func=video_bmp_display
Hello,
My two cents here is to make sure that you image is the resolution that uboot supported, is 640x480.
Regards
@Bio_TICFSL Tried using lower-resolution images as well, but I'm still observing blur around the text letters.
my uboot version:
=> version
U-Boot 2021.04-00133-gae1b917712 (Aug 31 2023 - 07:12:37 +0530)
aarch64-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0
GNU ld (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 2.32.0.20190321
can u suggest some debugging steps to resolve this issues.
uboot_logs:
Board: iMX8QXP
Boot: MMC0
DRAM: 4 GiB
setup_typec lookup gpio@1a_7 failed ret = -22
env_buf [32 bytes] too small for value of "videomode_4"
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
[*]-Video Link 0it6263_i2c_reg_read, read err 3
faill to read from it6263 revision, ret 3
(1280 x 720)
[0] dpu@56180000, video
[1] lvds-channel@0, display
[2] lvds-to-hdmi-bridge@4c, video_bridge
In: serial
Out: serial
Err: serial
BuildInfo:
- SCFW 58865b98, SECO-FW 7aeb8423, IMX-MKIMAGE d2cb4e98, ATF 0bc168c
- U-Boot 2021.04-00133-gae1b917712-dirty