“Configuring ubuntu”的版本间的差异

来自百问网嵌入式Linux wiki
第1行: 第1行:
 
=ubuntu16.04安装=
 
=ubuntu16.04安装=
 +
==linux kernel环境配置==
 +
*基本依赖
 +
<syntaxhighlight lang="Bash" >
 +
sudo apt-get install gcc make git vim python net-tools openssh-server \
 +
  python-dev build-essential subversion \
 +
libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext  \
 +
  gfortran libssl-dev libpcre3-dev xlibmesa-glu-dev libglew1.5-dev \
 +
  libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev \
 +
  libavahi-compat-libdnssd-dev libldap2-dev  libxml2-dev \
 +
  libkrb5-dev libgsl0-dev  u-boot-tools -y
 +
</syntaxhighlight
 
==ubuntu16.04-android环境配置==
 
==ubuntu16.04-android环境配置==
  

2019年8月1日 (四) 14:30的版本

ubuntu16.04安装

linux kernel环境配置

  • 基本依赖
sudo apt-get install gcc make git vim python net-tools openssh-server \
  python-dev build-essential subversion \
 libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext  \
  gfortran libssl-dev libpcre3-dev xlibmesa-glu-dev libglew1.5-dev \
  libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev \
  libavahi-compat-libdnssd-dev libldap2-dev  libxml2-dev \
  libkrb5-dev libgsl0-dev  u-boot-tools -y 
</syntaxhighlight 
==ubuntu16.04-android环境配置==

===编译android 5.1===
*安装java-jdk-1.7
<syntaxhighlight lang="Bash" >
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jdk
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
sudo java -version
  • 安装编译android 5.1依赖环境
sudo apt-get install -y git flex bison gperf build-essential libncurses5-dev:i386 libc6-dev-i386 \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev g++-multilib \
tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 \
dpkg-dev libsdl1.2-dev libesd0-dev \
git-core gnupg flex bison gperf build-essential  \
zip curl zlib1g-dev gcc-multilib g++-multilib \
lib32ncurses5-dev x11proto-core-dev libx11-dev \
lib32z-dev ccache  squashfs-tools libncurses5-dev  pngcrush schedtool libxml2\
libgl1-mesa-dev  unzip m4 lzop libc6-dev  lib32z1-dev \
libswitch-perl libssl1.0.0 libssl-dev

ubuntu18.04安装

sudo apt install net-tools openssh-server  nfs-kernel-server portmap  \
build-essential \
bison flex \
vim \
dos2unix device-tree-compiler libncurses5-dev libncursesw5-dev autoconf automake gcc-multilib \
gcc make git python  sed binutils build-essential gcc  g++  bash patch gzip bzip2 perl tar cpio python  unzip rsync file  bc wget \

ubuntu18.04-android环境配置

编译android 7.1

  • 安装java-jdk-1.8
sudo apt-get install openjdk-8-jdk openjdk-8-jre
sudo java -version
  • 安装编译android 7.1依赖环境
sudo apt-get install m4  g++-multilib gcc-multilib \
lib32ncurses5-dev  lib32readline6-dev lib32z1-dev flex curl bison

编译android 8.1

  • 安装java-jdk-1.8
sudo apt-get install openjdk-8-jdk openjdk-8-jre
sudo java -version
  • 安装编译android 7.1依赖环境
sudo apt-get install libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev g++-multilib \
 git flex bison gperf build-essential libncurses5-dev:i386 \
 dpkg-dev libsdl1.2-dev libesd0-dev \
 git-core gnupg flex bison gperf build-essential \
 zip curl zlib1g-dev gcc-multilib g++-multilib \
 libc6-dev-i386  lib32ncurses5-dev x11proto-core-dev libx11-dev \
 libgl1-mesa-dev libxml2-utils xsltproc unzip m4 \
 lib32z1-dev ccache make  tofrodos \
 python-markdown libxml2-utils xsltproc zlib1g-dev:i386 -y


ftp配置

sudo apt install vsftpd  并修改  #write_enable=YES 为 write_enable=YES

编译 tiimage.c , 把tiimage放到/usr/bin 编译 rkimage.c, 把rkimage放到/usr/bin

环境配置

基本依赖安装

通过samba传输文件

通过sftp协议传输文件

使用vmware共享windows磁盘