下载:
https://buildroot.org/download.html
最新版本是 buildroot-2016.02.tar.bz2
上传的资源:https://download.csdn.net/download/damifeng/10824058
编译:
cd /home/loongson/tools/buildroot/
tar -xvf buildroot-2016.02.tar.bz2
cd buildroot-2016.02
注意:buildroot编译过程中会生成一个dl目录,用于存放联网下载所需工具,
如果网络比较慢的话下载时间比较长。所以把网盘中dl整个目录复制到解压后的buildroot-2016.02下,这样buildroot编译时就不用再下载了,
节省时间。
cp -r /mnt/dl ./
把配置文件buildroot-2016.02-glibc-gcc-4.9.x-mips32-nofpu_defconfig(这个是我自己配置好的)复制到解压后的buildroot-2016.02下,并重命名为.config
cp /mnt/buildroot-2016.02-glibc-gcc-4.9.x-mips32-nofpu_defconfig .config
make menuconfig
保存退出
make
buildroot-2016.02-glibc-gcc-4.9.x-mips32-nofpu_defconfig的配置文件选择了 MIPS (little endian),mips 32版本
Use soft-float,C库选择了glibc,gcc-4.9.x,
如果编译Linux-3.0版本的内核,需要选择gcc-4.7.x的,因为较旧的内核对新版本的gcc还没有支持
经过比较长时间的等待,buildroot编译完毕。
编译后buildroot-2016.02目录下会生成一个output目录,工具链就在该目录下
修改环境变量
export PATH=/home/loongson/tools/buildroot/buildroot-2016.02/output/host/usr/bin:$PATH
即可使用该交叉工具链来编译程序
/output/target/lib(/output/staging/)目录下存放了交叉工具链的C库等工具,可以把需要的库复制到开发板的跟文件系统的/lib目录下,某些应用可能需要这些库。
注意:主机需要安装G++,另外编译过程中可能会出现错误,比如主机缺少某些工具,按照错误提示安装工具就可以了。
以下是具体的配置说明,buildroot-2016.02的龙芯1的交叉工具链配置如下:
Target options --->
Target Architecture (MIPS (little endian)) --->
Target Binary Format (ELF) --->
Target Architecture Variant (mips 32) --->
[*] Use soft-float
Build options --->
该目录下使用默认配置即可
其中
Mirrors and Download locations --->
(http://mirrors4.ustc.edu.cn/gnu) GNU Software mirror
这里把GNU Software mirror的地址修改为国内的镜像地址,加快下载速度。
Toolchain --->
Toolchain type (Buildroot toolchain) --->
(buildroot) custom toolchain vendor name
*** Kernel Header Options ***
Kernel Headers (Linux 3.18.x kernel headers) --->
C library (glibc) --->
glibc version (2.22) --->
*** Binutils Options ***
Binutils Version (binutils 2.24) --->
() Additional binutils options
*** GCC Options ***
GCC compiler Version (gcc 4.9.x) --->
() Additional gcc options
[*] Enable C++ support
[ ] Enable Fortran support
[*] Enable compiler link-time-optimization support
[ ] Enable compiler OpenMP support
[ ] Enable graphite support
[ ] Build cross gdb for the host
[ ] Purge unwanted locales
() Generate locale data
[ ] Copy gconv libraries
() Target Optimizations
() Target linker options
[ ] Register toolchain within Eclipse Buildroot plug-in
这里选择了glibc配置如上,如果uglib的话编译对某些应用会有问题,会出现不能使用的情况,建议不要选择。
System configuration --->
(buildroot) System hostname
(Welcome to Buildroot) System banner
Passwords encoding (md5) --->
Init system (None) --->
/dev management (Dynamic using devtmpfs only) --->
(system/device_table.txt) Path to the permission tables
Root FS skeleton (default target skeleton) --->
[ ] Use symlinks to /usr for /bin, /sbin and /lib
[ ] Enable root login with password
/bin/sh (none) --->
[ ] Run a getty (login prompt) after boot ----
[ ] remount root filesystem read-write during boot
*** automatic network configuration via DHCP needs ifupdown or busybox ***
[ ] Install timezone info
() Path to the users tables
() Root filesystem overlay directories
() Custom scripts to run before creating filesystem images
() Custom scripts to run after creating filesystem images
这里不用busybox制作跟文件系统,所以Init system (None)选择None
以下选项包括子目录选项全部选择空
Kernel --->
Target packages --->
Filesystem images --->
Bootloaders --->
Host utilities --->
Legacy config options --->
buildroot的选项的详细说明可到网上搜索参考,buildroot的使用也可以到网上搜索参考。
原文链接Android逆向分析工具总结如果对文章感兴趣,可以扫一扫微信二维码关注作者的微信公众号,后续会推送更多干货文章,感谢您的支持。_android app 逆向分析工具
1. Spring与Web环境集成1.1 ApplicationContext应用上下文获取方式应用上下文对象是通过new ClasspathXmlApplicationContext(spring配置文件) 方式获取的,但是每次从容器中获得Bean时都要编写new ClasspathXmlApplicationContext(spring配置文件) ,这样的弊端是配置文件加载多次,应用上下文..._springmvc web.xml 支持注解
探讨问题的同胞们可以加QQ群:315309006 不少人对CMS很好奇,觉得CMS系统中为什么会出现各种不一样的标签,诸如<foreach *>、#if,有一些是#getArticle("page=5")、更牛逼的还有“[循环][输出标题/][/循环]”,这些具体是怎么实现...
ios微信端运行html5页面时最近常遇到长按屏幕空白区域网页变暗的情况,后续百度并未找到答案,后来经过测试我找到了解决方案,但是不确定变暗的最终原因长按网页空白区域变暗的原因之一是网页中标签没有闭合的情况第二个原因是:空白区域没有铺满整个屏幕。解决办法使整个页面分为几个块状元素并沾满屏幕即可,若某一个块状元素中并没有内容,要尝试用js或者其他办法设置宽高让他沾满屏幕中剩余部分。_微信长按一会暗一会不暗
有时候在进行布线时因为多层板原因,不能达到最优效果,需要布线后每层进行修线,很多时候都需要手工推线,只需要设置如下:保证Find栏的Cline segs(在clines中一条没有拐弯的导线)勾选即可,就可以对每段短的导线进行推挤。例如上图的左下角5条走线..._cadence设置拉线推挤
Part I: 所谓s函数是system Function的简称, 用它来写自己的simulink模块. s函数可以用matlab、C、C++、Fortran、Ada等语言来写, 这儿我只介绍怎样用matlab语言来写吧(主要是它比较简单) < xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:offic_编写s函数修正权重
通过自定义控件来实现,继承ListView,核心是:重写View的scrollTo(int, int)和scrollBy(int, int),并使用子线程(Runable)来实现弹簧效果。
pushd "%~dp0"dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txtfor /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"del hyper-v.txtDism /online /enable-f_hyper-v win11下载
目录:【C#小知识】C#中一些易混淆概念总结--------数据类型存储位置,方法调用,out和ref参数的使用【C#小知识】C#中一些易混淆概念总结(二)--------构造函数,this关键字,部分类,枚举【C#小知识】C#中一些易混淆概念总结(三)--------结构,GC回收,静态成员,静态类【C#小知识】C#中一些易混淆概念总结
面试题1:赋值运算符函数题目:如下为类型CMy|String的声明,请为该类型添加赋值运算符函数class CMyString{public: CMyString(char* pData = nullptr); CMyString(const CMyString& str); ~CMyString(void);private: char* pData;};当面试官要求应聘者定义一个赋值运算符函数时,他会检查应聘者写出的代码时关注如下几点:(1)是否把返回值的类型声_名企面试官精讲典型编程题 pdf
时隔一年多,还来重新弄弄Hadoop,因为工作当中涉及到相关的Hadoop平台及相关技术。。今天先整了Hadoop和HBase,后面找时间再将其他整合进来. 本文也是借鉴了不少帖子,主要是@davelam1991的hadoop2.6和hbase1.0单机版安装配置(http://blog.csdn.net/xanxus46/article/details/45133977),感谢@dav
1、假设你站在镜子前,抬起左手,抬起右手,看看镜中的自己。当你抬起左手时,镜中的自己抬起的似乎是右手。可是当你仰头时,镜中的自己也在仰头,而不是低头。为什么镜子中的影像似乎颠倒了左右,却没有颠倒上下?答:上下和左右的定义不同,上下是面对称的,左右是旋转对称的 (如果两只眼睛是长成一上一下就好了)2、有50家人家,每家一条狗。有一天警察通知,50条狗当中有病狗,行为和正常狗不一样。每人只能通..._程序员常见智力题