Created
November 24, 2015 21:54
-
-
Save pdp7/3e2fb17cfc5b6ef12599 to your computer and use it in GitHub Desktop.
Build fbtft drivers for Linux 4.4 on BeagleBone Black
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
laptop$ git clone https://github.com/RobertCNelson/bb-kernel | |
laptop$ cd bb-kernel/ | |
laptop$ git checkout am33x-v4.4 | |
laptop$ ./build_kernel.sh | |
# enable Device Drivers->Staging->fbtft | |
# flash SD card | |
laptop$ wget https://rcn-ee.com/rootfs/bb.org/testing/2015-11-15/console/bone-debian-8.2-console-armhf-2015-11-15-2gb.img.xz | |
laptop$ xz -d bone-debian-8.2-console-armhf-2015-11-15-2gb.img.xz | |
laptop$ sudo dd if=/home/afustini/Downloads/bbb-images/bone-debian-8.2-console-armhf-2015-11-15-2gb.img.xz of=/dev/sdc | |
laptop$ sudo eject /dev/sdc | |
# remove and re-insert so that fs gets mounted | |
laptop$ ./tools/install_kernel.sh | |
bone$ sudo /opt/scripts/tools/grow_partition.sh | |
bone$ sudo reboot | |
bone$ sudo cp -pr /dtbs /boot/dtbs/4.4.0-rc1-bone0 | |
bone$ sudo cp /zImage /boot/vmlinuz-4.4.0-rc1-bone0 | |
bone$ sudo vi /boot/uEnv.txt | |
uname_r=4.4.0-rc1-bone0 | |
dtb=am335x-boneblack-overlay.dtb | |
bone$ sudo reboot | |
bone$ uname -a | |
Linux beaglebone 4.4.0-rc1-bone0 #4 Thu Nov 19 20:26:04 CST 2015 armv7l GNU/Linux | |
bone$ sudo apt-get update | |
bone$ sudo apt-get install git | |
bone$ git clone https://github.com/beagleboard/bb.org-overlays | |
bone$ cd bb.org-overlays | |
bone$ ./dtc-overlay.sh | |
bone$ ./install.sh | |
bone$ cat /sys/devices/platform/bone_capemgr/slots | |
0: PF---- -1 | |
1: PF---- -1 | |
2: PF---- -1 | |
3: PF---- -1 | |
bone$ sudo /bin/sh -c 'echo BB-SPIDEV1 > /sys/devices/platform/bone_capemgr/slots' | |
bone$ cat /sys/devices/platform/bone_capemgr/slots | |
0: PF---- -1 | |
1: PF---- -1 | |
2: PF---- -1 | |
3: PF---- -1 | |
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,BB-SPIDEV1 | |
bone$ sudo modprobe fbtft_device busnum=1 name=adafruit18 debug=7 verbose=3 gpios=dc:48,reset:60 | |
bone$ sudo apt-get install fbi | |
bone$ wget 'http://beagleboard.org/static/uploads/BorisTux_w_Logo.png' | |
bone$ sudo fbi -d /dev/fb0 -T 1 -a BorisTux_w_Logo.png | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment