主题 : u-boot for mini210/tiny210 (2013.01.03更新) 复制链接 | 浏览器收藏 | 打印
我思故我在
级别: 侠客
UID: 11698
精华: 0
发帖: 61
金钱: 310 两
威望: 62 点
贡献值: 0 点
综合积分: 122 分
注册时间: 2009-12-18
最后登录: 2016-04-09
10楼  发表于: 2012-02-15 09:36
昨天测试发现移植的u-boot还有一些问题,所以稍后把弄好的会发给你

3d用的不是硬件opengl是软件的opengl

没有找到sgx540的xorg驱动,

用的是建立在fbdev上面的软件opengl库
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
11楼  发表于: 2012-02-15 09:43
引用第10楼jnny_cn于2012-02-15 09:36发表的  :
昨天测试发现移植的u-boot还有一些问题,所以稍后把弄好的会发给你

3d用的不是硬件opengl是软件的opengl

没有找到sgx540的xorg驱动,
.......

了解。能否把基于软件OpenGL的X + GTK移植经验分享出来?我想那也是很有价值的。谢谢!
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
我思故我在
级别: 侠客
UID: 11698
精华: 0
发帖: 61
金钱: 310 两
威望: 62 点
贡献值: 0 点
综合积分: 122 分
注册时间: 2009-12-18
最后登录: 2016-04-09
12楼  发表于: 2012-02-15 10:53
这是以前的记录,

可以供参考,

可能有错误,

请见谅

1)
下载并安装scratchbox
连接:h t t p://www.scratchbox.org/
以上网的文档里有教程也有相关下载
安装好scratchbox建立帐户并设定好新的target

2)
接下来的操作都在scratchbox中
下载以依赖下库(不都是必须,可根据需要裁减),解压到一个目录中
按照以下顺序编译:

cd zlib-1.2.5
make distclean
./configure --shared --prefix=/usr
make
make install
cd ..

cd glib-2.26.0
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd libpng-1.2.44
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd jpeg-7
make distclean
./configure --enable-shared --enable-static --prefix=/usr
make
make install
cd ..

cd tiff-3.9.4
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd expat-2.0.0
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd freetype-2.4.4
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd atk-1.32.0
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd libxml2-2.7.8
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd fontconfig-2.8.0
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd pixman-0.21.2
make distclean
./configure --disable-arm-neon --prefix=/usr

make
make install
cd ..


cd sqlite-3.7.4
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd tslib-1.0
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd links-1.00
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd openssl-1.0.0c
make distclean
./Configure --prefix=/usr --openssldir=/usr/openssl linux-armv4
make
make install
cd ..

cd Python-2.7
make distclean
./configure --prefix=/usr
make
make install
cd ..

执行 ldconfig

3)编译X11与相关依赖库
h t t p://www.x.org/releases/X11R7.6/src/
在以上网之中把除了everything目录外其他目录中的都下下来(不是都必要,但全下下来省心)并保持原目录结构不变,解压缩,这里假设相关目录督保存在X11R76这个目录下

执行:export PYTHON=/usr/bin/python2.7


1)进入util目录

进入util-macros-1.11.0目录make distclean./configure --prefix=/usrmakemake install
2)进入font目录

进入font-util-1.2.0目录

make distclean

./configure --prefix=/usr

make

make install3)进入proto目录

分别进入以下目录,执行以下命令

make distclean

./configure --prefix=/usr

make

make install

目录列表(省略版本号)

bigreqsproto
compositeproto
damageproto
dmxproto
dri2proto
fixesproto
fontsproto
glproto
inputproto
kbproto
randrproto
recordproto
renderproto
resourceproto
scrnsaverproto
videoproto
x11proto
xcmiscproto
xextproto
xf86bigfontproto
xf86dgaproto
xf86driproto
xf86vidmodeproto
xineramaproto

xcb(在xcb目录中)4)进入lib目录

分别进入以下目录,执行以下命令

make distclean

./configure --prefix=/usr

make

make install

目录列表(省略版本号)

libxtrans
libXau
libXdmcp

pthread-stubs(在xcb目录中)

libxcb(在xcb目录中)

util(在xcb目录中)
libX11
libXext
libdmx
libfontenc
libFS
libICE
libSM
libXt
libXmu
libXpm
libXaw
libXfixes
libXcomposite
libXrender
libXdamage
libXcursor
libXfont
libXft
libXi
libXinerama
libxkbfile
libXrandr
libXRes
libXScrnSaver
libXtst
libXv
libXvMC
libXxf86dga
libXxf86vm
libpciaccess5)进入data目录

进入xbitmaps-1.1.1目录

make distclean

./configure --prefix=/usr

make

make install6)进入app目录

分别进入以下目录,执行以下命令

make distclean

./configure --prefix=/usr

make

make install
目录列表(省略版本号)

bdftopcf
iceauth
luit
mkfontdir
mkfontscale
sessreg
setxkbmap
x11perf
xauth
xbacklight
xcmsdb
xcursorgen
xdpyinfo
xev
xhost
xinit
xinput
xkbcomp
xkbevd
xkbutils
xkill
xlsatoms
xmodmap
xprop
xrandr
xrdb
xrefresh
xset
xsetroot
xvinfo
xwd
xwininfo

xwud7)进入xserver目录

进入xorg-server-1.9.3目录

make distclean

./configure --disable-glx --enable-dri=no --enable-dri2=no --prefix=/usr

make

make install8)进入driver目录

分别进入以下目录,执行以下命令

make distclean

./configure --prefix=/usr

make

make install
目录列表(省略版本号)

xf86-input-evdev
xf86-input-keyboard
xf86-input-mouse
xf86-input-void
xf86-input-tslib

xf86-video-fbdev至此xorg server 编译完毕

4)编译gtk与相关依赖库
接下来的操作都在scratchbox中
下载以依赖下库(不都是必须,可根据需要裁减),解压到一个目录中
按照以下顺序编译:

ldconfig

cd cairo-1.10.0
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd pango-1.28.3
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd gtk+-2.20.1
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd libiconv-1.13.1
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd gtk-engines-2.20.1
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd libmatchbox-1.9
make distclean
./configure --prefix=/usr
make
make install
cd ..

cd matchbox-window-manager-1.2
make distclean
./configure --prefix=/usr
make
make install
cd ..

ldconfig

至此gtk+编译完成


以上编译选项可在armv5,armv6下运行

另外如果是编译armv4架构的要在所有的编译选项处加上-march=armv4t

另外如果是编译armv7架构的要在所有的编译选项处加上-mthumb -march=armv7-a

之后可以烧写到开发板上,或是nfs启动,运行gtk-demo就可以看到了

如下图:



  
[ 此帖被jnny_cn在2012-02-15 11:06重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
13楼  发表于: 2012-02-15 11:16

 回 12楼(jnny_cn) 的帖子

非常感谢,我会把这个整理一下了重新发到论坛上。
另外,我觉得如果你可以在google code上建立一个这样的项目作为经验的积累会更好。这是以前一个国外的开发者为mini2440做的项目,你可以参考。
http://code.google.com/p/mini2440/
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 59092
精华: 0
发帖: 17
金钱: 85 两
威望: 17 点
贡献值: 0 点
综合积分: 34 分
注册时间: 2011-11-18
最后登录: 2012-08-16
14楼  发表于: 2012-02-25 12:42
LZ,请问为什么这个uboot只能在SD卡上运行?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
15楼  发表于: 2012-02-25 15:01

 回 14楼(cockliujun) 的帖子

因为我只测试过这个U-Boot的从SD启动部分,不确定它能否从NAND启动:)
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 64664
精华: 0
发帖: 32
金钱: 165 两
威望: 33 点
贡献值: 0 点
综合积分: 64 分
注册时间: 2012-03-08
最后登录: 2012-08-28
16楼  发表于: 2012-03-08 17:08
顶啊  我的210快到了,激动啊
级别: 新手上路
UID: 64664
精华: 0
发帖: 32
金钱: 165 两
威望: 33 点
贡献值: 0 点
综合积分: 64 分
注册时间: 2012-03-08
最后登录: 2012-08-28
17楼  发表于: 2012-03-18 00:14
一起研究下 呼呼
级别: 骑士
UID: 61140
精华: 1
发帖: 213
金钱: 1125 两
威望: 225 点
贡献值: 1 点
综合积分: 446 分
注册时间: 2011-12-23
最后登录: 2016-11-20
18楼  发表于: 2012-03-18 21:45

 回 7楼(jnny_cn) 的帖子

uboot能够正常运行,但是不能引导tiny210给的linux镜像, 打印玩解压就没了。。。请问你是怎么解决的,让linux运行起来的?
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
事情总会有解决的一天
级别: 侠客
UID: 52917
精华: 0
发帖: 117
金钱: 585 两
威望: 117 点
贡献值: 0 点
综合积分: 234 分
注册时间: 2011-07-28
最后登录: 2015-08-27
19楼  发表于: 2012-03-20 10:16
LZ:你的u-boot源码里面没有那两个配置文件吧?