Skip to content

Instantly share code, notes, and snippets.

@pdp7
Last active April 23, 2023 07:37
Show Gist options
  • Save pdp7/b6c769b79508c605e7a1 to your computer and use it in GitHub Desktop.
Save pdp7/b6c769b79508c605e7a1 to your computer and use it in GitHub Desktop.
BeagleBone using prebuit fbtft drivers for debian-7.5-2014-05-14
Based on:
https://github.com/notro/fbtft/wiki/BeagleBone-Black
Prebuilt drivers for the bone-debian-7.5-2014-05-14-2gb
BeagleBone and BeagleBone Black via microSD card
Debian (BeagleBone, BeagleBone Black - 4GB SD) 2015-03-01
md5: c848627722b7a5f7bc89791cc8949e3b
http://debian.beagleboard.org/images/bone-debian-7.8-lxde-4gb-armhf-2015-03-01-4gb.img.xz
on my laptop:
dd if=/home/afustini/Downloads/bone-debian-7.5-2014-05-14-2gb.img of=/dev/sdc
root@beaglebone:~# cat /proc/version
Linux version 3.8.13-bone50 (root@imx6q-wandboard-2gb-0) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Tue May 13 13:24:52 UTC 2014
root@beaglebone:~# cat /etc/dogtag
BeagleBoard.org BeagleBone Debian Image 2014-05-14
root@beaglebone:~# wget tronnes.org/downloads/fbtft-2014-02-07-3.8.13-bone50.tar.gz
--2015-10-30 04:56:19-- http://tronnes.org/downloads/fbtft-2014-02-07-3.8.13-bone50.tar.gz
Resolving tronnes.org (tronnes.org)... 194.63.248.80
Connecting to tronnes.org (tronnes.org)|194.63.248.80|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71932 (70K) [application/x-gzip]
Saving to: `fbtft-2014-02-07-3.8.13-bone50.tar.gz'
100%[====================================================================================================================>] 71,932 87.3K/s in 0.8s
2015-10-30 04:56:20 (87.3 KB/s) - `fbtft-2014-02-07-3.8.13-bone50.tar.gz' saved [71932/71932]
root@beaglebone:~# sudo tar -zxPvf fbtft-2014-02-07-3.8.13-bone50.tar.gz
/lib/modules/3.8.13-bone50/extra/
/lib/modules/3.8.13-bone50/extra/fb_pcd8544.ko
/lib/modules/3.8.13-bone50/extra/fb_ili9340.ko
/lib/modules/3.8.13-bone50/extra/fb_hx8340bn.ko
/lib/modules/3.8.13-bone50/extra/fb_ili9325.ko
/lib/modules/3.8.13-bone50/extra/fb_ili9341.ko
/lib/modules/3.8.13-bone50/extra/fb_ssd1351.ko
/lib/modules/3.8.13-bone50/extra/fb_s6d1121.ko
/lib/modules/3.8.13-bone50/extra/fb_upd161704.ko
/lib/modules/3.8.13-bone50/extra/ads7846_device.ko
/lib/modules/3.8.13-bone50/extra/fb_watterott.ko
/lib/modules/3.8.13-bone50/extra/fb_bd663474.ko
/lib/modules/3.8.13-bone50/extra/fb_hx8347d.ko
/lib/modules/3.8.13-bone50/extra/fbtft_device.ko
/lib/modules/3.8.13-bone50/extra/fb_tinylcd.ko
/lib/modules/3.8.13-bone50/extra/fb_ssd1331.ko
/lib/modules/3.8.13-bone50/extra/fb_ssd1306.ko
/lib/modules/3.8.13-bone50/extra/fb_hx8353d.ko
/lib/modules/3.8.13-bone50/extra/fb_st7735r.ko
/lib/modules/3.8.13-bone50/extra/flexfb.ko
/lib/modules/3.8.13-bone50/extra/fb_ili9320.ko
/lib/modules/3.8.13-bone50/extra/fb_ssd1289.ko
/lib/modules/3.8.13-bone50/extra/fb_s6d02a1.ko
/lib/modules/3.8.13-bone50/extra/fbtft.ko
root@beaglebone:~# sudo depmod
root@beaglebone:~# modinfo fbtft
filename: /lib/modules/3.8.13-bone50/extra/fbtft.ko
license: GPL
srcversion: 3C6839F44999EEA4C1D8A9F
depends:
vermagic: 3.8.13-bone50 SMP mod_unload modversions ARMv7 thumb2 p2v8
parm: debug:override device debug level (ulong)
parm: dma:Use DMA buffer (bool)
Uncomment to disable HDMI and eMMC:
root@beaglebone:~# vi /boot/uboot/uEnv.txt
##BeagleBone Black:
##Disable HDMI/eMMC
cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G
Add line to enable SPIDEV1:
cape_enable=capemgr.enable_partno=BB-SPIDEV1
Now reboot
rot@beaglebone:~# cat /sys/devices/bone_capemgr.9/slots
0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-- Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPIDEV1
root@beaglebone:~# modprobe fbtft_device busnum=1 speed=4000000 name=adafruit18 debug=7 verbose=3 gpios=dc:48,reset:60
From:
https://github.com/notro/fbtft/wiki/Framebuffer-use
root@beaglebone:~# modprobe fbtft_device busnum=1 speed=4000000 name=adafruit18 debug=7 verbose=3 gpios=dc:48,reset:60
root@beaglebone:~# apt-get install -y mplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
esound-common libaudiofile1 libesd0 liblircclient0 liblzo2-2 libmpeg2-4 libxvmc1
Suggested packages:
pulseaudio-esound-compat lirc mplayer-doc netselect fping ttf-freefont
The following NEW packages will be installed:
esound-common libaudiofile1 libesd0 liblircclient0 liblzo2-2 libmpeg2-4 libxvmc1 mplayer
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,833 kB of archives.
After this operation, 5,159 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian/ wheezy/main libaudiofile1 armhf 0.3.4-2 [81.3 kB]
Get:2 http://ftp.us.debian.org/debian/ wheezy/main esound-common all 0.2.41-10 [46.0 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main libesd0 armhf 0.2.41-10+b1 [17.0 kB]
Err http://ftp.us.debian.org/debian/ wheezy/main liblzo2-2 armhf 2.06-1
404 Not Found [IP: 2610:148:1f10:3::89 80]
Get:4 http://ftp.us.debian.org/debian/ wheezy/main liblircclient0 armhf 0.9.0~pre1-1 [34.3 kB]
Get:5 http://ftp.us.debian.org/debian/ wheezy/main libmpeg2-4 armhf 0.4.1-3 [58.2 kB]
Get:6 http://ftp.us.debian.org/debian/ wheezy/main libxvmc1 armhf 2:1.0.7-1+deb7u2 [23.0 kB]
Err http://ftp.us.debian.org/debian/ wheezy/main mplayer armhf 2:1.0~rc4.dfsg1+svn34540-1+b2
404 Not Found [IP: 2610:148:1f10:3::89 80]
Fetched 260 kB in 0s (411 kB/s)
Failed to fetch http://ftp.us.debian.org/debian/pool/main/l/lzo2/liblzo2-2_2.06-1_armhf.deb 404 Not Found [IP: 2610:148:1f10:3::89 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/m/mplayer/mplayer_1.0~rc4.dfsg1+svn34540-1+b2_armhf.deb 404 Not Found [IP: 2610:148:1f10:3::89 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@beaglebone:~# apt-get update
Get:1 http://ftp.us.debian.org wheezy Release.gpg [2,373 B]
Get:2 http://security.debian.org wheezy/updates Release.gpg [1,554 B]
Get:3 http://ftp.us.debian.org wheezy-updates Release.gpg [1,554 B]
Get:4 http://security.debian.org wheezy/updates Release [102 kB]
Get:5 http://ftp.us.debian.org wheezy Release [191 kB]
Get:6 http://ftp.us.debian.org wheezy-updates Release [143 kB]
Get:7 http://debian.beagleboard.org wheezy-bbb Release.gpg [490 B]
Get:8 http://debian.beagleboard.org wheezy-bbb Release [3,403 B]
Get:9 http://security.debian.org wheezy/updates/main armel Packages [395 kB]
Get:10 http://ftp.us.debian.org wheezy/main armel Packages [7,476 kB]
Get:11 http://security.debian.org wheezy/updates/contrib armel Packages [20 B]
Get:12 http://debian.beagleboard.org wheezy-bbb/main armhf Packages [18.8 kB]
Get:13 http://security.debian.org wheezy/updates/non-free armel Packages [20 B]
Get:14 http://security.debian.org wheezy/updates/main armhf Packages [391 kB]
Get:15 http://security.debian.org wheezy/updates/contrib armhf Packages [20 B]
Get:16 http://security.debian.org wheezy/updates/non-free armhf Packages [20 B]
Get:17 http://security.debian.org wheezy/updates/contrib Translation-en [523 B]
Get:18 http://security.debian.org wheezy/updates/main Translation-en [183 kB]
Get:19 http://security.debian.org wheezy/updates/non-free Translation-en [14 B]
Ign http://debian.beagleboard.org wheezy-bbb/main Translation-en_US
Ign http://debian.beagleboard.org wheezy-bbb/main Translation-en
Get:20 http://ftp.us.debian.org wheezy/contrib armel Packages [40.3 kB]
Get:21 http://ftp.us.debian.org wheezy/non-free armel Packages [70.3 kB]
Get:22 http://ftp.us.debian.org wheezy/main armhf Packages [7,444 kB]
Get:23 http://ftp.us.debian.org wheezy/contrib armhf Packages [39.3 kB]
Get:24 http://ftp.us.debian.org wheezy/non-free armhf Packages [67.8 kB]
Get:25 http://ftp.us.debian.org wheezy/contrib Translation-en [34.8 kB]
Get:26 http://ftp.us.debian.org wheezy/main Translation-en [3,846 kB]
Get:27 http://ftp.us.debian.org wheezy/non-free Translation-en [66.1 kB]
Get:28 http://ftp.us.debian.org wheezy-updates/main armel Packages [4,865 B]
Get:29 http://ftp.us.debian.org wheezy-updates/contrib armel Packages [20 B]
Get:30 http://ftp.us.debian.org wheezy-updates/non-free armel Packages [20 B]
Get:31 http://ftp.us.debian.org wheezy-updates/main armhf Packages [4,857 B]
Get:32 http://ftp.us.debian.org wheezy-updates/contrib armhf Packages [20 B]
Get:33 http://ftp.us.debian.org wheezy-updates/non-free armhf Packages [20 B]
Get:34 http://ftp.us.debian.org wheezy-updates/contrib Translation-en [14 B]
Get:35 http://ftp.us.debian.org wheezy-updates/main Translation-en [3,814 B]
Get:36 http://ftp.us.debian.org wheezy-updates/non-free Translation-en [14 B]
Ign http://ftp.us.debian.org wheezy/main Translation-en
Ign http://ftp.us.debian.org wheezy/non-free Translation-en
Ign http://ftp.us.debian.org wheezy-updates/main Translation-en
Fetched 20.5 MB in 24s (852 kB/s)
Reading package lists... Done
W: There is no public key available for the following key IDs:
9D6D8F6BC857C906
W: There is no public key available for the following key IDs:
7638D0442B90D010
W: There is no public key available for the following key IDs:
7638D0442B90D010
root@beaglebone:~#
root@beaglebone:~# /opt/scripts/tools/grow_partition.sh
sfdisk: backing up partition layout.
sfdisk: initial calculation.
Disk /dev/mmcblk0: 242560 cylinders, 4 heads, 16 sectors/track
Old situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/mmcblk0p1 * 1 96 96 98304 e W95 FAT16 (LBA)
start: (c,h,s) expected (32,0,1) found (0,32,33)
end: (c,h,s) expected (1023,3,16) found (12,93,17)
/dev/mmcblk0p2 97 1699 1603 1641472 83 Linux
start: (c,h,s) expected (1023,3,16) found (12,93,18)
end: (c,h,s) expected (1023,3,16) found (216,183,31)
/dev/mmcblk0p3 0 - 0 0 0 Empty
/dev/mmcblk0p4 0 - 0 0 0 Empty
New situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/mmcblk0p1 * 1 96 96 98304 e W95 FAT16 (LBA)
/dev/mmcblk0p2 97 7579 7483 7662592 83 Linux
/dev/mmcblk0p3 0 - 0 0 0 Empty
/dev/mmcblk0p4 0 - 0 0 0 Empty
Successfully wrote the new partition table
Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed.
Run partprobe(8), kpartx(8) or reboot your system now,
before using mkfs
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
root@beaglebone:~#
root@beaglebone:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 7.2G 1.6G 5.4G 22% /
udev 10M 0 10M 0% /dev
tmpfs 100M 496K 99M 1% /run
/dev/mmcblk0p2 7.2G 1.6G 5.4G 22% /
tmpfs 249M 0 249M 0% /dev/shm
tmpfs 249M 0 249M 0% /sys/fs/cgroup
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 100M 0 100M 0% /run/user
/dev/mmcblk0p1 96M 70M 27M 73% /boot/uboot
root@beaglebone:~# apt-get install debian-keyring debian-archive-keyring
root@beaglebone:~# apt-get update
root@beaglebone:~# apt-get install mplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
esound-common libaudiofile1 libesd0 liblircclient0 liblzo2-2 libmpeg2-4 libxvmc1
Suggested packages:
pulseaudio-esound-compat lirc mplayer-doc netselect fping ttf-freefont
The following NEW packages will be installed:
esound-common libaudiofile1 libesd0 liblircclient0 liblzo2-2 libmpeg2-4 libxvmc1 mplayer
0 upgraded, 8 newly installed, 0 to remove and 163 not upgraded.
Need to get 2,571 kB/2,831 kB of archives.
After this operation, 5,163 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.us.debian.org/debian/ wheezy/main liblzo2-2 armhf 2.06-1+deb7u1 [54.8 kB]
Get:2 http://ftp.us.debian.org/debian/ wheezy/main mplayer armhf 2:1.0~rc4.dfsg1+svn34540-1+deb7u1 [2,516 kB]
Fetched 2,571 kB in 1s (1,347 kB/s)
Selecting previously unselected package libaudiofile1:armhf.
(Reading database ... 61238 files and directories currently installed.)
Unpacking libaudiofile1:armhf (from .../libaudiofile1_0.3.4-2_armhf.deb) ...
Selecting previously unselected package esound-common.
Unpacking esound-common (from .../esound-common_0.2.41-10_all.deb) ...
Selecting previously unselected package libesd0:armhf.
Unpacking libesd0:armhf (from .../libesd0_0.2.41-10+b1_armhf.deb) ...
Selecting previously unselected package liblzo2-2:armhf.
Unpacking liblzo2-2:armhf (from .../liblzo2-2_2.06-1+deb7u1_armhf.deb) ...
Selecting previously unselected package liblircclient0.
Unpacking liblircclient0 (from .../liblircclient0_0.9.0~pre1-1_armhf.deb) ...
Selecting previously unselected package libmpeg2-4.
Unpacking libmpeg2-4 (from .../libmpeg2-4_0.4.1-3_armhf.deb) ...
Selecting previously unselected package libxvmc1.
Unpacking libxvmc1 (from .../libxvmc1_2%3a1.0.7-1+deb7u2_armhf.deb) ...
Selecting previously unselected package mplayer.
Unpacking mplayer (from .../mplayer_2%3a1.0~rc4.dfsg1+svn34540-1+deb7u1_armhf.deb) ...
Processing triggers for man-db ...
Processing triggers for mime-support ...
Setting up libaudiofile1:armhf (0.3.4-2) ...
Setting up esound-common (0.2.41-10) ...
Setting up libesd0:armhf (0.2.41-10+b1) ...
Setting up liblzo2-2:armhf (2.06-1+deb7u1) ...
Setting up liblircclient0 (0.9.0~pre1-1) ...
Setting up libmpeg2-4 (0.4.1-3) ...
Setting up libxvmc1 (2:1.0.7-1+deb7u2) ...
Setting up mplayer (2:1.0~rc4.dfsg1+svn34540-1+deb7u1) ...
root@beaglebone:~#
root@beaglebone:~# wget http://fredrik.hubbe.net/plugger/test.mpg
--2015-10-30 06:24:56-- http://fredrik.hubbe.net/plugger/test.mpg
Resolving fredrik.hubbe.net (fredrik.hubbe.net)... 216.75.30.23
Connecting to fredrik.hubbe.net (fredrik.hubbe.net)|216.75.30.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3678977 (3.5M) [video/mpeg]
Saving to: `test.mpg'
100%[====================================================================================================================>] 3,678,977 1.25M/s in 2.8s
2015-10-30 06:24:59 (1.25 MB/s) - `test.mpg' saved [3678977/3678977]
root@beaglebone:~# mplayer -nolirc -vo fbdev2:/dev/fb1 -vf scale=WIDTH:-3 test.mpg
Creating config file: /root/.mplayer/config
The w option must be an integer: WIDTH
Option vf: Error while parsing scale parameter w (WIDTH)
Error parsing option on the command line: -vf
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
root@beaglebone:~# mplayer -nolirc -vo fbdev2:/dev/fb1 -v^Cscale=WIDTH:-3 test.mpg
root@beaglebone:~# ls -lsda /dev/fb*
0 crw-rw---T 1 root video 29, 0 Oct 30 06:27 /dev/fb0
root@beaglebone:~# mplayer -nolirc -vo fbdev:/dev/fb0 scale=WIDTH:-3 test.mpg
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
Playing scale=WIDTH:-3.
File not found: 'scale=WIDTH:-3'
Failed to open scale=WIDTH:-3.
Playing test.mpg.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
MPEG-ES file format detected.
VIDEO: MPEG1 320x240 (aspect 1) 25.000 fps 6553.2 kbps (819.1 kbyte/s)
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
Audio: no sound
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0xb671e978]No accelerated colorspace conversion found from yuv420p to rgb565le.
[swscaler @ 0xb671e978]using unscaled yuv420p -> rgb565le special converter
VO: [fbdev] 320x240 => 320x240 BGR 16-bit
framebuffer too small for double-buffering, disabling
V: 31.2 780/780 22% 80% 0.0% 0 0
MPlayer interrupted by signal 2 in module: filter_video
V: 31.2 781/781 22% 80% 0.0% 0 0
Exiting... (Quit)
root@beaglebone:~# apt-get install fbi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
fonts-droid ghostscript gsfonts libcups2 libcupsimage2 libgs9 libgs9-common libijs-0.35 libjbig2dec0 libpaper-utils libpaper1 poppler-data
Suggested packages:
imagemagick ghostscript-cups ghostscript-x hpijs cups-common poppler-utils fonts-japanese-mincho fonts-ipafont-mincho fonts-japanese-gothic
fonts-ipafont-gothic fonts-arphic-ukai fonts-arphic-uming fonts-unfonts-core
The following NEW packages will be installed:
fbi fonts-droid ghostscript gsfonts libcupsimage2 libgs9 libgs9-common libijs-0.35 libjbig2dec0 libpaper-utils libpaper1 poppler-data
The following packages will be upgraded:
libcups2
1 upgraded, 12 newly installed, 0 to remove and 162 not upgraded.
Need to get 13.3 MB of archives.
After this operation, 38.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.us.debian.org/debian/ wheezy/main libcups2 armhf 1.5.3-5+deb7u6 [232 kB]
Get:2 http://ftp.us.debian.org/debian/ wheezy/main libcupsimage2 armhf 1.5.3-5+deb7u6 [129 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main libpaper1 armhf 1.1.24+nmu2 [20.8 kB]
Get:4 http://ftp.us.debian.org/debian/ wheezy/main poppler-data all 0.4.5-10 [1,479 kB]
Get:5 http://ftp.us.debian.org/debian/ wheezy/main libijs-0.35 armhf 0.35-8+b1 [18.1 kB]
Get:6 http://ftp.us.debian.org/debian/ wheezy/main libjbig2dec0 armhf 0.11+20120125-1 [43.9 kB]
Get:7 http://ftp.us.debian.org/debian/ wheezy/main libgs9-common all 9.05~dfsg-6.3+deb7u2 [1,977 kB]
Get:8 http://ftp.us.debian.org/debian/ wheezy/main libgs9 armhf 9.05~dfsg-6.3+deb7u2 [1,587 kB]
Get:9 http://ftp.us.debian.org/debian/ wheezy/main gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.2 [3,364 kB]
Get:10 http://ftp.us.debian.org/debian/ wheezy/main ghostscript armhf 9.05~dfsg-6.3+deb7u2 [79.7 kB]
Get:11 http://ftp.us.debian.org/debian/ wheezy/main fbi armhf 2.07-10 [57.2 kB]
Get:12 http://ftp.us.debian.org/debian/ wheezy/main fonts-droid all 20111207+git-1 [4,312 kB]
Get:13 http://ftp.us.debian.org/debian/ wheezy/main libpaper-utils armhf 1.1.24+nmu2 [17.8 kB]
Fetched 13.3 MB in 11s (1,210 kB/s)
Preconfiguring packages ...
(Reading database ... 61344 files and directories currently installed.)
Preparing to replace libcups2:armhf 1.5.3-5+deb7u1 (using .../libcups2_1.5.3-5+deb7u6_armhf.deb) ...
Unpacking replacement libcups2:armhf ...
Selecting previously unselected package libcupsimage2:armhf.
Unpacking libcupsimage2:armhf (from .../libcupsimage2_1.5.3-5+deb7u6_armhf.deb) ...
Selecting previously unselected package libpaper1:armhf.
Unpacking libpaper1:armhf (from .../libpaper1_1.1.24+nmu2_armhf.deb) ...
Selecting previously unselected package poppler-data.
Unpacking poppler-data (from .../poppler-data_0.4.5-10_all.deb) ...
Selecting previously unselected package libijs-0.35.
Unpacking libijs-0.35 (from .../libijs-0.35_0.35-8+b1_armhf.deb) ...
Selecting previously unselected package libjbig2dec0.
Unpacking libjbig2dec0 (from .../libjbig2dec0_0.11+20120125-1_armhf.deb) ...
Selecting previously unselected package libgs9-common.
Unpacking libgs9-common (from .../libgs9-common_9.05~dfsg-6.3+deb7u2_all.deb) ...
Selecting previously unselected package libgs9.
Unpacking libgs9 (from .../libgs9_9.05~dfsg-6.3+deb7u2_armhf.deb) ...
Selecting previously unselected package gsfonts.
Unpacking gsfonts (from .../gsfonts_1%3a8.11+urwcyr1.0.7~pre44-4.2_all.deb) ...
Selecting previously unselected package ghostscript.
Unpacking ghostscript (from .../ghostscript_9.05~dfsg-6.3+deb7u2_armhf.deb) ...
Selecting previously unselected package fbi.
Unpacking fbi (from .../archives/fbi_2.07-10_armhf.deb) ...
Selecting previously unselected package fonts-droid.
Unpacking fonts-droid (from .../fonts-droid_20111207+git-1_all.deb) ...
Selecting previously unselected package libpaper-utils.
Unpacking libpaper-utils (from .../libpaper-utils_1.1.24+nmu2_armhf.deb) ...
Processing triggers for man-db ...
Processing triggers for fontconfig ...
Processing triggers for mime-support ...
Setting up libcups2:armhf (1.5.3-5+deb7u6) ...
Setting up libcupsimage2:armhf (1.5.3-5+deb7u6) ...
Setting up libpaper1:armhf (1.1.24+nmu2) ...
Creating config file /etc/papersize with new version
Setting up poppler-data (0.4.5-10) ...
Setting up libijs-0.35 (0.35-8+b1) ...
Setting up libjbig2dec0 (0.11+20120125-1) ...
Setting up libgs9-common (9.05~dfsg-6.3+deb7u2) ...
Setting up libgs9 (9.05~dfsg-6.3+deb7u2) ...
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-4.2) ...
Setting up ghostscript (9.05~dfsg-6.3+deb7u2) ...
Setting up fbi (2.07-10) ...
Setting up fonts-droid (20111207+git-1) ...
Setting up libpaper-utils (1.1.24+nmu2) ...
root@beaglebone:~# wget https://kernel.org/theme/images/logos/tux.png
--2015-10-30 07:07:24-- https://kernel.org/theme/images/logos/tux.png
Resolving kernel.org (kernel.org)... 2620:3:c000:a:0:1991:8:25, 2001:4f8:1:10:0:1991:8:25, 199.204.44.194, ...
Connecting to kernel.org (kernel.org)|2620:3:c000:a:0:1991:8:25|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8657 (8.5K) [image/png]
Saving to: `tux.png'
100%[====================================================================================================================>] 8,657 --.-K/s in 0.002s
2015-10-30 07:07:29 (3.49 MB/s) - `tux.png' saved [8657/8657]
root@beaglebone:~# fbi -d /dev/fb0 -T 1 -a tux.png
using "DejaVu Sans Mono-16", pixelsize=16.67 file=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
root@beaglebone:~# modprobe fbtft_device busnum=1 speed=4000000 name=adafruit22a debug=7 verbose=3 gpios=dc:48,reset:60
# NOTE FASTER VIDEO WHEN NOT SPECIFIED SPEED
root@beaglebone:~# modprobe fbtft_device busnum=1 name=adafruit22a debug=7 verbose=3 gpios=dc:48,reset:60
root@beaglebone:~# fbi -d /dev/fb0 -T 1 -a tux.png
using "DejaVu Sans Mono-16", pixelsize=16.67 file=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
root@beaglebone:~# mplayer -nolirc -vo fbdev:/dev/fb0 scale=WIDTH:128 test.mpg
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
Playing scale=WIDTH:128.
File not found: 'scale=WIDTH:128'
Failed to open scale=WIDTH:128.
Playing test.mpg.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
MPEG-ES file format detected.
VIDEO: MPEG1 320x240 (aspect 1) 25.000 fps 6553.2 kbps (819.1 kbyte/s)
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
Audio: no sound
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0xb669e978]No accelerated colorspace conversion found from yuv420p to rgb565le.
[swscaler @ 0xb669e978]using unscaled yuv420p -> rgb565le special converter
VO: [fbdev] 320x240 => 320x240 BGR 16-bit
framebuffer too small for double-buffering, disabling
V: 26.6 666/666 31% 453% 0.0% 0 0
MPlayer interrupted by signal 2 in module: filter_video
V: 26.7 667/667 31% 453% 0.0% 0 0
root@beaglebone:~# modprobe fbtft_device busnum=1 name=adafruit22a gpios=dc:48,reset:60
[ 181.848604] fbtft_device: SPI devices registered:
[ 181.848671] fbtft_device: spidev spi1.1 16000kHz 8 bits mode=0x00
[ 181.848705] fbtft_device: spidev spi1.0 16000kHz 8 bits mode=0x01
[ 181.848728] fbtft_device: 'fb' Platform devices registered:
[ 181.848860] fbtft_device: omapfb id=-1 pdata? yes
[ 181.849152] fbtft_device: Deleting spi1.0
[ 181.851923] fbtft_device: GPIOS used by 'adafruit22a':
[ 181.851960] fbtft_device: 'dc' = GPIO48
[ 181.851982] fbtft_device: 'reset' = GPIO60
[ 181.852002] fbtft_device: SPI devices registered:
[ 181.852033] fbtft_device: spidev spi1.1 16000kHz 8 bits mode=0x00
[ 181.852061] fbtft_device: fb_ili9340 spi1.0 32000kHz 8 bits mode=0x00
[ 182.235255] Console: switching to colour frame buffer device 60x53
[ 182.236682] graphics fb0: fb_ili9340 frame buffer, 240x320, 150 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi1.0 at 32 MHz
root@beaglebone:~#
root@beaglebone:~# mplayer -nolirc -vo fbdev:/dev/fb0 scale=WIDTH:128 hst_1.mpg
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
Playing scale=WIDTH:128.
File not found: 'scale=WIDTH:128'
Failed to open scale=WIDTH:128.
Playing hst_1.mpg.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
MPEG-ES file format detected.
VIDEO: MPEG1 320x240 (aspect 1) 29.970 fps 320.0 kbps (40.0 kbyte/s)
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
Audio: no sound
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0xb670f978]No accelerated colorspace conversion found from yuv420p to rgb565le.
[swscaler @ 0xb670f978]using unscaled yuv420p -> rgb565le special converter
VO: [fbdev] 320x240 => 320x240 BGR 16-bit
framebuffer too small for double-buffering, disabling
V: 19.0 570/570 20% 65% 0.0% 0 0
Exiting... (End of file)
root@beaglebone:~#
root@beaglebone:~# wget http://hubblesource.stsci.edu/sources/video/clips/details/images/hst_1.mpg
--2015-10-30 08:12:02-- http://hubblesource.stsci.edu/sources/video/clips/details/images/hst_1.mpg
Resolving hubblesource.stsci.edu (hubblesource.stsci.edu)... 130.167.201.5
Connecting to hubblesource.stsci.edu (hubblesource.stsci.edu)|130.167.201.5|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 761016 (743K) [video/mpeg]
Saving to: `hst_1.mpg'
100%[====================================================================================================================>] 761,016 1.06M/s in 0.7s
2015-10-30 08:12:02 (1.06 MB/s) - `hst_1.mpg' saved [761016/761016]
root@beaglebone:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment