为Cubieboard2构建自己的的Debian Linux的步骤(5)(分色排版)建立 ROOTFS

来源:互联网 发布:怎样追加淘宝评价 编辑:程序博客网 时间:2024/05/20 09:22

Cubieboard2构建自己的的Debian Linux的步骤(5)建立 ROOTFS

 

soloforce汇编整理

2013年12月28 日

 

大文实验室/大文哥

壹捌陆捌零陆捌捌陆捌贰

wb4916 AT qq.com

完成时间:2017/6/7 15:42

 

 

3 建立 ROOTFS

 

除非特别说明,本节的所有操作都在 $ROOTFS_DIR 下面进行,所以我们进入该目录先。首先且最重要的是设置管理员密码。

用户名/密码:root/root

(出错了,重新解一下压缩包的步骤:)

root@cm-System-Product-Name:/home/rootroot/cubieboard2# tar zxvf chroot-armhf_cb2_20170607_1121_config.tar.gz

root@cm-System-Product-Name:/home/rootroot/cubieboard2# cd chroot-armhf

 

(正常步骤:)

root@cm-System-Product-Name:/home/rootroot/cubieboard2/linux-sunxi#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/linux-sunxi# cd ../chroot-armhf

 

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# chroot . passwd

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

 

 

3.1 重要步骤

 

Debian的rootfs基础系统已经在前文下载安装,现在要执行进一步配置。

 

修改主机名称:

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cat etc/hostname

cm-System-Product-Name

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll etc/hostname

-rw-r--r-- 1 root root 23  8月 10  2016 etc/hostname

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# echo "Cubieboard" > etc/hostname

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cat etc/hostname

Cubieboard

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cat etc/hosts

127.0.0.1 localhost

::1 localhost ip6-localhost ip6-loopback

fe00::0 ip6-localnet

ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

 

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# echo "127.0.0.1 Cubieboard" >> etc/hosts

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cat etc/hosts

127.0.0.1 localhost

::1 localhost ip6-localhost ip6-loopback

fe00::0 ip6-localnet

ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

不知道怎么输入TAB键,直接用空格代替了!

127.0.0.1 Cubieboard

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

 

 

内核模块安装,这是最关键步骤:

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll boot/u*

ls: 无法访问boot/u*: 没有那个文件或目录

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cp ../linux-sunxi/arch/arm/boot/uImage boot/

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll boot/u*

-rw-r--r-- 1 root root 4635800  6月  7 16:29 boot/uImage

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# pwd

/home/rootroot/cubieboard2/chroot-armhf

相对路径

root@rootroot-E400:/home/rootroot/cubieboard/chroot-armhf# make -C ../linux-sunxi INSTALL_MOD_PATH=. ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules_install

新手请使用绝对路径,和上一条命令同样功能:

root@rootroot-E400:/home/rootroot/cubieboard/chroot-armhf# make -C /home/rootroot/cubieboard2/linux-sunxi/ INSTALL_MOD_PATH=/home/rootroot/cubieboard2/chroot-armhf ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules_install

……

  INSTALL sound/usb/snd-usb-audio.ko

  INSTALL sound/usb/snd-usbmidi-lib.ko

  MKDIR   /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/emi26

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/emi26/loader.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/emi26/firmware.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/emi26/bitstream.fw

  MKDIR   /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/emi62

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/emi62/loader.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/emi62/bitstream.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/emi62/spdif.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/emi62/midi.fw

  MKDIR   /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/kaweth

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/kaweth/new_code.bin

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/kaweth/trigger_code.bin

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/kaweth/new_code_fix.bin

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/kaweth/trigger_code_fix.bin

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/ti_3410.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/ti_5052.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/mts_cdma.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/mts_gsm.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/mts_edge.fw

  MKDIR   /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/edgeport

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/edgeport/boot.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/edgeport/boot2.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/edgeport/down.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/edgeport/down2.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/edgeport/down3.bin

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/whiteheat_loader.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/whiteheat.fw

  MKDIR   /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/keyspan_pda

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/keyspan_pda/keyspan_pda.fw

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/keyspan_pda/xircom_pgs.fw

  MKDIR   /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/cpia2

  INSTALL /home/rootroot/cubieboard2/chroot-armhf/lib/firmware/cpia2/stv0672_vp4.bin

  DEPMOD  3.4.61+

make:离开目录“/home/rootroot/cubieboard2/linux-sunxi”

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

 

 

设置串口调试终端参数,这也是很重要的哦:

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll etc/inittab

-rw-r--r-- 1 root root 2008  7月 18  2013 etc/inittab

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cat etc/inittab

# /etc/inittab: init(8) configuration.

# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

 

# The default runlevel.

id:2:initdefault:

 

# Boot-time system configuration/initialization script.

# This is run first except when booting in emergency (-b) mode.

si::sysinit:/etc/init.d/rcS

 

# What to do in single-user mode.

~~:S:wait:/sbin/sulogin

 

# /etc/init.d executes the S and K scripts upon change

# of runlevel.

#

# Runlevel 0 is halt.

# Runlevel 1 is single-user.

# Runlevels 2-5 are multi-user.

# Runlevel 6 is reboot.

 

l0:0:wait:/etc/init.d/rc 0

l1:1:wait:/etc/init.d/rc 1

l2:2:wait:/etc/init.d/rc 2

l3:3:wait:/etc/init.d/rc 3

l4:4:wait:/etc/init.d/rc 4

l5:5:wait:/etc/init.d/rc 5

l6:6:wait:/etc/init.d/rc 6

# Normally not reached, but fallthrough in case of emergency.

z6:6:respawn:/sbin/sulogin

 

# What to do when CTRL-ALT-DEL is pressed.

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

 

# Action on special keypress (ALT-UpArrow).

#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

 

# What to do when the power fails/returns.

pf::powerwait:/etc/init.d/powerfail start

pn::powerfailnow:/etc/init.d/powerfail now

po::powerokwait:/etc/init.d/powerfail stop

 

# /sbin/getty invocations for the runlevels.

#

# The "id" field MUST be the same as the last

# characters of the device (after "tty").

#

# Format:

#  <id>:<runlevels>:<action>:<process>

#

# Note that on most Debian systems tty7 is used by the X Window System,

# so if you want to add more getty's go ahead but skip tty7 if you run X.

#

1:2345:respawn:/sbin/getty 38400 tty1

2:23:respawn:/sbin/getty 38400 tty2

3:23:respawn:/sbin/getty 38400 tty3

4:23:respawn:/sbin/getty 38400 tty4

5:23:respawn:/sbin/getty 38400 tty5

6:23:respawn:/sbin/getty 38400 tty6

 

# Example how to put a getty on a serial line (for a terminal)

#

#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100

#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

 

# Example how to put a getty on a modem line.

#

#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

 

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# echo T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 >> etc/inittab

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cat etc/inittab

# /etc/inittab: init(8) configuration.

# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

 

# The default runlevel.

id:2:initdefault:

 

# Boot-time system configuration/initialization script.

# This is run first except when booting in emergency (-b) mode.

si::sysinit:/etc/init.d/rcS

 

# What to do in single-user mode.

~~:S:wait:/sbin/sulogin

 

# /etc/init.d executes the S and K scripts upon change

# of runlevel.

#

# Runlevel 0 is halt.

# Runlevel 1 is single-user.

# Runlevels 2-5 are multi-user.

# Runlevel 6 is reboot.

 

l0:0:wait:/etc/init.d/rc 0

l1:1:wait:/etc/init.d/rc 1

l2:2:wait:/etc/init.d/rc 2

l3:3:wait:/etc/init.d/rc 3

l4:4:wait:/etc/init.d/rc 4

l5:5:wait:/etc/init.d/rc 5

l6:6:wait:/etc/init.d/rc 6

# Normally not reached, but fallthrough in case of emergency.

z6:6:respawn:/sbin/sulogin

 

# What to do when CTRL-ALT-DEL is pressed.

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

 

# Action on special keypress (ALT-UpArrow).

#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

 

# What to do when the power fails/returns.

pf::powerwait:/etc/init.d/powerfail start

pn::powerfailnow:/etc/init.d/powerfail now

po::powerokwait:/etc/init.d/powerfail stop

 

# /sbin/getty invocations for the runlevels.

#

# The "id" field MUST be the same as the last

# characters of the device (after "tty").

#

# Format:

#  <id>:<runlevels>:<action>:<process>

#

# Note that on most Debian systems tty7 is used by the X Window System,

# so if you want to add more getty's go ahead but skip tty7 if you run X.

#

1:2345:respawn:/sbin/getty 38400 tty1

2:23:respawn:/sbin/getty 38400 tty2

3:23:respawn:/sbin/getty 38400 tty3

4:23:respawn:/sbin/getty 38400 tty4

5:23:respawn:/sbin/getty 38400 tty5

6:23:respawn:/sbin/getty 38400 tty6

 

# Example how to put a getty on a serial line (for a terminal)

#

#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100

#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

 

# Example how to put a getty on a modem line.

#

#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

 

T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

 

 

配置并更新软件源:

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cat etc/apt/sources.list

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll etc/apt/sources.list

-rw-r--r-- 1 root root 0  6月  7 11:10 etc/apt/sources.list

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# echo deb http://http.debian.net/debian/ wheezy main contrib non-free > etc/apt/sources.list

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# echo deb http://security.debian.org/ wheezy/updates main contrib non-free >> etc/apt/sources.list

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cat etc/apt/sources.list

deb http://http.debian.net/debian/ wheezy main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# chroot . apt-get update

Get:1 http://security.debian.org wheezy/updates Release.gpg [1554 B]

Get:2 http://security.debian.org wheezy/updates Release [39.0 kB]                        

Get:3 http://security.debian.org wheezy/updates/main armhf Packages [524 kB]

Get:4 http://http.debian.net wheezy Release.gpg [2373 B]                                    

Get:5 http://http.debian.net wheezy Release [191 kB]                                        

Get:6 http://security.debian.org wheezy/updates/contrib armhf Packages [14 B]

Get:7 http://security.debian.org wheezy/updates/non-free armhf Packages [14 B]      

Get:8 http://security.debian.org wheezy/updates/contrib Translation-en [14 B]       

Get:9 http://security.debian.org wheezy/updates/main Translation-en [294 kB]               

Get:10 http://security.debian.org wheezy/updates/non-free Translation-en [14 B]              

Get:11 http://http.debian.net wheezy/main armhf Packages [5685 kB]                          

Get:12 http://http.debian.net wheezy/contrib armhf Packages [33.1 kB]                                                

Get:13 http://http.debian.net wheezy/non-free armhf Packages [55.8 kB]                    

Get:14 http://http.debian.net wheezy/contrib Translation-en [34.8 kB]             

Get:15 http://http.debian.net wheezy/main Translation-en [3846 kB]                      

Get:16 http://http.debian.net wheezy/non-free Translation-en [66.1 kB]                                                                                                                                          

Fetched 10.8 MB in 1min 35s (112 kB/s)                                                                                                                                                                          

Reading package lists... Done

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# chroot . apt-get upgrade

Reading package lists... Done

Building dependency tree... Done

The following packages will be upgraded:

  bash gnupg gpgv libc-bin libc6 libcurl3-gnutls libgcrypt11 libidn11 libldap-2.4-2 librtmp0 libsqlite3-0 libssl1.0.0 libtasn1-3 login multiarch-support openssl passwd perl-base tar tzdata vim-common

  vim-tiny wget

23 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Need to get 18.0 MB of archives.

After this operation, 2450 kB disk space will be freed.

Do you want to continue [Y/n]? y

Get:1 http://security.debian.org/ wheezy/updates/main bash armhf 4.2+dfsg-0.1+deb7u4 [1416 kB]

Get:2 http://security.debian.org/ wheezy/updates/main login armhf 1:4.1.5.1-1+deb7u1 [970 kB]

Get:3 http://security.debian.org/ wheezy/updates/main perl-base armhf 5.14.2-21+deb7u5 [1404 kB]

Get:4 http://security.debian.org/ wheezy/updates/main tar armhf 1.26+dfsg-0.1+deb7u1 [955 kB]

Get:5 http://security.debian.org/ wheezy/updates/main libc-bin armhf 2.13-38+deb7u11 [1169 kB]

Get:6 http://security.debian.org/ wheezy/updates/main libc6 armhf 2.13-38+deb7u11 [3903 kB]

Get:7 http://security.debian.org/ wheezy/updates/main libgcrypt11 armhf 1.5.0-5+deb7u5 [292 kB]

Get:8 http://security.debian.org/ wheezy/updates/main libssl1.0.0 armhf 1.0.1t-1+deb7u2 [1022 kB]

Get:9 http://security.debian.org/ wheezy/updates/main libtasn1-3 armhf 2.13-2+deb7u4 [62.3 kB]

Get:10 http://security.debian.org/ wheezy/updates/main libidn11 armhf 1.25-2+deb7u2 [175 kB]

Get:11 http://security.debian.org/ wheezy/updates/main libldap-2.4-2 armhf 2.4.31-2+deb7u3 [208 kB]

Get:12 http://security.debian.org/ wheezy/updates/main librtmp0 armhf 2.4+20111222.git4e06e21-1+deb7u1 [55.6 kB]

Get:13 http://security.debian.org/ wheezy/updates/main libcurl3-gnutls armhf 7.26.0-1+wheezy19 [295 kB]

Get:14 http://security.debian.org/ wheezy/updates/main libsqlite3-0 armhf 3.7.13-1+deb7u3 [386 kB]

Get:15 http://security.debian.org/ wheezy/updates/main gpgv armhf 1.4.12-7+deb7u8 [196 kB]

Get:16 http://security.debian.org/ wheezy/updates/main gnupg armhf 1.4.12-7+deb7u8 [1867 kB]

Get:17 http://security.debian.org/ wheezy/updates/main passwd armhf 1:4.1.5.1-1+deb7u1 [1105 kB]

Get:18 http://security.debian.org/ wheezy/updates/main tzdata all 2017b-0+deb7u1 [488 kB]                                                                                                                       

Get:19 http://security.debian.org/ wheezy/updates/main multiarch-support armhf 2.13-38+deb7u11 [152 kB]                                                                                                         

Get:20 http://security.debian.org/ wheezy/updates/main vim-tiny armhf 2:7.3.547-7+deb7u3 [290 kB]                                                                                                               

Get:21 http://security.debian.org/ wheezy/updates/main vim-common armhf 2:7.3.547-7+deb7u3 [162 kB]                                                                                                             

Get:22 http://security.debian.org/ wheezy/updates/main wget armhf 1.13.4-3+deb7u4 [747 kB]                                                                                                                      

Get:23 http://security.debian.org/ wheezy/updates/main openssl armhf 1.0.1t-1+deb7u2 [693 kB]                                                                                                                   

Fetched 18.0 MB in 7s (2479 kB/s)                                                                                                                                                                               

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = "zh_CN:zh",

LC_ALL = (unset),

LANG = "zh_CN.UTF-8"

    are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Preconfiguring packages ...

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9688 files and directories currently installed.)

Preparing to replace bash 4.2+dfsg-0.1+deb7u3 (using .../bash_4.2+dfsg-0.1+deb7u4_armhf.deb) ...

Unpacking replacement bash ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up bash (4.2+dfsg-0.1+deb7u4) ...

update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9688 files and directories currently installed.)

Preparing to replace login 1:4.1.5.1-1 (using .../login_1%3a4.1.5.1-1+deb7u1_armhf.deb) ...

Unpacking replacement login ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up login (1:4.1.5.1-1+deb7u1) ...

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9688 files and directories currently installed.)

Preparing to replace perl-base 5.14.2-21+deb7u3 (using .../perl-base_5.14.2-21+deb7u5_armhf.deb) ...

Unpacking replacement perl-base ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up perl-base (5.14.2-21+deb7u5) ...

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9688 files and directories currently installed.)

Preparing to replace tar 1.26+dfsg-0.1 (using .../tar_1.26+dfsg-0.1+deb7u1_armhf.deb) ...

Unpacking replacement tar ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up tar (1.26+dfsg-0.1+deb7u1) ...

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9688 files and directories currently installed.)

Preparing to replace libc-bin 2.13-38+deb7u10 (using .../libc-bin_2.13-38+deb7u11_armhf.deb) ...

Unpacking replacement libc-bin ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up libc-bin (2.13-38+deb7u11) ...

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9688 files and directories currently installed.)

Preparing to replace libc6:armhf 2.13-38+deb7u10 (using .../libc6_2.13-38+deb7u11_armhf.deb) ...

Unpacking replacement libc6:armhf ...

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up libc6:armhf (2.13-38+deb7u11) ...

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9688 files and directories currently installed.)

Preparing to replace libgcrypt11:armhf 1.5.0-5+deb7u4 (using .../libgcrypt11_1.5.0-5+deb7u5_armhf.deb) ...

Unpacking replacement libgcrypt11:armhf ...

Preparing to replace libssl1.0.0:armhf 1.0.1e-2+deb7u20 (using .../libssl1.0.0_1.0.1t-1+deb7u2_armhf.deb) ...

Unpacking replacement libssl1.0.0:armhf ...

Preparing to replace libtasn1-3:armhf 2.13-2+deb7u2 (using .../libtasn1-3_2.13-2+deb7u4_armhf.deb) ...

Unpacking replacement libtasn1-3:armhf ...

Preparing to replace libidn11:armhf 1.25-2 (using .../libidn11_1.25-2+deb7u2_armhf.deb) ...

Unpacking replacement libidn11:armhf ...

Preparing to replace libldap-2.4-2:armhf 2.4.31-2+deb7u2 (using .../libldap-2.4-2_2.4.31-2+deb7u3_armhf.deb) ...

Unpacking replacement libldap-2.4-2:armhf ...

Preparing to replace librtmp0:armhf 2.4+20111222.git4e06e21-1 (using .../librtmp0_2.4+20111222.git4e06e21-1+deb7u1_armhf.deb) ...

Unpacking replacement librtmp0:armhf ...

Preparing to replace libcurl3-gnutls:armhf 7.26.0-1+wheezy13 (using .../libcurl3-gnutls_7.26.0-1+wheezy19_armhf.deb) ...

Unpacking replacement libcurl3-gnutls:armhf ...

Preparing to replace libsqlite3-0:armhf 3.7.13-1+deb7u2 (using .../libsqlite3-0_3.7.13-1+deb7u3_armhf.deb) ...

Unpacking replacement libsqlite3-0:armhf ...

Preparing to replace gpgv 1.4.12-7+deb7u7 (using .../gpgv_1.4.12-7+deb7u8_armhf.deb) ...

Unpacking replacement gpgv ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up gpgv (1.4.12-7+deb7u8) ...

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9688 files and directories currently installed.)

Preparing to replace gnupg 1.4.12-7+deb7u7 (using .../gnupg_1.4.12-7+deb7u8_armhf.deb) ...

Unpacking replacement gnupg ...

Processing triggers for install-info ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up gnupg (1.4.12-7+deb7u8) ...

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9688 files and directories currently installed.)

Preparing to replace passwd 1:4.1.5.1-1 (using .../passwd_1%3a4.1.5.1-1+deb7u1_armhf.deb) ...

Unpacking replacement passwd ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up passwd (1:4.1.5.1-1+deb7u1) ...

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9688 files and directories currently installed.)

Preparing to replace tzdata 2016d-0+deb7u1 (using .../tzdata_2017b-0+deb7u1_all.deb) ...

Unpacking replacement tzdata ...

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up tzdata (2017b-0+deb7u1) ...

 

Current default time zone: 'Etc/UTC'

Local time is now:      Thu Jun  8 04:59:16 UTC 2017.

Universal Time is now:  Thu Jun  8 04:59:16 UTC 2017.

Run 'dpkg-reconfigure tzdata' if you wish to change it.

 

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9703 files and directories currently installed.)

Preparing to replace multiarch-support 2.13-38+deb7u10 (using .../multiarch-support_2.13-38+deb7u11_armhf.deb) ...

Unpacking replacement multiarch-support ...

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up multiarch-support (2.13-38+deb7u11) ...

Can not write log, openpty() failed (/dev/pts not mounted?)

(Reading database ... 9703 files and directories currently installed.)

Preparing to replace vim-tiny 2:7.3.547-7 (using .../vim-tiny_2%3a7.3.547-7+deb7u3_armhf.deb) ...

Unpacking replacement vim-tiny ...

Preparing to replace vim-common 2:7.3.547-7 (using .../vim-common_2%3a7.3.547-7+deb7u3_armhf.deb) ...

Unpacking replacement vim-common ...

Preparing to replace wget 1.13.4-3+deb7u2 (using .../wget_1.13.4-3+deb7u4_armhf.deb) ...

Unpacking replacement wget ...

Preparing to replace openssl 1.0.1e-2+deb7u20 (using .../openssl_1.0.1t-1+deb7u2_armhf.deb) ...

Unpacking replacement openssl ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Processing triggers for install-info ...

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up libgcrypt11:armhf (1.5.0-5+deb7u5) ...

Setting up libssl1.0.0:armhf (1.0.1t-1+deb7u2) ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Setting up libtasn1-3:armhf (2.13-2+deb7u4) ...

Setting up libidn11:armhf (1.25-2+deb7u2) ...

Setting up libldap-2.4-2:armhf (2.4.31-2+deb7u3) ...

Setting up librtmp0:armhf (2.4+20111222.git4e06e21-1+deb7u1) ...

Setting up libcurl3-gnutls:armhf (7.26.0-1+wheezy19) ...

Setting up libsqlite3-0:armhf (3.7.13-1+deb7u3) ...

Setting up vim-common (2:7.3.547-7+deb7u3) ...

Setting up vim-tiny (2:7.3.547-7+deb7u3) ...

Setting up wget (1.13.4-3+deb7u4) ...

Setting up openssl (1.0.1t-1+deb7u2) ...

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

 

 

 

 

3.2 可选步骤:

安装OpenSSHServer:

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# chroot . apt-get install openssh-server

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following extra packages will be installed:

  libbsd0 libedit2 libwrap0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 ncurses-term openssh-blacklist openssh-blacklist-extra openssh-client tcpd xauth

Suggested packages:

  ssh-askpass libpam-ssh keychain monkeysphere rssh molly-guard ufw

The following NEW packages will be installed:

  libbsd0 libedit2 libwrap0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 ncurses-term openssh-blacklist openssh-blacklist-extra openssh-client openssh-server tcpd xauth

0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.

Need to get 6864 kB of archives.

After this operation, 16.4 MB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://security.debian.org/ wheezy/updates/main libx11-data all 2:1.5.0-1+deb7u4 [189 kB]

Get:2 http://http.debian.net/debian/ wheezy/main libedit2 armhf 2.11-20080614-5 [58.5 kB]                             

Get:3 http://security.debian.org/ wheezy/updates/main libx11-6 armhf 2:1.5.0-1+deb7u4 [816 kB]       

Get:4 http://http.debian.net/debian/ wheezy/main libbsd0 armhf 0.4.2-1 [56.4 kB]                             

Get:5 http://security.debian.org/ wheezy/updates/main openssh-client armhf 1:6.0p1-4+deb7u6 [900 kB]                    

Get:6 http://http.debian.net/debian/ wheezy/main libwrap0 armhf 7.6.q-24 [58.4 kB]  

Get:7 http://http.debian.net/debian/ wheezy/main libxau6 armhf 1:1.0.7-1 [17.3 kB]            

Get:8 http://security.debian.org/ wheezy/updates/main openssh-server armhf 1:6.0p1-4+deb7u6 [300 kB]

Get:9 http://http.debian.net/debian/ wheezy/main libxdmcp6 armhf 1:1.1.1-1 [25.0 kB]

Get:10 http://http.debian.net/debian/ wheezy/main libxcb1 armhf 1.8.1-2+deb7u1 [41.9 kB]         

Get:11 http://http.debian.net/debian/ wheezy/main libxext6 armhf 2:1.3.1-2+deb7u1 [47.2 kB]

Get:12 http://http.debian.net/debian/ wheezy/main libxmuu1 armhf 2:1.1.1-1 [22.9 kB]

Get:13 http://http.debian.net/debian/ wheezy/main openssh-blacklist all 0.4.1+nmu1 [1835 kB]

Get:14 http://http.debian.net/debian/ wheezy/main openssh-blacklist-extra all 0.4.1+nmu1 [1835 kB]                                                                                                              

Get:15 http://http.debian.net/debian/ wheezy/main ncurses-term all 5.9-10 [602 kB]                                                                                                                              

Get:16 http://http.debian.net/debian/ wheezy/main tcpd armhf 7.6.q-24 [25.6 kB]                                                                                                                                 

Get:17 http://http.debian.net/debian/ wheezy/main xauth armhf 1:1.0.7-1 [33.8 kB]                                                                                                                               

Fetched 6864 kB in 1min 23s (82.3 kB/s)                                                                                                                                                                         

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = "zh_CN:zh",

LC_ALL = (unset),

LANG = "zh_CN.UTF-8"

    are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Preconfiguring packages ...

Can not write log, openpty() failed (/dev/pts not mounted?)

Selecting previously unselected package libbsd0:armhf.

(Reading database ... 9708 files and directories currently installed.)

Unpacking libbsd0:armhf (from .../libbsd0_0.4.2-1_armhf.deb) ...

Selecting previously unselected package libedit2:armhf.

Unpacking libedit2:armhf (from .../libedit2_2.11-20080614-5_armhf.deb) ...

Selecting previously unselected package libwrap0:armhf.

Unpacking libwrap0:armhf (from .../libwrap0_7.6.q-24_armhf.deb) ...

Selecting previously unselected package libxau6:armhf.

Unpacking libxau6:armhf (from .../libxau6_1%3a1.0.7-1_armhf.deb) ...

Selecting previously unselected package libxdmcp6:armhf.

Unpacking libxdmcp6:armhf (from .../libxdmcp6_1%3a1.1.1-1_armhf.deb) ...

Selecting previously unselected package libxcb1:armhf.

Unpacking libxcb1:armhf (from .../libxcb1_1.8.1-2+deb7u1_armhf.deb) ...

Selecting previously unselected package libx11-data.

Unpacking libx11-data (from .../libx11-data_2%3a1.5.0-1+deb7u4_all.deb) ...

Selecting previously unselected package libx11-6:armhf.

Unpacking libx11-6:armhf (from .../libx11-6_2%3a1.5.0-1+deb7u4_armhf.deb) ...

Selecting previously unselected package libxext6:armhf.

Unpacking libxext6:armhf (from .../libxext6_2%3a1.3.1-2+deb7u1_armhf.deb) ...

Selecting previously unselected package libxmuu1:armhf.

Unpacking libxmuu1:armhf (from .../libxmuu1_2%3a1.1.1-1_armhf.deb) ...

Selecting previously unselected package openssh-blacklist.

Unpacking openssh-blacklist (from .../openssh-blacklist_0.4.1+nmu1_all.deb) ...

Selecting previously unselected package openssh-blacklist-extra.

Unpacking openssh-blacklist-extra (from .../openssh-blacklist-extra_0.4.1+nmu1_all.deb) ...

Selecting previously unselected package ncurses-term.

Unpacking ncurses-term (from .../ncurses-term_5.9-10_all.deb) ...

Selecting previously unselected package openssh-client.

Unpacking openssh-client (from .../openssh-client_1%3a6.0p1-4+deb7u6_armhf.deb) ...

Selecting previously unselected package openssh-server.

Unpacking openssh-server (from .../openssh-server_1%3a6.0p1-4+deb7u6_armhf.deb) ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Selecting previously unselected package tcpd.

Unpacking tcpd (from .../tcpd_7.6.q-24_armhf.deb) ...

Selecting previously unselected package xauth.

Unpacking xauth (from .../xauth_1%3a1.0.7-1_armhf.deb) ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up libbsd0:armhf (0.4.2-1) ...

Setting up libedit2:armhf (2.11-20080614-5) ...

Setting up libwrap0:armhf (7.6.q-24) ...

Setting up libxau6:armhf (1:1.0.7-1) ...

Setting up libxdmcp6:armhf (1:1.1.1-1) ...

Setting up libxcb1:armhf (1.8.1-2+deb7u1) ...

Setting up libx11-data (2:1.5.0-1+deb7u4) ...

Setting up libx11-6:armhf (2:1.5.0-1+deb7u4) ...

Setting up libxext6:armhf (2:1.3.1-2+deb7u1) ...

Setting up libxmuu1:armhf (2:1.1.1-1) ...

Setting up openssh-blacklist (0.4.1+nmu1) ...

Setting up openssh-blacklist-extra (0.4.1+nmu1) ...

Setting up ncurses-term (5.9-10) ...

Setting up openssh-client (1:6.0p1-4+deb7u6) ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Setting up openssh-server (1:6.0p1-4+deb7u6) ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Creating SSH2 RSA key; this may take some time ...

Creating SSH2 DSA key; this may take some time ...

Creating SSH2 ECDSA key; this may take some time ...

[ ok ] Restarting OpenBSD Secure Shell server: sshd.

Setting up tcpd (7.6.q-24) ...

Setting up xauth (1:1.0.7-1) ...

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

 

 

 

 

安装locales:

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# chroot . apt-get install locales

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following NEW packages will be installed:

  locales

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 5711 kB of archives.

After this operation, 15.5 MB of additional disk space will be used.

Get:1 http://security.debian.org/ wheezy/updates/main locales all 2.13-38+deb7u11 [5711 kB]

Fetched 5711 kB in 2s (2352 kB/s)  

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = "zh_CN:zh",

LC_ALL = (unset),

LANG = "zh_CN.UTF-8"

    are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Preconfiguring packages ...

Can not write log, openpty() failed (/dev/pts not mounted?)

Selecting previously unselected package locales.

(Reading database ... 12787 files and directories currently installed.)

Unpacking locales (from .../locales_2.13-38+deb7u11_all.deb) ...

Processing triggers for man-db ...

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory

/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Can not write log, openpty() failed (/dev/pts not mounted?)

Setting up locales (2.13-38+deb7u11) ...

Generating locales (this might take a while)...

Generation complete.

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cat etc/locale.gen

# This file lists locales that you wish to have built. You can find a list

# of valid supported locales at /usr/share/i18n/SUPPORTED, and you can add

# user defined locales to /usr/local/share/i18n/SUPPORTED. If you change

# this file, you need to rerun locale-gen.

 

 

# aa_DJ ISO-8859-1

# aa_DJ.UTF-8 UTF-8

# aa_ER UTF-8

# aa_ER@saaho UTF-8

# aa_ET UTF-8

# af_ZA ISO-8859-1

# af_ZA.UTF-8 UTF-8

# am_ET UTF-8

# an_ES ISO-8859-15

# an_ES.UTF-8 UTF-8

# ar_AE ISO-8859-6

# ar_AE.UTF-8 UTF-8

# ar_BH ISO-8859-6

# ar_BH.UTF-8 UTF-8

# ar_DZ ISO-8859-6

# ar_DZ.UTF-8 UTF-8

# ar_EG ISO-8859-6

# ar_EG.UTF-8 UTF-8

# ar_IN UTF-8

# ar_IQ ISO-8859-6

# ar_IQ.UTF-8 UTF-8

# ar_JO ISO-8859-6

# ar_JO.UTF-8 UTF-8

# ar_KW ISO-8859-6

# ar_KW.UTF-8 UTF-8

# ar_LB ISO-8859-6

# ar_LB.UTF-8 UTF-8

# ar_LY ISO-8859-6

# ar_LY.UTF-8 UTF-8

# ar_MA ISO-8859-6

# ar_MA.UTF-8 UTF-8

# ar_OM ISO-8859-6

# ar_OM.UTF-8 UTF-8

# ar_QA ISO-8859-6

# ar_QA.UTF-8 UTF-8

# ar_SA ISO-8859-6

# ar_SA.UTF-8 UTF-8

# ar_SD ISO-8859-6

# ar_SD.UTF-8 UTF-8

# ar_SY ISO-8859-6

# ar_SY.UTF-8 UTF-8

# ar_TN ISO-8859-6

# ar_TN.UTF-8 UTF-8

# ar_YE ISO-8859-6

# ar_YE.UTF-8 UTF-8

# as_IN.UTF-8 UTF-8

# ast_ES ISO-8859-15

# ast_ES.UTF-8 UTF-8

# az_AZ.UTF-8 UTF-8

# be_BY CP1251

# be_BY.UTF-8 UTF-8

# be_BY@latin UTF-8

# bem_ZM UTF-8

# ber_DZ UTF-8

# ber_MA UTF-8

# bg_BG CP1251

# bg_BG.UTF-8 UTF-8

# bn_BD UTF-8

# bn_IN UTF-8

# bo_CN UTF-8

# bo_IN UTF-8

# br_FR ISO-8859-1

# br_FR.UTF-8 UTF-8

# br_FR@euro ISO-8859-15

# bs_BA ISO-8859-2

# bs_BA.UTF-8 UTF-8

# byn_ER UTF-8

# ca_AD ISO-8859-15

# ca_AD.UTF-8 UTF-8

# ca_ES ISO-8859-1

# ca_ES.UTF-8 UTF-8

# ca_ES.UTF-8@valencia UTF-8

# ca_ES@euro ISO-8859-15

# ca_ES@valencia ISO-8859-15

# ca_FR ISO-8859-15

# ca_FR.UTF-8 UTF-8

# ca_IT ISO-8859-15

# ca_IT.UTF-8 UTF-8

# crh_UA UTF-8

# cs_CZ ISO-8859-2

# cs_CZ.UTF-8 UTF-8

# csb_PL UTF-8

# cv_RU UTF-8

# cy_GB ISO-8859-14

# cy_GB.UTF-8 UTF-8

# da_DK ISO-8859-1

# da_DK.UTF-8 UTF-8

# de_AT ISO-8859-1

# de_AT.UTF-8 UTF-8

# de_AT@euro ISO-8859-15

# de_BE ISO-8859-1

# de_BE.UTF-8 UTF-8

# de_BE@euro ISO-8859-15

# de_CH ISO-8859-1

# de_CH.UTF-8 UTF-8

# de_DE ISO-8859-1

# de_DE.UTF-8 UTF-8

# de_DE@euro ISO-8859-15

# de_LI.UTF-8 UTF-8

# de_LU ISO-8859-1

# de_LU.UTF-8 UTF-8

# de_LU@euro ISO-8859-15

# dv_MV UTF-8

# dz_BT UTF-8

# el_CY ISO-8859-7

# el_CY.UTF-8 UTF-8

# el_GR ISO-8859-7

# el_GR.UTF-8 UTF-8

# en_AG UTF-8

# en_AU ISO-8859-1

# en_AU.UTF-8 UTF-8

# en_BW ISO-8859-1

# en_BW.UTF-8 UTF-8

# en_CA ISO-8859-1

# en_CA.UTF-8 UTF-8

# en_DK ISO-8859-1

# en_DK.ISO-8859-15 ISO-8859-15

# en_DK.UTF-8 UTF-8

# en_GB ISO-8859-1

# en_GB.ISO-8859-15 ISO-8859-15

# en_GB.UTF-8 UTF-8

# en_HK ISO-8859-1

# en_HK.UTF-8 UTF-8

# en_IE ISO-8859-1

# en_IE.UTF-8 UTF-8

# en_IE@euro ISO-8859-15

# en_IN UTF-8

# en_NG UTF-8

# en_NZ ISO-8859-1

# en_NZ.UTF-8 UTF-8

# en_PH ISO-8859-1

# en_PH.UTF-8 UTF-8

# en_SG ISO-8859-1

# en_SG.UTF-8 UTF-8

# en_US ISO-8859-1

# en_US.ISO-8859-15 ISO-8859-15

# en_US.UTF-8 UTF-8

# en_ZA ISO-8859-1

# en_ZA.UTF-8 UTF-8

# en_ZM UTF-8

# en_ZW ISO-8859-1

# en_ZW.UTF-8 UTF-8

# eo ISO-8859-3

# eo.UTF-8 UTF-8

# es_AR ISO-8859-1

# es_AR.UTF-8 UTF-8

# es_BO ISO-8859-1

# es_BO.UTF-8 UTF-8

# es_CL ISO-8859-1

# es_CL.UTF-8 UTF-8

# es_CO ISO-8859-1

# es_CO.UTF-8 UTF-8

# es_CR ISO-8859-1

# es_CR.UTF-8 UTF-8

# es_DO ISO-8859-1

# es_DO.UTF-8 UTF-8

# es_EC ISO-8859-1

# es_EC.UTF-8 UTF-8

# es_ES ISO-8859-1

# es_ES.UTF-8 UTF-8

# es_ES@euro ISO-8859-15

# es_GT ISO-8859-1

# es_GT.UTF-8 UTF-8

# es_HN ISO-8859-1

# es_HN.UTF-8 UTF-8

# es_MX ISO-8859-1

# es_MX.UTF-8 UTF-8

# es_NI ISO-8859-1

# es_NI.UTF-8 UTF-8

# es_PA ISO-8859-1

# es_PA.UTF-8 UTF-8

# es_PE ISO-8859-1

# es_PE.UTF-8 UTF-8

# es_PR ISO-8859-1

# es_PR.UTF-8 UTF-8

# es_PY ISO-8859-1

# es_PY.UTF-8 UTF-8

# es_SV ISO-8859-1

# es_SV.UTF-8 UTF-8

# es_US ISO-8859-1

# es_US.UTF-8 UTF-8

# es_UY ISO-8859-1

# es_UY.UTF-8 UTF-8

# es_VE ISO-8859-1

# es_VE.UTF-8 UTF-8

# et_EE ISO-8859-1

# et_EE.ISO-8859-15 ISO-8859-15

# et_EE.UTF-8 UTF-8

# eu_ES ISO-8859-1

# eu_ES.UTF-8 UTF-8

# eu_ES@euro ISO-8859-15

# eu_FR ISO-8859-1

# eu_FR.UTF-8 UTF-8

# eu_FR@euro ISO-8859-15

# fa_IR UTF-8

# ff_SN UTF-8

# fi_FI ISO-8859-1

# fi_FI.UTF-8 UTF-8

# fi_FI@euro ISO-8859-15

# fil_PH UTF-8

# fo_FO ISO-8859-1

# fo_FO.UTF-8 UTF-8

# fr_BE ISO-8859-1

# fr_BE.UTF-8 UTF-8

# fr_BE@euro ISO-8859-15

# fr_CA ISO-8859-1

# fr_CA.UTF-8 UTF-8

# fr_CH ISO-8859-1

# fr_CH.UTF-8 UTF-8

# fr_FR ISO-8859-1

# fr_FR.UTF-8 UTF-8

# fr_FR@euro ISO-8859-15

# fr_LU ISO-8859-1

# fr_LU.UTF-8 UTF-8

# fr_LU@euro ISO-8859-15

# fur_IT UTF-8

# fy_DE UTF-8

# fy_NL UTF-8

# ga_IE ISO-8859-1

# ga_IE.UTF-8 UTF-8

# ga_IE@euro ISO-8859-15

# gd_GB ISO-8859-15

# gd_GB.UTF-8 UTF-8

# gez_ER UTF-8

# gez_ER@abegede UTF-8

# gez_ET UTF-8

# gez_ET@abegede UTF-8

# gl_ES ISO-8859-1

# gl_ES.UTF-8 UTF-8

# gl_ES@euro ISO-8859-15

# gu_IN UTF-8

# gv_GB ISO-8859-1

# gv_GB.UTF-8 UTF-8

# ha_NG UTF-8

# he_IL ISO-8859-8

# he_IL.UTF-8 UTF-8

# hi_IN UTF-8

# hne_IN UTF-8

# hr_HR ISO-8859-2

# hr_HR.UTF-8 UTF-8

# hsb_DE ISO-8859-2

# hsb_DE.UTF-8 UTF-8

# ht_HT UTF-8

# hu_HU ISO-8859-2

# hu_HU.UTF-8 UTF-8

# hy_AM UTF-8

# hy_AM.ARMSCII-8 ARMSCII-8

# ia UTF-8

# id_ID ISO-8859-1

# id_ID.UTF-8 UTF-8

# ig_NG UTF-8

# ik_CA UTF-8

# is_IS ISO-8859-1

# is_IS.UTF-8 UTF-8

# it_CH ISO-8859-1

# it_CH.UTF-8 UTF-8

# it_IT ISO-8859-1

# it_IT.UTF-8 UTF-8

# it_IT@euro ISO-8859-15

# iu_CA UTF-8

# iw_IL ISO-8859-8

# iw_IL.UTF-8 UTF-8

# ja_JP.EUC-JP EUC-JP

# ja_JP.UTF-8 UTF-8

# ka_GE GEORGIAN-PS

# ka_GE.UTF-8 UTF-8

# kk_KZ PT154

# kk_KZ RK1048

# kk_KZ.UTF-8 UTF-8

# kl_GL ISO-8859-1

# kl_GL.UTF-8 UTF-8

# km_KH UTF-8

# kn_IN UTF-8

# ko_KR.EUC-KR EUC-KR

# ko_KR.UTF-8 UTF-8

# kok_IN UTF-8

# ks_IN UTF-8

# ks_IN@devanagari UTF-8

# ku_TR ISO-8859-9

# ku_TR.UTF-8 UTF-8

# kw_GB ISO-8859-1

# kw_GB.UTF-8 UTF-8

# ky_KG UTF-8

# lg_UG ISO-8859-10

# lg_UG.UTF-8 UTF-8

# li_BE UTF-8

# li_NL UTF-8

# lo_LA UTF-8

# lt_LT ISO-8859-13

# lt_LT.UTF-8 UTF-8

# lv_LV ISO-8859-13

# lv_LV.UTF-8 UTF-8

# mai_IN UTF-8

# mg_MG ISO-8859-15

# mg_MG.UTF-8 UTF-8

# mi_NZ ISO-8859-13

# mi_NZ.UTF-8 UTF-8

# mk_MK ISO-8859-5

# mk_MK.UTF-8 UTF-8

# ml_IN UTF-8

# mn_MN UTF-8

# mr_IN UTF-8

# ms_MY ISO-8859-1

# ms_MY.UTF-8 UTF-8

# mt_MT ISO-8859-3

# mt_MT.UTF-8 UTF-8

# my_MM UTF-8

# nan_TW@latin UTF-8

# nb_NO ISO-8859-1

# nb_NO.UTF-8 UTF-8

# nds_DE UTF-8

# nds_NL UTF-8

# ne_NP UTF-8

# nl_AW UTF-8

# nl_BE ISO-8859-1

# nl_BE.UTF-8 UTF-8

# nl_BE@euro ISO-8859-15

# nl_NL ISO-8859-1

# nl_NL.UTF-8 UTF-8

# nl_NL@euro ISO-8859-15

# nn_NO ISO-8859-1

# nn_NO.UTF-8 UTF-8

# nr_ZA UTF-8

# nso_ZA UTF-8

# oc_FR ISO-8859-1

# oc_FR.UTF-8 UTF-8

# om_ET UTF-8

# om_KE ISO-8859-1

# om_KE.UTF-8 UTF-8

# or_IN UTF-8

# os_RU UTF-8

# pa_IN UTF-8

# pa_PK UTF-8

# pap_AN UTF-8

# pl_PL ISO-8859-2

# pl_PL.UTF-8 UTF-8

# ps_AF UTF-8

# pt_BR ISO-8859-1

# pt_BR.UTF-8 UTF-8

# pt_PT ISO-8859-1

# pt_PT.UTF-8 UTF-8

# pt_PT@euro ISO-8859-15

# ro_RO ISO-8859-2

# ro_RO.UTF-8 UTF-8

# ru_RU ISO-8859-5

# ru_RU.CP1251 CP1251

# ru_RU.KOI8-R KOI8-R

# ru_RU.UTF-8 UTF-8

# ru_UA KOI8-U

# ru_UA.UTF-8 UTF-8

# rw_RW UTF-8

# sa_IN UTF-8

# sc_IT UTF-8

# sd_IN UTF-8

# sd_IN@devanagari UTF-8

# se_NO UTF-8

# shs_CA UTF-8

# si_LK UTF-8

# sid_ET UTF-8

# sk_SK ISO-8859-2

# sk_SK.UTF-8 UTF-8

# sl_SI ISO-8859-2

# sl_SI.UTF-8 UTF-8

# so_DJ ISO-8859-1

# so_DJ.UTF-8 UTF-8

# so_ET UTF-8

# so_KE ISO-8859-1

# so_KE.UTF-8 UTF-8

# so_SO ISO-8859-1

# so_SO.UTF-8 UTF-8

# sq_AL ISO-8859-1

# sq_AL.UTF-8 UTF-8

# sq_MK UTF-8

# sr_ME UTF-8

# sr_RS UTF-8

# sr_RS@latin UTF-8

# ss_ZA UTF-8

# st_ZA ISO-8859-1

# st_ZA.UTF-8 UTF-8

# sv_FI ISO-8859-1

# sv_FI.UTF-8 UTF-8

# sv_FI@euro ISO-8859-15

# sv_SE ISO-8859-1

# sv_SE.ISO-8859-15 ISO-8859-15

# sv_SE.UTF-8 UTF-8

# sw_KE UTF-8

# sw_TZ UTF-8

# ta_IN UTF-8

# te_IN UTF-8

# tg_TJ KOI8-T

# tg_TJ.UTF-8 UTF-8

# th_TH TIS-620

# th_TH.UTF-8 UTF-8

# ti_ER UTF-8

# ti_ET UTF-8

# tig_ER UTF-8

# tk_TM UTF-8

# tl_PH ISO-8859-1

# tl_PH.UTF-8 UTF-8

# tn_ZA UTF-8

# tr_CY ISO-8859-9

# tr_CY.UTF-8 UTF-8

# tr_TR ISO-8859-9

# tr_TR.UTF-8 UTF-8

# ts_ZA UTF-8

# tt_RU.UTF-8 UTF-8

# tt_RU.UTF-8@iqtelif UTF-8

# ug_CN UTF-8

# uk_UA KOI8-U

# uk_UA.UTF-8 UTF-8

# ur_PK UTF-8

# uz_UZ ISO-8859-1

# uz_UZ.UTF-8 UTF-8

# uz_UZ@cyrillic UTF-8

# ve_ZA UTF-8

# vi_VN UTF-8

# vi_VN.TCVN TCVN5712-1

# wa_BE ISO-8859-1

# wa_BE.UTF-8 UTF-8

# wa_BE@euro ISO-8859-15

# wo_SN UTF-8

# xh_ZA ISO-8859-1

# xh_ZA.UTF-8 UTF-8

# yi_US CP1255

# yi_US.UTF-8 UTF-8

# yo_NG UTF-8

# zh_CN GB2312

# zh_CN.GB18030 GB18030

# zh_CN.GBK GBK

# zh_CN.UTF-8 UTF-8

# zh_HK BIG5-HKSCS

# zh_HK.UTF-8 UTF-8

# zh_SG GB2312

# zh_SG.GBK GBK

# zh_SG.UTF-8 UTF-8

# zh_TW BIG5

# zh_TW.EUC-TW EUC-TW

# zh_TW.UTF-8 UTF-8

# zu_ZA ISO-8859-1

# zu_ZA.UTF-8 UTF-8

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# echo "en_US.UTF-8 UTF-8" > etc/locale.gen

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# echo "zh_CN.UTF-8 UTF-8" >> etc/locale.gen

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# chroot . locale-gen

