Dual Display setup on Yocto build

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Dual Display setup on Yocto build

6,340件の閲覧回数
paul_lee
Contributor II

Hi,

I am using imx6q SABRE SDP hardware.

I have build fsl-image-gui and i want to display this on dual display.

Display 1 = HDMI 720p and Display 2 = LVDS = 1024 x720

My bootargs is a follow

imx6qsabresd login: printenv

baudrate=115200

boot_fdt=try

bootcmd=mmc dev ${mmcdev};if mmc rescan; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi

bootcmd_mfg=run mfgtool_args;bootm ${loadaddr} ${initrd_addr} ${fdt_addr};

bootdelay=1

bootscript=echo Running bootscript from mmc ...; source

console=ttymxc0

ethact=FEC

ethaddr=00:04:9f:02:70:e0

ethprime=FEC

fdt_addr=0x18000000

fdt_file=imx6q-sabresd.dtb

fdt_high=0xffffffff

initrd_addr=0x12C00000

initrd_high=0xffffffff

ip_dyn=yes

loadaddr=0x12000000

loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};

loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}

loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}

mfgtool_args=setenv bootargs console=ttymxc0,115200 rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber="" enable_wait_mode=off

mmcargs=setenv bootargs console=${console},${baudrate} ${smp} root=${mmcroot} video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24 video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 ldb=sin1 

mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootm ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT; fi; fi; else bootm; fi;

mmcdev=1

mmcpart=1

mmcroot=/dev/mmcblk0p2 rootwait rw

netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp

But I am only getting display on HDMI...

Did i missed some thing?

What more modification is required to get dual display working?

netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${uimage}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootm ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT; fi; fi; else bootm; fi;

script=boot.scr

uimage=uImage

Environment size: 2103/8188 bytes

ラベル(3)
タグ(3)
0 件の賞賛
返信
7 返答(返信)

3,083件の閲覧回数
Yuri
NXP Employee
NXP Employee

  Assuming the recent (Yocto) BSP ; from Release Notes those are the possible / tested 

command lines:
  1. video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1:dev=ldb,LDBXGA,if=RGB666

  2. video=mxcfb0:dev=ldb,LDBXGA,if=RGB666 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24

  3. video=mxcfb0:dev=lcd,CLAAWVGA,if=RGB656
  4. video=mxcfb0:dev=mipi_dsi,TRULYWVGA,if=RGB24

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

  6. video=mxcfb0:dev=ldb,LDBXGA,if=RGB666 None or ldb=sin0

  7. video=mxcfb0:dev=ldb,LDBXGA,if=RGB666 ldb=sep1

  8. video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24ldb=sep1


You may try the first case.

Have a great day,
Yuri

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

3,083件の閲覧回数
paul_lee
Contributor II

Hi,

Yuri

I have tried with

editenv mmcargs

and added

"video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1:dev=ldb,LDBXGA,if=RGB666"


I am able to get 1080p display on HDMI but there is no display on LVDS.

0 件の賞賛
返信

3,083件の閲覧回数
paul_lee
Contributor II

Hi,

if i run echo 0 > /sys/class/graphics/fb1/blank, than small overlay is created on my HDMI display.

0 件の賞賛
返信

3,083件の閲覧回数
saurabh206
Senior Contributor III

Hello lee

echo 0 > /sys/class/graphics/fb2/blank

dd if=/dev/urandom of=/dev/fb2

Try to run above command and check display on secondary device.

Regards

Saurabh

3,083件の閲覧回数
vongocson
Contributor III

i've do that too, but my screen not show!

0 件の賞賛
返信

3,084件の閲覧回数
paul_lee
Contributor II

Now how to get mirror display in linux (HDMI + LVDS)?

0 件の賞賛
返信

3,084件の閲覧回数
huang_dexiang
Contributor II

Hi, Lee.

did you get miroor display in linux?

We have the same issues. We use Minigui as our UI system, and we want to display UI and play video on LVDS and HDMI at the same time.

0 件の賞賛
返信