Skip to content

hkortier/meta-bbb

 
 

Repository files navigation

This layer depends on:

URI: git://git.yoctoproject.org/poky.git
branch: fido 
revision: HEAD
commit: fa55b8e 

URI: git://git.openembedded.org/meta-openembedded
branch: fido 
revision: HEAD
commit: df2f700 

URI: https://github.com/meta-qt5/meta-qt5.git
branch: fido
revision: HEAD
commit: 90919b9 

meta-bbb layer maintainer: Scott Ellis <[email protected]>

Instructions for using this layer can be found on the jumpnowtek site.

Major Software Versions

  • Yocto 1.8.1 [fido] branch
  • Linux kernel 4.3.0 (linux-stable)
  • U-Boot 2015.07

The qt5-image includes Qt 5.4.2 built for framebuffer use only.

Launch Qt5 apps with the following args

-platform linuxfb [-plugin evdevkeyboard] [-plugin evdevmouse] [-plugin evdevtouch]

There is a demo qt5 app installed - tspress.

There is a spidev loopback test app installed - spiloop.

The default dtb enables HDMI

  • bbb-hdmi.dtb

There are dtbs for a couple of touchscreen capes installed in /boot

  • bbb-4dcape70.dtb - for the 4D Systems LCD, 7-inch, 800x480 touchscreen
  • bbb-nh5cape.dtb - for the NewHaven Capacitive, 5-inch, 800x480 touchscreen

All dtbs add the following

  • /dev/spidev1.0 - pins P9.28 cs0, P9.29 d0, P9.30 d1, P9.31 sclk - d0 is MOSI
  • /dev/i2c1 - pins P9.17 scl and P9.18 sda
  • /dev/i2c2 - pins P9.19 scl and P9.20 sda

To switch between these dtbs, take a look at uEnv.txt on the boot partition.

You can mount the boot partition like this

root@beaglebone~# mount /dev/mmcblk0p1 /mnt

root@beaglebone:~# ls -l /mnt
total 466
-rwxr-xr-x 1 root root  64408 Jul 24 09:00 MLO
-rwxr-xr-x 1 root root 410860 Jul 24 09:00 u-boot.img
-rwxr-xr-x 1 root root   1112 Jul 24 09:00 uEnv.txt

You can either modify fdtfile= or you can modify touchscreen_dtb= and also add a use_touchscreen file to the /boot directory on the root filesystem.

root@beaglebone:~# touch > /boot/use_touchscreen

Those are just some examples. You can easily devise your own strategy for choosing which dtb to load at boot.

To use the nh5cape you will need the ft5x06_ts touchscreen driver

root@beaglebone:~# echo ft5x06_ts >> /dev/modules

You can load it manually with modprobe

root@beaglebone:~# modprobe ft5x06_ts

Or add it to /etc/modules to have it load every boot

root@beaglebone:~# echo ft5x06_ts >> /etc/modules

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 47.0%
  • BitBake 31.1%
  • Python 20.9%
  • PHP 1.0%