参考的文件:
1.CHN-HIS5889-Release Notes.pdf步骤:
-1.在安装依赖之前,界面方式会找不到loongsen_232的选项,没关系,依赖安装好就OK了。
0.安装依赖,见CHN-HIS5889-Release Notes.pdf,(依赖都打包放在43服务器上)1.安装workbench(六张wrlinux,一张workbench)
2.在~下建立新的目录,执行下列命令进行configure
/home/liyang/WindRiver/wrlinux-3.0/wrlinux/../ldat/configure --with-product-dir=/home/liyang/WindRiver/wrlinux-3.0/wrlinux --enable-board=loongsen_ls232 --enable-rootfs=glibc_small --enable-kernel=standard --enable-build=production --with-layer=/home/liyang/wrll-loongsen_ls232-hard,/home/liyang/wrll-toolchain_ls232-uncache --with-template=feature/analysis --enable-jobs=4
其中layer和toolchain都要用金童给的版本,否则configure的时候, /host-cross/toolchain/x86-linux2/bin下到交叉编译工具链可能不是你指定的,configure完要去检查。
3.make build-all 进行源码编译(make all会直接将rpm解压进去)
遇到问题
-1./bin/sh must be GNU Bash.-->解决方法:
sudo update-alternatives --install /bin/sh sh /bin/dash 1
sudo update-alternatives --install /bin/sh sh /bin/bash 1
sudo update-alternatives --config sh
选择0即可。
0.ubuntu 12.04下,编译libpsedu..内联函数的问题,原因是gcc版本太高了,降低到gcc-4.4 g++-4.4就好了。具体见http://blog.youkuaiyun.com/sdustliyang/article/details/9246451
1.找不到compile_et ,--->apt-get install comerr-dev
2.找不到mk_cmds , ---->apt-get install ss-dev
3.找不到tex, ---->apt-get install texlive
4.找不到gettex ----> apt-get install gettext
5.编译时找不到zlib.h -->源码安装zlib-1.2.3.tar.gz
6.1000多个汇编mips1错误,-->AS会变起到flag不对,修改host-cross/mips-wrs-linux-gnu/x86-linux2/mips-wrs-linux-gnu-mipsel-glibc_small-wrapper.sh
TARGET_FUNDAMENTAL_ASFLAGS='-EL -mabi=32 -march=loongson232'
TARGET_FUNDAMENTAL_CFLAGS=' -mel -mhard-float -march=loongson232'
(新的layer应该不会有这个问题)
7.Loks 缺少osal/osal.h 、sys_define.h等一些头文件
将HiviewDtvDriver Loks下的inc 拷贝到host-cross/mips-wrs-linux-gnu/sysroot/sdk/下,sdk需要自己创建。
8.找不到libtool---> apt-get install libtool(但是在ubuntu12.04下用apt装的话,会提示libtool版本太高,需要装libtool-2.2.6b,从网上下载源码,安装后,又提示找不到libtool,后来发现,如果在configure时不加--prefix 选项时,默认装在/usr/local下,而layer需要libtool装在/usr下,所以configure的时候加上--prefix=/usr选项,然后make,sudo make install即可)
9.编译时出现/bin/cp : "..../gdbserver*" :No such file or directory.
解决办法:去掉layer根目录下的pkglist 文件中的gdbserver ,也就是把gdbserver干掉,不让它编译。
ok!!!