码迷,mamicode.com
首页 > 其他好文 > 详细

实验1、认识pcDuino

时间:2016-06-24 15:20:00      阅读:730      评论:0      收藏:0      [点我收藏+]

标签:

 

一、实验目的和要求

u  了解嵌入式板卡一般情况

u  熟悉pcDuino的供电、调试串口等接线方式

u  熟悉Linux启动过程

u  熟悉通过Linux获得硬件数据

u  熟练掌握串口在PC上的使用

u  熟练掌握Linux的以太网和WiFi配置

u  熟练掌握Linux的SSH配置

u  熟练掌握PC上的SSH软件

u  掌握嵌入式板卡和PC建立文件共享的方式

u  寻找和安装交叉编译环境,理解交叉编译

u  熟悉嵌入式板卡的Linux下的编程环境

u  了解远程访问嵌入式板卡图形桌面的方式

二、实验内容和原理

       1、启动板子

l  在PC上安装好USB串口驱动和串口终端软件

l  按照板卡的要求,将USB串口线与实验板卡连接好,并连接好以太网

l  接上HDMI线和HDMI显示器(可选)

l  拍摄板卡及连线

l  给板卡上电,记录启动过程的输出

       2、网络连接

l  从串口终端软件登陆板卡的Linux,配置网络,从板卡和PC两端证明网络已连接

l  配置板卡上的Linux的SSH,可尝试采用各种不同的认证方式

l  从PC通过SSH登录板卡

l  看到多个不同端口的登陆(本机键盘/屏幕、串口和SSH)同时在线,并运用Linux的write来互相通信

       3、文件传输

l  尝试各种与嵌入式板卡传递文件的方式并做比较

l  通过SAMBA共享

l  通过NFS共享(选做)

l  通过sftp传递

l  通过串口XModem协议传递

       4、开发环境

l  选择和安装PC上的交叉编译环境

l  交叉编译C语言的浮点运算程序到板卡上去运行,证明所编译的程序是ARM的

l  尝试板卡上的三个语言的开发环境:C/C++、Python和Java

       5、远程图形访问

l  尝试各种从PC远程访问板卡图形桌面的方式

l  x-window(通过SSH)

l  RDP

l  VNC

       6、扩展内容(可选)

l  板卡上的Linux默认设置以太网为DHCP方式,如何配置一个DHCP局域网并找到板卡的IP

l  配置嵌入式板卡上的SAMBA服务端,让PC可以读写嵌入式板卡上的目录

l  在PC上交叉编译用到STL库的C++程序到嵌入式板卡上运行

l  在PC上编译Java程序到嵌入式板卡上运行,尝试GUI、多线程和socket编程(可能要用到通过SSH执行远端X程序的手段)

l  寻找一种嵌入式板卡上用的GUI IDE。

三、实验步骤和结果记录

1、启动板子

安装 minicom

设置波特率和软流控等

给板卡上电,记录启动过程的输出

拍摄板卡及连线:

2、网络连接

l  从串口终端软件登陆板卡的Linux,配置网络,从板卡和PC两端证明网络已连接

pcDuino没有无线网卡,不能通过wifi上网。我的方案是用网线将pcDuino和笔记本连接起来,通过笔记本的共享wifi实现上网。

首先在网络管理器中新建一个共享连接:

当pcDuino通过网线连上笔记本时,选择连接新建的share网络

此时pcDuino的ip配置如图:

笔记本上的ip配置如图:

测试连通情况,从两边都能ping通:

 pcDuino可以访问互联网: ping www.baidu.com

l  从笔记本通过SSH登录板卡:

l 配置板卡上的Linux的SSH,可尝试采用各种不同的认证方式:

配置rsa公钥到pcDuino上:

通过私钥,免密码ssh登陆:

l  看到多个不同端口的登陆(本机键盘/屏幕、串口和SSH)同时在线,并运用Linux的write来互相通信

现在可以看到串口,屏幕和ssh这3个tty: ttymxc0,tty1和pts/0.

运用Linux的write来互相通信:

 

3、文件传输

尝试各种与嵌入式板卡传递文件的方式并做比较

l 通过SAMBA共享

安装samba:

建立共享目录mkdir/home/samba && chmod 777 /home/samba

修改配置文件/etc/samba/smb.conf,添加security=share,并在末尾添加

启动Samba服务 /etc/init.d/smbd retart

在文件管理器地址栏中输入smb://10.42.0.58/share,即可访问:

 

 

l -通过NFS 共享(选做)

安装nfs服务器

设置/etc/exports

重启nfs服务

挂载nfs

l 通过sftp传递

在/etc/ssh/sshd_config中添加下列设置:

Subsystem sftp internal-sftp

Match Group sftp

ChrootDirectory /home/samba

ForceCommand internal-sftp

AllowTcpForwarding no

笔记本访问sftp服务

l 过串口XModem 协议传递

安装rx 命令:

运行rx命令;再Ctrl+A,Z,S ,选择xmodem,就会跳出一个选择传送文件的界面,选择好文件后,回车

4、开发环境

l 选择和安装PC上的交叉编译环境

安装gcc-arm-linux-gnueabihf:

l 交叉编译C语言的浮点运算程序到板卡上去运行,证明所编译的程序是ARM的

l 尝试板卡上的三个语言的开发环境:C/C++、Python和Java

C/C++,JAVA和Python版本:

C/C++:

Python:

Java:

5、远程图形访问

l x-window(通过SSH)

通过ssh -X命令

l RDP

板子上安装xrdp

笔记本上rdp客户端可采用remmina和gnome-rdp等.remmina已在ubuntu上默认安装,可直接运行:

 

remmina配置:

 

 

 

 

 

 

 

 

 

 

 

 

连接

l  VNC

在板子上安装tightvncserver

设置密码及在配置文件中将Xsession改为lxsession

依然通过remmina访问vnc,具体配置:

vnc连接:

6、扩展内容(可选)

l 板卡上的Linux默认设置以太网为DHCP方式,如何配置一个DHCP局域网并找到板卡的IP

我的板卡就是以 dhcp方式联网的,笔记本共享wifi到有线网卡,有线网卡担当dhcp服务器. 板卡IP如下:

l 配置嵌入式板卡上的SAMBA服务端,让PC可以读写嵌入式板卡上的目录

已经在上述步骤中完成

l 在PC上交叉编译用到STL库的C++程序到嵌入式板卡上运行

安装g++交叉编译环境g++-arm-linux-gnueabihf

g++程序及交叉编译:

运行c++程序:

l 在PC上编译Java程序到嵌入式板卡上运行,尝试GUI、多线程和socket编程(可能要用到通过SSH执行远端X程序的手段)

l 寻找一种嵌入式板卡上用的GUI IDE。

安装codelite

打开codelite

 

 

 

 

 

 

 

 

四、实验结果分析

l  画出所实际实施的连接示意图

l  给出实际拍摄的板卡连接照片

l  给出所用的器材的列表

       pcDuino实验板 x 1

       5V/1A电源 x 1

       microUSB线 x 1

       网线 x 1

l  给出拷贝得到的pcDuino启动时的输出文字,并逐行解释

#U-boot版本和编译日期

U-Boot 2009.08 (Dec 11 2014 - 20:20:23)

#硬件检测:CPU,温度传感器,时钟,主板等

#CPU型号

CPU: Freescale i.MX6 family TO1.2 at 792 MHz

#温度传感器

Thermal sensor with ratio = 174

Temperature:   32 C, calibration data 0x54f4c669

#CPU信息

mx6q pll1: 792MHz

mx6q pll2: 528MHz

mx6q pll3: 480MHz

mx6q pll8: 50MHz

#设置时钟频率

ipg clock     : 66000000Hz

