radxa ubuntu14.04 android编译环境

笔记本上是ubuntu14.04.1 desktop,配置radxa的android开发环境:

参考官方wiki http://wiki.radxa.com/Rock/Android_Build


sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev    libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl    libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils    xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev    lib32readline-gplv2-dev gcc-multilib libswitch-perl


root@zhangbin-CW35S:/etc# sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev    libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl    libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils    xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev    lib32readline-gplv2-dev gcc-multilib libswitch-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bison is already the newest version.
build-essential is already the newest version.
curl is already the newest version.
flex is already the newest version.
g++-multilib is already the newest version.
gcc-multilib is already the newest version.
gcc-multilib set to manually installed.
gperf is already the newest version.
xsltproc is already the newest version.
zip is already the newest version.
gnupg is already the newest version.
libc6-dev is already the newest version.
libxml2 is already the newest version.
libxml2-utils is already the newest version.
The following extra packages will be installed:
  esound-common lib32ncurses5 lib32readline5 lib32tinfo-dev lib32tinfo5
  lib32z1 libasound2-dev libaudiofile-dev libaudiofile1 libavahi-client-dev
  libavahi-common-dev libcaca-dev libdbus-1-dev libesd0 libglib2.0-dev
  libglu1-mesa-dev libpcre3-dev libpcrecpp0 libpng12-dev libpulse-dev
  libsdl1.2debian libslang2-dev libtinfo-dev libwxbase2.8-0 libwxbase2.8-dev
  libwxbase3.0-0 libwxgtk2.8-0 wx-common wx2.8-headers

Suggested packages:
  ncurses-doc libasound2-doc pulseaudio-esound-compat libglib2.0-doc wx2.8-doc
  xlibmesa-glu-dev libglu-dev
The following NEW packages will be installed:
  esound-common git-core lib32ncurses5 lib32ncurses5-dev
  lib32readline-gplv2-dev lib32readline5 lib32tinfo-dev lib32tinfo5 lib32z1
  lib32z1-dev libasound2-dev libaudiofile-dev libaudiofile1
  libavahi-client-dev libavahi-common-dev libcaca-dev libdbus-1-dev libesd0
  libesd0-dev libglib2.0-dev libglu1-mesa-dev libncurses5-dev libpcre3-dev
  libpcrecpp0 libpng12-dev libpulse-dev libsdl1.2-dev libsdl1.2debian
  libslang2-dev libswitch-perl libtinfo-dev libwxbase2.8-0 libwxbase2.8-dev
  libwxbase3.0-0 libwxgtk2.8-0 libwxgtk2.8-dev lzop pngcrush schedtool
  squashfs-tools wx-common wx2.8-headers zlib1g-dev
0 upgraded, 43 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.6 MB of archives.
After this operation, 51.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y


Install ARM toolchain and building kernel related pacakges

   sudo apt-get install gcc-arm-linux-gnueabihf
   sudo apt-get install lzop libncurses5-dev
   export ARCH=arm
   export CROSS_COMPILE=arm-linux-gnueabihf-
root@zhangbin-CW35S:/etc# sudo apt-get install gcc-arm-linux-gnueabihf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  binutils-arm-linux-gnueabihf cpp-4.8-arm-linux-gnueabihf
  cpp-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf
  gcc-4.8-arm-linux-gnueabihf-base gcc-4.8-multilib-arm-linux-gnueabihf
  libasan0-armhf-cross libatomic1-armhf-cross libc6-armel-armhf-cross
  libc6-armel-cross libc6-armhf-cross libc6-dev-armel-armhf-cross
  libc6-dev-armel-cross libc6-dev-armhf-cross libgcc-4.8-dev-armhf-cross
  libgcc1-armhf-cross libgomp1-armhf-cross libsfasan0-armhf-cross
  libsfatomic1-armhf-cross libsfgcc-4.8-dev-armhf-cross libsfgcc1-armhf-cross
  libsfgomp1-armhf-cross linux-libc-dev-armel-cross linux-libc-dev-armhf-cross
