Was wondering - has anyone got 2d x acceleration for the cubox i4pro working in debian at all yet?
First of all - some background. Lots of trees, a river, the sky. I'm from the UK so lots of clouds and rain Only joking. The device I've managed to get debian stretch onto is the cubox i4 pro. It's a small arm based device which looks like a small black cube; it uses a micro SD card to boot from.
Here's how I managed to get the cubox i4pro to boot debian;
(note: On my normal desktop PC the micro sd card came in as /dev/sde).
- Downloaded "debian-testing-armhf-netinst.iso
- Wipe off the boot/partition sector of the sd card
Code: Select all
dd if=/dev/zero of=/dev/sde bs=1M count=4
Code: Select all
wget http://d-i.debian.org/daily-images/armhf/daily/netboot/SD-card-images/firmware.MX6_Cubox-i.img.gz
wget http://d-i.debian.org/daily-images/armhf/daily/netboot/SD-card-images/partition.img.gz
zcat firmware.MX6_Cubox-i.img.gz partition.img.gz > /dev/sde
sync
Code: Select all
$ mkdir /tmp/0
$ mount debian-testing-armhf-netinst.iso /tmp/0 -o loop
$ cd /tmp/0/install/u-boot/MX6_Cubox-i/
$ cp SPL.gz /media/ramdisk
$ cp u-boot.img.gz /media/ramdisk
$ cd /media/ramdisk
$ gzip -d u-boot.img.gz
$ gzip -d SPL.gz
$ dd if=SPL of=/dev/sde bs=1K seek=1
$ dd if=u-boot.img of=/dev/sde bs=1K seek=69
Code: Select all
$ su root
$ screen /dev/ttyUSB0 115200
After install I had to do the dd commands a second time in order to make the newly debian install bootable (on another machine);
Code: Select all
$ dd if=SPL of=/dev/sde bs=1K seek=1
$ dd if=u-boot.img of=/dev/sde bs=1K seek=69
Snag is though the X server seems to be using the framebuffer. But I note that debian stretch/ARM is using kernel 4.6, and the driver for the video chipset the cubox-i4pro uses has been in the kernel since version 4.5. It's etnaviv.
But I'm confused. Is etna_viv really "in" the debian kernel 4.6? Would I need to download and build this - it is an xorg video driver called amarda which also uses etnaviv but dosen't seem to be in debian. And then there's etnaviv-mesa - is that needed as well? *confused!
KDE even ran on this device. But window resizing/moving/scrolling etc was sloooooooow because of only the fb driver being used.
I hope all the above with regards to installation works for others - apologies for any mistakes!
ljones