This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to run a virtual display (xvfb) on a Keystone II board?

Hello,

I would like to set up a vnc server on a Keystone II board. I have built the kernel and the rootfs following the instructions in  http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Exploring#Yocto

I have installed x11vnc into my image by adding IMAGE_INSTALL_append = " x11vnc" to my local.conf file. I had to add X11 to the arago.cong DISTRO_FEATURES too.

Now I would like to set up a virtual display using xvfb. I believe that xvfb is provided by xserver-xorg in oe-core layer. I have tried adding xserver-xorg to the IMAGE_INSTALL_append list, but that alone doesn't seem to install xvfb.

Does anyone know what is the correct way to get xvfb into the image?

Thanks,

-Jose Alarcon

  • Hi, Jose,

    The X11 is not in TI's release build, and you need to have xserver-xorg-xvfb package included.

    Rex

  • Hello Rex,

    Many thanks for your reply. I tried adding xserver-xorg-xvfb to my image by adding it to the IMAGE_INSTALL_append in my local.conf:

    IMAGE_INSTALL_append = " xserver-xorg-xvfb x11vnc"

    The image creation fails with the following error:

    | Collected errors:
    | * opkg_install_cmd: Cannot install package xserver-xorg-xvfb.

    And the same error if I add it to the tisdk-server-rootfs-image.bb recipe.

    I beleive that xserver-xorg-xvfb is part of oe-core layer, which is included in my bblayers.conf:

    # This template file was created by taking the oe-core/meta/conf/bblayers.conf
    # file and removing the BBLAYERS section at the end.

    # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
    # changes incompatibly
    LCONF_VERSION = "5"

    BBPATH = "${TOPDIR}"
    BBFILES ?= ""

    # Layers configured by oe-core-setup script
    BBLAYERS += " \
    /home/jose/mcsdk/sources/meta-arago/meta-arago-distro \
    /home/jose/mcsdk/sources/meta-arago/meta-arago-extras \
    /home/jose/mcsdk/sources/meta-openembedded/toolchain-layer \
    /home/jose/mcsdk/sources/meta-openembedded/meta-oe \
    /home/jose/mcsdk/sources/meta-ti \
    /home/jose/mcsdk/sources/meta-linaro \
    /home/jose/mcsdk/sources/oe-core/meta \
    "

    Any idea what I am doing wrong?

    Thanks,

    -Jose Alarcon 

    EDIT1:  I am attaching the complete log file 7450.log.do_rootfs.29526.txt

  • Hi,

    My bad. I didn't notice that xvfb was disabled in xserver-xorg.inc. After removing "--disable-xvfb", everything works fine.

    -Jose

  • Hi Jose,

    Interesting tips here above. Already thanks for it.

    I'd like to enable X11 forwarding over SSH to benefit from remote X display on Keystone-II . I made the mods and got the FS build with x11vnc in /usr/bin now. But nothing about xvfb or xdm  any X config files in /etc or /usr .

    Did you document your findings any further ?  

    Thanks & Regards