Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: Jamal on November 16, 2015, 01:10:36 PM

Title: Help with A13 Tablet [Kinda OT]
Post by: Jamal on November 16, 2015, 01:10:36 PM
Hello all,

I have a Forfun Q88DB (https://linux-sunxi.org/Forfun_Q88DB) tablet that uses the Allwinner A13 board. My first attempt at getting Linux on it went OK using the R18 Ubuntu image provided here (https://www.olimex.com/forum/index.php?topic=537.0). There were a few problems, xrandr wouldn't let me change to my native resolution (crtc 0 error) after manually adding a new mode. I also didn't have any touchscreen support which was the major issue. But I had wifi, ssh, out-of-the-box. Was even able to switch to LXDE after updating my repo sources.

Hungry for a cleaner build, I attempted to follow this guide (https://www.olimex.com/wiki/Build_Bootable_SD_Card_with_Debian) as best I could. Got decently far and ultimately was prevented from building the kernel at this step:

QuoteThe menuconfig created a .config text file, which you can view/edit even with a text editor like vi

if you want to use GPIOs for instance they are not enabled by default and you can do this by adding:

SUN4I_GPIO_UGLY = y inside .config

then you can contiue with:

# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage

when this finish's you will have uImage ready and you can build the kernel modules:

# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- INSTALL_MOD_PATH=out modules

# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- INSTALL_MOD_PATH=out modules_install

DONE! At this point you have uboot and kernel builds ready.

It was at this point I received compiling errors related to either gcc-5 or the lack of a different required version maybe?

I realize this a lot to ask and a bit of stretch, and that I'm probably having more than one issue, but can anyone help me figure this out at all? Would love to provide an update image for my hardware at sunxi.org after I get it running smooth. Thanks.
Title: Re: Help with A13 Tablet [Kinda OT]
Post by: JohnS on November 16, 2015, 08:28:03 PM
Definitely OT.  I suggest you find somewhere relevant, such as a tablet forum.

John
Title: Re: Help with A13 Tablet [Kinda OT]
Post by: jlucius on November 17, 2015, 10:55:51 AM
You have several possibilities:

- Downgrade gcc
- Use mainline kernel (look at sunxi wiki page)
- Apply these 3 patches:

https://raw.githubusercontent.com/linux-sunxi/meta-sunxi/master/recipes-kernel/linux/linux-sunxi/0001-compiler-gcc5.patch
https://raw.githubusercontent.com/linux-sunxi/meta-sunxi/master/recipes-kernel/linux/linux-sunxi/0001-gcc5-fixes.patch
https://raw.githubusercontent.com/linux-sunxi/meta-sunxi/master/recipes-kernel/linux/linux-sunxi/0002-use-static-inline-in-ARM-ftrace.patch

Any should work. Going for mainline is probably the best idea as most things should work on mainline.