Broadcom97420: Difference between revisions
Jump to navigation
Jump to search
AutoSpider (talk | contribs) (Convert ExpressionEngine section headers) |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Devices]] | [[Category:Devices]] | ||
== Reference Software == | == Reference Software == | ||
Line 26: | Line 23: | ||
# Obtain 7420 specific files namely, qmake.conf and qplatformdefs.h from [http*//gitorious.org/qt-platform-mkspecs| qt-platform-mkspecs git ] (look for folder "4.7/qws/linux-97420c0-mipsel-uclibc-g") and copy it in newly created folder in step 2 | # Obtain 7420 specific files namely, qmake.conf and qplatformdefs.h from [http*//gitorious.org/qt-platform-mkspecs| qt-platform-mkspecs git ] (look for folder "4.7/qws/linux-97420c0-mipsel-uclibc-g") and copy it in newly created folder in step 2 | ||
# Set following environment variables in the shell before configuring/building Qt, | # Set following environment variables in the shell before configuring/building Qt, | ||
<code>export APPLIBS=<PATH Of Base Working Directory where Reference Software is extracted>/AppLibs | <code>export APPLIBS=<PATH Of Base Working Directory where Reference Software is extracted>/AppLibs | ||
export BCM97420C0_DFB_PATH=$APPLIBS/opensource/directfb/bin/DirectFB-1.4.1_release_build.97420C0/usr/local | export BCM97420C0_DFB_PATH=$APPLIBS/opensource/directfb/bin/DirectFB-1.4.1_release_build.97420C0/usr/local | ||
export BCM_DEV_PATH=$APPLIBS/opensource | export BCM_DEV_PATH=$APPLIBS/opensource | ||
export BCM_DEPLOYED_PATH=$APPLIBS/target/97420c0.mipsel-linux-uclibc.release</code> | export BCM_DEPLOYED_PATH=$APPLIBS/target/97420c0.mipsel-linux-uclibc.release</code> | ||
6. Configure Qt as, | |||
<code>$configure -embedded mips -xplatform qws/linux-974250c0-mipsel-uclibc-g''+ -depths 16,24,32 -no-largefile -no-accessibility -opensource -verbose -system-zlib -system-libpng -system-libjpeg -system-freetype -fast -qt-gfx-directfb -webkit -confirm-license -release -make libs -xmlpatterns -exceptions -no-qt3support -prefix /usr/local/qt-installs/qt-dfb-97420C0-rel<code> | <code>$configure -embedded mips -xplatform qws/linux-974250c0-mipsel-uclibc-g''+ -depths 16,24,32 | ||
-no-largefile -no-accessibility -opensource -verbose -system-zlib -system-libpng -system-libjpeg | |||
< | -system-freetype -fast -qt-gfx-directfb -webkit -confirm-license -release -make libs -xmlpatterns -exceptions | ||
-no-qt3support -prefix /usr/local/qt-installs/qt-dfb-97420C0-rel</code> | |||
<code>$ make install<code> | |||
7. Build Qt as, | |||
<code>$ make</code> | |||
8. Install Qt on host as, | |||
<code>$ make install</code> | |||
== Building Qt apps == | == Building Qt apps == | ||
Line 42: | Line 45: | ||
* PATH=/usr/local/qt-installs/qt-dfb-97420C0-rel/bin*$PATH | * PATH=/usr/local/qt-installs/qt-dfb-97420C0-rel/bin*$PATH | ||
* 2 Ensure that following environment variables in the shell are set, | * 2 Ensure that following environment variables in the shell are set, | ||
< | <code>export APPLIBS=<PATH Of Base Working Directory where Reference Software is extracted>/AppLibs | ||
export BCM97420C0_DFB_PATH=$APPLIBS/opensource/directfb/bin/DirectFB-1.4.1_release_build.97420C0/usr/local | export BCM97420C0_DFB_PATH=$APPLIBS/opensource/directfb/bin/DirectFB-1.4.1_release_build.97420C0/usr/local | ||
export BCM_DEV_PATH=$APPLIBS/opensource | export BCM_DEV_PATH=$APPLIBS/opensource | ||
export BCM_DEPLOYED_PATH=$APPLIBS/target/97420c0.mipsel-linux-uclibc.release<code> | export BCM_DEPLOYED_PATH=$APPLIBS/target/97420c0.mipsel-linux-uclibc.release</code> | ||
1. Invoke qmake on the applications .pro file | |||
< | <code>$ qmake <application>.pro</code> | ||
2. Build the application sources as, | |||
<code>$ make<code> | <code>$ make</code> | ||
== Running Qt apps on target == | == Running Qt apps on target == |
Latest revision as of 10:15, 8 May 2015
Reference Software
- Phase 5.0 Reference software (refsw_release_97420_20100825.src.tgz)
- Phase 2.5 and Phase 3.0 of DirectFB 1.4.1
- Toolchain is stbgcc 4.4.5-1.3 (modified by Broadcom)
- Linux kernel is stblinux-2.6.31-2.5 (modified by Broadcom)
Building AppLibs/RefSW for Qt
- Locate document named "BroadcomReferencePlatformSetup.pdf" (Usually this will be inside a tar ball named on the lines of refsw_release_<chip-name><date>.tgz)
- Follow the instructions in "BroadcomReferencePlatformSetup.pdf" to setup the Linux build machine
- Locate document named "AppLibsInstallationBuildGuide.pdf" (Usually this will be inside a tar ball named on the lines of applibs_release<date>.tgz)
- Follow the instructions in "AppLibsInstallationBuildGuide.pdf" to build Applibs
Qt 4.7 DirectFB / QWS
- Obtain qt-4.7.0 release from [http*//get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.0.tar.gz| Qt Download site] and extract it in a working folder
- Create folder named "linux-97420c0-mipsel-uclibc-g+" in <qt-4.7.0-sources>/mkspecs/qws
- In file <qt_sources>/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp, comment out line "surface->SetPorterDuff(surface, DSPD_DST);"
- Obtain 7420 specific files namely, qmake.conf and qplatformdefs.h from [http*//gitorious.org/qt-platform-mkspecs| qt-platform-mkspecs git ] (look for folder "4.7/qws/linux-97420c0-mipsel-uclibc-g") and copy it in newly created folder in step 2
- Set following environment variables in the shell before configuring/building Qt,
export APPLIBS=<PATH Of Base Working Directory where Reference Software is extracted>/AppLibs
export BCM97420C0_DFB_PATH=$APPLIBS/opensource/directfb/bin/DirectFB-1.4.1_release_build.97420C0/usr/local
export BCM_DEV_PATH=$APPLIBS/opensource
export BCM_DEPLOYED_PATH=$APPLIBS/target/97420c0.mipsel-linux-uclibc.release
6. Configure Qt as,
$configure -embedded mips -xplatform qws/linux-974250c0-mipsel-uclibc-g''+ -depths 16,24,32
-no-largefile -no-accessibility -opensource -verbose -system-zlib -system-libpng -system-libjpeg
-system-freetype -fast -qt-gfx-directfb -webkit -confirm-license -release -make libs -xmlpatterns -exceptions
-no-qt3support -prefix /usr/local/qt-installs/qt-dfb-97420C0-rel
7. Build Qt as,
$ make
8. Install Qt on host as,
$ make install
Building Qt apps
- 1 After the Qt build succeeds set following environment variables on host before building any Qt Apps for the above build,
- QTDIR=/usr/local/qt-installs/qt-dfb-97420C0-rel
- PATH=/usr/local/qt-installs/qt-dfb-97420C0-rel/bin*$PATH
- 2 Ensure that following environment variables in the shell are set,
export APPLIBS=<PATH Of Base Working Directory where Reference Software is extracted>/AppLibs
export BCM97420C0_DFB_PATH=$APPLIBS/opensource/directfb/bin/DirectFB-1.4.1_release_build.97420C0/usr/local
export BCM_DEV_PATH=$APPLIBS/opensource
export BCM_DEPLOYED_PATH=$APPLIBS/target/97420c0.mipsel-linux-uclibc.release
1. Invoke qmake on the applications .pro file
$ qmake <application>.pro
2. Build the application sources as,
$ make
Running Qt apps on target
- Ensure that folder "qt-installs/qt-dfb-97420C0-rel" is copied on target file system at "/usr/local"
- Note- after copying, the path should appear as "/usr/local/qt-installs/qt-dfb-97420C0-rel"
- 2 Copy the application binary and other required resource files on target file-system, at say "/root"
- On target, goto directory containing directfb startup script as,
- cd /usr/local/bin/directfb/1.4
- Install board specific modules and create device nodes by running "rundfb.sh" as,
- ./rundfb.sh install
- Launch application using same rundfb.sh script as,
- ./rundfb.sh /root/app1/app1 -qws -display directfb