Ubuntu16.04下搭建开发环境及编译tiny4412 Android系统【转】
本文转载自:http://blog.csdn.net/songze_lee/article/details/72808631
版权声明:本文为博主原创文章,未经博主允许不得转载。
1.安装ssh服务器(可通过网络远程登录系统,如putty、xshell)
sudo apt-get install openssh-server
2.安装ftp服务器(默认已安装) windows 可使用leapFTP工具登录
sudo apt-get install vsftpd
需配置ftp服务(修改/etc/vsftpd.conf)
去掉前面#
#local_enable=YES(表示是否允许本地登录)
#write_enable=YES(表示允许上传文件)
重启ftp服务器
sudo /etc/init.d/vsftpd restart
3.安装nfs服务器(默认已安装)
sudo apt-get install nfs-kernel-server
配置nfs服务器(修改/etc/exports)增加以下内容
/share *(rw,sync,no_root_squash,no_subtree_check)
重启nfs服务
sudo /etc/init.d/nfs-kernel-server restart
4.ubuntu下的Samba配置
使每个用户可以用自己的用户名和密码登录自己的home目录
1).先要安装Samba
sudo apt-getinstall samba openssh-server
2).编译Samba配置文件
sudo vi/etc/samba/smb.conf
找到[homes]项,此项默认是注释掉的,取消其注释,然后修改其具体内容,修改成如下:
[homes]
comment = Home Directories
browseable = yes
# By default, the home directories are exportedread-only. Change the
# next parameter to 'no' if you want to be able to writeto them.
read only = no
# File creation mask is set to 0700 for securityreasons. If you want to
# create files with group=rw permissions, set nextparameter to 0775.
create mask = 0755 #建议将权限修改成0755,这样其它用户只是不能修改
# Directory creation mask is set to 0700 for securityreasons. If you want to
# create dirs. with group=rw permissions, set nextparameter to 0775.
directory mask = 0755
# By default, \serverusername shares can be connected toby anyone
# with access to the samba server. Un-comment thefollowing parameter
# to make sure that only "username" canconnect to \serverusername
# The following parameter makes sure that only"username" can connect
#
# This might need tweaking when using externalauthentication schemes
valid users = %S #本行需要取消注释
如上修改完成后wq保存退出!
3). 重启samba服务:
sudo/etc/init.d/samba restart
4). 增加一个现有用户的对应samba帐号:
如我已经有一个用户叫lisongze,现在给lisongze开通samba帐号:
sudo smbpasswd-a lisongze (非常重要)
根据提示输入两次密码即可。
5).现在可以测试了,在Window下输入samba地址尝试登录:
\\192.168.3.8\lisongze
6).此时windows应该会弹出窗口要求输入用户名和密码,输入正确可看到/home/lisongze下文件
5.安装arm-Linux-gcc交叉工具链
sudo tar xzf arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz -C/
配置环境变量
sudo vim/etc/environment
在PATH中增加:/opt/FriendlyARM/toolschain/4.5.1/bin/
执行soure生效
source/etv/environment
解决bash: /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc: 没有那个文件或目录
sudo apt-getinstall lsb-core
arm-liux-gcc -v 显示版本就ok了
6.安装 Java 开发环境
sudo apt-get install openjdk-7-jre 或者sudo apt-get install openjdk-7-jdk
Ubuntu16.04的安装源已经默认没有openjdk7了,所以要自己手动添加仓库,如下:
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jdk
7.编译Android源码的依赖配置
sudo apt-get install Git-core gnupg flexbison gperf build-essential\
zip curl zlib1g-dev gcc-multilib g++-multiliblibc6-dev-i386 \
lib32ncurses5-dev x11proto-core-devlibx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzipm4
8.编译 tiny4412 android 系统
1) . setenv
2) lunch
3) make –j8
4) 生成映象文件
./gen-img.sh
注意:如果提示如下错误,要先编译 u-boot 以得到 mkimage 工具。
./gen-img.sh: line31: mkimage: command not found
编译 u-boot 以得到 mkimage 工具的方法:
tar -xzf uboot_tiny4412-20130729.tgz
cd uboot_tiny4412/
make tiny4412_config
make
sudo cptools/mkimage /usr/bin/
编译过程中错误及解决
1. out/host/linux-x86/bin/acp:error whileloading share libraries:libsrdc++.so.6:cannot open shared object file:No suchfile or directory
缺少libstdc++.so.6
sudo apt-get installlib32stdc++6
2. /bin/bash: gperf: 未找到命令
sudo apt-get install gperf
3. /bin/bash: xmllint: 未找到命令
sudo apt-get install libxml2-utils
4. build/core/host_shared_library_internal.mk:44: recipe fortarget 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
cp /usr/bin/ld.goldprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld
5.编译成功
Ubuntu16.04下搭建开发环境及编译tiny4412 Android系统【转】的更多相关文章
- 联盛德 HLK-W806 (一): Ubuntu20.04下的开发环境配置, 编译和烧录说明
目录 联盛德 HLK-W806 (一): Ubuntu20.04下的开发环境配置, 编译和烧录说明 联盛德 HLK-W806 (二): Win10下的开发环境配置, 编译和烧录说明 联盛德 HLK-W ...
- Ubuntu16.04下搭建LAMP环境
前期准备sudo apt-get update # 获取最新资源包sudo apt-get upgrade # 本机软件全部更新sudo apt-get d ...
- ubuntu16.04下 搭建 lnmp 环境
apt-get install nginx apt-get php7.-mysql apt-get install mysql 编辑nginx配置文件 vim /etc/nginx/sites-ena ...
- Learning ROS: Ubuntu16.04下kinetic开发环境安装和初体验 Install + Configure + Navigating(look around) + Creating a Package(catkin_create_pkg) + Building a Package(catkin_make) + Understanding Nodes
本文主要部分来源于ROS官网的Tutorials. Ubuntu install of ROS Kinetic # Setup your sources.list sudo sh -c 'echo & ...
- 联盛德 HLK-W806 (二): Win10下的开发环境配置, 编译和烧录说明
目录 联盛德 HLK-W806 (一): Ubuntu20.04下的开发环境配置, 编译和烧录说明 联盛德 HLK-W806 (二): Win10下的开发环境配置, 编译和烧录说明 联盛德 HLK-W ...
- Ubuntu 14.04下java开发环境的搭建--3--Tomcat及MySQL的安装
前面两篇文章,已经说明了JDK和Eclipse 的安装方法,下面简单说一下,Tomcat及MySQL的安装方法. Tomcat的安装. 在合适的地方解压apache-tomcat-6.0.39.tar ...
- 阿里云学生服务器搭建网站-Ubuntu16.04安装php开发环境
阿里云学生服务器搭建网站(2)-Ubuntu16.04安装php开发环境 优秀博文:https://www.linuxidc.com/Linux/2016-10/136327.htm https:/ ...
- Ubuntu18.04下搭建LAMP环境
一.Apache2 web 服务器的安装 : 可以先更新一下服务器 1.sudo apt-get update # 获取最新资源包 2.sudo apt-get upgrade ...
- ubuntu16.04下笔记本自带摄像头编译运行PTAM
ubuntu16.04下笔记本自带摄像头编译运行PTAM 转载请注明链接:https://i.cnblogs.com/EditPosts.aspx?postid=9014147 个人邮箱:feifan ...
随机推荐
- CSU 2018年12月月赛 F(2218): Finding prime numbers
Description xrdog has a number set. There are 95 numbers in this set. They all have something in com ...
- MyBatis 返回Map<String,Object>类型
<!-- 导出所有数据 --> <select id="exportAll" resultMap="map"> SELECT t1.ME ...
- 集训第六周 数学概念与方法 J题 数论,质因数分解
Description Tomorrow is contest day, Are you all ready? We have been training for 45 days, and all g ...
- cookie、localStorage和sessionStorage三者的异同
1.三者都是用来存储浏览器数据的 2.生命周期:cookie可以设置数据失效时间,默认是关闭浏览器后失效:localStorage中的数据是永久保存的,除非手动清除:sessionStorage的数据 ...
- 易维信(EVTrust)支招五大技巧识别钓鱼网站
网上购物和网上银行凭借其便捷性和通达性,在互联网上日渐流行.在互联网上,你可以随时进行转账汇款或进行交易.据艾瑞咨询发布<2008-2009年中国网上支付行业发展报告>显示:中国互联网支付 ...
- Git和SVN共存的方法
刚工作的时候都是用的cvs和svn,对git不熟悉,随着工作的需要,打分支和版本管理的需要,熟悉起来了git,这一用不可收拾,比svn远远好用,尤其是版本分支管理上,切换分支的方便性,现在这家公司还是 ...
- BNUOJ 7697 Information Disturbing
Information Disturbing Time Limit: 3000ms Memory Limit: 65536KB This problem will be judged on HDU. ...
- Javascript类型转换的规则全面&附有实例
Javascript的变量是松散类型的,它可以存储Javascript支持的任何数据类型,其变量的类型可以在运行时被动态改变.请看示例: 1 2 3 var n = 10; n = "hel ...
- <<编程之美>> -- 队列中取最大值操作的问题
不得不说编程之美是一本好书,虽然很多题目在做acm中的过程中遇到过,不过还是有很多值得思考的地方 这是今天在编程之美上看到的一个问题,对于栈转化成队列的一个思考 平时都太过依赖c++内函数库中的栈和队 ...
- fastcgi与cgi的区别[转载]
cgi 在2000年或更早的时候用得比较多, 以前web服务器一般只处理静态的请求,如果碰到一个动态请求怎么办呢?web服务器会根据这次请求的内容,然后会fork一个新进程来运行外部c程序 (或per ...