<html><head></head><body>I believe this will do it for you. Code provided for their demo units. Its due in the end, to the fact that the board outputs one strict resolution. I can't find any sort of licensing on this tiny bit of code though, but the source is made public, freely available with no warranty is the closest I can find to a license.<br>
<br>
<br>
#include <fcntl.h><br>
<br>
#include <linux/fb.h><br>
<br>
#include <sys/ioctl.h><br>
<br>
#include <sys/mman.h><br>
<br>
#include <unistd.h><br>
<br>
#include <assert.h><br>
<br>
int main(int argc, char **argv) {<br>
<br>
        struct fb_fix_screeninfo fixed;<br>
<br>
        struct fb_var_screeninfo variable;<br>
<br>
        char *fb;<br>
<br>
        int line_size, size, buffer_size, i;<br>
<br>
        int fd = open("/dev/fb0", O_RDWR);<br>
<br>
        ioctl(fd, FBIOGET_VSCREENINFO, &variable);<br>
<br>
        variable.xres = 1280;<br>
<br>
        variable.yres = 720;<br>
<br>
        variable.xres_virtual = 1280;<br>
<br>
        variable.yres_virtual = 1440;<br>
<br>
        variable.bits_per_pixel = 24;<br>
<br>
        ioctl(fd, FBIOPUT_VSCREENINFO, &variable);<br>
<br>
        ioctl(fd, FBIOGET_FSCREENINFO, &fixed);<br>
<br>
        variable.xoffset = 0;<br>
<br>
        variable.yoffset = 720;<br>
<br>
        ioctl(fd, FBIOPAN_DISPLAY, &variable);<br>
<br>
        variable.xoffset = 0;<br>
<br>
        variable.yoffset = 0;<br>
<br>
        ioctl(fd, FBIOPAN_DISPLAY, &variable);<br>
<br>
        close(fd);<br>
<br>
        return 0;<br>
<br>
}<br><br><div class="gmail_quote">On November 9, 2015 4:22:42 PM CST, Jim Perrin <jperrin@centos.org> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">I've posted a first build of CentOS for the Hikey from 96boards, and a<br />ReadMe with the steps required to get the board going.<br /><br /><a href="http://people.centos.org/jperrin/hikey">http://people.centos.org/jperrin/hikey</a>/<br /><br />The ReadMe assumes that you've at least skimmed the 'Getting Started'<br />section of the Hikey documentation, but walks through the fastboot<br />commands to load the image.<br /><br />What I consider the 'blocker' to releasing this image presently is the<br />lack of console output on HDMI. If someone's able to make that go, I<br />will happily mail them some CentOS swag and put their name in the<br />release notes for the image.<br /><br /><br /><br /></pre></blockquote></div></body></html>