ipg per clock : 66000000Hz

uart clock    : 80000000Hz

cspi clock    : 60000000Hz

ahb clock     : 132000000Hz

axi clock   : 264000000Hz

emi_slow clock: 132000000Hz

ddr clock     : 528000000Hz

usdhc1 clock  : 198000000Hz

usdhc2 clock  : 198000000Hz

usdhc3 clock  : 198000000Hz

usdhc4 clock  : 198000000Hz

nfc clock     : 24000000Hz

#主板信息

Board: i.MX6Q-SABRESD: unknown-board Board: 0x63012 [POR ]

#SD卡信息

Boot Device: MMC

I2C:   ready

#内存信息

DRAM:   1 GB

#串口检测

MMC:   FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3

In:    serial

Out:   serial

Err:   serial

config_ipu_di_clk: freq = 148500000.

wait for pll5 lock.

config_ipu_di_clk: set pll5 clock to 297000000Hz.

Found PFUZE100! deviceid=10,revid=11

#网卡检测

Net:   got MAC address from IIM: 00:00:00:00:00:00

FEC0 [PRIME]

Hit any key to stop autoboot:  0

mmc3(part 0) is current device

 

#读入SD卡里的linux内核

#内核版本

#内核类型

#内核大小

#读入地址

#入口地址

MMC read: dev # 3, block # 2048, count 10240 ... 10240 blocks read: OK

## Booting kernel from Legacy Image at 10800000 ...

   Image Name:   Linux-3.0.35-2666-gbdde708

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    4422312 Bytes =  4.2 MB

   Load Address: 10008000

   Entry Point:  10008000

   Verifying Checksum ... OK

   Loading Kernel Image ... OK

OK

 

#启动linux内核

Starting kernel ...

# 解压内核

Uncompressing Linux... done, booting the kernel.

#内核信息,版本号,gcc版本

Linux version 3.0.35-2666-gbdde708 (root@ubuntu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #218 SMP PREEMPT Thu Dec 18 22:32:36 PST 2014

#CPU型号

CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

#主板

Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board

#内存读写策略

Memory policy: ECC disabled, Data cache writealloc

CPU identified as i.MX6Q, silicon rev 1.2

PERCPU: Embedded 7 pages/cpu @8c008000 s5472 r8192 d15008 u32768

#建立zonelists

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 194560

#终端设置

Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p1 rootwait fec_mac=4c:53:54:f4:c6:69 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32M

#建立PID hash table

PID hash table entries: 4096 (order: 2, 16384 bytes)

#建立文件系统Dentry 和 Inode cache hast table

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

#检测内存

Memory: 512MB 256MB = 768MB total

Memory: 764648k/764648k available, 283928k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)

    vmalloc : 0xc0800000 - 0xf2000000   ( 792 MB)

    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f000000 - 0x7fe00000   (  14 MB)

      .init : 0x80008000 - 0x8003e000   ( 216 kB)

      .text : 0x8003e000 - 0x80b93ca8   (11608 kB)

      .data : 0x80b94000 - 0x80bff600   ( 430 kB)

       .bss : 0x80bff624 - 0x80c58d0c   ( 358 kB)

SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

Preemptible hierarchical RCU implementation.

NR_IRQS:624

MXC GPIO hardware

sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms

arm_max_freq=1GHz

#串口终端配置

MXC_Early serial console at MMIO 0x2020000 (options ‘115200‘)

bootconsole [ttymxc0] enabled

Console: colour dummy device 80x30

Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)

#最大进程数

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

#CPU测试和启动

CPU: Testing write buffer coherency: ok

hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available

CPU1: Booted secondary processor

CPU2: Booted secondary processor

CPU3: Booted secondary processor

Brought up 4 CPUs

SMP: Total of 4 processors activated (6324.22 BogoMIPS).

print_constraints: dummy:

#电压范围设置

NET: Registered protocol family 16

