11-01-2016, 07:40 PM
(10-31-2016, 10:31 AM)vintagewaffle Wrote: Ok, sorry for the long delay, I couldn't get the patches to work correctly with the dtb's for some reason so I ended up forking the entire project.
If you follow the armbian build instructions but clone my repo instead of the official one:
apt-get -y install git
git clone https://github.com/mbergstrand/lib --depth 1
cp lib/compile.sh .
./compile.sh
Select the following:
- Full OS image for writing to SD card
- pine64
- default kernel
- xenial
- Image with desktop environment
_Should_ give you an image with working LCD with touch out of the box.
As of today it's up to date with armbian and longsleeps kernel and I will try and keep it so, but I can't give any guarantees.
Note, I haven't tested this build without the LCD and I haven't tested multi-head with the HDMI at the same time.
When I tried to compile I get errors. I hope you can help me sort it out. Here they are
In file included from include/linux/compiler.h:40:0,
from include/linux/byteorder/little_endian.h:12,
from /home/gary/sources/u-boot-pine64/master/u-boot-pine64/arch/arm/include/asm/byteorder.h:29,
from include/compiler.h:112,
from include/image.h:19,
from /home/gary/sources/u-boot-pine64/master/u-boot-pine64/include/common.h:94:
include/linux/compiler-gcc.h:95:30: fatal error: linux/compiler-gcc6.h: No such file or directory
#include gcc_header(__GNUC__)
compilation terminated.
GEN include/autoconf.mk
In file included from include/linux/compiler.h:40:0,
from include/linux/byteorder/little_endian.h:12,
from /home/gary/sources
from include/compiler.h:112,
from include/image.h:19,
from /home/gary/sources/u-boot-pine64/master/u-boot-pine64/include/common.h:94:
include/linux/compiler-gcc.h:95:30: fatal error: linux/compiler-gcc6.h: No such file or directory #include gcc_header(__GNUC__)
compilation terminated.
HOSTCC scripts/basic/fixdep │
CC lib/asm-offsets.s
In file included from include/linux/compiler.h:40:0,
CHK include/generated
from /home/gary/sources/u-boot-pine64/master/u-boot-pine64/arch/arm/include/asm/byteorder.h:29,
from include/compiler.h:112,
from include/image.h:19,
from include/common.h:94,
from lib/asm-offsets.c:15:
include/linux/compiler-gcc.h:95:30: fatal error: linux/compiler-gcc6.h: No such file or directory
Makefile:1122: recipe for target 'prepare0' failed │
make[1]: Leaving directory '/home/gary/sources/u-boot-pine64/master/u- │
Makefile:25: recipe for target 'u_boot_pine64' failed │
]: *** [prepare0] Error 2 ^
make: *** [u_boot_pine64] Error 2 compilation terminated.
make[2]: *** [lib/asm-offsets.s] Error 1
[ error ] ERROR in function compile_uboot [ common.sh:110 ]
[ error ] U-boot file not found [ u-boot-with-dtb.bin ]
[ o.k. ] Process terminated