ST7540: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
(Marked as outdated)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=ST7540=
{{Outdated|reason=Obsolete hardware and software}}
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}


{| class="infotable line"
[[Category:Devices]]
| Architecture
 
| '''SH4'''
= ST7540 =
 
{|
|Architecture
|'''SH4'''
|-
|-
| <span class="caps">CPU</span>
|CPU
| SH430
|SH430
|-
|-
| <span class="caps">RAM</span>
|RAM
| 512 MB
|512 MB
|-
|-
| <span class="caps">GPU</span>
|GPU
| Mali 400
|Mali 400
|-
|-
| Hardware acceleration
|Hardware acceleration
| OpenGL ES 2.0
|OpenGL ES 2.0
|-
|-
| Qt 4.8 (eglnullws/QWS)
|Qt 4.8 (eglnullws/QWS)
| Supported, with OpenGL
|Supported, with OpenGL
|-
|-
| Qt 5.0 (eglfs/QPA)
|Qt 5.0 (eglfs/QPA)
| Supported, with OpenGL
|Supported, with OpenGL
|}
|}


==Device Information==
== Device Information ==


The ST7540 is made by [http://www.st.com/internet/imag_video/product/130228.jsp <span class="caps">STM</span>icroelectronics] ''[st.com]''.
The ST7540 is made by [http://www.st.com/internet/imag_video/product/130228.jsp STMicroelectronics].


* “The ST7540 is a Half Duplex synchronous/asynchronous <span class="caps">FSK</span> Modem designed for power line communication network applications. It operates from a single supply voltage and integrates a line driver and two linear regulators for 5V and 3.3V. The device operation is controlled by means of an internal register, programmable through the synchronous serial interface. Additional functions as watchdog, clock output, output voltage and current control, preamble detection, time-out and band in use are included. Realized in Multipower BCD5 technology that allows to integrate <span class="caps">DMOS</span>, Bipolar and <span class="caps">CMOS</span> structures in the same chip.”<br /> [http://www.st.com/internet/imag_video/product/130228.jsp] ST7540 B-<span class="caps">FSK</span> – Stripped down Power Line Transceiver
* "The ST7540 is a Half Duplex synchronous/asynchronous FSK Modem designed for power line communication network applications. It operates from a single supply voltage and integrates a line driver and two linear regulators for 5V and 3.3V. The device operation is controlled by means of an internal register, programmable through the synchronous serial interface. Additional functions as watchdog, clock output, output voltage and current control, preamble detection, time-out and band in use are included. Realized in Multipower BCD5 technology that allows to integrate DMOS, Bipolar and CMOS structures in the same chip."
[http://www.st.com/internet/imag_video/product/130228.jsp] ST7540 B-FSK - Stripped down Power Line Transceiver


===Software===
=== Software ===


# <span class="caps">STM</span> <span class="caps">SDK</span> 3.5
# STM SDK 3.5
# [http://www.stlinux.com/install <span class="caps">STL</span>inux-2.4] ''[stlinux.com]''
# [http://www.stlinux.com/install STLinux-2.4]  
# sh4-linux crosstools from <span class="caps">STM</span>
# sh4-linux crosstools from STM


===Assumptions===
=== Assumptions ===


# <span class="caps">STM</span> reference software <span class="caps">SDK</span> 3.5 is built on Host PC as conveyed in <span class="caps">STM</span>’s documentation given by <span class="caps">STM</span>’s Field Application Engineer.
# STM reference software SDK 3.5 is built on Host PC as conveyed in STM's documentation given by STM's Field Application Engineer.
# <span class="caps">STM</span> reference software <span class="caps">SDK</span> 3.5 is configured for “<span class="caps">FUDB</span>_GPD201_7540_LINUX <span class="caps">DCP</span>_HOST DDR3”
# STM reference software SDK 3.5 is configured for "FUDB_GPD201_7540_LINUX DCP_HOST DDR3"
# Can run <span class="caps">STM</span>’s “Test-Tool” on reference board to test OenGL ES 2.0 and media playback.
# Can run STM's "Test-Tool" on reference board to test OenGL ES 2.0 and media playback.
# The “sysroot” is located at “&lt;<span class="caps">STL</span>inux-2.4 installation path&gt;/STLinux-2.4/devkit/sh4/target”
# The "sysroot" is located at "<STLinux-2.4 installation path>/STLinux-2.4/devkit/sh4/target"


==Qt 4.8.0 EGLNullWS/QWS==
== Qt 4.8.0 EGLNullWS/QWS ==


===Getting Qt 4.8.0 with <span class="caps">STM</span> patches and mkspecs===
=== Getting Qt 4.8.0 with STM patches and mkspecs ===


# Download ftp://ftp.stlinux.com/pub/stlinux/2.4/updates/SRPMS/stlinux24-target-qt-embedded-4.8.0-5.src.rpm
# Download ftp://ftp.stlinux.com/pub/stlinux/2.4/updates/SRPMS/stlinux24-target-qt-embedded-4.8.0-5.src.rpm
Line 63: Line 69:
## qt-embedded-4.8.0-st231_disable_fno-stack-protector.patch
## qt-embedded-4.8.0-st231_disable_fno-stack-protector.patch
## qt-embedded-4.8.0-Accelerate_QtWebKit_animated_images.patch
## qt-embedded-4.8.0-Accelerate_QtWebKit_animated_images.patch
# Create folder named “linux-sh4-ST7540-g++” in “qt-everywhere-opensource-src-4.8.0/mkspecs/qws”
# Create folder named "linux-sh4-ST7540-g+''" in "qt-everywhere-opensource-src-4.8.0/mkspecs/qws"
# Get following files in “qt-everywhere-opensource-src-4.8.0/mkspecs/qws/linux-sh4-ST7540-g++”
# Get following files in "qt-everywhere-opensource-src-4.8.0/mkspecs/qws/linux-sh4-ST7540-g"
## https://gitorious.org/qt-platform-mkspecs/qt-platform-mkspecs/blobs/master/4.8/qws/linux-sh4-ST7540-g++/qmake.conf
## https://gitorious.org/qt-platform-mkspecs/qt-platform-mkspecs/blobs/master/4.8/qws/linux-sh4-ST7540-g/qmake.conf
## https://gitorious.org/qt-platform-mkspecs/qt-platform-mkspecs/blobs/master/4.8/qws/linux-sh4-ST7540-g++/qplatformdefs.h
## https://gitorious.org/qt-platform-mkspecs/qt-platform-mkspecs/blobs/master/4.8/qws/linux-sh4-ST7540-g/qplatformdefs.h
 
===Compiling Qt 4.8.0 development environment variables using following commands===
 
Configure, build and install Qt 4.8.0 as After the build succeeds set following environment variables before building any Qt Apps,
 
# <span class="caps">QTDIR</span>=/path/to/installation/directory/qt-everywhere-opensource-src-4.8.0-qws/
# <span class="caps">PATH</span>=/path/to/installation/directory/qt-everywhere-opensource-src-4.8.0-qws/bin/


==Qt 5.0 <span class="caps">EGLFS</span>/QPA==
=== Compiling Qt 4.8.0 development environment variables using following commands ===
<code>
cd /path/to/STM/futk_2boxtv_src_c273/stbsp/stdebug/api_test/testapp
source /path/to/STM/futk_2boxtv_src_c273/stbsp/stmake/bin/setenv.sh FUDB_GPD201_7540_LINUX DCP_HOST DDR3
</code>
Configure, build and install Qt 4.8.0 as
<code>
$ /path/to/qt-everywhere-opensource-src-4.8.0/configure -opensource -confirm-license  -verbose -release -shared -no-rpath -system-zlib -system-libjpeg -system-libpng  -qt3support -qt-sql-sqlite -xmlpatterns -exceptions -declarative -script -scripttools  -webkit -no-javascript-jit -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-vnc -qt-gfx-multiscreen  -qt-kbd-linuxinput -qt-mouse-linuxinput -make libs -make tools -make examples -make demos  -make docs -make translations -platform qws/linux-x86-g''+  —prefix=/path/to/installation/directory/qt-everywhere-opensource-src-4.8.0-qws/  -xplatform qws/linux-sh4-ST7540-g++ -embedded sh4 -little-endian -opengl es2  -plugin-gfx-eglnullws -qt-gfx-directfb -no-dbus
$ make
$ make install
</code>
After the build succeeds set following environment variables before building any Qt Apps,
# QTDIR=/path/to/installation/directory/qt-everywhere-opensource-src-4.8.0-qws/
# PATH=/path/to/installation/directory/qt-everywhere-opensource-src-4.8.0-qws/bin/


== Qt 5.0 EGLFS/QPA ==
Only QtBase module is tested.
Only QtBase module is tested.


===Compiling Qt 5.0===
=== Compiling Qt 5.0 ===
 
One need to pass following "device-option"s
One need to pass following “device-option“s
# CROSS_COMPILE=<STLinux-2.4 installation path>/STLinux-2.4/devkit/sh4/bin/sh4-linux-
 
# <span class="caps">CROSS</span>_COMPILE=&lt;<span class="caps">STL</span>inux-2.4 installation path&gt;/STLinux-2.4/devkit/sh4/bin/sh4-linux-
 
Configure, build and install Qt 5.0 as After the build succeeds set following environment variables before building any Qt Apps,
 
# <span class="caps">QTDIR</span>=/path/to/installation/directory/qt-gitorious-opensource-src-5.0/
# <span class="caps">PATH</span>=/path/to/installation/directory/qt-gitorious-opensource-src-5.0/bin/
 
Before executing any Qt applications on target copy “/path/to/installation/directory/qt-gitorious-opensource-src-5.0” from host on target at “/path/to/installation/directory/qt-gitorious-opensource-src-5.0” on target file system


===Categories:===
Configure, build and install Qt 5.0 as
<code>
$ configure —prefix=/path/to/installation/directory/qt-gitorious-opensource-src-5.0 -release -opensource -confirm-license -shared -verbose  -device linux-sh4-stmicro-ST7540-g++  -sysroot <STLinux-2.4 installation path>/STLinux-2.4/devkit/sh4/target  -device-option CROSS_COMPILE=<STLinux-2.4 installation path>/STLinux-2.4/devkit/sh4/bin/sh4-linux-
$ make module-qtbase
$ make module-qtbase-install_subtargets
</code>
After the build succeeds set following environment variables before building any Qt Apps,
# QTDIR=/path/to/installation/directory/qt-gitorious-opensource-src-5.0/
# PATH=/path/to/installation/directory/qt-gitorious-opensource-src-5.0/bin/


* [[:Category:Devices|Devices]]
Before executing any Qt applications on target copy "/path/to/installation/directory/qt-gitorious-opensource-src-5.0" from host on target at "/path/to/installation/directory/qt-gitorious-opensource-src-5.0" on target file system

Latest revision as of 15:11, 24 March 2016

IMPORTANT: The content of this page is outdated. Reason: Obsolete hardware and software
If you have checked or updated this page and found the content to be suitable, please remove this notice.
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

ST7540

Architecture SH4
CPU SH430
RAM 512 MB
GPU Mali 400
Hardware acceleration OpenGL ES 2.0
Qt 4.8 (eglnullws/QWS) Supported, with OpenGL
Qt 5.0 (eglfs/QPA) Supported, with OpenGL

Device Information

The ST7540 is made by STMicroelectronics.

  • "The ST7540 is a Half Duplex synchronous/asynchronous FSK Modem designed for power line communication network applications. It operates from a single supply voltage and integrates a line driver and two linear regulators for 5V and 3.3V. The device operation is controlled by means of an internal register, programmable through the synchronous serial interface. Additional functions as watchdog, clock output, output voltage and current control, preamble detection, time-out and band in use are included. Realized in Multipower BCD5 technology that allows to integrate DMOS, Bipolar and CMOS structures in the same chip."

[1] ST7540 B-FSK - Stripped down Power Line Transceiver

Software

  1. STM SDK 3.5
  2. STLinux-2.4
  3. sh4-linux crosstools from STM

Assumptions

  1. STM reference software SDK 3.5 is built on Host PC as conveyed in STM's documentation given by STM's Field Application Engineer.
  2. STM reference software SDK 3.5 is configured for "FUDB_GPD201_7540_LINUX DCP_HOST DDR3"
  3. Can run STM's "Test-Tool" on reference board to test OenGL ES 2.0 and media playback.
  4. The "sysroot" is located at "<STLinux-2.4 installation path>/STLinux-2.4/devkit/sh4/target"

Qt 4.8.0 EGLNullWS/QWS

Getting Qt 4.8.0 with STM patches and mkspecs

  1. Download ftp://ftp.stlinux.com/pub/stlinux/2.4/updates/SRPMS/stlinux24-target-qt-embedded-4.8.0-5.src.rpm
  2. Extract stlinux24-target-qt-embedded-4.8.0-5.src.rpm
  3. Extract qt-everywhere-opensource-src-4.8.0.tar.gz
  4. Apply following patches on extracted qt-everywhere-opensource-src-4.8.0 in given order
    1. qt-embedded-4.8.0-st200.patch
    2. qt-embedded-4.8.0-sh4.patch
    3. qt-embedded-4.8.0-armvX.patch
    4. qt-embedded-4.8.0-mmap.patch
    5. qt-embedded-4.8.0-add_SRC_OVER_rule.patch
    6. qt-embedded-4.8.0-add_window_console_message_from_javaScript.patch
    7. qt-embedded-4.8.0-reset_CacheLoadControlAttribute_to_default.patch
    8. qt-embedded-4.8.0-adds_for_webkit_jit.patch
    9. qt-embedded-4.8.0-directfb-enable-QT_NO_DIRECTFB_PREALLOCATED-QT_DIREC.patch
    10. qt-embedded-4.8.0-imagedecoderqt-Use-DirectFB-to-load-single-frame-ima.patch
    11. qt-embedded-4.8.0-st231_disable_fno-stack-protector.patch
    12. qt-embedded-4.8.0-Accelerate_QtWebKit_animated_images.patch
  5. Create folder named "linux-sh4-ST7540-g+" in "qt-everywhere-opensource-src-4.8.0/mkspecs/qws"
  6. Get following files in "qt-everywhere-opensource-src-4.8.0/mkspecs/qws/linux-sh4-ST7540-g"
    1. https://gitorious.org/qt-platform-mkspecs/qt-platform-mkspecs/blobs/master/4.8/qws/linux-sh4-ST7540-g/qmake.conf
    2. https://gitorious.org/qt-platform-mkspecs/qt-platform-mkspecs/blobs/master/4.8/qws/linux-sh4-ST7540-g/qplatformdefs.h

Compiling Qt 4.8.0 development environment variables using following commands

 cd /path/to/STM/futk_2boxtv_src_c273/stbsp/stdebug/api_test/testapp
 source /path/to/STM/futk_2boxtv_src_c273/stbsp/stmake/bin/setenv.sh FUDB_GPD201_7540_LINUX DCP_HOST DDR3

Configure, build and install Qt 4.8.0 as

 $ /path/to/qt-everywhere-opensource-src-4.8.0/configure -opensource -confirm-license  -verbose -release -shared -no-rpath -system-zlib -system-libjpeg -system-libpng  -qt3support -qt-sql-sqlite -xmlpatterns -exceptions -declarative -script -scripttools  -webkit -no-javascript-jit -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-vnc -qt-gfx-multiscreen  -qt-kbd-linuxinput -qt-mouse-linuxinput -make libs -make tools -make examples -make demos  -make docs -make translations -platform qws/linux-x86-g''+  prefix=/path/to/installation/directory/qt-everywhere-opensource-src-4.8.0-qws/  -xplatform qws/linux-sh4-ST7540-g++ -embedded sh4 -little-endian -opengl es2  -plugin-gfx-eglnullws -qt-gfx-directfb -no-dbus
 $ make
 $ make install

After the build succeeds set following environment variables before building any Qt Apps,

  1. QTDIR=/path/to/installation/directory/qt-everywhere-opensource-src-4.8.0-qws/
  2. PATH=/path/to/installation/directory/qt-everywhere-opensource-src-4.8.0-qws/bin/

Qt 5.0 EGLFS/QPA

Only QtBase module is tested.

Compiling Qt 5.0

One need to pass following "device-option"s

  1. CROSS_COMPILE=<STLinux-2.4 installation path>/STLinux-2.4/devkit/sh4/bin/sh4-linux-

Configure, build and install Qt 5.0 as

 $ configure prefix=/path/to/installation/directory/qt-gitorious-opensource-src-5.0 -release -opensource -confirm-license -shared -verbose  -device linux-sh4-stmicro-ST7540-g++  -sysroot <STLinux-2.4 installation path>/STLinux-2.4/devkit/sh4/target  -device-option CROSS_COMPILE=<STLinux-2.4 installation path>/STLinux-2.4/devkit/sh4/bin/sh4-linux-
 $ make module-qtbase
 $ make module-qtbase-install_subtargets

After the build succeeds set following environment variables before building any Qt Apps,

  1. QTDIR=/path/to/installation/directory/qt-gitorious-opensource-src-5.0/
  2. PATH=/path/to/installation/directory/qt-gitorious-opensource-src-5.0/bin/

Before executing any Qt applications on target copy "/path/to/installation/directory/qt-gitorious-opensource-src-5.0" from host on target at "/path/to/installation/directory/qt-gitorious-opensource-src-5.0" on target file system