print_constraints: vddpu: 725 <--> 1300 mV at 700 mV fast normal

print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal

print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal

print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal

print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal

print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal

hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.

hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.

hw-breakpoint: maximum watchpoint size is 4 bytes.

L310 cache controller enabled

l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B

bio: create slab <bio-0> at 0

mxs-dma mxs-dma-apbh: initialized

print_constraints: SPKVDD: 4200 mV

print_constraints: vmmc: 3300 mV

#装载USB OTG驱动

SCSI subsystem initialized

spi_imx imx6q-ecspi.0: probed

spi_imx imx6q-ecspi.2: probed

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

Freescale USB OTG Driver loaded, $Revision: 1.55 $

#时钟和电压设置

set the i2c clk:100000 Hz

mc_pfuze 1-0008: ID: 0,Full lay: 1 ,Metal lay: 1

mc_pfuze 1-0008: FAB: 0 ,FIN: 0

print_constraints: PFUZE100_SW1A: 300 <--> 1875 mV at 1300 mV

print_constraints: PFUZE100_SW1B: 300 <--> 1875 mV at 300 mV

print_constraints: PFUZE100_SW1C: 300 <--> 1875 mV at 1300 mV

print_constraints: PFUZE100_SW2: 800 <--> 3950 mV at 3300 mV

print_constraints: PFUZE100_SW3A: 400 <--> 1975 mV at 1500 mV

print_constraints: PFUZE100_SW3B: 400 <--> 1975 mV at 1500 mV

print_constraints: PFUZE100_SW4: 800 <--> 3950 mV at 3150 mV

print_constraints: PFUZE100_SWBST: 5000 <--> 5150 mV at 5000 mV

print_constraints: PFUZE100_VSNVS: 1200 <--> 3000 mV at 1800 mV

print_constraints: PFUZE100_VREFDDR: at 750 mV

print_constraints: PFUZE100_VGEN1: 800 <--> 1550 mV at 1500 mV

print_constraints: PFUZE100_VGEN2: 800 <--> 1550 mV at 1500 mV

print_constraints: PFUZE100_VGEN3: 1800 <--> 3300 mV at 2800 mV

print_constraints: PFUZE100_VGEN4: 1800 <--> 3300 mV at 1800 mV

print_constraints: PFUZE100_VGEN5: 1800 <--> 3300 mV at 3000 mV

print_constraints: PFUZE100_VGEN6: 1800 <--> 3300 mV at 3300 mV

imx-ipuv3 imx-ipuv3.0: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)

imx-ipuv3 imx-ipuv3.1: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)

mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 driver probed

mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302a

MIPI CSI2 driver module loaded

#装载声卡、蓝牙、无线驱动

Advanced Linux Sound Architecture Driver Version 1.0.24.

Bluetooth: Core ver 2.16

NET: Registered protocol family 31

Bluetooth: HCI device and connection manager initialized

Bluetooth: HCI socket layer initialized

Bluetooth: L2CAP socket layer initialized

Bluetooth: SCO socket layer initialized

cfg80211: Calling CRDA to update world regulatory domain

i2c-core: driver [max17135] using legacy suspend method

i2c-core: driver [max17135] using legacy resume method

Switching to clocksource mxc_timer1

FS-Cache: Loaded

#配置网络协议:TCP、UDP、RPC

NET: Registered protocol family 2

IP route cache hash table entries: 32768 (order: 5, 131072 bytes)

TCP established hash table entries: 131072 (order: 8, 1048576 bytes)

TCP bind hash table entries: 65536 (order: 7, 786432 bytes)

TCP: Hash tables configured (established 131072 bind 65536)

TCP reno registered

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

PMU: registered new PMU device of type 0

#电源管理

Static Power Management for Freescale i.MX6

wait mode is enabled for i.MX6

cpaddr = c0880000 suspend_iram_base=c0934000

PM driver module loaded

IMX usb wakeup probe

add wake up source irq 75

IMX usb wakeup probe

cpu regulator mode:ldo_bypass

_regulator_get: get() with no identifier

mx6_cpu_regulator_init: failed to get pu regulator

i.MXC CPU frequency driver

#注册NTFS和JFFS2文件系统

nfs4filelayout_init: NFSv4 File Layout Driver Registering...

Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

NTFS driver 2.1.30 [Flags: R/W].

JFFS2 version 2.2. (NAND) 锟铰?2001-2006 Red Hat, Inc.

fuse init (API version 7.16)

msgmni has been set to 1493

alg: No test for stdrng (krng)

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

mxc_mipi_dsi mxc_mipi_dsi: i.MX MIPI DSI driver probed

MIPI DSI driver module loaded

#视频输出配置

mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver hdmi

mxc_hdmi mxc_hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1

fbcvt: 1920x1080@60: CVT Name - 2.073M9

imx-ipuv3 imx-ipuv3.0: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)

Console: switching to colour frame buffer device 240x67

mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver ldb

_regulator_get: get() with no identifier

mxc_sdc_fb mxc_sdc_fb.2: register mxc display driver lcd

mxc_sdc_fb mxc_sdc_fb.2: ipu0-di0 already in use

mxc_sdc_fb: probe of mxc_sdc_fb.2 failed with error -16

mxc_sdc_fb mxc_sdc_fb.3: register mxc display driver ldb

imx-sdma imx-sdma: loaded firmware 1.1

imx-sdma imx-sdma: initialized

Serial: IMX driver

imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX

imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX

console [ttymxc0] enabled, bootconsole disabled

console [ttymxc0] enabled, bootconsole disabled

loop: module loaded

No sata disk.

GPMI NAND driver registered. (IMX)

vcan: Virtual CAN interface driver

CAN device driver interface

flexcan netdevice driver

FEC Ethernet Driver

fec_enet_mii_bus: probed

#USB设备检测

ehci_hcd: USB 2.0 ‘Enhanced‘ Host Controller (EHCI) Driver

fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller

fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1

fsl-ehci fsl-ehci.0: irq 75, io base 0x02184000

fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00

usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

usb usb1: Product: Freescale On-Chip EHCI Host Controller

usb usb1: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcd

usb usb1: SerialNumber: fsl-ehci.0

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

add wake up source irq 72

fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller

fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2

fsl-ehci fsl-ehci.1: irq 72, io base 0x02184200

fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00

#建立USB设备连接

usb usb2: New USB device found, idVendor=1d6b, idProduct=0002

usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

usb usb2: Product: Freescale On-Chip EHCI Host Controller

usb usb2: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcd

usb usb2: SerialNumber: fsl-ehci.1

hub 2-0:1.0: USB hub found

hub 2-0:1.0: 1 port detected

usbcore: registered new interface driver wusb-cbaf

usbcore: registered new interface driver cdc_acm

cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

usbcore: registered new interface driver uas

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

usbcore: registered new interface driver usbserial

USB Serial support registered for generic

usbcore: registered new interface driver usbserial_generic

usbserial: USB Serial Driver core

USB Serial support registered for FTDI USB Serial Device

usbcore: registered new interface driver ftdi_sio

ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver

USB Serial support registered for Moschip 7840/7820 USB Serial Driver

mos7840: 1.3.2:Moschip 7840/7820 USB Serial Driver

usbcore: registered new interface driver mos7840

ARC USBOTG Device Controller driver (1 August 2005)

mousedev: PS/2 mouse device common for all mice

input: gpio-keys as /devices/platform/gpio-keys/input/input0

i2c-core: driver [isl29023] using legacy suspend method

i2c-core: driver [isl29023] using legacy resume method

snvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc0

i2c /dev entries driver

#linux图像采集卡检测

Linux video capture interface: v2.00

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video18

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video19

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video20

i2c-core: driver [mag3110] using legacy suspend method

i2c-core: driver [mag3110] using legacy resume method

imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)

#蓝牙驱动

Bluetooth: Virtual HCI driver ver 1.3

Bluetooth: HCI UART driver ver 2.2

Bluetooth: HCIATH3K protocol initialized

Bluetooth: Generic Bluetooth USB driver ver 0.6

usbcore: registered new interface driver btusb

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

mmc0: SDHCI controller on platform [sdhci-esdhc-imx.3] using DMA

mmc1: SDHCI controller on platform [sdhci-esdhc-imx.1] using DMA

sdhci sdhci-esdhc-imx.2: no write-protect pin available!

mmc2: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMA

mxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probed

VPU initialized

mxc_asrc registered

Galcore version 4.6.9.6622

Thermal calibration data is 0x54f4c669

Thermal sensor with ratio = 174

Anatop Thermal registered as thermal_zone0

anatop_thermal_probe: default cooling device is cpufreq!

leds-gpio: probe of leds-gpio failed with error -16

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

usb 2-1: new high speed USB device number 2 using fsl-ehci

usbcore: registered new interface driver snd-usb-audio

mxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI Audio

Cirrus Logic CS42888 ALSA SoC Codec Driver

i2c-core: driver [cs42888] using legacy suspend method

i2c-core: driver [cs42888] using legacy resume method

mmc0: new high speed DDR MMC card at address 0001

mmcblk0: mmc0:0001 SEM08G 7.39 GiB

mmcblk0boot0: mmc0:0001 SEM08G partition 1 2.00 MiB

mmcblk0boot1: mmc0:0001 SEM08G partition 2 2.00 MiB

 mmcblk0: p1

 mmcblk0boot1: unknown partition table

 mmcblk0boot0: unknown partition table

wm8962 0-001a: customer id 0 revision D

input: WM8962 Beep Generator as /devices/platform/imx-i2c.0/i2c-0/0-001a/input/input1

asoc: wm8962 <-> imx-ssi.1 mapping ok

input: wm8962-audio DMIC as /devices/platform/soc-audio.5/sound/card0/input2

input: wm8962-audio Ext Spk as /devices/platform/soc-audio.5/sound/card0/input3

usb 2-1: New USB device found, idVendor=05e3, idProduct=0608

usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0

usb 2-1: Product: USB2.0 Hub

hub 2-1:1.0: USB hub found

imx_3stack asoc driver

hub 2-1:1.0: 4 ports detected

asoc: mxc-hdmi-soc <-> imx-hdmi-soc-dai.0 mapping ok

ALSA device list:

  #0: wm8962-audio

  #1: imx-hdmi-soc

NET: Registered protocol family 26

TCP cubic registered

NET: Registered protocol family 17

can: controller area network core (rev 20090105 abi 8)

NET: Registered protocol family 29

can: raw protocol (rev 20090105)

can: broadcast manager protocol (rev 20090105 t)

Bluetooth: RFCOMM TTY layer initialized

Bluetooth: RFCOMM socket layer initialized

Bluetooth: RFCOMM ver 1.11

Bluetooth: BNEP (Ethernet Emulation) ver 1.3

Bluetooth: BNEP filters: protocol multicast

Bluetooth: HIDP (Human Interface Emulation) ver 1.2

NET: Registered protocol family 33

lib80211: common routines for IEEE802.11 drivers

Registering the dns_resolver key type

VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

Bus freq driver module loaded

Bus freq driver Enabled

mxc_dvfs_core_probe

DVFS driver module loaded

kAFS: Red Hat AFS client v0.1 registering.

regulator_init_complete: PFUZE100_VGEN6: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN3: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN2: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN1: incomplete constraints, leaving on

snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:01:35 UTC (95)

#ext3文件系统

EXT3-fs: barriers not enabled

EXT3-fs (mmcblk0p1): warning: maximal mount count reached, running e2fsck is recommended

kjournald starting.  Commit interval 5 seconds

EXT3-fs (mmcblk0p1): using internal journal

EXT3-fs (mmcblk0p1): mounted filesystem with writeback data mode

VFS: Mounted root (ext3 filesystem) on device 179:1.

Freeing init memory: 216K

ov5640_read_reg:write reg error:reg=300a

ov5642_read_reg:write reg error:reg=300a

ov5640_read_reg:write reg error:reg=300a

#成功登录

#登录后的版本和文档信息

Last login: Thu Jan  1 08:00:05 CST 1970 on tty1

Welcome to Linaro 12.11 (GNU/Linux 3.0.35-2666-gbdde708 armv7l)

 

 * Documentation:  https://wiki.linaro.org/

 * Starting ISC DHCP IPv4 server[ OK ]

 * Exporting directories for NFS kernel daemon...        exportfs: /etc/exports [2]: Neither ‘subtree_check‘ or ‘no_subtree_check‘ specified for expor.

  Assuming default behaviour (‘no_subtree_check‘).

  NOTE: this default has changed since nfs-utils version 1.0.x

 

exportfs: /etc/exports [4]: Neither ‘subtree_check‘ or ‘no_subtree_check‘ specified for export "127.0.0.1/255.255.255.0:/home/nfs".

  Assuming default behaviour (‘no_subtree_check‘).

  NOTE: this default has changed since nfs-utils version 1.0.x

 

[ OK ]

 * Starting NFS kernel daemon        rpc.nfsd: address family inet6 not supportNFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directoy

ed by protocol TCP

NFSD: starting 90-second grace period

rpc.mountd: svc_tli_create: could not open connection for udp6

rpc.mountd: svc_tli_create: could not open connection for tcp6

rpc.mountd: svc_tli_create: could not open connection for udp6

rpc.mountd: svc_tli_create: could not open connection for tcp6

[ OK ]

root@Acadia:~# [drm] Initialized drm 1.1.0 20060810

[drm] Initialized vivante 1.0.0 20120216 on minor 0

Starting xl2tpd: xl2tpd.

 * Starting Remote Desktop Protocol server         ehci_fsl_bus_suspend begins, Host 1

ehci_fsl_bus_suspend ends, Host 1

[ OK ]

init: plymouth-stop pre-start process (3184) terminated with status 1

init: tty1 main process (3185) killed by TERM signal

 

 

l  如何通过Linux获得硬件及操作系统数据

CPU信息

内存信息

操作系统信息

gcc版本

文件系统

l 给出网络配置参数,截屏给出从板卡和PC两端得到的网络已连接的证明

auto lo

iface lo inet loopback

iface eth0 inet dhcp