Suggested packages:
  binutils-doc gcc-4.8-locales cpp-doc gcc-4.8-doc libgcc1-dbg-armhf-cross
  libgomp1-dbg-armhf-cross libitm1-dbg-armhf-cross libatomic1-dbg-armhf-cross
  libasan0-dbg-armhf-cross libtsan0-dbg-armhf-cross
  libbacktrace1-dbg-armhf-cross libquadmath-dbg-armhf-cross autoconf
  automake1.9 libtool gdb-arm-linux-gnueabihf gcc-doc


The following packages will be REMOVED:
  g++-multilib gcc-multilib

The following NEW packages will be installed:
  binutils-arm-linux-gnueabihf cpp-4.8-arm-linux-gnueabihf
  cpp-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf
  gcc-4.8-arm-linux-gnueabihf-base gcc-4.8-multilib-arm-linux-gnueabihf
  gcc-arm-linux-gnueabihf libasan0-armhf-cross libatomic1-armhf-cross
  libc6-armel-armhf-cross libc6-armel-cross libc6-armhf-cross
  libc6-dev-armel-armhf-cross libc6-dev-armel-cross libc6-dev-armhf-cross
  libgcc-4.8-dev-armhf-cross libgcc1-armhf-cross libgomp1-armhf-cross
  libsfasan0-armhf-cross libsfatomic1-armhf-cross libsfgcc-4.8-dev-armhf-cross
  libsfgcc1-armhf-cross libsfgomp1-armhf-cross linux-libc-dev-armel-cross
  linux-libc-dev-armhf-cross
0 upgraded, 25 newly installed, 2 to remove and 0 not upgraded.
Need to get 21.0 MB of archives.
After this operation, 58.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] 


sudo apt-get install lzop libncurses5-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libncurses5-dev is already the newest version.
lzop is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@zhangbin-CW35S:/etc# 





Install libraries for other tools

   sudo apt-get install libssl1.0.0 libssl-dev
root@zhangbin-CW35S:/etc# sudo apt-get install libssl1.0.0 libssl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libssl1.0.0 is already the newest version.
The following NEW packages will be installed:
  libssl-dev libssl-doc
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,032 kB of archives.
After this operation, 7,804 kB of additional disk space will be used.
Err http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libssl-dev amd64 1.0.1f-1ubuntu2.5
  Cannot initiate the connection to cn.archive.ubuntu.com:80 (2001:da8:9000::64). - connect (101: Network is unreachable)
Get:1 http://security.ubuntu.com/ubuntu/ trusty-security/main libssl-dev amd64 1.0.1f-1ubuntu2.5 [1,067 kB]
Get:2 http://security.ubuntu.com/ubuntu/ trusty-security/main libssl-doc all 1.0.1f-1ubuntu2.5 [966 kB]
Fetched 2,032 kB in 12s (166 kB/s)                                             
Selecting previously unselected package libssl-dev:amd64.
(Reading database ... 242527 files and directories currently installed.)
Preparing to unpack .../libssl-dev_1.0.1f-1ubuntu2.5_amd64.deb ...
Unpacking libssl-dev:amd64 (1.0.1f-1ubuntu2.5) ...
Selecting previously unselected package libssl-doc.
Preparing to unpack .../libssl-doc_1.0.1f-1ubuntu2.5_all.deb ...
Unpacking libssl-doc (1.0.1f-1ubuntu2.5) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up libssl-dev:amd64 (1.0.1f-1ubuntu2.5) ...
Setting up libssl-doc (1.0.1f-1ubuntu2.5) ...

root@zhangbin-CW35S:/etc# 


linux内核


root@zhangbin-CW35S:/media/zhangbin/Gallery/RR/kernel# git clone -b radxa-rock/linux https://github.com/linux-rockchip/rockchip-3.0.git
Cloning into 'rockchip-3.0'...
remote: Counting objects: 2095200, done.
remote: Compressing objects: 100% (339459/339459), done.
remote: Total 2095200 (delta 1736265), reused 2095200 (delta 1736265)
Receiving objects: 100% (2095200/2095200), 606.85 MiB | 159.00 KiB/s, done.
Resolving deltas: 100% (1736265/1736265), done.
Checking connectivity... done.
Checking out files: 100% (39428/39428), done.
root@zhangbin-CW35S:/media/zhangbin/Gallery/RR/kernel# 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

等风来不如迎风去

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值