OK335xS psplash Screen 移植
/***********************************************************************
* OK335xS psplash Screen 移植
* 说明:
* 有时候,每次看到TI的logo自己心里是不爽的,因为本来就是定制的东西,
* 为什么还要他的开机Logo呢,于是自己尝试移植编译一下psplash。
*
* 2016-4-16 深圳 南山平山村 曾剑锋
**********************************************************************/ 一、参考文档:
. Customizing the SDK Splash Screen
http://processors.wiki.ti.com/index.php/Customizing_the_SDK_Splash_Screen
. Makefile Makefile.am Makefile.in
http://blog.csdn.net/OLillian/article/details/6281126
. config.h.in missing? #
https://github.com/stevedh/readingdb/issues/1 二、download:
http://git.yoctoproject.org/cgit/cgit.cgi/psplash/commit/ 三、编译、运行流程:
. aclocal;
. autoconf;
. automake --add-missing;
. autoreconf --install
. ./configure --host=arm-linux CC=arm-linux-gnueabihf-gcc;
. make.
. Replace the /usr/bin/psplash file in your root file system with the generated psplash file. 四、编译错误:
. error:
. 现象:
Qt@zengjf:~/cmdTest/psplash-master$ ./autogen.sh --host=arm-linux CC=arm-linux-gnueabihf-gcc
bash: ./autogen.sh: No such file or directory
. 解决办法:
. aclocal;
. autoconf;
. automake --add-missing;
. ./configure --host=arm-linux CC=arm-linux-gnueabihf-gcc;
. make.
. error:
. 现象:
configure.ac:: required file `config.h.in' not found
. 解决办法:
autoreconf --install
. error:
. 现象:
......
Screenshot-img.h::: warning: missing whitespace after the macro name [enabled by default]
Screenshot-img.h::: warning: "psplash" redefined [enabled by default]
Screenshot-img.h::: note: this is the location of the previous definition
psplash.c: In function ‘main’:
psplash.c::: error: ‘POKY_IMG_WIDTH’ undeclared (first use in this function)
psplash.c::: note: each undeclared identifier is reported only once for each function it appears in
psplash.c::: error: ‘POKY_IMG_HEIGHT’ undeclared (first use in this function)
psplash.c::: error: ‘POKY_IMG_BYTES_PER_PIXEL’ undeclared (first use in this function)
psplash.c::: error: ‘POKY_IMG_ROWSTRIDE’ undeclared (first use in this function)
psplash.c::: error: ‘POKY_IMG_RLE_PIXEL_DATA’ undeclared (first use in this function)
make[]: *** [psplash.o] Error
make[]: Leaving directory `/home/Qt/cmdTest/psplash-master'
make: *** [all] Error
. 解决办法:
./make-image-header.sh Screenshot.png POKY
. 原因:
psplash.c中的需要用到这个POKY有关的宏名,如果改了,那么这里也要跟着改。
Qt@zengjf:~/cmdTest/psplash-master$ grep POKY *
psplash.c: (fb->width - POKY_IMG_WIDTH)/,
psplash.c: (fb->height - POKY_IMG_HEIGHT)/,
psplash.c: / PSPLASH_IMG_SPLIT_DENOMINATOR - POKY_IMG_HEIGHT)/,
psplash.c: POKY_IMG_WIDTH,
psplash.c: POKY_IMG_HEIGHT,
psplash.c: POKY_IMG_BYTES_PER_PIXEL,
psplash.c: POKY_IMG_ROWSTRIDE,
psplash.c: POKY_IMG_RLE_PIXEL_DATA);
...... 五、完整编译过程如下:
Qt@zengjf:~/cmdTest/psplash-master$ aclocal
Qt@zengjf:~/cmdTest/psplash-master$ autoconf
Qt@zengjf:~/cmdTest/psplash-master$ automake --add-missing
configure.ac:: installing `./install-sh'
configure.ac:: installing `./missing'
Makefile.am: installing `./INSTALL'
configure.ac:: required file `config.h.in' not found
Makefile.am: installing `./depcomp'
Qt@zengjf:~/cmdTest/psplash-master$ autoreconf --install
Qt@zengjf:~/cmdTest/psplash-master$ ./configure --host=arm-linux CC=arm-linux-gnueabihf-gcc
configure: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for arm-linux-gcc... arm-linux-gnueabihf-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gnueabihf-gcc accepts -g... yes
checking for arm-linux-gnueabihf-gcc option to accept ISO C89... none needed
checking dependency style of arm-linux-gnueabihf-gcc... gcc3
checking for library containing strerror... none required
checking for arm-linux-gcc... (cached) arm-linux-gnueabihf-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether arm-linux-gnueabihf-gcc accepts -g... (cached) yes
checking for arm-linux-gnueabihf-gcc option to accept ISO C89... (cached) none needed
checking dependency style of arm-linux-gnueabihf-gcc... (cached) gcc3
checking how to run the C preprocessor... arm-linux-gnueabihf-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
Qt@zengjf:~/cmdTest/psplash-master$ make
make all-am
make[]: Entering directory `/home/Qt/cmdTest/psplash-master'
arm-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -g -Wall -Wextra -D_GNU_SOURCE -g -O2 -MT psplash.o -MD -MP -MF .deps/psplash.Tpo -c -o psplash.o psplash.c
mv -f .deps/psplash.Tpo .deps/psplash.Po
arm-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -g -Wall -Wextra -D_GNU_SOURCE -g -O2 -MT psplash-fb.o -MD -MP -MF .deps/psplash-fb.Tpo -c -o psplash-fb.o psplash-fb.c
mv -f .deps/psplash-fb.Tpo .deps/psplash-fb.Po
arm-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -g -Wall -Wextra -D_GNU_SOURCE -g -O2 -MT psplash-console.o -MD -MP -MF .deps/psplash-console.Tpo -c -o psplash-console.o psplash-console.c
mv -f .deps/psplash-console.Tpo .deps/psplash-console.Po
arm-linux-gnueabihf-gcc -g -Wall -Wextra -D_GNU_SOURCE -g -O2 -o psplash psplash.o psplash-fb.o psplash-console.o
arm-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -g -Wall -Wextra -D_GNU_SOURCE -g -O2 -MT psplash-write.o -MD -MP -MF .deps/psplash-write.Tpo -c -o psplash-write.o psplash-write.c
mv -f .deps/psplash-write.Tpo .deps/psplash-write.Po
arm-linux-gnueabihf-gcc -g -Wall -Wextra -D_GNU_SOURCE -g -O2 -o psplash-write psplash-write.o
make[]: Leaving directory `/home/Qt/cmdTest/psplash-master'
Qt@zengjf:~/cmdTest/psplash-master$ ls
aclocal.m4 config.log install-sh psplash psplash-console.o psplash.o Screenshot-img.h
AUTHORS config.status Makefile psplash-bar-img.h psplash.doap psplash-poky-img.h Screenshot.png
autom4te.cache configure Makefile.am psplash.c psplash-fb.c psplash-write stamp-h1
base-images configure.ac Makefile.in psplash-colors.h psplash-fb.h psplash-write.c
ChangeLog COPYING make-image-header.sh psplash-config.h psplash-fb.o psplash-write.o
config.h depcomp missing psplash-console.c psplash.h radeon-font.h
config.h.in INSTALL NEWS psplash-console.h psplash-hand-img.h README
Qt@zengjf:~/cmdTest/psplash-master$
OK335xS psplash Screen 移植的更多相关文章
- OK335xS psplash make-image-header.sh hacking
/***************************************************************************** * OK335xS psplash mak ...
- OK335xS psplash 进度条工作原理 hacking
#!/bin/sh # # rc This file is responsible for starting/stopping # services when the runlevel changes ...
- OK335xS ethtool 移植
/******************************************************************* * OK335xS ethtool 移植 * 声明: * 由于 ...
- ubuntu OPENCV移植
Installing OpenCV 2.4.1 in Ubuntu 12.04 LTS 这是转载国外一篇文章 移植PC上的OPENCV http://www.samontab.com/web/20 ...
- S5PV210开发系列四_uCGUI的移植
S5PV210开发系列四 uCGUI的移植 象棋小子 1048272975 GUI(图形用户界面)极大地方便了非专业用户的使用,用户无需记忆大量的命令,取而代之的是能够通过窗体.菜单 ...
- U-BOOT 移植到友善之臂mini2440
U-BOOT 移植到友善之臂mini2440 开发环境:ubuntu 10.10 编译器:友善之臂mini2440光盘自带arm-linux-gcc 4.4.3 一. 在denx官网下载源码,我所用版 ...
- Lenovo k860i 移植Android 4.4 cm11进度记录【下篇--实时更新中】
2014.8.24 k860i的cm11的移植在中断了近两三个月之后又開始继续了,进度记录的日志上一篇已经没什么写的了,就完结掉它吧,又一次开一篇日志做下篇好了.近期的战况是,在scue同学的努力之下 ...
- android4.0移植,拨号异常
D/dalvikvm( 2274): GC_CONCURRENT freed 206K, 12% free 6571K/7431K, paused 2ms+3ms D/dalvikvm( 2274): ...
- LCD驱动移植在在mini2440(linux2.6.29)和FS4412(linux3.14.78)上实现对比(deep dive)
1.Linux帧缓冲子系统 帧缓冲(FrameBuffer)是Linux为显示设备提供的一个接口,用户可以将帧缓冲看成是显示内存的一种映像,将其映射到进程地址空间之后,就可以直接进行读写操作,而写操作 ...
随机推荐
- Codeforces Round #347 (Div. 2) B. Rebus
题目链接: http://codeforces.com/contest/664/problem/B 题意: 给你一个等式,把等式左边的问号用1到n(n为等式右边的数)的数填好,使得等式成立 题解: 贪 ...
- texCUBE() to CubemapSampler.Sample()
update dx9 to dx11 refers to CUBEMAP sampler texCUBE(CubeMpaSampler,normal) maybe change to Cubema ...
- PHP之SQL防注入代码(360提供)
<?php class sqlsafe { private $getfilter = "'|(and|or)\\b.+?(>|<|=|in|like)|\\/\\*.+?\ ...
- 牛顿迭代法实现平方根函数sqrt
转自利用牛顿迭代法自己写平方根函数sqrt 给定一个正数a,不用库函数求其平方根. 设其平方根为x,则有x2=a,即x2-a=0.设函数f(x)= x2-a,则可得图示红色的函数曲线.在曲线上任取一点 ...
- Unity3D之Vector3.Dot和Vector3.Cross的使用
在unity3d中,Vector3.Dot表示求两个向量的点积;Vector3.Cross表示求两个向量的叉积. 点积计算的结果为数值,而叉积计算的结果为向量.两者要注意区别开来. 在几何数学中: 1 ...
- Unity3D开发之“获取IOS设备所在的国家代码"
原地址:http://dong2008hong.blog.163.com/blog/static/469688272014021025578/ 在前一段时间游戏开发中需要实现获取IOS设备所在的国家代 ...
- 关于nginx限制IP或IP段的问题2011
关于nginx限制IP或IP段的问题2011-04-08 16:46:39 分类: LINUX 最近有同事问需要在nginx中针对一些IP和IP段限制访问,通过了解以下方法可以解决问题: 首先建立 ...
- 学习笔记--Git安装 创建版本库 图文详解
一.Git下载 在Windows上安装git,一般为msysgit,官网地址:http://git-scm.com/ 我下载的是Git-1.9.2-preview20140411.exe 二.Git安 ...
- JTable指定单元格加控件
原文链接:http://blog.csdn.net/transit136/article/details/2133638 JTable可以给表格的某一列加入控件,下面方法可以实现 try{ T ...
- Java学习笔记之:Java简介
一.引言 Java是由Sun Microsystems公司于1995年5月推出的Java面向对象程序设计语言和Java平台的总称.由James Gosling和同事们共同研发,并在1995年正式推出. ...