
2/11/2020
TS-7100 - Technologic Systems Manuals
https://wiki.embeddedarm.com/w/index.php?title=TS-7100&printable=yes
35/44
The LCD on this device is able to display a customizable splash screen immediately after power on. This is
accomplished by the on-board FPGA reading data from an SPI NOR flash device, and writing it directly to the
LCD in its SPI mode. This image is then left on the screen during the rest of the bootup process until the kernel
takes over and drives the LCD in parallel RGB mode. The SPI NOR flash can be updated from userspace in Linux
to write the new splash screen data.
Since the LCD is a 240x320 display, the final image needs to be formatted to fit this resolution and put in a binary
format that the LCD can properly display. We have created a simple script to accomplish this. The scrip uses
ImageMagick's 'convert' tool, as well as 'gcc'. The script will take an input file, translate it to fit the display, build a
small tool from C sources, run the translated image through said tool in order to put the image in the correct byte
ordering, and then clean up all temporary files. Additionally, a PNG image is output by the tool to be used as a
sample reference of what the translated image looks like.
A simple conversion would look like the following:
./splash-convert Logo.png
# Background color can also be passed:
./splash-convert
-background
blue NewLogo.jpg
# Any arguments to 'convert' can be arbitrarily passed:
./splash-convert
-rotate
120 Logo.png
This will output "splash.out" which can be written directly to the SPI NOR flash as well as "splash.png" which is a
sample image of what the splash screen will look like. Since ImageMagick is used to do the heavy lifting of the
conversion process, the input file can be of nearly any image format.
The "splash.out" file can be written to the SPI NOR flash with the following command:
dd
if
=/path/to/splash.out
of
=/dev/mtdblock0
bs
=4096
conv
=
sync
Note that the "bs" and "conv" arguments should always be specified when writing to this SPI NOR device with 'dd'
to ensure that the eraseblocks do not receive unnecessary erases and that a full eraseblock is written every time.
Also note that on the TS-7100, the SPI NOR flash is 2 MiB but the splash screen only consumes 152 KiB of space.
The rest of this flash space can be used for general storage if wanted.
10.14 LEDs
The red and green LEDs can be controlled from userspace after bootup using the sysfs LED interface. For example,
to turn on the red LED:
echo
1 > /sys/class/leds/cpu-red-led/brightness
The following LEDs are available on this system:
cpu-red-led