[WBQuad] HDMI / Vivante GPU not working?

This forum is for supported devices using an ARMv7 Freescale SoC.

[WBQuad] HDMI / Vivante GPU not working?

Postby Yenal » Sun Feb 02, 2014 8:19 pm

Hi,
can somebody please tell me the magic: how to get HDMI working on the Wandboard Quad?
First I just followed the installation-guide on http://archlinuxarm.org/platforms/armv7 ... /wandboard

..then tried different settings in /boot/uEnv.txt which I found on severel guides and google threads like:
"video=HDMI-A-1:1920x1080@60"
or
"video=mxcfb0:dev=hdmi,1920x1080M@60
fbmem=24M,10M"

I also tried building a new u-boot img (*described at http://www.eewiki.net/display/linuxonarm/Wandboard)...
but there is still no signal on my monitor which is connected with a HDMI-DVI cable (1920x1080@60 is the recommended resolution when connected to my desktop pc)

My first major step forward was running another u-boot img and new kernel as described in the eewiki guide, which gave me a black screen with some Tux penguins, but on the serial terminal I had some kernel panic stoping arch arm to run :(

edit: well all seems to work with the debian or ubuntu versions mentioned on the eewiki guide but how to install Arch with new Kernel and u-boot img?

edit2: seems I was to muddle-headed to install Arch properly.. if you dont follow the archarm guide it could work:
1.) Follow all steps in eewiki guide until "Copy Root File System" (use wget http://archlinuxarm.org/os/ArchLinuxARM ... est.tar.gz instead of the debian/ubuntu rootfs)
2.)
$this->bbcode_second_pass_code('', '
sudo tar -xf ./ArchLinuxARM-wand-latest.tar.gz -C /media/rootfs/
sync

#Kernal Image
sudo cp -v ./armv7-multiplatform/deploy/${kernel_version}.zImage /media/boot/zImage

#Kernel Device Tree Binaries
sudo mkdir -p /media/boot/dtbs/
sudo tar xfv ./armv7-multiplatform/deploy/${kernel_version}-dtbs.tar.gz -C /media/boot/dtbs/

#Kernel Modules + Firmware
sudo tar xfv ./armv7-multiplatform/deploy/${kernel_version}-modules.tar.gz -C /media/rootfs/usr/
sudo tar xfv ./armv7-multiplatform/deploy/${kernel_version}-firmware.tar.gz -C /media/rootfs/usr/lib/firmware/

#WBQuad Wlan FW
sudo cp -v /media/rootfs/usr/lib/firmware/brcm/brcmfmac4329-sdio.bin /media/rootfs/usr/lib/firmware/brcm/brcmfmac-sdio.bin
sudo wget -c https://raw.github.com/Freescale/meta-fsl-arm-extra/master/recipes-bsp/broadcom-nvram-config/files/wandboard/nvram.txt -O /media/rootfs/usr/lib/firmware/brcm/brcmfmac-sdio.txt
sudo cp -v /media/rootfs/usr/lib/firmware/brcm/brcmfmac-sdio.txt /media/rootfs/usr/lib/firmware/brcm/brcmfmac4329-sdio.txt

sudo nano /media/rootfs/etc/fstab
/dev/mmcblk0p2 / auto errors=remount-ro 0 1
/dev/mmcblk0p1 /boot/uboot auto defaults 0 2

sudo rm -rf /media/rootfs/boot/dtbs
sudo rm /media/rootfs/boot/uImage

sync
sudo umount /media/boot
sudo umount /media/rootfs')

Together with Xserver stuff & xf86-video-fbdev I was able to start Xfce, unfortunately resolution is limited to 1024x768
Last edited by Yenal on Sat Mar 01, 2014 6:51 pm, edited 2 times in total.
Yenal
 
Posts: 18
Joined: Wed Jan 29, 2014 6:31 pm

Re: [WBQuad] HDMI not working?

Postby raumzeit » Wed Feb 05, 2014 7:20 am

Wandboard has a serious problem with HDMI-DVI adaptors. Somehow Wandboard tries to read the EDID, fails and falls back into default 1024x768 mode. This is why you dont get a resolution as high as your monitor would allow. (this is a well known problem, btw.)
After I tried so many combinations of kernel parameters and kernels I decided to get rid of my old monitor and buy one with native HDMI input. This solved my problem right away, I get 1920x1080@60 without any problems now.

best

RaumZeit
Acer CB5-311, Asus Flip, Tinker Board, Samsung ARM Chromebook, NSA 325, ix4-300d, WandBoard Quad, Raspberry Pi B, BeagleBoard ...and a dead Pandaboard :sad:
raumzeit
 
Posts: 73
Joined: Mon Oct 17, 2011 8:37 pm
Location: Vienna AT

Re: [WBQuad] HDMI not working?

Postby Yenal » Wed Feb 05, 2014 10:13 am

Thanks for your reply.. coincides with my perceptions.

The next problem with a new kernel (beyond 3.0.35) is that there is no vivante support... therefore I wasnt able to do graphic related stuff (playing flash vids, small games, ..)

Afaik this HDMI-DVI problems related to the i.MX socs are well-known for a long time, it's a real pity that there is still no solution yet :/

Have you tried the boundarydevices-linux-imx6 kernel (https://github.com/boundarydevices/linu ... 0.35_4.1.0) together with xorg-vivante driver (https://github.com/zOrg1331/xorg-drv-vivante) ?
Yenal
 
Posts: 18
Joined: Wed Jan 29, 2014 6:31 pm

Re: [WBQuad] HDMI not working?

Postby raumzeit » Thu Feb 06, 2014 12:36 pm

Currently I have an older commit of https://github.com/wolfgar/linux/tree/wandboard_imx_3.0.35_4.1.0 running, together with the latest xorg-drv-vivante (for 3.5.7-1.1.0) patched to work with Xorg 1.15, and the 3.10.9 proprietary binary drivers.
While GPU acceleration works in framebuffer mode, X11 doesn't. I don't know whether this is a bug in my xorg-drv-vivante, the kernel patches or whatever...
Using GLES in X11 just causes my system to freeze badly (glxgears segfaults, es2gears_x11 and the vivante samples cause a freeze)

As soon as I find more time, I will test 3.10.17 binaries and maybe put out some PKGBUILDs
Acer CB5-311, Asus Flip, Tinker Board, Samsung ARM Chromebook, NSA 325, ix4-300d, WandBoard Quad, Raspberry Pi B, BeagleBoard ...and a dead Pandaboard :sad:
raumzeit
 
Posts: 73
Joined: Mon Oct 17, 2011 8:37 pm
Location: Vienna AT

Re: [WBQuad] HDMI not working?

Postby Yenal » Tue Feb 11, 2014 11:23 am

When I try to build the xorg vivante driver on my board from https://github.com/zOrg1331/xorg-drv-vivante, all I get are errors related to aclocal/autoconf

while the sources from http://repository.timesys.com/buildsour ... .35-4.0.0/
complain about "cc: error: vivante_gal_blit.lo: No such file or directory"

The instruction readme mentions something about Vivante GPU Base driver, which seem to not exist for Arch..so I looked into the avaible ubuntu image from wandbord.org and managed to copy the driver from there to arch..of course the xserver version differs, but maybe it works if I can manage to downgrade the xserver to the ubuntu version?
Yenal
 
Posts: 18
Joined: Wed Jan 29, 2014 6:31 pm

Re: [WBQuad] HDMI not working?

Postby tobbebobbe » Tue Feb 11, 2014 12:39 pm

Yenal: Did you install the "base-devel" package group? If not, do that first. It is a basic dependency for makepkg.
tobbebobbe
 
Posts: 65
Joined: Thu Jan 30, 2014 12:00 pm

Re: [WBQuad] HDMI not working?

Postby Yenal » Tue Feb 11, 2014 9:59 pm

no it wasnt base-devel ... the git source xorg-drv-vivante still fails in both dirs no matter if run as root or user
-------------------------
tried now several sources for the kernel (with vivante GPU kernel & userspace driver) and the vivante xorg-server driver...
Freescale kernel: 3.0.35+ (patches-3.0.35-4.0.0-wandboard branch with uImage), vivante userspace part (some of them come with wrong symbolic links ..timesys repo worked well without ldconfig errors), vivante xorg-server driver (some of them e.g. zOrg1331 & Freescale i.MX Linux BSP Source Code Files fail to build with alarm out of the box because Freescale SDK is needed to build properly... again timesys repo worked well without Freescale SDK with very little modifications /used it with xorg-server-1.11.4)

anyways I wasnt able to get glxgears running correctly and playing videos with vlc works only with x11-xcb but rather bad than good... dunno why selfmade Yocto builds run nearly perfect (glxgears, flash, vlc & co...) and source builds in arch for the relevant graphic stuff doesnt ...although they seem to be nearly the same sources/source codes
-----
..finally I think I have a quite maverick but at least working solution to get Xserver running with gpu acceleration :)
might sound stupid: but replacing essential stuff in arch-rootfs with Yocto/Poky builds brings up a working xfce desktop to the wandboard

Xserver starts with hdmi-only monitor (and hdmi-dvi if xorg.conf is modified) using xorg-vivante drivers, glxgears runs as root and user with ~220fps showing the gears, glxinfo doesnt complain about software rendering, chromium plays flash videos via pepper-flash... gstreamer videoplayback still needs to be improved (its a littlebit laggy) .. maybe because gstreamer vpu usage is faulty with gstreamer from arch
Last edited by Yenal on Sun Feb 16, 2014 9:42 am, edited 4 times in total.
Yenal
 
Posts: 18
Joined: Wed Jan 29, 2014 6:31 pm


Return to Freescale

Who is online

Users browsing this forum: No registered users and 3 guests