为Cubieboard2构建自己的的Debian Linux的步骤(1)(分色排版)安装必要的软件

时间:2021-08-22 18:17:51

 

Cubieboard2构建自己的的Debian Linux的步骤(1)

 

soloforce汇编整理

2013年12月28 日

 

大文实验室/大文哥

壹捌陆捌零陆捌捌陆捌贰

wb4916 AT qq.com

完成时间:2017/6/7 11:45

 

摘要

 

本文在x86-64的Ubuntu14.04Linux上为Cubieboard2:包括A10-Cubieboard、A20-Cubieboard2以及最新的A20-Cubieboard3(即 Cubietruck)构建一个基于armhf的Debian Linux,包括 SPL、U-BOOT、内核(Kernel)、根系统(ROOTFS)。授人以渔是就是授人以*——本文合适的阅读者是喜欢操刀折腾系统的爱好者或者相关从业者,如果您仅仅想体验一下 Cubieboard 系列产品或是直接利用Cubietech团队及社区的成果,那么您可以选择安装官方发布版或社区发布版。Cubieboard 是一套出色的开源硬件平台方案,而得益于开源社区的群策群力、协和共荣,Cubieboard 软件系统也可以通过自己下载现成的软件或代码配置、编译起来,最终形成一个可用的嵌入式Linux 系统。

 

关键字:嵌入式、Cubieboard、构建、Debian Linux

 

 

目录

 

1 环境准备                                                                    3

    1.1 下载必须的工具软件 . . . . . . . . . . . . . . . . . . . . . . .      3

    1.2 下载源码 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  3

    1.3 下载并配置Debian 基础系统 . . . . . . . . . . . . . . . . . . . .     4

 

2 编译组件                                                                    5

    2.1 编译U-BOOT . . . . . . . . . . . . . . . . . . . . . . . . . .        5

    2.2 编译sunxi-tools . . . . . . . . . . . . . . . . . . . . .  . . .      5

    2.3 配置、编译内核 . . . . . . . . . . . . . . . . . . . . . . . .        5

        2.3.1 拷贝预设内核配置文件 . . . . . . . . . . . . . . . . . . . .    5

        2.3.2 配置内核 . . . . . . . . . . . . . . . . . . . . . . . . . .    6

        2.3.3 编译内核 . . . . . . . . . . . . . . . . . . . . . . .. . . .  11

        2.3.4 发掘更多的可用内存 . . . . . . . . . . . . . . . . . . . .  .  11

 

3 建立 ROOTFS                                                                12

    3.1 重要步骤 . . . . . . . . . . . . . . . . . . . . . . . . . .. . . .  12

    3.2 可选步骤 . . . . . . . . . . . . . . . . . . . . . . . . . .  . . .  12

    3.3 生成内核启动参数文件 . . . . . . . . . . . . . . . . . . . . . . ..  13

    3.4 生成 Script.bin . . . . . . . . . . . . . . . . . . . . . . . . . .  14

        3.4.1 配置GPIO[可选]  . . . . . . . . . . . . . . . . . . . . . . .  14

        3.4.2 配置 SPI[可选,仅适用于Cubieboard1] . . . . . . . . . . . . .  15

        3.4.3 生成script.bin . . . . . . . . . . . . . . . . . . .. . . . .  16

    3.5 设置网络 . . . . . . . . . . . . . . . . . . . . . . . . . .. . . .  17

 

4 安装到TF 卡                                                                18

    4.1 安装u-boot . . . . . . . . . . . . . . . . . . . . . . . . .. .. ..  18

    4.2 介质分区 . . . . . . . . . . . . . . . . . . . . . . . . . .. . . .  18

        4.2.1 单一分区方案 . . . . . . . . . . . . . . . . . . . . . .. . .  18

        4.2.2 两个分区以上的方案 . . . . . . . . . . . . . . . . . . . .  .  18

 

5 Cubietruck 相关                                                            20

    5.1 关于WIFI . . . . . . . . . . . . . . . . . . . . . . . . . .  . . .  20

 

6 安装到NAND[可选,仅适用于 Cubieboard1]                                     21

 

7 创建系统映像 [可选]                                                        23

 

8 接下来做什么                                                               25

    8.1 设置时区和日期 . . . . . . . . . . . . . . . . . . . . . . . . .  .  25

    8.2 安装其他软件. . . . . . . . . . . . . . . . . . . . . . . . . . . .  26

 

 

 

 

1 环境准备

 

本文在一台运行着Uubuntu64 14.04上开始构建目标系统;若非特别说明,下文的构建方法以Cubieboard2为主,同样适用于Cubieboard1、以及Cubieboard3。您必须明确自己使用的板子类型,并选择相对应的构建方法。为了最大限度地节约时间,我们先把必须下载的东西下载好,然后再进一步阐释;要下载的内容分为三部分,这三部分彼此不干扰,所以可以同时进行。我们用root用户在指定的目录下进行所有操作:

 

我设定如下:

• 工作目录为$WORK_DIR = /home/rootroot/cubieboard2/

• 目标系统rootfs目录为$ROOTFS_DIR = ${WORK_DIR}/chroot-armhf

/home/rootroot/cubieboard2/chroot-armhf

 

此外,本文用阴影区域代表命令或文件内容;因为页幅限制,有的行末尾有"\" 折行符,表示该行尚未结束,在下一行继续——所以折行符不算是命令或文件内容的一部分。此外,本文中用到的命令或代码、脚本片段虽然用拷贝、粘贴的方式更省事,但切记一些关键的文字不能照搬照抄,比如设备名,如''/dev/sdc'' 之类的,请务必根据实际情况做修改,以免造成不可回复的损失。

 

 

1.1 下载必须的工具软件

 

sudo apt-get install build-essential

sudo apt-get install libncurses5-dev

sudo apt-get install u-boot-tools

sudo apt-get install qemu-user-static

sudo apt-get install debootstrap

sudo apt-get install git

sudo apt-get install binfmt-support

sudo apt-get install libusb-1.0-0-dev

sudo apt-get install pkg-config

sudo apt-get install gcc-arm-linux-gnueabihf

 

 

 

 

(ubuntu14.04 64位上面已经预先安装了编译全志R16的编译android4/6的编译环境:)

[BEGIN] 2017/6/5 11:00:27

rootroot@cm-System-Product-Name:~$ sudo apt-get install build-essential

[sudo] password for rootroot:

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

将会安装下列额外的软件包:

  dpkg-dev

建议安装的软件包:

  debian-keyring

下列【新】软件包将被安装:

  build-essential dpkg-dev

升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 735 个软件包未被升级。

需要下载 731 kB 的软件包。

解压缩后会消耗掉 1,712 kB 的额外空间。

您希望继续执行吗? [Y/n] y

获取:1 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main dpkg-dev all 1.17.5ubuntu5.7 [726 kB]

获取:2 http://cn.archive.ubuntu.com/ubuntu/ trusty/main build-essential amd64 11.6ubuntu6 [4,838 B]

下载 731 kB,耗时 0秒 (1,149 kB/s)          

Selecting previously unselected package dpkg-dev.

(正在读取数据库 ... 系统当前共安装有 217801 个文件和目录。)

Preparing to unpack .../dpkg-dev_1.17.5ubuntu5.7_all.deb ...

Unpacking dpkg-dev (1.17.5ubuntu5.7) ...

Selecting previously unselected package build-essential.

Preparing to unpack .../build-essential_11.6ubuntu6_amd64.deb ...

Unpacking build-essential (11.6ubuntu6) ...

Processing triggers for man-db (2.6.7.1-1) ...

正在设置 dpkg-dev (1.17.5ubuntu5.7) ...

正在设置 build-essential (11.6ubuntu6) ...

rootroot@cm-System-Product-Name:~$ gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.3' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu

Thread model: posix

gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

rootroot@cm-System-Product-Name:~$ g++ -v

Using built-in specs.

COLLECT_GCC=g++

COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.3' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu

Thread model: posix

gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo apt-get install libncurses5-dev

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

libncurses5-dev 已经是最新的版本了。

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 735 个软件包未被升级。

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo apt-get install u-boot-tools

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

u-boot-tools 已经是最新的版本了。

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 735 个软件包未被升级。

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo apt-get install qemu-user-static

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

qemu-user-static 已经是最新的版本了。

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 735 个软件包未被升级。

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo apt-get install debootstrap

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

下列【新】软件包将被安装:

  debootstrap

升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 735 个软件包未被升级。

需要下载 29.7 kB 的软件包。

解压缩后会消耗掉 233 kB 的额外空间。

错误 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main debootstrap all 1.0.59ubuntu0.6

  404  Not Found [IP: 112.124.140.210 80]

E: 无法下载 http://cn.archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.59ubuntu0.6_all.deb  404  Not Found [IP: 112.124.140.210 80]

 

E: 有几个软件包无法下载,您可以运行 apt-get update 或者加上 --fix-missing 的选项再试试?

rootroot@cm-System-Product-Name:~$ sudo apt-get update

忽略 http://cn.archive.ubuntu.com trusty InRelease

获取:1 http://cn.archive.ubuntu.com trusty-updates InRelease [65.9 kB]                                                                               

命中 http://cn.archive.ubuntu.com trusty-backports InRelease                                                                                                                                            

命中 http://cn.archive.ubuntu.com trusty Release.gpg                                                                                                                                                    

获取:2 http://cn.archive.ubuntu.com trusty-updates/main Sources [399 kB]                                                                                                    

获取:3 http://cn.archive.ubuntu.com trusty-updates/restricted Sources [6,331 B]                                                                                                     

获取:4 http://cn.archive.ubuntu.com trusty-updates/universe Sources [180 kB]                                                                       

获取:5 http://security.ubuntu.com trusty-security InRelease [65.9 kB]                                                                            

获取:6 http://cn.archive.ubuntu.com trusty-updates/multiverse Sources [7,764 B]                                                                      

获取:7 http://cn.archive.ubuntu.com trusty-updates/main amd64 Packages [985 kB]                                                                                 

获取:8 http://ppa.launchpad.net trusty InRelease [15.4 kB]                                                                                                     

获取:9 http://cn.archive.ubuntu.com trusty-updates/restricted amd64 Packages [17.1 kB]                                                                

获取:10 http://cn.archive.ubuntu.com trusty-updates/universe amd64 Packages [408 kB]                                                 

获取:11 http://cn.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.3 kB]                                              

获取:12 http://cn.archive.ubuntu.com trusty-updates/main i386 Packages [941 kB]                                                       

获取:13 http://security.ubuntu.com trusty-security/main Sources [131 kB]                                                             

忽略 http://extras.ubuntu.com trusty InRelease                                                                                                  

获取:14 http://extras.ubuntu.com trusty Release.gpg [72 B]                                                                                       

命中 http://extras.ubuntu.com trusty Release                                                                                        

获取:15 http://security.ubuntu.com trusty-security/restricted Sources [4,955 B]                                 

获取:16 http://cn.archive.ubuntu.com trusty-updates/restricted i386 Packages [16.9 kB]                                                  

获取:17 http://cn.archive.ubuntu.com trusty-updates/universe i386 Packages [409 kB]                                                                

获取:18 http://cn.archive.ubuntu.com trusty-updates/multiverse i386 Packages [14.6 kB]                                                            

获取:19 http://cn.archive.ubuntu.com trusty-updates/main Translation-en [486 kB]                                                                   

获取:20 http://cn.archive.ubuntu.com trusty-updates/multiverse Translation-en [7,430 B]                                                                                    

命中 http://extras.ubuntu.com trusty/main Sources                                                                                                                                              

获取:21 http://cn.archive.ubuntu.com trusty-updates/restricted Translation-en [3,978 B]                                                                              

获取:22 http://cn.archive.ubuntu.com trusty-updates/universe Translation-en [216 kB]                                                                                                    

命中 http://cn.archive.ubuntu.com trusty-backports/main Sources                                                                                                                       

命中 http://cn.archive.ubuntu.com trusty-backports/restricted Sources                                                                                                 

命中 http://cn.archive.ubuntu.com trusty-backports/universe Sources                                                                                                   

命中 http://cn.archive.ubuntu.com trusty-backports/multiverse Sources                                                                                                 

命中 http://cn.archive.ubuntu.com trusty-backports/main amd64 Packages                                                                                                

命中 http://extras.ubuntu.com trusty/main amd64 Packages                                                                                                              

命中 http://cn.archive.ubuntu.com trusty-backports/restricted amd64 Packages                                                                                          

命中 http://cn.archive.ubuntu.com trusty-backports/universe amd64 Packages                                                                       

命中 http://cn.archive.ubuntu.com trusty-backports/multiverse amd64 Packages                                                            

获取:23 http://security.ubuntu.com trusty-security/universe Sources [54.0 kB]                                                          

命中 http://cn.archive.ubuntu.com trusty-backports/main i386 Packages                                                                                                               

命中 http://cn.archive.ubuntu.com trusty-backports/restricted i386 Packages                                                                                                         

命中 http://cn.archive.ubuntu.com trusty-backports/universe i386 Packages                                                                                    

命中 http://cn.archive.ubuntu.com trusty-backports/multiverse i386 Packages                                                             

命中 http://cn.archive.ubuntu.com trusty-backports/main Translation-en                                                                  

命中 http://cn.archive.ubuntu.com trusty-backports/multiverse Translation-en                                                            

命中 http://cn.archive.ubuntu.com trusty-backports/restricted Translation-en                                                            

命中 http://extras.ubuntu.com trusty/main i386 Packages                                                                                 

命中 http://cn.archive.ubuntu.com trusty-backports/universe Translation-en                                                              

获取:24 http://ppa.launchpad.net trusty/main amd64 Packages [6,528 B]                                                                  

命中 http://cn.archive.ubuntu.com trusty Release                                                                                                                           

获取:25 http://security.ubuntu.com trusty-security/multiverse Sources [3,206 B]                                                          

命中 http://cn.archive.ubuntu.com trusty/main Sources                                                                               

命中 http://cn.archive.ubuntu.com trusty/restricted Sources                                                  

命中 http://cn.archive.ubuntu.com trusty/universe Sources                               

命中 http://cn.archive.ubuntu.com trusty/multiverse Sources                             

命中 http://cn.archive.ubuntu.com trusty/main amd64 Packages                            

命中 http://cn.archive.ubuntu.com trusty/restricted amd64 Packages                      

命中 http://cn.archive.ubuntu.com trusty/universe amd64 Packages                        

命中 http://cn.archive.ubuntu.com trusty/multiverse amd64 Packages                      

命中 http://cn.archive.ubuntu.com trusty/main i386 Packages                             

命中 http://cn.archive.ubuntu.com trusty/restricted i386 Packages                       

命中 http://cn.archive.ubuntu.com trusty/universe i386 Packages                         

获取:26 http://security.ubuntu.com trusty-security/main amd64 Packages [617 kB]        

命中 http://cn.archive.ubuntu.com trusty/multiverse i386 Packages                                                      

获取:27 http://ppa.launchpad.net trusty/main Translation-en [3,535 B]                                                 

命中 http://cn.archive.ubuntu.com trusty/main Translation-zh_CN                                                                            

获取:28 http://ppa.launchpad.net trusty/main i386 Packages [6,526 B]                              

命中 http://cn.archive.ubuntu.com trusty/main Translation-en                                                     

命中 http://cn.archive.ubuntu.com trusty/multiverse Translation-zh_CN         

命中 http://cn.archive.ubuntu.com trusty/multiverse Translation-en

命中 http://cn.archive.ubuntu.com trusty/restricted Translation-zh_CN

命中 http://cn.archive.ubuntu.com trusty/restricted Translation-en

命中 http://cn.archive.ubuntu.com trusty/universe Translation-zh_CN

命中 http://cn.archive.ubuntu.com trusty/universe Translation-en

忽略 http://cn.archive.ubuntu.com trusty/main Translation-zh

忽略 http://cn.archive.ubuntu.com trusty/multiverse Translation-zh

忽略 http://cn.archive.ubuntu.com trusty/restricted Translation-zh

忽略 http://cn.archive.ubuntu.com trusty/universe Translation-zh

获取:29 http://security.ubuntu.com trusty-security/restricted amd64 Packages [14.0 kB]                                                                                                                         

获取:30 http://security.ubuntu.com trusty-security/universe amd64 Packages [160 kB]                                                                                                                            

忽略 http://extras.ubuntu.com trusty/main Translation-zh_CN                                                                                                                                                     

获取:31 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,133 B]                                                                                                                         

忽略 http://extras.ubuntu.com trusty/main Translation-zh                                                                                                                                                        

忽略 http://extras.ubuntu.com trusty/main Translation-en                                                                                                                                                        

获取:32 http://security.ubuntu.com trusty-security/main i386 Packages [575 kB]                                                                                                                                 

获取:33 http://security.ubuntu.com trusty-security/restricted i386 Packages [13.7 kB]                                                                                                                          

获取:34 http://security.ubuntu.com trusty-security/universe i386 Packages [160 kB]                                                                                                                             

获取:35 http://security.ubuntu.com trusty-security/multiverse i386 Packages [4,289 B]                                                                                                                          

获取:36 http://security.ubuntu.com trusty-security/main Translation-en [336 kB]                                                                                                                                

获取:37 http://security.ubuntu.com trusty-security/multiverse Translation-en [2,201 B]                                                                                                                         

获取:38 http://security.ubuntu.com trusty-security/restricted Translation-en [3,491 B]                                                                                                                         

获取:39 http://security.ubuntu.com trusty-security/universe Translation-en [93.0 kB]                                                                                                                           

下载 6,450 kB,耗时 18秒 (356 kB/s)                                                                                                                                                                             

正在读取软件包列表... 完成

rootroot@cm-System-Product-Name:~$ sudo apt-get install debootstrap

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

下列【新】软件包将被安装:

  debootstrap

升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 741 个软件包未被升级。

需要下载 29.3 kB 的软件包。

解压缩后会消耗掉 234 kB 的额外空间。

获取:1 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main debootstrap all 1.0.59ubuntu0.7 [29.3 kB]

下载 29.3 kB,耗时 0秒 (302 kB/s)      

Selecting previously unselected package debootstrap.

(正在读取数据库 ... 系统当前共安装有 218047 个文件和目录。)

Preparing to unpack .../debootstrap_1.0.59ubuntu0.7_all.deb ...

Unpacking debootstrap (1.0.59ubuntu0.7) ...

Processing triggers for man-db (2.6.7.1-1) ...

正在设置 debootstrap (1.0.59ubuntu0.7) ...

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo apt-get install git

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

建议安装的软件包:

  git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-bzr git-cvs git-mediawiki git-svn

下列软件包将被升级:

  git

升级了 1 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 740 个软件包未被升级。

需要下载 2,641 kB 的软件包。

解压缩后将会空出 8,192 B 的空间。

获取:1 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main git amd64 1:1.9.1-1ubuntu0.5 [2,641 kB]

下载 2,641 kB,耗时 2秒 (1,023 kB/s)

(正在读取数据库 ... 系统当前共安装有 218103 个文件和目录。)

Preparing to unpack .../git_1%3a1.9.1-1ubuntu0.5_amd64.deb ...

Unpacking git (1:1.9.1-1ubuntu0.5) over (1:1.9.1-1ubuntu0.3) ...

正在设置 git (1:1.9.1-1ubuntu0.5) ...

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo apt-get install binfmt-support

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

binfmt-support 已经是最新的版本了。

binfmt-support 被设置为手动安装。

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 740 个软件包未被升级。

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo apt-get install libusb-1.0-0-dev

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

将会安装下列额外的软件包:

  libusb-1.0-doc

下列【新】软件包将被安装:

  libusb-1.0-0-dev libusb-1.0-doc

升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 740 个软件包未被升级。

需要下载 169 kB 的软件包。

解压缩后会消耗掉 1,488 kB 的额外空间。

您希望继续执行吗? [Y/n] y

获取:1 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libusb-1.0-0-dev amd64 2:1.0.17-1ubuntu2 [54.7 kB]

获取:2 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libusb-1.0-doc all 2:1.0.17-1ubuntu2 [115 kB]

下载 169 kB,耗时 0秒 (547 kB/s)        

Selecting previously unselected package libusb-1.0-0-dev:amd64.

(正在读取数据库 ... 系统当前共安装有 218103 个文件和目录。)

Preparing to unpack .../libusb-1.0-0-dev_2%3a1.0.17-1ubuntu2_amd64.deb ...

Unpacking libusb-1.0-0-dev:amd64 (2:1.0.17-1ubuntu2) ...

Selecting previously unselected package libusb-1.0-doc.

Preparing to unpack .../libusb-1.0-doc_2%3a1.0.17-1ubuntu2_all.deb ...

Unpacking libusb-1.0-doc (2:1.0.17-1ubuntu2) ...

Processing triggers for doc-base (0.10.5) ...

Processing 1 added doc-base file...

正在设置 libusb-1.0-0-dev:amd64 (2:1.0.17-1ubuntu2) ...

正在设置 libusb-1.0-doc (2:1.0.17-1ubuntu2) ...

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo apt-get install pkg-config

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

pkg-config 已经是最新的版本了。

升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 740 个软件包未被升级。

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo apt-get install gcc-arm-linux-gnueabihf

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

将会安装下列额外的软件包:

  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

建议安装的软件包:

  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

  libquadmath-dbg-armhf-cross autoconf automake1.9 libtool gdb-arm-linux-gnueabihf gcc-doc

下列软件包将被【卸载】:

  g++-multilib gcc-multilib

下列【新】软件包将被安装:

  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 个软件包,新安装了 25 个软件包,要卸载 2 个软件包,有 740 个软件包未被升级。

需要下载 20.6 MB 的软件包。

解压缩后会消耗掉 58.8 MB 的额外空间。

您希望继续执行吗? [Y/n] y

获取:1 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main gcc-4.8-arm-linux-gnueabihf-base amd64 4.8.4-2ubuntu1~14.04.1cross0.11.2 [15.0 kB]

获取:2 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main cpp-4.8-arm-linux-gnueabihf amd64 4.8.4-2ubuntu1~14.04.1cross0.11.2 [4,682 kB]

获取:3 http://cn.archive.ubuntu.com/ubuntu/ trusty/main cpp-arm-linux-gnueabihf amd64 4:4.8.2-1 [2,524 B]

获取:4 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main binutils-arm-linux-gnueabihf amd64 2.24-5ubuntu13cross1.98.1 [3,523 kB]

获取:5 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libc6-armhf-cross all 2.19-0ubuntu2cross1.104 [946 kB]                                                                                                 

获取:6 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libgcc1-armhf-cross all 1:4.8.4-2ubuntu1~14.04.1cross0.11.2 [36.5 kB]                                                                          

获取:7 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libgomp1-armhf-cross all 4.8.4-2ubuntu1~14.04.1cross0.11.2 [22.0 kB]                                                                           

获取:8 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libatomic1-armhf-cross all 4.8.4-2ubuntu1~14.04.1cross0.11.2 [5,782 B]                                                                         

获取:9 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libasan0-armhf-cross all 4.8.4-2ubuntu1~14.04.1cross0.11.2 [55.7 kB]                                                                           

获取:10 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libgcc-4.8-dev-armhf-cross all 4.8.4-2ubuntu1~14.04.1cross0.11.2 [212 kB]                                                                     

获取:11 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main gcc-4.8-arm-linux-gnueabihf amd64 4.8.4-2ubuntu1~14.04.1cross0.11.2 [5,141 kB]                                                                

获取:12 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libc6-armel-cross all 2.19-0ubuntu2cross1.104 [967 kB]                                                                                                

获取:13 http://cn.archive.ubuntu.com/ubuntu/ trusty/main linux-libc-dev-armel-cross all 3.13.0-12.32cross1.104 [760 kB]                                                                                        

获取:14 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libc6-dev-armel-cross all 2.19-0ubuntu2cross1.104 [1,616 kB]                                                                                          

获取:15 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libc6-dev-armel-armhf-cross all 2.19-0ubuntu2cross1.104 [1,132 B]                                                                                     

获取:16 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libc6-armel-armhf-cross all 2.19-0ubuntu2cross1.104 [1,388 B]                                                                                         

获取:17 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libsfgcc1-armhf-cross all 1:4.8.4-2ubuntu1~14.04.1cross0.11.2 [38.2 kB]                                                                       

获取:18 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libsfgomp1-armhf-cross all 4.8.4-2ubuntu1~14.04.1cross0.11.2 [23.4 kB]                                                                        

获取:19 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libsfatomic1-armhf-cross all 4.8.4-2ubuntu1~14.04.1cross0.11.2 [5,798 B]                                                                      

获取:20 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libsfasan0-armhf-cross all 4.8.4-2ubuntu1~14.04.1cross0.11.2 [55.7 kB]                                                                        

获取:21 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main libsfgcc-4.8-dev-armhf-cross all 4.8.4-2ubuntu1~14.04.1cross0.11.2 [172 kB]                                                                   

获取:22 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main gcc-4.8-multilib-arm-linux-gnueabihf amd64 4.8.4-2ubuntu1~14.04.1cross0.11.2 [1,068 B]                                                        

获取:23 http://cn.archive.ubuntu.com/ubuntu/ trusty/main gcc-arm-linux-gnueabihf amd64 4:4.8.2-1 [1,150 B]                                                                                                     

