How to config the hdmi with uboot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to config the hdmi with uboot

13,905 Views
shengqiangai
Contributor II

Our board is FSL board imx6dl,main board is MCIMX6DLAICPU1,base board is MCIMXABASEV1,BSP version is L3.0.35_4.1.0_130816_source,

 

we want to show the board's output with hdmi device,our uboot print log as follow:

 

MX6DL SABREAUTO U-Boot > print

bootdelay=3

baudrate=115200

netmask=255.255.255.0

rd_loadaddr=(0x10800000 + 0x300000)

netdev=eth0

ethprime=FEC0

ethact=FEC0

bootargs_base=setenv bootargs console=ttymxc3,115200

bootcmd_nfs_hdmi=run bootargs_base bootargs_nfs hdmi;tftp ${loadaddr} ${bootfile};bootm

loadaddr=0x10800000

bootfile=uImage

ipaddr=192.168.2.124

serverip=192.168.2.106

nfsroot=192.168.2.106:/tftpboot/rootfs, v3 tcp

bootargs=console=ttymxc3,115200 root=/dev/nfs ip=192.168.2.126 nfsroot=192.168.2.106:/tftpboot/rootfs,v3,tcp video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 ldb=sin0 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24 bpp=32

hdmi=setenv bootargs ${bootargs} video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24

bootcmd=run bootargs_base hdmi;tftp ${loadaddr} ${bootfile};bootm

bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=192.168.2.126 nfsroot=192.168.2.106:tftpboot/rootfs,v3,tcp

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 903/8188 bytes

 

Now we get a problem to config the hdmi ,

 

 

This problem confused us a long time ,could anybody tell us how to config the uboot ,that can show the board's output with hdmi device.

Original Attachment has been moved to: uboot_print.txt.zip

Labels (3)
Tags (3)
0 Kudos
10 Replies

4,161 Views
shengqiangai
Contributor II

Thanks everybody answer my question,now i can display the scree with hdmi ,the uboot setting as follow:

MX6DL SABREAUTO U-Boot > print

bootdelay=3

baudrate=115200

rd_loadaddr=(0x10800000 + 0x300000)

netdev=eth0

ethprime=FEC0

ethact=FEC0

netmask=255.255.255.0

ethaddr=00:23:63:3f:28:10

uboot=u-boot.bin

kernel=uImage

extra=caam

gatewayip=192.168.2.1

bootcmd_net=run bootargs_base bootargs_nfs hdmi; tftpboot ${loadaddr} ${kernel};bootm

video=video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24

bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v2,tcp

bootargs_base=setenv bootargs console=ttymxc3 115200

bootcmd=tftp ${loadaddr} ${bootfile};bootm

bootfile=uImage

loadaddr=0x10800000

serverip=192.168.2.106

nfsroot=192.168.2.106:/tftpboot/rootfs, v3 tcp

ipaddr=192.168.2.126

bootargs=console=ttymxc3,115200 root=/dev/nfs ip=192.168.2.126 nfsroot=192.168.2.106:/tftpboot/rootfs,v3,tcp video=mxcfb0:dev=hdmi, 1920x1080M@60,if=RGB24

stdin=serial

stdout=serial

stderr=serial

Environment size: 871/8188 bytes

MX6DL SABREAUTO U-Boot >

but there has a problem,the resolution on my computer monitor is not correct! I don't know why?

0 Kudos

4,161 Views
shengqiangai
Contributor II

Could anybody give me uboot print sample that it could works with hdmi

4,160 Views
eugenevolkov
Contributor IV

Hi,

I have same problem. I set setenv panel HDMI

It works!

.bus= -1,
.addr= 0,
.pixfmt= IPU_PIX_FMT_RGB24,
.detect= 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
0 Kudos

4,161 Views
igorpadykov
NXP Employee
NXP Employee

Hi shengqiang

one can try commands as in attached documents

sect.9.2 Running the Image from MMC/SD Linux User Guide

Table 6. Kernel Boot Parameters Release Notes :

video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24

different hdmi panels can be used for test

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

4,161 Views
shengqiangai
Contributor II

Thanks for your reply.

I am not running the Image from MMC/SD, i am  running the Image from nfs,and downloading the uImage by tftp.

I have tryed a lot of times,but it never successed.

The uboot print log as follow:


MX6DL SABREAUTO U-Boot > print

bootdelay=3

baudrate=115200

rd_loadaddr=(0x10800000 + 0x300000)

netdev=eth0

ethprime=FEC0

ethact=FEC0

loadaddr=0x10800000

nfsroot=/tftpboot/rootfs

hostname=imx6_dl_v1

bootcmd_net=run bootargs_base bootargs_nfs;bootm

tmpIpvalue=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0:off

bootargs_base=setenv bootargs console=ttymxc3,115200

filesize=3AFF78

fileaddr=10800000

gatewayip=192.168.2.1

netmask=255.255.255.0

ipaddr=192.168.2.124

serverip=192.168.2.106

bootfile=uImage

bootcmd=tftp ${loadaddr} ${bootfile}; run bootcmd_net

bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=${tmpIpvalue}

nfsroot=${serverip}:${nfsroot},v3,tcp video=mxcfb0:dev=hdmi,1680x1050M@60,if=RGB24

stdin=serial

stdout=serial

stderr=serial

Environment size: 735/8188 bytes

MX6DL SABREAUTO U-Boot >

can you give me a complete config that make it works.

0 Kudos

4,161 Views
igorpadykov
NXP Employee
NXP Employee

please do not use "mxcfb0:dev=hdmi,1680x1050M@60"

use 1920x1080M@60 as describe attached docs and try with different panels

0 Kudos

4,161 Views
shengqiangai
Contributor II

the mean of different panels is mxcfb0,mxcfb1 mxcfb2 ....  ?

0 Kudos

4,161 Views
igorpadykov
NXP Employee
NXP Employee

different monitors

1.jpg

0 Kudos

4,161 Views
shengqiangai
Contributor II

i am sorry ,i just have pc monitors,do you mean i need by a monitor that support 1920x1080M@60

0 Kudos

4,161 Views
igorpadykov
NXP Employee
NXP Employee

yes. Also please verify that this is

"True" HDMI display with special HDMI cable,

not just a HDMI - DVI adapter.

0 Kudos