Friday, 5 July 2013

Nvidia 304.88 legacy drivers on linux 3.10

UPDATE: You shouldn't need this patch anymore and use the nvidia 304.108 driver instead.

Here's a patch to get the NVIDIA-Linux-x86_64-304.88 drivers running on the new linux 3.10 kernel. (also works on the 3.10.1 kernel)

If you use gentoo then you can place the patch in the /etc/portage/patches/x11-drivers/nvidia-drivers/ folder and it will automatically be applied to any nvidia-drivers compilation.

otherwise ..

# Download and unpack:
sh -x
cd NVIDIA-Linux-x86_64-304.88
# apply the patch
patch -p1 <  .. path to the patch file
# and install

Feel free to leave a comment if this patch is useful.

Tuesday, 2 July 2013

Java API for

I've been working on a java api for the file storage service.

It includes a demo application for android.

Currently a work in progress .. but quite a bit of functionality is working.

Checkout the source via:

git clone

You can then run the test application using maven:

mvn -DMEGA_API_KEY="your api key" test

You can get an API key from

Tuesday, 21 May 2013

Gentoo on the GK802

Here's a step by step account of my attempts to get gentoo running on the gk802 device.

You can find lots of information and software for the gk802 at the forums and before you try following what I've done you should get ubuntu running first by following the instructions at jaz's hacks to see how linux performs and to familiarise yourself with the gk802 if you haven't played round with these arm devices before.

Here is a stage 3 gentoo image that you can put on a sdcard and boot.
Its based on a stage3-armv7a-20130208.tar.bz2 whose only modification is that
that the root password has been set to "gk802" and wpa_supplicant has been installed on it so you can access your wifi network.

bunzip2 -c gentoo_gk802_stage3.fs.bz2  | dd bs=1M of=/dev/yoursdcard

Insert the sdcard in the internal slot on the gk802 board and its ready to boot.

You now have a very basic gentoo setup running.

You can get the kernel source from and to install your new kernel you'll need to:

emerge dev-embedded/u-boot-tools git
cd /usr/src/
git clone git:// linux
cd linux
gunzip -c /proc/config.gz  >  .config
make menuconfig
make -j4
make uImage
make modules_install
dd if=arch/arm/boot/uImage  of=/dev/mmcblk0 bs=1M seek=1

For configuration options that are known to work you can look at the freescale/gk802 package in my gentoo overlay at: or just:

git clone git://

There are more ebuild's for getting hardware acceleration working but they are very much under development.
You will need the kernel sources configured and unpacked at /usr/src/linux.

You can use distcc to compile faster.
First you need to follow these instructions and in the process issue a command similar to this:
crossdev  --b 2.23.1 --g 4.7.3 --l 2.17  --k 3.1 --target armv7a-softfp-linux-gnueabi
.. if your gk802 happened to be running with binutils-2.23.1, gcc-4.7.3, glibc-2.17 and kernel headers 3.1