嵌入式LAB 1:启动

来源:互联网 发布:java excel预览 编辑:程序博客网 时间:2024/06/11 01:10

嵌入式系统Lab 1 启动

1、 画出你所实际实施的连接示意图

pcduino连接示意图

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

连接图片
近距离观看

3、给出所用的器材的列表

pcduino(含电源)、USB串口线、网线、SD卡、无线网卡
显示屏、鼠标、键盘、支持L2TP路由器、MacBook Air

4、给出得到的pcDuino启动时的输出文字,并逐行解释

U-Boot 2009.08 (Dec 25 2014 - 21:37:33)# U-Boot: Universal Boot Loader, 负责嵌入式 Linux 系统的引导CPU: Freescale i.MX6 family TO1.2 at 792 MHz# CPU 型号Thermal sensor with ratio = 172                                                 # 温度传感器Temperature:   35 C, calibration data 0x5404c169                                # 温度刻度mx6q pll1: 792MHz                                                               # 处理器主频mx6q pll2: 528MHz                                                               # 处理器主频mx6q pll3: 480MHz                                                               # 处理器主频mx6q pll8: 50MHz                                                                # 处理器主频ipg clock     : 66000000Hz                                                      #ipg per clock : 66000000Hzuart clock    : 80000000Hz                                                      # Universal Asynchronous Receiver/Transmitter, 通用异步收发传输器cspi clock    : 60000000Hzahb clock     : 132000000Hz                                                     # Advanced High Performance Bus, 高级高性能总线axi clock   : 264000000Hz                                                       # Advanced eXtensible Interface, 一种总线协议emi_slow clock: 132000000Hzddr clock     : 528000000Hz                                                     # Double Data Rate, 双倍速率同步动态随机存储器usdhc1 clock  : 198000000Hzusdhc2 clock  : 198000000Hzusdhc3 clock  : 198000000Hzusdhc4 clock  : 198000000Hznfc clock     : 24000000HzBoard: i.MX6Q-SABRESD: unknown-board Board: 0x63012 [POR ]                      # 主板Boot Device: MMC                                                                # 引导设备I2C:   ready                                                                    # 集成电路总线DRAM:   1 GB                                                                    # Dynamic Random Access Memory, 动态随机存储器MMC:   FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3                      # Multimedia Card, 多媒体记忆卡In:    serial                                                                   # 正常输入Out:   serial                                                                   # 正常输出Err:   serial                                                                   # 错误信息, 3者都在串口上config_ipu_di_clk: freq = 148500000.wait for pll5 lock.config_ipu_di_clk: set pll5 clock to 297000000Hz.Found PFUZE100! deviceid=10,revid=11Net:   got MAC address from IIM: 00:00:00:00:00:00                              # 获得 MAC 地址FEC0 [PRIME]Hit any key to stop autoboot:  0                                                # 在这里敲任意键可以停止自动引导, 0代表没有敲mmc3(part 0) is current device                                                  # 在MMC3上进行以下操作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                                                     # 验证 Checksum, 成功  Loading Kernel Image ... OK                                                   # 装载内核映像OKStarting kernel ...                                                             # 启动内核Uncompressing Linux... done, booting the kernel.                                # 内核的解压,引导,内核版本信息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 2014CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d                # CPU 信息CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache               # CPU 对缓存区的判别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                                       # 具体的 CPU 识别PERCPU: Embedded 7 pages/cpu @8c008000 s5472 r8192 d15008 u32768                # Per-CPU信息, Per-CPU 用来解决 CPU 之间同步问题Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 194560Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p1 rootwait fec_mac=4c:53:1e:15:61:d4 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 fbmem=28MPID hash table entries: 4096 (order: 2, 16384 bytes)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         # SLUB 分配器的参数, SLUB 是内核里面分配小内存的策略Preemptible hierarchical RCU implementation.                                    # 可抢先式内核NR_IRQS:624                                                                     # IRQ 的最大数目MXC GPIO hardwaresched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655msarm_max_freq=1GHzMXC_Early serial console at MMIO 0x2020000 (options '115200')bootconsole [ttymxc0] enabledConsole: colour dummy device 80x30Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)pid_max: default: 32768 minimum: 301Mount-cache hash table entries: 512CPU: Testing write buffer coherency: okhw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters availableCPU1: Booted secondary processorCPU2: Booted secondary processorCPU3: Booted secondary processorBrought up 4 CPUsSMP: Total of 4 processors activated (6324.22 BogoMIPS).print_constraints: dummy:NET: Registered protocol family 16print_constraints: vddpu: 725 <--> 1300 mV at 700 mV fast normalprint_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normalprint_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normalprint_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normalprint_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normalprint_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normalhw-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 enabledl2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 Bbio: create slab <bio-0> at 0mxs-dma mxs-dma-apbh: initializedprint_constraints: SPKVDD: 4200 mVprint_constraints: vmmc: 3300 mVSCSI subsystem initializedspi_imx imx6q-ecspi.0: probedspi_imx imx6q-ecspi.2: probedusbcore: registered new interface driver usbfsusbcore: registered new interface driver hubusbcore: registered new device driver usbFreescale USB OTG Driver loaded, $Revision: 1.55 $set the i2c clk:100000 Hz                                                       # 设置总线mc_pfuze 1-0008: ID: 0,Full lay: 1 ,Metal lay: 1mc_pfuze 1-0008: FAB: 0 ,FIN: 0print_constraints: PFUZE100_SW1A: 300 <--> 1875 mV at 1300 mVprint_constraints: PFUZE100_SW1B: 300 <--> 1875 mV at 300 mVprint_constraints: PFUZE100_SW1C: 300 <--> 1875 mV at 1300 mVprint_constraints: PFUZE100_SW2: 800 <--> 3950 mV at 3300 mVprint_constraints: PFUZE100_SW3A: 400 <--> 1975 mV at 1500 mVprint_constraints: PFUZE100_SW3B: 400 <--> 1975 mV at 1500 mVprint_constraints: PFUZE100_SW4: 800 <--> 3950 mV at 3150 mVprint_constraints: PFUZE100_SWBST: 5000 <--> 5150 mV at 5000 mVprint_constraints: PFUZE100_VSNVS: 1200 <--> 3000 mV at 1800 mVprint_constraints: PFUZE100_VREFDDR: at 750 mVprint_constraints: PFUZE100_VGEN1: 800 <--> 1550 mV at 1500 mVprint_constraints: PFUZE100_VGEN2: 800 <--> 1550 mV at 1500 mVprint_constraints: PFUZE100_VGEN3: 1800 <--> 3300 mV at 2800 mVprint_constraints: PFUZE100_VGEN4: 1800 <--> 3300 mV at 1800 mVprint_constraints: PFUZE100_VGEN5: 1800 <--> 3300 mV at 3000 mVprint_constraints: PFUZE100_VGEN6: 1800 <--> 3300 mV at 3300 mVimx-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 probedmxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302aMIPI CSI2 driver module loadedAdvanced Linux Sound Architecture Driver Version 1.0.24.Bluetooth: Core ver 2.16NET: Registered protocol family 31Bluetooth: HCI device and connection manager initializedBluetooth: HCI socket layer initializedBluetooth: L2CAP socket layer initializedBluetooth: SCO socket layer initializedcfg80211: Calling CRDA to update world regulatory domaini2c-core: driver [max17135] using legacy suspend methodi2c-core: driver [max17135] using legacy resume methodSwitching to clocksource mxc_timer1FS-Cache: LoadedNET: Registered protocol family 2IP 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 registeredUDP hash table entries: 512 (order: 2, 16384 bytes)UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)NET: Registered protocol family 1RPC: 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 0Static Power Management for Freescale i.MX6wait mode is enabled for i.MX6cpaddr = c0880000 suspend_iram_base=c0934000PM driver module loadedIMX usb wakeup probeadd wake up source irq 75IMX usb wakeup probecpu regulator mode:ldo_bypass_regulator_get: get() with no identifiermx6_cpu_regulator_init: failed to get pu regulatori.MXC CPU frequency drivernfs4filelayout_init: NFSv4 File Layout Driver Registering...Installing knfsd (copyright (C) 1996 okir@monad.swb.de).NTFS driver 2.1.30 [Flags: R/W].                                                # ntfs 驱动JFFS2 version 2.2. (NAND) ?? 2001-2006 Red Hat, Inc.fuse init (API version 7.16)msgmni has been set to 1493alg: No test for stdrng (krng)io scheduler noop registeredio scheduler deadline registeredio scheduler cfq registered (default)mxc_mipi_dsi mxc_mipi_dsi: i.MX MIPI DSI driver probedMIPI DSI driver module loadedmxc_sdc_fb mxc_sdc_fb.0: register mxc display driver hdmimxc_hdmi mxc_hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1fbcvt: 1920x1080@60: CVT Name - 2.073M9imx-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 240x67mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver ldb_regulator_get: get() with no identifiermxc_sdc_fb mxc_sdc_fb.2: register mxc display driver lcdmxc_sdc_fb mxc_sdc_fb.2: ipu0-di0 already in usemxc_sdc_fb: probe of mxc_sdc_fb.2 failed with error -16mxc_sdc_fb mxc_sdc_fb.3: register mxc display driver ldbimx-sdma imx-sdma: loaded firmware 1.1imx-sdma imx-sdma: initializedSerial: IMX driver                                                              # 串行驱动imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMXimx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMXconsole [ttymxc0] enabled, bootconsole disabledconsole [ttymxc0] enabled, bootconsole disabledloop: module loaded                                                             # 载入环回设备模块No sata disk.GPMI NAND driver registered. (IMX)vcan: Virtual CAN interface driverCAN device driver interfaceflexcan netdevice driverFEC Ethernet Driver                                                             # 网驱fec_enet_mii_bus: probedehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driverfsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controllerfsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1fsl-ehci fsl-ehci.0: irq 75, io base 0x02184000fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00usb usb1: New USB device found, idVendor=1d6b, idProduct=0002usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1usb usb1: Product: Freescale On-Chip EHCI Host Controllerusb usb1: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcdusb usb1: SerialNumber: fsl-ehci.0hub 1-0:1.0: USB hub foundhub 1-0:1.0: 1 port detectedadd wake up source irq 72fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controllerfsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2fsl-ehci fsl-ehci.1: irq 72, io base 0x02184200fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00usb usb2: New USB device found, idVendor=1d6b, idProduct=0002usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1usb usb2: Product: Freescale On-Chip EHCI Host Controllerusb usb2: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcdusb usb2: SerialNumber: fsl-ehci.1hub 2-0:1.0: USB hub foundhub 2-0:1.0: 1 port detectedusbcore: registered new interface driver wusb-cbafusbcore: registered new interface driver cdc_acmcdc_acm: USB Abstract Control Model driver for USB modems and ISDN adaptersusbcore: registered new interface driver uasInitializing USB Mass Storage driver...usbcore: registered new interface driver usb-storageUSB Mass Storage support registered.usbcore: registered new interface driver usbserialUSB Serial support registered for genericusbcore: registered new interface driver usbserial_genericusbserial: USB Serial Driver core                                               # 串口驱动USB Serial support registered for FTDI USB Serial Deviceusbcore: registered new interface driver ftdi_sioftdi_sio: v1.6.0:USB FTDI Serial Converters DriverUSB Serial support registered for Moschip 7840/7820 USB Serial Drivermos7840: 1.3.2:Moschip 7840/7820 USB Serial Driverusbcore: registered new interface driver mos7840ARC USBOTG Device Controller driver (1 August 2005)mousedev: PS/2 mouse device common for all miceinput: gpio-keys as /devices/platform/gpio-keys/input/input0i2c-core: driver [isl29023] using legacy suspend methodi2c-core: driver [isl29023] using legacy resume methodsnvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc0i2c /dev entries driverLinux video capture interface: v2.00mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video18mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video19mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video20i2c-core: driver [mag3110] using legacy suspend methodi2c-core: driver [mag3110] using legacy resume methodimx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)Bluetooth: Virtual HCI driver ver 1.3Bluetooth: HCI UART driver ver 2.2Bluetooth: HCIATH3K protocol initializedBluetooth: Generic Bluetooth USB driver ver 0.6usbcore: registered new interface driver btusbsdhci: Secure Digital Host Controller Interface driversdhci: Copyright(c) Pierre Ossmanmmc0: SDHCI controller on platform [sdhci-esdhc-imx.3] using DMAmmc1: SDHCI controller on platform [sdhci-esdhc-imx.1] using DMAsdhci sdhci-esdhc-imx.2: no write-protect pin available!mmc2: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMAmxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probedVPU initializedmxc_asrc registeredGalcore version 4.6.9.6622Thermal calibration data is 0x5404c169Thermal sensor with ratio = 172Anatop Thermal registered as thermal_zone0anatop_thermal_probe: default cooling device is cpufreq!leds-gpio: probe of leds-gpio failed with error -16usbcore: registered new interface driver usbhidusbhid: USB HID core driverusb 2-1: new high speed USB device number 2 using fsl-ehciusbcore: registered new interface driver snd-usb-audiomxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI AudioCirrus Logic CS42888 ALSA SoC Codec Driveri2c-core: driver [cs42888] using legacy suspend methodi2c-core: driver [cs42888] using legacy resume methodmmc0: new high speed DDR MMC card at address 0001mmcblk0: mmc0:0001 SEM08G 7.39 GiBmmcblk0boot0: mmc0:0001 SEM08G partition 1 2.00 MiBmmcblk0boot1: mmc0:0001 SEM08G partition 2 2.00 MiBmmcblk0: p1mmcblk0boot1: unknown partition tablemmcblk0boot0: unknown partition tablewm8962 0-001a: customer id 0 revision Dusb 2-1: New USB device found, idVendor=05e3, idProduct=0608usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0usb 2-1: Product: USB2.0 Hubhub 2-1:1.0: USB hub foundhub 2-1:1.0: 4 ports detectedinput: WM8962 Beep Generator as /devices/platform/imx-i2c.0/i2c-0/0-001a/input/input1asoc: wm8962 <-> imx-ssi.1 mapping okinput: wm8962-audio DMIC as /devices/platform/soc-audio.5/sound/card0/input2input: wm8962-audio Ext Spk as /devices/platform/soc-audio.5/sound/card0/input3imx_3stack asoc driverasoc: mxc-hdmi-soc <-> imx-hdmi-soc-dai.0 mapping okALSA device list: #0: wm8962-audio #1: imx-hdmi-socNET: Registered protocol family 26TCP cubic registeredNET: Registered protocol family 17can: controller area network core (rev 20090105 abi 8)NET: Registered protocol family 29can: raw protocol (rev 20090105)can: broadcast manager protocol (rev 20090105 t)Bluetooth: RFCOMM TTY layer initialized                                         # 蓝牙初始化Bluetooth: RFCOMM socket layer initializedBluetooth: RFCOMM ver 1.11Bluetooth: BNEP (Ethernet Emulation) ver 1.3Bluetooth: BNEP filters: protocol multicastBluetooth: HIDP (Human Interface Emulation) ver 1.2NET: Registered protocol family 33lib80211: common routines for IEEE802.11 driversRegistering the dns_resolver key typeVFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4Bus freq driver module loaded                                                   # 总线部分的驱动装载和启动Bus freq driver Enabledmxc_dvfs_core_probeDVFS driver module loadedkAFS: Red Hat AFS client v0.1 registering.regulator_init_complete: PFUZE100_VGEN6: incomplete constraints, leaving onregulator_init_complete: PFUZE100_VGEN3: incomplete constraints, leaving onregulator_init_complete: PFUZE100_VGEN2: incomplete constraints, leaving onregulator_init_complete: PFUZE100_VGEN1: incomplete constraints, leaving onsnvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:28 UTC (28)EXT3-fs: barriers not enabledusb 2-1.1: new high speed USB device number 3 using fsl-ehciusb 2-1.1: New USB device found, idVendor=0bda, idProduct=8179usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3usb 2-1.1: Product: 802.11n NICusb 2-1.1: Manufacturer: Realtekusb 2-1.1: SerialNumber: 00E04C0001kjournald starting.  Commit interval 5 secondsEXT3-fs (mmcblk0p1): warning: maximal mount count reached, running e2fsck is recommendedEXT3-fs (mmcblk0p1): using internal journalEXT3-fs (mmcblk0p1): recovery completeEXT3-fs (mmcblk0p1): mounted filesystem with writeback data modeVFS: Mounted root (ext3 filesystem) on device 179:1.                            # 虚拟文件系统的挂载Freeing init memory: 216K                                                       # 释放初始化内存ov5642_read_reg:write reg error:reg=300aov5640_read_reg:write reg error:reg=300aov5640_read_reg:write reg error:reg=300aLast login: Thu Jan  1 08:10:45 CST 1970 from 192.168.1.2 on pts/1              # 登陆时间(linaro 系统时间)和登陆地址Welcome to Linaro 12.11 (GNU/Linux 3.0.35-2666-gbdde708 armv7l)                 # 欢迎登陆,系统版本信息   Documentation:  https://wiki.linaro.org/                                         # linaro 系统的文档