l 给出SSH配置文件,并解释其中内容

  Port 22

       使用22号端口

  Protocol 2

       指定 sshd(8) 支持的SSH协议的版本号。

  HostKey /etc/ssh/ssh_host_rsa_key

  HostKey /etc/ssh/ssh_host_dsa_key

  HostKey /etc/ssh/ssh_host_ecdsa_key

       主机私钥文件的位置

  UsePrivilegeSeparation yes

       用户权限分离,创建用户子进程

  KeyRegenerationInterval 3600

       在SSH-1协议下,短命的服务器密钥将以3600秒为周期不断重新生成

  ServerKeyBits 768

       指定临时服务器密钥的长度。仅用于SSH-1。默认值是 768(位)。最小值

       是 512 。

  SyslogFacility AUTH

       指定 sshd(8) 将日志消息通过AUTH日志子系统(facility)发送

  LogLevel INFO

       指定 sshd(8) 的日志等级(详细程度)为INFO

  LoginGraceTime 120

       限制用户必须在指定的时限内认证成功,0 表示无限制。默认值是 120        秒。

  PermitRootLogin yes

       允许root用户登录

  StrictModes yes

       指定是否要求 sshd(8) 在接受连接请求前对用户主目录和相关的配置文  件进行宿主和权限检查

  RSAAuthentication yes

       是否允许使用纯 RSA 公钥认证。仅用于SSH-1

  IgnoreRhosts yes

       是否在 RhostsRSAAuthentication 或 HostbasedAuthentication 过程中忽   略 .rhosts

  RhostsRSAAuthentication no

       是否使用强可信主机认证(通过检查远程主机名和关联的用户名进行认     证)。仅用于SSH-1。

  HostbasedAuthentication no

       这个指令与 RhostsRSAAuthentication 类似,但是仅可以用于SSH-2。

  PermitEmptyPasswords no

       是否允许密码为空的用户远程登录

  ChallengeResponseAuthentication no

       是否允许质疑-应答(challenge-response)认证

  X11Forwarding yes

       是否允许进行 X11 转发。

  X11DisplayOffset 10

       指定 sshd(8) X11 转发的第一个可用的显示区(display)数字。

  PrintMotd no

       指定 sshd(8) 是否在每一次交互式登录时打印 /etc/motd文件的内容.

  PrintLastLog yes

       指定 sshd(8) 是否在每一次交互式登录时打印最后一位用户的登录时间

  TCPKeepAlive yes

       指定系统是否向客户端发送 TCP keepalive 消息

  AcceptEnv LANG LC_*

       指定客户端发送的哪些环境变量将会被传递到会话环境中。

  Subsystem sftp /usr/lib/openssh/sftp-server

       配置一个外部子系统。仅用于SSH-2协议。

  UsePAM yes

       使用PAM验证

  Subsystem sftp internal-sftp

       指定使用sftp服务使用系统自带的internal-sftp

  Match Group sftp 

       匹配sftp组的用户

  ChrootDirectory /home/samba

       用chroot将用户的根目录指定到/home/samba

  ForceCommand internal-sftp

       指定sftp命令

  AllowTcpForwarding no

       禁止用户使用端口转发

l 存在多个登陆时,如何看到不同端口的登陆,给出截屏结果

w命令:

 

 

l 给出嵌入式板卡上的SAMBA配置文件内容,并逐行解释

  workgroup = WORKGROUP 

       设定 Samba Server 所要加入的工作组或者域

  server string = %h server (Samba, Ubuntu)

       设定 Samba Server 的注释

  dns proxy = no

       关闭dns代理服务。

  log file = /var/log/samba/log.%m

       设置Samba Server日志文件的存储位置以及日志文件名称

  max log size = 1000

       设置Samba Server日志文件的最大容量为1000KB

  syslog = 0

       不将日志信息写到syslog

  panic action = /usr/share/samba/panic-action %d

   当SAMBA崩溃时,执行某动作

  security = share

       用户访问Samba Server不需要提供用户名和口令

  encrypt passwords = true

       将认证密码加密

  passdb backend = tdbsam

       使用一个数据库文件来建立用户数据库

  [share]  共享名

        comment = share all  介绍

        path = /home/samba  共享目录

        browseable = yes    该共享可以浏览

        public = yes        允许guest账户访问

        writable = yes       可写

l 给出用各种方式传递文件的过程,并从易用性、速度、安全等方面做比较

       sftp基于SSH协议,对文件进行加密,安全性最高;NFS,SAMBA基于TCP/IP协议,明文传输,安全性差;Xmodem同样是明文传输,安全性差。速度方面NFS最快,SAMBA其次,sftp因为加密缘故较慢,Xmodem最慢。

sftp,NFS,samba易用性都差不多,都有比较好的图形界面支持,Xmodem易用性差。

l  说明其他所做的扩展内容的情况

除了显示器外的其他可选的扩展内容:NFS, DHCP,SAMBA,交叉编译C++,PC上编译JAVA,IDE

五、讨论与心得

    通过这次实验,掌握了PCduino开

实验1、认识pcDuino

标签:

原文地址:http://blog.csdn.net/zdy_scott/article/details/51742773

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!