最近在作ltp测试,感觉手头资料太少,网上搜索一把,说过去说过来就那些个链接,没有比较深入的,不得不自己从头看看代码,测试案例太多了,也难怪IBM要用一个小组,专门研究它。
在最开始盆到的问题修改top命令安装,按照top 中 Makefile,把它搞定后,又没有screen, 没法自己交叉编译了,
步骤如下:
screen 作用(http://blog.cfan.com.cn/html/07/229207-127146.html):
只需一个 Shell,在 Screen 的神奇作用下,“道生一,一生二,二生三,三生万物”,想要多少个 Shell 都可以
只需输入 screen -d -r 即可
以下总结一些常用的 Screen 操作快捷键,供大家参考:
* ctrl-a c:创建一个新的 Shell
* ctrl-a ctrl-a:在 Shell 间切换
* ctrl-a n:切换到下一个 Shell
* ctrl-a p:切换到上一个 Shell
* ctrl-a 0…9:同样是切换各个 Shell
* ctrl-a d:退出 Screen 会话
screen 命令交叉编译步骤:
1.先查看screen 属于那个包
#which screen //路径,如/usr/bin/screen
#dpkg -S /usr/bin/screen 或者 #apt-file search /usr/bin/screen //查看screen 属于那个包
#apt-get -d source screen //获取源码包
解压,打补丁
2.解压后 ./configure --prefix=/usr/local --host=mipsel-linux --build=i686-linux
prefix:安装路径
host:在mipsel环境下运行,指定软件运行的系统平台.如果没有指定,将会运行`config.guess'来检测
--host=arm-linux 这就是arm的交叉编译选项, --host=mipsel-linux 这个就是mipsel的交叉编译选项
build:在i686-linux环境下编译,指定软件包安装的系统平台.如果没有指定,默认值将是'--host'选项的值
--build=i686-linux
3.make
4.make DESTDIR=/nfsroot/8401 install //安装在/nfsroot/8401/usr/local 下
后来运行时又出现,screen差包libelf-0.131.so
动态库交叉编译,
libelf-0.131.so 这个库
1. dpkg -S libelf-0.131.so 或者 apt-file search libelf-0.131.so , 属于elfutils这个包
2.apt-get -d source elfutils //获得源码包
3.解压,打补丁
4. ./configure --prefix=/lib --host=mipsel-linux --build=i686-linux
5.make
6. make DESTDIR=/nfsroot/clxfsnew2008 intall //安装在/nfsroot/clxfsnew2008/lib下
7.将/nfsroot/clxfsnew2008/lib 下 include 和 lib 包拷贝到/opt/mipseltools-clx-26/mipsel-linux/下
方便以后使用该动态库文件
cp -a /nfsroot/clxfsnew2008/lib/include/* /opt/mipseltools-clx-26/mipsel-linux/include
cp -a /nfsroot/clxfsnew2008/lib/lib/* /opt/mipseltools-clx-26/mipsel-linux/lib
再在板子上跑起来后又差包libelf.so.0 ,不知道网上有没有现成的包,不然又要交叉编译去了
还不晓得接下来又有啥子问题…………
在最开始盆到的问题修改top命令安装,按照top 中 Makefile,把它搞定后,又没有screen, 没法自己交叉编译了,
步骤如下:
screen 作用(http://blog.cfan.com.cn/html/07/229207-127146.html):
只需一个 Shell,在 Screen 的神奇作用下,“道生一,一生二,二生三,三生万物”,想要多少个 Shell 都可以
只需输入 screen -d -r 即可
以下总结一些常用的 Screen 操作快捷键,供大家参考:
* ctrl-a c:创建一个新的 Shell
* ctrl-a ctrl-a:在 Shell 间切换
* ctrl-a n:切换到下一个 Shell
* ctrl-a p:切换到上一个 Shell
* ctrl-a 0…9:同样是切换各个 Shell
* ctrl-a d:退出 Screen 会话
screen 命令交叉编译步骤:
1.先查看screen 属于那个包
#which screen //路径,如/usr/bin/screen
#dpkg -S /usr/bin/screen 或者 #apt-file search /usr/bin/screen //查看screen 属于那个包
#apt-get -d source screen //获取源码包
解压,打补丁
2.解压后 ./configure --prefix=/usr/local --host=mipsel-linux --build=i686-linux
prefix:安装路径
host:在mipsel环境下运行,指定软件运行的系统平台.如果没有指定,将会运行`config.guess'来检测
--host=arm-linux 这就是arm的交叉编译选项, --host=mipsel-linux 这个就是mipsel的交叉编译选项
build:在i686-linux环境下编译,指定软件包安装的系统平台.如果没有指定,默认值将是'--host'选项的值
--build=i686-linux
3.make
4.make DESTDIR=/nfsroot/8401 install //安装在/nfsroot/8401/usr/local 下
后来运行时又出现,screen差包libelf-0.131.so
动态库交叉编译,
libelf-0.131.so 这个库
1. dpkg -S libelf-0.131.so 或者 apt-file search libelf-0.131.so , 属于elfutils这个包
2.apt-get -d source elfutils //获得源码包
3.解压,打补丁
4. ./configure --prefix=/lib --host=mipsel-linux --build=i686-linux
5.make
6. make DESTDIR=/nfsroot/clxfsnew2008 intall //安装在/nfsroot/clxfsnew2008/lib下
7.将/nfsroot/clxfsnew2008/lib 下 include 和 lib 包拷贝到/opt/mipseltools-clx-26/mipsel-linux/下
方便以后使用该动态库文件
cp -a /nfsroot/clxfsnew2008/lib/include/* /opt/mipseltools-clx-26/mipsel-linux/include
cp -a /nfsroot/clxfsnew2008/lib/lib/* /opt/mipseltools-clx-26/mipsel-linux/lib
再在板子上跑起来后又差包libelf.so.0 ,不知道网上有没有现成的包,不然又要交叉编译去了
还不晓得接下来又有啥子问题…………