5、如何通过Linux获得硬件数据,截屏给出获得的硬件数据,如CPU型号、时钟频率、内存大小等

①输入vim /proc/cpuinfo
CPU信息

②输入vim /proc/meminfo
内存信息

③输入vmstat
虚拟内存信息

④输入观察硬盘信息
硬盘信息

⑤输入fdisk观察分区情况
分区信息

6、给出你的网络配置参数,截屏给出从pcDuino和PC两端得到的网络已连接的证明

网络配置参数如下
ifconfig
pcDuino Ping PC
acadia ping pc
PC Ping acadia
pc ping acadia

7、给出你的SSH配置文件,并解释其中内容

下面是位于pcduino的/etc/ssh/ssh_conf中的内容

# This is the ssh client system-wide configuration file.  See# ssh_config(5) for more information.  This file provides defaults for# users, and the values can be changed in per-user configuration files# or on the command line.# Configuration data is parsed as follows: // 配置选项生效的优先级# 1. command line options // 命令行选项# 2. user-specific file // 用户指定文件# 3. system-wide file // 系统范围的文件# Any configuration value is only changed the first time it is set.# Thus, host-specific definitions should be at the beginning of the# configuration file, and defaults at the end.# Site-wide defaults for some commonly used options.  For a comprehensive# list of available options, their meanings and defaults, please see the# ssh_config(5) man page.Host *选项“Host”只对能够匹配后面字串的计算机有效。“*”表示 所有的计算机。#  ForwardAgent no设置连接是否经过验证代理(如果存在)转发给远程计算机#  ForwardX11 no设置X11连接是否被自动重定向到安全的通道和显示集#  ForwardX11Trusted yes是否允许转发X11会话#  RhostsRSAAuthentication no设置是否使用RSA进行rhosts的安全验证#  RSAAuthentication yes设置是否使用RSA进行安全验证#  PasswordAuthentication yes 设置是否需要口令验证#   HostbasedAuthentication no#   GSSAPIKeyExchange no#   GSSAPITrustDNS no#   BatchMode no#   CheckHostIP yes#   AddressFamily any#   ConnectTimeout 0#   StrictHostKeyChecking ask#   IdentityFile ~/.ssh/identity#   IdentityFile ~/.ssh/id_rsa#   IdentityFile ~/.ssh/id_dsa#   Port 22 sshd的监听端口号,默认为22#   Protocol 2,1#   Cipher 3des#Ciphersaes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160#   EscapeChar ~#   Tunnel no#   TunnelDevice any:any#   PermitLocalCommand no#   VisualHostKey no#   ProxyCommand ssh -q -W %h:%p gateway.example.com    SendEnv LANG LC_*    HashKnownHosts yes    GSSAPIAuthentication yes    GSSAPIDelegateCredentials no

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

PC上ssh pcduino
ssh

用w命令观察多个端口登陆的情况
端口情况

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

输入vim /etc/samba/smb.conf可以观察到配置内容。

#======================= Global Settings =======================[global]samba服务器的全局设置,对整个服务器有效## Browsing/Identification #### Change this to the workgroup/NT-domain name your Samba server will part of   workgroup = WORKGROUP 设定工作群组# server string is the equivalent of the NT Description field   server string = %h server (Samba, Ubuntu)设定 Samba Server 的注释# Windows Internet Name Serving Support Section:# WINS Support - Tells the NMBD component of Samba to enable its WINS Server#   wins support = no设定samba server 是否想网络提供WINS服务,通常无特殊原因设为no。# WINS Server - Tells the NMBD components of Samba to be a WINS Client# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both;   wins server = w.x.y.z设定samba server 是否要使用别台主机提供的WINS服务,通常无特殊原因设为no。# This will prevent nmbd to search for NetBIOS names through DNS.   dns proxy = no设定dns代理#### Networking ##### The specific set of interfaces / networks to bind to# This can be either the interface name or an IP address/netmask;# interface names are normally preferred;   interfaces = 127.0.0.0/8 eth0说明了网络接口# Only bind to the named interfaces and/or networks; you must use the# 'interfaces' option above to use this.# It is recommended that you enable this feature if your Samba machine is# not protected by a firewall or is a firewall itself.  However, this# option cannot handle dynamic or non-broadcast interfaces correctly.;   bind interfaces only = yes是否是连接已经命名的接口和网络#### Debugging/Accounting ##### This tells Samba to use a separate log file for each machine# that connects   log file = /var/log/samba/log.%m设置日志# Cap the size of the individual log files (in KiB).……中间是各种设置下面是自己定义的共享位置[share]      path = "/etc/share" 自己共享的路径      available = yes 是否可以      public = yes 是否公用      browseable = yes 是否能够浏览      valid users = public smbuser      guest ok = yes 客人能够访问吗      writable = yes 可写吗

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

比较

11、给出你所选择的交叉编译环境的情况:来源、安装过程等

本机是MacBook,用的是X86指令集的指令集。我们的目标是在自己的笔记本上将程序编译成ARM上的可执行代码,因为pcDuino是ARM的。参考了相关的教程之后,我是这样设置我的X86->ARM环境的。

从Github(地址附在后面)下载ARM GNU Linux编译工具链。经过了漫长的下载过程之后,我们需要新建一个磁盘映像,目的是为了提供一个对大小写敏感的环境。

新建映像

新建完一个映像之后。我们把压缩包解压到新的映像里面。
解压

附工具链下载地址:
https://github.com/downloads/UnhandledException/ARMx/ARMx-2009q3-67.tar.bz2

12、给出交叉编译的程序的情况,并证明它是ARM/MIPS的可执行文件

首先自己写一个简单的程序。代码如下

#include <stdio.h>int main() {    printf(“Hello World!\n”);    return 0;}

然后运用特别的gcc工具进行编译。
工具链

生成了a.out,然而在本地是不能够运行的。
本地不能运行

只有在arm的机子上,才能够正常运行。我们把这个二进制文件传送到pcduino上面,并尝试运行这个二进制文件。
acadia能运行

13、给出嵌入式板卡本机开发环境的情况,给出一或两种语言编程的例子和结果

简单地进行C语言的编程。如上。
C语言

Python也可以
Python

14、给出你尝试的远程图形桌面的方式:嵌入式板卡端的配置方法,PC端软件的获得,使用结果截屏等。

1、安装x11vnc 输入下面的命令: sudo apt-get install vino vinagre x11vnc2、设置远程桌面登录时使用的密码,设置完后直接回车确认保存密码到     ~/.vnc/passwd  文件里。输入下面的命令:sudo x11vnc -storepasswd3、设置x11vnc通用的密码存储位置输入下面的命令:sudo x11vnc -storepasswd in /etc/x11vnc.pass4、将用户目录下的passwd文件内容copy到 /etc/x11vnc.pass下输入下面的命令:sudo cp .vnc/passwd /etc/x11vnc.pass

在pcduino上的配置。其中5900是默认的端口。
配置

PC端使用

桌面

0 0
原创粉丝点击