获取:24 http://cn.archive.ubuntu.com/ubuntu/ trusty/main linux-libc-dev-armhf-cross all 3.13.0-12.32cross1.104 [761 kB]                                                                                        

获取:25 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libc6-dev-armhf-cross all 2.19-0ubuntu2cross1.104 [1,587 kB]                                                                                          

下载 20.6 MB,耗时 15秒 (1,294 kB/s)                                                                                                                                                                            

(正在读取数据库 ... 系统当前共安装有 218193 个文件和目录。)

Removing g++-multilib (4:4.8.2-1ubuntu6) ...

Removing gcc-multilib (4:4.8.2-1ubuntu6) ...

Selecting previously unselected package gcc-4.8-arm-linux-gnueabihf-base.

(正在读取数据库 ... 系统当前共安装有 218191 个文件和目录。)

Preparing to unpack .../gcc-4.8-arm-linux-gnueabihf-base_4.8.4-2ubuntu1~14.04.1cross0.11.2_amd64.deb ...

Unpacking gcc-4.8-arm-linux-gnueabihf-base (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package cpp-4.8-arm-linux-gnueabihf.

Preparing to unpack .../cpp-4.8-arm-linux-gnueabihf_4.8.4-2ubuntu1~14.04.1cross0.11.2_amd64.deb ...

Unpacking cpp-4.8-arm-linux-gnueabihf (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package cpp-arm-linux-gnueabihf.

Preparing to unpack .../cpp-arm-linux-gnueabihf_4%3a4.8.2-1_amd64.deb ...

Unpacking cpp-arm-linux-gnueabihf (4:4.8.2-1) ...

Selecting previously unselected package binutils-arm-linux-gnueabihf.

Preparing to unpack .../binutils-arm-linux-gnueabihf_2.24-5ubuntu13cross1.98.1_amd64.deb ...

Unpacking binutils-arm-linux-gnueabihf (2.24-5ubuntu13cross1.98.1) ...

Selecting previously unselected package libc6-armhf-cross.

Preparing to unpack .../libc6-armhf-cross_2.19-0ubuntu2cross1.104_all.deb ...

Unpacking libc6-armhf-cross (2.19-0ubuntu2cross1.104) ...

Selecting previously unselected package libgcc1-armhf-cross.

Preparing to unpack .../libgcc1-armhf-cross_1%3a4.8.4-2ubuntu1~14.04.1cross0.11.2_all.deb ...

Unpacking libgcc1-armhf-cross (1:4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package libgomp1-armhf-cross.

Preparing to unpack .../libgomp1-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.2_all.deb ...

Unpacking libgomp1-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package libatomic1-armhf-cross.

Preparing to unpack .../libatomic1-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.2_all.deb ...

Unpacking libatomic1-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package libasan0-armhf-cross.

Preparing to unpack .../libasan0-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.2_all.deb ...

Unpacking libasan0-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package libgcc-4.8-dev-armhf-cross.

Preparing to unpack .../libgcc-4.8-dev-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.2_all.deb ...

Unpacking libgcc-4.8-dev-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package gcc-4.8-arm-linux-gnueabihf.

Preparing to unpack .../gcc-4.8-arm-linux-gnueabihf_4.8.4-2ubuntu1~14.04.1cross0.11.2_amd64.deb ...

Unpacking gcc-4.8-arm-linux-gnueabihf (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package libc6-armel-cross.

Preparing to unpack .../libc6-armel-cross_2.19-0ubuntu2cross1.104_all.deb ...

Unpacking libc6-armel-cross (2.19-0ubuntu2cross1.104) ...

Selecting previously unselected package linux-libc-dev-armel-cross.

Preparing to unpack .../linux-libc-dev-armel-cross_3.13.0-12.32cross1.104_all.deb ...

Unpacking linux-libc-dev-armel-cross (3.13.0-12.32cross1.104) ...

Selecting previously unselected package libc6-dev-armel-cross.

Preparing to unpack .../libc6-dev-armel-cross_2.19-0ubuntu2cross1.104_all.deb ...

Unpacking libc6-dev-armel-cross (2.19-0ubuntu2cross1.104) ...

Selecting previously unselected package libc6-dev-armel-armhf-cross.

Preparing to unpack .../libc6-dev-armel-armhf-cross_2.19-0ubuntu2cross1.104_all.deb ...

Unpacking libc6-dev-armel-armhf-cross (2.19-0ubuntu2cross1.104) ...

Selecting previously unselected package libc6-armel-armhf-cross.

Preparing to unpack .../libc6-armel-armhf-cross_2.19-0ubuntu2cross1.104_all.deb ...

Unpacking libc6-armel-armhf-cross (2.19-0ubuntu2cross1.104) ...

Selecting previously unselected package libsfgcc1-armhf-cross.

Preparing to unpack .../libsfgcc1-armhf-cross_1%3a4.8.4-2ubuntu1~14.04.1cross0.11.2_all.deb ...

Unpacking libsfgcc1-armhf-cross (1:4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package libsfgomp1-armhf-cross.

Preparing to unpack .../libsfgomp1-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.2_all.deb ...

Unpacking libsfgomp1-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package libsfatomic1-armhf-cross.

Preparing to unpack .../libsfatomic1-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.2_all.deb ...

Unpacking libsfatomic1-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package libsfasan0-armhf-cross.

Preparing to unpack .../libsfasan0-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.2_all.deb ...

Unpacking libsfasan0-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package libsfgcc-4.8-dev-armhf-cross.

Preparing to unpack .../libsfgcc-4.8-dev-armhf-cross_4.8.4-2ubuntu1~14.04.1cross0.11.2_all.deb ...

Unpacking libsfgcc-4.8-dev-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package gcc-4.8-multilib-arm-linux-gnueabihf.

Preparing to unpack .../gcc-4.8-multilib-arm-linux-gnueabihf_4.8.4-2ubuntu1~14.04.1cross0.11.2_amd64.deb ...

Unpacking gcc-4.8-multilib-arm-linux-gnueabihf (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

Selecting previously unselected package gcc-arm-linux-gnueabihf.

Preparing to unpack .../gcc-arm-linux-gnueabihf_4%3a4.8.2-1_amd64.deb ...

Unpacking gcc-arm-linux-gnueabihf (4:4.8.2-1) ...

Selecting previously unselected package linux-libc-dev-armhf-cross.

Preparing to unpack .../linux-libc-dev-armhf-cross_3.13.0-12.32cross1.104_all.deb ...

Unpacking linux-libc-dev-armhf-cross (3.13.0-12.32cross1.104) ...

Selecting previously unselected package libc6-dev-armhf-cross.

Preparing to unpack .../libc6-dev-armhf-cross_2.19-0ubuntu2cross1.104_all.deb ...

Unpacking libc6-dev-armhf-cross (2.19-0ubuntu2cross1.104) ...

Processing triggers for man-db (2.6.7.1-1) ...

正在设置 gcc-4.8-arm-linux-gnueabihf-base (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 cpp-4.8-arm-linux-gnueabihf (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 cpp-arm-linux-gnueabihf (4:4.8.2-1) ...

正在设置 binutils-arm-linux-gnueabihf (2.24-5ubuntu13cross1.98.1) ...

正在设置 libc6-armhf-cross (2.19-0ubuntu2cross1.104) ...

正在设置 libgcc1-armhf-cross (1:4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 libgomp1-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 libatomic1-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 libasan0-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 libgcc-4.8-dev-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 gcc-4.8-arm-linux-gnueabihf (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 libc6-armel-cross (2.19-0ubuntu2cross1.104) ...

正在设置 linux-libc-dev-armel-cross (3.13.0-12.32cross1.104) ...

正在设置 libc6-dev-armel-cross (2.19-0ubuntu2cross1.104) ...

正在设置 libc6-dev-armel-armhf-cross (2.19-0ubuntu2cross1.104) ...

正在设置 libc6-armel-armhf-cross (2.19-0ubuntu2cross1.104) ...

正在设置 libsfgcc1-armhf-cross (1:4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 libsfgomp1-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 libsfatomic1-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 libsfasan0-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 libsfgcc-4.8-dev-armhf-cross (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 gcc-4.8-multilib-arm-linux-gnueabihf (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...

正在设置 gcc-arm-linux-gnueabihf (4:4.8.2-1) ...

正在设置 linux-libc-dev-armhf-cross (3.13.0-12.32cross1.104) ...

正在设置 libc6-dev-armhf-cross (2.19-0ubuntu2cross1.104) ...

Processing triggers for libc-bin (2.19-0ubuntu6) ...

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

 

[END] 2017/6/5 11:04:14