Building etna_viv on the sabre lite

At the moment I am playing around with a cute nice little imx6q board – the sabre lite. I am running a freescale based RFS with the binary libGAL.so blob in the user space. So why not look into etna_viv and get it compiled. It turns out to be as simple as this. git clone git://github.com/laanwj/etna_viv.git cd etna_viv/native export GCABI=imx6 export CFLAGS="-D_POSIX_C_SOURCE=200809 -D_GNU_SOURCE -DLINUX -pthread" export CXXFLAGS="-D_POSIX_C_SOURCE=200809 -D_GNU_SOURCE -DLINUX -pthread" make ...

April 29, 2013 · 1 min · Christian Gmeiner

JQuery: autoscroll to last line of a div

Image you are working on a small web application where you use a JQuery UI dialog to inform the user about the current process. Triggered via SSE I am appending some messages via JavaScript. $(’#progress’).append("<span class=‘ui-icon ui-icon-alert’ style=‘float: left; margin-right: .3em’;>" + stderr + “ ”); In order to automaticly scroll to the last line I am using this two magic lines of JavaScript: var height = $(’#progress’)[0].scrollHeight; $(’#progress’).scrollTop(height); ...

March 16, 2013 · 1 min · Christian Gmeiner

git: RPC failed; result=22, HTTP code = 504

git clone http://review.coreboot.org/p/coreboot.git coreboot Cloning into ‘coreboot’… error: RPC failed; result=22, HTTP code = 504 fatal: The remote end hung up unexpectedly The error occurs in ‘libcurl’, which is the underlying protocol for http. To get more details about the error, set GIT_CURL_VERBOSE=1

March 7, 2013 · 1 min · Christian Gmeiner

SMBus Compatibility With an I²C Device

Some naive guys – like me – think that SMBus and I²C are equal expect the bus level. But in the last days I run into a problem where an at24 based EEPROM connected via SMBus triggers a bus collision after a warm reboot. After some hours of debugging – even staring minutes at a oscilloscope showing SDD and SDC lines – I started to add some dump_stack() calls into i2c_core.c file form a recent linux kernel. And I found the bad bus transaction – i2c_probe_func_quick_read(..). ...

February 23, 2013 · 2 min · Christian Gmeiner

Sending patches from a local git repository

At the moment I am reworking some old seabios patches as I want them in upstream. At the moment my git log shows this: commit fd7e6128d5fb9b8297a4a20f3288c130a554147b Author: Christian Gmeiner christian.gmeiner@gmail.com Date: Thu Feb 14 10:24:59 2013 +0100 geodevga: fix wrong define name Signed-off-by: Christian Gmeiner christian.gmeiner@gmail.com commit b1268e8100f0bcf0655b65326856e6f33e3625c1 Author: Christian Gmeiner christian.gmeiner@gmail.com Date: Thu Feb 14 10:22:58 2013 +0100 geodevga: add debug to msr functions Signed-off-by: Christian Gmeiner christian.gmeiner@gmail.com commit dde4df84126a460c454ca79fc8dc5b0ae4aa876e Author: Christian Gmeiner christian.gmeiner@gmail.com Date: Thu Feb 14 10:19:05 2013 +0100 geodevga: move output setup to own function Signed-off-by: Christian Gmeiner christian.gmeiner@gmail.com commit bba85a38c67aa2b52f146b5cefe58b00f516fc2e Author: Christian Gmeiner christian.gmeiner@gmail.com Date: Thu Feb 14 10:13:59 2013 +0100 geodevga: move framebuffer setup Framebuffer setup has nothing to do with dc_setup(..) so move it to geodevga_init(..). Signed-off-by: Christian Gmeiner christian.gmeiner@gmail.com commit 0b3dee01385e65f2b88600c9b663589343ac4abe Author: Christian Gmeiner christian.gmeiner@gmail.com Date: Thu Feb 14 10:05:45 2013 +0100 geodevga: fix errors in geode_fp_* functions Signed-off-by: Christian Gmeiner christian.gmeiner@gmail.com commit 4b1d2be6e1c73d1fc9a984ca7fe6c14d433171cc Author: David Woodhouse David.Woodhouse@intel.com Date: Sun Feb 10 00:51:56 2013 +0000 Unify return path for CSM to go via csm_return() This allows us to keep the entry_csm code simple, and ensures that we consistently do things like saving the PIC mask (and later setting UmbStart) on the way back to UEFI. … ...

February 15, 2013 · 3 min · Christian Gmeiner