Generating locales (this might take a while)...

  en_US.UTF-8... done

  zh_CN.UTF-8... done

Generation complete.

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cat etc/locale.gen

en_US.UTF-8 UTF-8

zh_CN.UTF-8 UTF-8

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

 

 

 

 

(可选操作:)

您还可以依样安装其他软件,比如 wifi tools、wpasupplicant、USB 无线网卡的固件(本人用的是巴法络(BUFFALO)WLI-UC-GNMNANO 迷你无线网卡,一款mini 型支持软AP 的USB 无线网卡)

不过我一般用常见的RTL8188EU/RTL8192CU,就不知道怎么配置了????谁知道的说一声!

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# chroot . apt-get install wireless-tools wpasupplicant firmware-ralink

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

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

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

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

  dbus libcap2 libdbus-1-3 libexpat1 libiw30 libnl-3-200 libnl-genl-3-200 libpcsclite1 libreadline5 libsystemd-login0

建议安装的软件包:

  dbus-x11 initramfs-tools linux-image pcscd wpagui libengine-pkcs11-openssl

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

  dbus firmware-ralink libcap2 libdbus-1-3 libexpat1 libiw30 libnl-3-200 libnl-genl-3-200 libpcsclite1 libreadline5 libsystemd-login0 wireless-tools wpasupplicant

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

需要下载 1,576 kB 的软件包。

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

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

获取:1 http://security.debian.org/ wheezy/updates/main libexpat1 armhf 2.1.0-1+deb7u4 [110 kB]

获取:2 http://security.debian.org/ wheezy/updates/main libnl-3-200 armhf 3.2.7-4+deb7u1 [49.0 kB]

获取:3 http://security.debian.org/ wheezy/updates/main libnl-genl-3-200 armhf 3.2.7-4+deb7u1 [18.1 kB]              

获取:4 http://security.debian.org/ wheezy/updates/main libpcsclite1 armhf 1.8.4-1+deb7u2 [52.4 kB]                        

获取:5 http://security.debian.org/ wheezy/updates/main libsystemd-login0 armhf 44-11+deb7u5 [27.6 kB]                 

获取:6 http://security.debian.org/ wheezy/updates/main wpasupplicant armhf 1.0-3+deb7u4 [522 kB]                           

获取:7 http://http.debian.net/debian/ wheezy/main libiw30 armhf 30~pre9-8 [33.4 kB]                                  

获取:8 http://http.debian.net/debian/ wheezy/main libcap2 armhf 1:2.22-1.2 [12.0 kB]

获取:9 http://http.debian.net/debian/ wheezy/main libdbus-1-3 armhf 1.6.8-1+deb7u6 [145 kB]

获取:10 http://http.debian.net/debian/ wheezy/main libreadline5 armhf 5.2+dfsg-2~deb7u1 [124 kB]

获取:11 http://http.debian.net/debian/ wheezy/main dbus armhf 1.6.8-1+deb7u6 [331 kB]

获取:12 http://http.debian.net/debian/ wheezy/non-free firmware-ralink all 0.36+wheezy.1 [21.4 kB]

获取:13 http://http.debian.net/debian/ wheezy/main wireless-tools armhf 30~pre9-8 [130 kB]

下载 1,576 kB,耗时 5秒 (301 kB/s)       

无法写入日志。 openpty() 失败(没有挂载 /dev/pts ?)

Selecting previously unselected package libcap2:armhf.

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

正在解压缩 libcap2:armhf (从 .../libcap2_1%3a2.22-1.2_armhf.deb) ...

Selecting previously unselected package libdbus-1-3:armhf.

正在解压缩 libdbus-1-3:armhf (从 .../libdbus-1-3_1.6.8-1+deb7u6_armhf.deb) ...

Selecting previously unselected package libexpat1:armhf.

正在解压缩 libexpat1:armhf (从 .../libexpat1_2.1.0-1+deb7u4_armhf.deb) ...

Selecting previously unselected package libiw30:armhf.

正在解压缩 libiw30:armhf (从 .../libiw30_30~pre9-8_armhf.deb) ...

Selecting previously unselected package libnl-3-200:armhf.

正在解压缩 libnl-3-200:armhf (从 .../libnl-3-200_3.2.7-4+deb7u1_armhf.deb) ...

Selecting previously unselected package libnl-genl-3-200:armhf.

正在解压缩 libnl-genl-3-200:armhf (从 .../libnl-genl-3-200_3.2.7-4+deb7u1_armhf.deb) ...

Selecting previously unselected package libpcsclite1:armhf.

正在解压缩 libpcsclite1:armhf (从 .../libpcsclite1_1.8.4-1+deb7u2_armhf.deb) ...

Selecting previously unselected package libreadline5:armhf.

正在解压缩 libreadline5:armhf (从 .../libreadline5_5.2+dfsg-2~deb7u1_armhf.deb) ...

Selecting previously unselected package libsystemd-login0:armhf.

正在解压缩 libsystemd-login0:armhf (从 .../libsystemd-login0_44-11+deb7u5_armhf.deb) ...

Selecting previously unselected package dbus.

正在解压缩 dbus (从 .../dbus_1.6.8-1+deb7u6_armhf.deb) ...

Selecting previously unselected package firmware-ralink.

正在解压缩 firmware-ralink (从 .../firmware-ralink_0.36+wheezy.1_all.deb) ...

Selecting previously unselected package wireless-tools.

正在解压缩 wireless-tools (从 .../wireless-tools_30~pre9-8_armhf.deb) ...

Selecting previously unselected package wpasupplicant.

正在解压缩 wpasupplicant (从 .../wpasupplicant_1.0-3+deb7u4_armhf.deb) ...

正在处理用于 man-db 的触发器...

无法写入日志。 openpty() 失败(没有挂载 /dev/pts ?)

正在设置 libcap2:armhf (1:2.22-1.2) ...

正在设置 libdbus-1-3:armhf (1.6.8-1+deb7u6) ...

正在设置 libexpat1:armhf (2.1.0-1+deb7u4) ...

正在设置 libiw30:armhf (30~pre9-8) ...

正在设置 libnl-3-200:armhf (3.2.7-4+deb7u1) ...

正在设置 libnl-genl-3-200:armhf (3.2.7-4+deb7u1) ...

正在设置 libpcsclite1:armhf (1.8.4-1+deb7u2) ...

正在设置 libreadline5:armhf (5.2+dfsg-2~deb7u1) ...

正在设置 libsystemd-login0:armhf (44-11+deb7u5) ...

正在设置 dbus (1.6.8-1+deb7u6) ...

[FAIL] Can't start system message bus - /proc is not mounted ... failed!

正在设置 firmware-ralink (0.36+wheezy.1) ...

正在设置 wireless-tools (30~pre9-8) ...

正在设置 wpasupplicant (1.0-3+deb7u4) ...

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

 

 

阅读全文
0 0