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 ...
随机推荐
- 初识 Bootstrap
Bootstrap 概述 Bootstrap 是一个前端框架,使用它可以快速开发响应式页面,还能专门针对 PC 端或移动端快速开发,大大提高了开发效率. Bootstrap 是最受欢迎的 HTML.C ...
- 零基础入门学习Python(11)--列表:一个打了激素的数组(2)
前言 上节课我们介绍一个打了激素的数组,叫做列表.列表我们比作一个大仓库,你所能够具现化的东西,都可以往里面扔,它包罗万象.另外还介绍了三个往列表添加元素的方法,分别是: append(),exten ...
- Codeforces Beta Round #19D(Points)线段树
D. Points time limit per test 2 seconds memory limit per test 256 megabytes input standard input out ...
- 读书笔记:《人有人的用处》------N.维纳. (2016.12.28)
读书笔记:<人有人的用处>------N.维纳 ·某些系统可以依其总能量而和其他系统区别开来. ·在某些情况下,一个系统如果保持足够长时间的运转,那它就会遍历一切与其能量相容的位置和动量的 ...
- GPIO——端口位设置/清除寄存器BSRR,端口位清除寄存器BRR
端口位设置/复位寄存器BSRR: 注:如果同时设置了BSy和BRy的对应位,BSy位起作用. 位31:16 BRy: 清除端口x的位y (y = 0…15) 这些位只能写入并只能以字(16 ...
- 三菱PLC FB库函数调用方法 (Gx Work2版本)
本文以 GxWorks2 软件为例 1.新建使用标签项目的工程文件 2.从其它库所在工程项目中导入库 3.选择库文件及FB功能块 4.插入FB功能块调用
- CodeForces 221D Little Elephant and Array
Little Elephant and Array Time Limit: 4000ms Memory Limit: 262144KB This problem will be judged on C ...
- BNU2017校赛
A(模拟) 题意:求一个特殊图的最大流 分析:画画图发现就是for循环扫一遍 B(LCA) 题意:有n个点组成的树,有q个询问,每个询问(A,B,C),学生从B点走最短路径走到C点,再从C点走到根节点 ...
- Ubuntu 16.04安装网络流量监控工具Netspeed(附带10款最佳的指示器工具)
安装: sudo add-apt-repository ppa:ferramroberto/linuxfreedomlucid sudo apt-get update sudo apt-get ins ...
- RabbitMQ环境搭建教程收集(待实践)
先收集,后续再实践. http://blog.csdn.net/zyz511919766/article/details/41896823 http://blog.chinaunix.net/uid- ...