2回答

0收藏

[原创] [MYD-Y6ULX试用]2.系统初步把玩&联网

嵌入式系统 嵌入式系统 6962 人阅读 | 2 人回复 | 2018-03-27

本帖最后由 风之山谷 于 2018-3-27 06:37 编辑

之前由于某些事情比较忙,有一段比较长的时间没有更新了,被可依数次提醒了 这次就来更新了~
由于板子上面没有带有串口转USB芯片,因此需要外接一个Uart转USB的模块,我使用的是FT232的芯片,总共三根线:Tx、Rx、GND,模块上Rx接板子上Tx;模块上Tx接板子上Rx;
在软件上我使用SecureCRT软件,这个软件支持多个功能,我用它来与开发板沟通。

插上外置电源,上电,设置好串口波特率和端口后串口打印出以下内容:
  1. U-Boot 2016.03-mys-6ulx+g9008006 (Jan 16 2018 - 16:55:05 +0800)

  2. CPU:   Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz)
  3. CPU:   Industrial temperature grade (-40C to 105C) at 40C
  4. Reset cause: POR
  5. Board: MYD-Y6UL 14x14
  6. I2C:   ready
  7. DRAM:  256 MiB
  8. NAND:  256 MiB
  9. MMC:   MMC/SD: Reset never completed.
  10. voltage not supported by controller
  11. Warning: failed to initialize mmc dev 1
  12. FSL_SDHC: 0
  13. *** Warning - bad CRC, using default environment

  14. Display: TFT43AB (480x272)
  15. Video: 480x272x24
  16. In:    serial
  17. Out:   serial
  18. Err:   serial
  19. Net:   Board Net Initialization Failed
  20. No ethernet found.
  21. Normal Boot
  22. Hit any key to stop autoboot:  0

  23. NAND read: device 0 offset 0x500000, size 0xa00000
  24. 10485760 bytes read: OK

  25. NAND read: device 0 offset 0xf00000, size 0x100000
  26. 1048576 bytes read: OK
  27. Kernel image @ 0x80800000 [ 0x000000 - 0x602380 ]
  28. ## Flattened Device Tree blob at 83000000
  29.    Booting using the fdt blob at 0x83000000
  30.    Using Device Tree in place at 83000000, end 8300c1d3
  31. Modify /soc/aips-bus@02000000/bee@02044000:status disabled
  32. ft_system_setup for mx6

  33. Starting kernel ...

  34. Booting Linux on physical CPU 0x0
  35. Linux version 4.1.15-1.2.0+g6ae884d (blackrose@brix4770-debian) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Wed Jan 24 11:04:25 CST 2018
  36. CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
  37. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  38. Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board
  39. Reserved memory: failed to allocate memory for node 'linux,cma'
  40. Memory policy: Data cache writealloc
  41. PERCPU: Embedded 12 pages/cpu @8fdd3000 s16908 r8192 d24052 u49152
  42. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
  43. Kernel command line: console=ttymxc0,115200 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs mtdparts=gpmi-nand:5m(boot),10m(kernel),1m(dtb),-(rootfs)
  44. PID hash table entries: 1024 (order: 0, 4096 bytes)
  45. Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
  46. Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
  47. Memory: 247644K/262144K available (7847K kernel code, 429K rwdata, 2860K rodata, 424K init, 441K bss, 14500K reserved, 0K cma-reserved, 0K highmem)
  48. Virtual kernel memory layout:
  49.     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  50.     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
  51.     vmalloc : 0x90800000 - 0xff000000   (1768 MB)
  52.     lowmem  : 0x80000000 - 0x90000000   ( 256 MB)
  53.     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
  54.     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
  55.       .text : 0x80008000 - 0x80a7d0f0   (10709 kB)
  56.       .init : 0x80a7e000 - 0x80ae8000   ( 424 kB)
  57.       .data : 0x80ae8000 - 0x80b53720   ( 430 kB)
  58.        .bss : 0x80b56000 - 0x80bc45b8   ( 442 kB)
  59. SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  60. Preemptible hierarchical RCU implementation.
  61.         Additional per-CPU info printed with stalls.
  62.         RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
  63. RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
  64. NR_IRQS:16 nr_irqs:16 16
  65. mxc_clocksource_init 24000000
  66. Switching to timer-based delay loop, resolution 41ns
  67. sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
  68. clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
  69. Console: colour dummy device 80x30
  70. Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
  71. pid_max: default: 32768 minimum: 301
  72. Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  73. Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  74. CPU: Testing write buffer coherency: ok
  75. /cpus/cpu@0 missing clock-frequency property
  76. CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  77. Setting up static identity map for 0x80008280 - 0x800082d8
  78. Brought up 1 CPUs
  79. SMP: Total of 1 processors activated (48.00 BogoMIPS).
  80. CPU: All CPU(s) started in SVC mode.
  81. devtmpfs: initialized
  82. device-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"
  83. VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
  84. clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  85. pinctrl core: initialized pinctrl subsystem
  86. NET: Registered protocol family 16
  87. DMA: preallocated 256 KiB pool for atomic coherent allocations
  88. cpuidle: using governor ladder
  89. cpuidle: using governor menu
  90. hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
  91. hw-breakpoint: maximum watchpoint size is 8 bytes.
  92. imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
  93. mxs-dma 1804000.dma-apbh: initialized
  94. SCSI subsystem initialized
  95. usbcore: registered new interface driver usbfs
  96. usbcore: registered new interface driver hub
  97. usbcore: registered new device driver usb
  98. i2c i2c-1: IMX I2C adapter registered
  99. i2c i2c-1: can't use DMA
  100. media: Linux media interface: v0.10
  101. Linux video capture interface: v2.00
  102. pps_core: LinuxPPS API ver. 1 registered
  103. pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
  104. PTP clock support registered
  105. MIPI CSI2 driver module loaded
  106. Advanced Linux Sound Architecture Driver Initialized.
  107. Switched to clocksource mxc_timer1
  108. NET: Registered protocol family 2
  109. TCP established hash table entries: 2048 (order: 1, 8192 bytes)
  110. TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
  111. TCP: Hash tables configured (established 2048 bind 2048)
  112. UDP hash table entries: 256 (order: 1, 8192 bytes)
  113. UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
  114. NET: Registered protocol family 1
  115. RPC: Registered named UNIX socket transport module.
  116. RPC: Registered udp transport module.
  117. RPC: Registered tcp transport module.
  118. RPC: Registered tcp NFSv4.1 backchannel transport module.
  119. imx rpmsg driver is registered.
  120. Bus freq driver module loaded
  121. futex hash table entries: 256 (order: 2, 16384 bytes)
  122. VFS: Disk quotas dquot_6.6.0
  123. VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
  124. NFS: Registering the id_resolver key type
  125. Key type id_resolver registered
  126. Key type id_legacy registered
  127. jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
  128. fuse init (API version 7.23)
  129. io scheduler noop registered
  130. io scheduler deadline registered
  131. io scheduler cfq registered (default)
  132. imx-weim 21b8000.weim: Driver registered.
  133. backlight supply power not found, using dummy regulator
  134. MIPI DSI driver module loaded
  135. MIPI DSI driver module loaded
  136. 21c8000.lcdif supply lcd not found, using dummy regulator
  137. mxsfb 21c8000.lcdif: failed to find mxc display driver
  138. Console: switching to colour frame buffer device 60x34
  139. mxsfb 21c8000.lcdif: initialized
  140. imx-sdma 20ec000.sdma: no event needs to be remapped
  141. imx-sdma 20ec000.sdma: loaded firmware 3.3
  142. imx-sdma 20ec000.sdma: initialized
  143. 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 20, base_baud = 5000000) is a IMX
  144. console [ttymxc0] enabled
  145. 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 232, base_baud = 5000000) is a IMX
  146. 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 233, base_baud = 5000000) is a IMX
  147. imx sema4 driver is registered.
  148. [drm] Initialized drm 1.1.0 20060810
  149. [drm] Initialized vivante 1.0.0 20120216 on minor 0
  150. brd: module loaded
  151. loop: module loaded
  152. nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
  153. nand: Micron MT29F2G08ABAEAWP
  154. nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
  155. gpmi-nand 1806000.gpmi-nand: enable the asynchronous EDO mode 5
  156. Bad block table found at page 131008, version 0x01
  157. Bad block table found at page 130944, version 0x01
  158. 4 cmdlinepart partitions found on MTD device gpmi-nand
  159. Creating 4 MTD partitions on "gpmi-nand":
  160. 0x000000000000-0x000000500000 : "boot"
  161. 0x000000500000-0x000000f00000 : "kernel"
  162. 0x000000f00000-0x000001000000 : "dtb"
  163. 0x000001000000-0x000010000000 : "rootfs"
  164. gpmi-nand 1806000.gpmi-nand: driver registered.
  165. CAN device driver interface
  166. flexcan 2094000.can: device registered (reg_base=92a48000, irq=29)
  167. 20b4000.ethernet supply phy not found, using dummy regulator
  168. pps pps0: new PPS source ptp0
  169. fec 20b4000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
  170. fec 20b4000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: fe:28:c5:ea:99:96
  171. libphy: fec_enet_mii_bus: probed
  172. fec 20b4000.ethernet eth0: registered PHC device 0
  173. 2188000.ethernet supply phy not found, using dummy regulator
  174. pps pps1: new PPS source ptp1
  175. fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
  176. fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: da:10:0f:22:44:0d
  177. fec 2188000.ethernet eth1: registered PHC device 1
  178. PPP generic driver version 2.4.2
  179. PPP BSD Compression module registered
  180. PPP Deflate Compression module registered
  181. PPP MPPE Compression module registered
  182. NET: Registered protocol family 24
  183. SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
  184. CSLIP: code copyright 1989 Regents of the University of California.
  185. SLIP linefill/keepalive option.
  186. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  187. ehci-mxc: Freescale On-Chip EHCI Host driver
  188. usbcore: registered new interface driver usb-storage
  189. usbcore: registered new interface driver usbserial
  190. usbcore: registered new interface driver usbserial_generic
  191. usbserial: USB Serial support registered for generic
  192. usbcore: registered new interface driver option
  193. usbserial: USB Serial support registered for GSM modem (1-port)
  194. usbcore: registered new interface driver usb_ehset_test
  195. 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
  196. 2184000.usb supply vbus not found, using dummy regulator
  197. 2184200.usb supply vbus not found, using dummy regulator
  198. ci_hdrc ci_hdrc.1: EHCI Host Controller
  199. ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
  200. ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
  201. hub 1-0:1.0: USB hub found
  202. hub 1-0:1.0: 1 port detected
  203. mousedev: PS/2 mouse device common for all mice
  204. input: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
  205. tp reset gpio=130
  206. msg ft5x0x_i2c_rxdata i2c read error: -5
  207. ft5x0x read ID error!
  208. ft5x06_ts: probe of 1-0038 failed with error 161
  209. ft5x0x_ts_init successful
  210. input: iMX6UL TouchScreen Controller as /devices/platform/soc/2000000.aips-bus/2040000.tsc/input/input1
  211. snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
  212. i2c /dev entries driver
  213. IR NEC protocol handler initialized
  214. IR RC5(x/sz) protocol handler initialized
  215. IR RC6 protocol handler initialized
  216. IR JVC protocol handler initialized
  217. IR Sony protocol handler initialized
  218. IR SANYO protocol handler initialized
  219. IR Sharp protocol handler initialized
  220. IR MCE Keyboard/mouse protocol handler initialized
  221. IR XMP protocol handler initialized
  222. pxp-v4l2 pxp_v4l2: initialized
  223. usbcore: registered new interface driver uvcvideo
  224. USB Video Class driver (1.1.1)
  225. sdhci: Secure Digital Host Controller Interface driver
  226. sdhci: Copyright(c) Pierre Ossman
  227. sdhci-pltfm: SDHCI platform and OF driver helper
  228. /soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecified
  229. sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
  230. sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
  231. sdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator found
  232. mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
  233. /soc/aips-bus@02100000/usdhc@02194000: voltage-ranges unspecified
  234. sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
  235. sdhci-esdhc-imx 2194000.usdhc: No vmmc regulator found
  236. sdhci-esdhc-imx 2194000.usdhc: No vqmmc regulator found
  237. mmc0: host does not support reading read-only switch, assuming write-enable
  238. mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
  239. caam 2140000.caam: Entropy delay = 3200
  240. usb 1-1: new high-speed USB device number 2 using ci_hdrc
  241. mmc0: new high speed SDHC card at address 0001
  242. mmcblk0: mmc0:0001 SD16G 14.5 GiB
  243. caam 2140000.caam: Instantiated RNG4 SH0
  244. mmcblk0: p1
  245. mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
  246. caam 2140000.caam: Instantiated RNG4 SH1
  247. caam 2140000.caam: device ID = 0x0a16030000000000 (Era -524)
  248. caam 2140000.caam: job rings = 3, qi = 0
  249. mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
  250. mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
  251. mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
  252. mmc1: queuing unknown CIS tuple 0x80 (10 bytes)
  253. mmc1: new high speed SDIO card at address 0001
  254. hub 1-1:1.0: USB hub found
  255. hub 1-1:1.0: 4 ports detected
  256. caam algorithms registered in /proc/crypto
  257. caam_jr 2141000.jr0: registering rng-caam
  258. platform caam_sm: blkkey_ex: 8 keystore units available
  259. platform caam_sm: 64-bit clear key:
  260. platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
  261. platform caam_sm: 64-bit black key:
  262. platform caam_sm: [0000] b9 ff 93 bd b0 2f ee a1
  263. platform caam_sm: [0008] 6d 28 1b 8f 43 e8 3b 3b
  264. platform caam_sm: 128-bit clear key:
  265. platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
  266. platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
  267. platform caam_sm: 128-bit black key:
  268. platform caam_sm: [0000] 5b 0a 1a a0 15 2d b1 ec
  269. platform caam_sm: [0008] 79 ce b9 6f e9 c5 b1 b7
  270. platform caam_sm: 192-bit clear key:
  271. platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
  272. platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
  273. platform caam_sm: [0016] 10 11 12 13 14 15 16 17
  274. platform caam_sm: 192-bit black key:
  275. platform caam_sm: [0000] 81 c1 be a5 82 ae 8f bf
  276. platform caam_sm: [0008] db 12 cb 37 27 91 61 9e
  277. platform caam_sm: [0016] 76 27 87 c9 99 e1 80 50
  278. platform caam_sm: [0024] d4 37 01 d8 b8 d3 6d de
  279. platform caam_sm: 256-bit clear key:
  280. platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
  281. platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
  282. platform caam_sm: [0016] 10 11 12 13 14 15 16 17
  283. platform caam_sm: [0024] 18 19 1a 1b 1c 1d 1e 1f
  284. platform caam_sm: 256-bit black key:
  285. platform caam_sm: [0000] 49 5b a6 ae 18 92 4d 4d
  286. platform caam_sm: [0008] a3 88 ac 79 9e fe f0 00
  287. platform caam_sm: [0016] 45 55 f5 d9 6e 68 a5 de
  288. platform caam_sm: [0024] d7 1d e6 94 49 e8 d6 30
  289. platform caam_sm: 64-bit unwritten blob:
  290. platform caam_sm: [0000] 00 00 00 00 00 00 00 00
  291. platform caam_sm: [0008] 00 00 00 00 00 00 00 00
  292. platform caam_sm: [0016] 00 00 00 00 00 00 00 00
  293. platform caam_sm: [0024] 00 00 00 00 00 00 00 00
  294. platform caam_sm: [0032] 00 00 00 00 00 00 00 00
  295. platform caam_sm: [0040] 00 00 00 00 00 00 00 00
  296. platform caam_sm: [0048] 00 00 00 00 00 00 00 00
  297. platform caam_sm: [0056] 00 00 00 00 00 00 00 00
  298. platform caam_sm: [0064] 00 00 00 00 00 00 00 00
  299. platform caam_sm: [0072] 00 00 00 00 00 00 00 00
  300. platform caam_sm: [0080] 00 00 00 00 00 00 00 00
  301. platform caam_sm: [0088] 00 00 00 00 00 00 00 00
  302. platform caam_sm: 128-bit unwritten blob:
  303. platform caam_sm: [0000] 00 00 00 00 00 00 00 00
  304. platform caam_sm: [0008] 00 00 00 00 00 00 00 00
  305. platform caam_sm: [0016] 00 00 00 00 00 00 00 00
  306. platform caam_sm: [0024] 00 00 00 00 00 00 00 00
  307. platform caam_sm: [0032] 00 00 00 00 00 00 00 00
  308. platform caam_sm: [0040] 00 00 00 00 00 00 00 00
  309. platform caam_sm: [0048] 00 00 00 00 00 00 00 00
  310. platform caam_sm: [0056] 00 00 00 00 00 00 00 00
  311. platform caam_sm: [0064] 00 00 00 00 00 00 00 00
  312. platform caam_sm: [0072] 00 00 00 00 00 00 00 00
  313. platform caam_sm: [0080] 00 00 00 00 00 00 00 00
  314. platform caam_sm: [0088] 00 00 00 00 00 00 00 00
  315. platform caam_sm: 196-bit unwritten blob:
  316. platform caam_sm: [0000] 00 00 00 00 00 00 00 00
  317. platform caam_sm: [0008] 00 00 00 00 00 00 00 00
  318. platform caam_sm: [0016] 00 00 00 00 00 00 00 00
  319. platform caam_sm: [0024] 00 00 00 00 00 00 00 00
  320. platform caam_sm: [0032] 00 00 00 00 00 00 00 00
  321. platform caam_sm: [0040] 00 00 00 00 00 00 00 00
  322. platform caam_sm: [0048] 00 00 00 00 00 00 00 00
  323. platform caam_sm: [0056] 00 00 00 00 00 00 00 00
  324. platform caam_sm: [0064] 00 00 00 00 00 00 00 00
  325. platform caam_sm: [0072] 00 00 00 00 00 00 00 00
  326. platform caam_sm: [0080] 00 00 00 00 00 00 00 00
  327. platform caam_sm: [0088] 00 00 00 00 00 00 00 00
  328. platform caam_sm: 256-bit unwritten blob:
  329. platform caam_sm: [0000] 00 00 00 00 00 00 00 00
  330. platform caam_sm: [0008] 00 00 00 00 00 00 00 00
  331. platform caam_sm: [0016] 00 00 00 00 00 00 00 00
  332. platform caam_sm: [0024] 00 00 00 00 00 00 00 00
  333. platform caam_sm: [0032] 00 00 00 00 00 00 00 00
  334. platform caam_sm: [0040] 00 00 00 00 00 00 00 00
  335. platform caam_sm: [0048] 00 00 00 00 00 00 00 00
  336. platform caam_sm: [0056] 00 00 00 00 00 00 00 00
  337. platform caam_sm: [0064] 00 00 00 00 00 00 00 00
  338. platform caam_sm: [0072] 00 00 00 00 00 00 00 00
  339. platform caam_sm: [0080] 00 00 00 00 00 00 00 00
  340. platform caam_sm: [0088] 00 00 00 00 00 00 00 00
  341. platform caam_sm: 64-bit black key in blob:
  342. platform caam_sm: [0000] 31 72 7f d8 e6 f1 68 76
  343. platform caam_sm: [0008] e7 fb 06 d5 05 92 24 0d
  344. platform caam_sm: [0016] 2e 88 b6 75 6a f9 aa 75
  345. platform caam_sm: [0024] 79 c7 d4 88 09 34 6c d8
  346. platform caam_sm: [0032] c4 45 26 da ba f3 1b f6
  347. platform caam_sm: [0040] 1f 04 3e e2 df 89 22 58
  348. platform caam_sm: [0048] 13 39 fb a2 06 ce 95 7a
  349. platform caam_sm: [0056] 00 00 00 00 00 00 00 00
  350. platform caam_sm: [0064] 00 00 00 00 00 00 00 00
  351. platform caam_sm: [0072] 00 00 00 00 00 00 00 00
  352. platform caam_sm: [0080] 00 00 00 00 00 00 00 00
  353. platform caam_sm: [0088] 00 00 00 00 00 00 00 00
  354. platform caam_sm: 128-bit black key in blob:
  355. platform caam_sm: [0000] cc d1 85 82 25 3a 53 c7
  356. platform caam_sm: [0008] 07 01 77 06 ec 9d c3 aa
  357. platform caam_sm: [0016] 58 f3 aa 59 f9 fd bb 2e
  358. platform caam_sm: [0024] 36 be c1 43 35 1b 88 10
  359. platform caam_sm: [0032] a7 09 35 88 13 0e ab 8b
  360. platform caam_sm: [0040] 73 ea 96 7b 33 05 d1 cc
  361. platform caam_sm: [0048] 5b 63 2c 68 33 52 6a f4
  362. platform caam_sm: [0056] 8f 81 05 ef f4 df 44 be
  363. platform caam_sm: [0064] 00 00 00 00 00 00 00 00
  364. platform caam_sm: [0072] 00 00 00 00 00 00 00 00
  365. platform caam_sm: [0080] 00 00 00 00 00 00 00 00
  366. platform caam_sm: [0088] 00 00 00 00 00 00 00 00
  367. platform caam_sm: 192-bit black key in blob:
  368. platform caam_sm: [0000] 55 87 f6 e2 86 ac 00 7c
  369. platform caam_sm: [0008] 3e 26 a7 3f af e7 0e 52
  370. platform caam_sm: [0016] c4 d8 2f ef c0 4e 0d 2c
  371. platform caam_sm: [0024] 6a 5d 75 e0 4d 50 b1 45
  372. platform caam_sm: [0032] 0a 94 f0 c5 b5 f9 87 77
  373. platform caam_sm: [0040] 9b b7 ed 47 97 96 91 c3
  374. platform caam_sm: [0048] 4e 45 b5 8a 28 0b 80 c9
  375. platform caam_sm: [0056] 1c f7 ef 77 48 2e 3e 05
  376. platform caam_sm: [0064] c7 13 3d 4c ca 2d 40 22
  377. platform caam_sm: [0072] 00 00 00 00 00 00 00 00
  378. platform caam_sm: [0080] 00 00 00 00 00 00 00 00
  379. platform caam_sm: [0088] 00 00 00 00 00 00 00 00
  380. platform caam_sm: 256-bit black key in blob:
  381. platform caam_sm: [0000] b8 d2 d6 d2 2e b7 e3 e0
  382. platform caam_sm: [0008] 1e 63 0f 07 56 24 43 43
  383. platform caam_sm: [0016] f6 49 02 f2 6e 99 59 1f
  384. platform caam_sm: [0024] 55 26 15 f7 23 06 ad b7
  385. platform caam_sm: [0032] db b8 01 e1 56 39 66 ea
  386. platform caam_sm: [0040] 85 e1 ff 38 94 6a fe 77
  387. platform caam_sm: [0048] 7d e8 d7 7b 19 e2 43 e4
  388. platform caam_sm: [0056] 1d 2f 01 02 2a 0f 1b 71
  389. platform caam_sm: [0064] 2c dd f6 11 85 5d 53 26
  390. platform caam_sm: [0072] b0 74 1d 54 2b 33 c8 9d
  391. platform caam_sm: [0080] 00 00 00 00 00 00 00 00
  392. platform caam_sm: [0088] 00 00 00 00 00 00 00 00
  393. platform caam_sm: restored 64-bit black key:
  394. platform caam_sm: [0000] 51 e4 9e ad 62 fa d6 88
  395. platform caam_sm: [0008] 18 40 2a c9 21 41 8e 42
  396. platform caam_sm: restored 128-bit black key:
  397. platform caam_sm: [0000] 5b 0a 1a a0 15 2d b1 ec
  398. platform caam_sm: [0008] 79 ce b9 6f e9 c5 b1 b7
  399. platform caam_sm: restored 192-bit black key:
  400. platform caam_sm: [0000] 81 c1 be a5 82 ae 8f bf
  401. platform caam_sm: [0008] db 12 cb 37 27 91 61 9e
  402. platform caam_sm: [0016] 5d 62 5f b7 3e df 66 78
  403. platform caam_sm: [0024] 79 25 fb ee 75 c0 c8 4d
  404. platform caam_sm: restored 256-bit black key:
  405. platform caam_sm: [0000] 49 5b a6 ae 18 92 4d 4d
  406. platform caam_sm: [0008] a3 88 ac 79 9e fe f0 00
  407. platform caam_sm: [0016] 45 55 f5 d9 6e 68 a5 de
  408. platform caam_sm: [0024] d7 1d e6 94 49 e8 d6 30
  409. snvs-secvio 20cc000.caam-snvs: can't get snvs clock
  410. snvs-secvio 20cc000.caam-snvs: violation handlers armed - non-secure state
  411. usbcore: registered new interface driver usbhid
  412. usbhid: USB HID core driver
  413. usbcore: registered new interface driver snd-usb-audio
  414. 1-001a supply DCVDD not found, using dummy regulator
  415. 1-001a supply DBVDD not found, using dummy regulator
  416. 1-001a supply AVDD not found, using dummy regulator
  417. 1-001a supply CPVDD not found, using dummy regulator
  418. 1-001a supply MICVDD not found, using dummy regulator
  419. wm8904 1-001a: revision A
  420. fsl-asrc 2034000.asrc: driver registered
  421. imx-wm8904 sound: wm8904-hifi <-> 202c000.sai mapping ok
  422. imx-wm8904 sound: snd-soc-dummy-dai <-> 2034000.asrc mapping ok
  423. imx-wm8904 sound: wm8904-hifi <-> 202c000.sai mapping ok
  424. NET: Registered protocol family 26
  425. NET: Registered protocol family 10
  426. sit: IPv6 over IPv4 tunneling driver
  427. NET: Registered protocol family 17
  428. can: controller area network core (rev 20120528 abi 9)
  429. NET: Registered protocol family 29
  430. can: raw protocol (rev 20120528)
  431. can: broadcast manager protocol (rev 20120528 t)
  432. can: netlink gateway (rev 20130117) max_hops=1
  433. 8021q: 802.1Q VLAN Support v1.8
  434. Key type dns_resolver registered
  435. ubi0: attaching mtd3
  436. random: nonblocking pool is initialized
  437. ubi0: scanning is finished
  438. ubi0: attached mtd3 (name "rootfs", size 240 MiB)
  439. ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
  440. ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
  441. ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
  442. ubi0: good PEBs: 1916, bad PEBs: 4, corrupted PEBs: 0
  443. ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
  444. ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1928584424
  445. ubi0: available PEBs: 0, total reserved PEBs: 1916, PEBs reserved for bad PEB handling: 36
  446. ubi0: background thread "ubi_bgt0d" started, PID 140
  447. input: gpio-keys as /devices/platform/gpio-keys/input/input2
  448. snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:02 UTC (2)
  449. can-3v3: disabling
  450. ALSA device list:
  451.   #0: wm8904-audio
  452. UBIFS (ubi0:0): recovery needed
  453. UBIFS (ubi0:0): recovery deferred
  454. UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
  455. UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
  456. UBIFS (ubi0:0): FS size: 236683264 bytes (225 MiB, 1864 LEBs), journal size 11808768 bytes (11 MiB, 93 LEBs)
  457. UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
  458. UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 45A5F12D-44F2-46A4-B1FA-098586D6E5BF, small LPT model
  459. VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
  460. devtmpfs: mounted
  461. Freeing unused kernel memory: 424K (80a7e000 - 80ae8000)
  462. INIT: version 2.88 booting
  463. Starting udev
  464. udevd[176]: starting version 3.1.5
  465. UBIFS (ubi0:0): completing deferred recovery
  466. UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 211
  467. UBIFS (ubi0:0): deferred recovery completed
  468. ov2659 1-0030: Sensor soft reset failed
  469. bootlogd: cannot allocate pseudo tty: No such file or directory
  470. brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Apr 22 2013 14:50:00 version 5.90.195.89.6 FWID 01-b30a427d
  471. brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
  472. FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
  473. ALSA: Restoring mixer settings...
  474. Wed Jan 24 04:45:21 UTC 2018
  475. INIT: Entering runlevel: 5
  476. Configuring network interfaces... fec 20b4000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=20b4000.ethernet:01, irq=-1)
  477. IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
  478. udhcpc (v1.24.1) started
  479. Sending discover...
  480. Sending discover...
  481. Sending discover...
  482. No lease, forking to background
  483. done.
  484. Starting system message bus: dbus.
  485. Starting OpenBSD Secure Shell server: sshd
  486. done.
  487. Starting rpcbind daemon...done.
  488. Starting advanced power management daemon: No APM support in kernel
  489. (failed.)
  490. Starting syslogd/klogd: done
  491. * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
  492.    ...done.
  493. Starting Telephony daemon
  494. Starting Linux NFC daemon
  495. Running local boot scripts (/etc/rc.local).
  496. xres = 480, yres = 272

  497. Freescale i.MX Release Distro 4.1.15-2.0.1 myd-y6ul14x14 /dev/ttymxc0
复制代码
看起来启动成功,采用的是uboot+Freescale定制系统,基于Debian修改的,内存为256Mb,Nand Flash也为256Mb。登录名为root,没有设置密码~
既然上手自然要看一下原装系统的参数:
输入以下参数查看Linux内核版本
  1. cat /proc/version
复制代码




输入以下参数查看CPU参数
  1. cat /proc/cpuinfo
复制代码


ARMv7处理器,A7架构有点老,但是架构成熟,性价比高。

输入以下参数查看分区情况
  1. df -h
复制代码


就只有一个256Mb分区,用了近30%,最下面那个mmcblk0p1是我插进去的16G MicroSD卡。

输入以下参数查看内存情况
  1. cat /proc/meminfo
复制代码


作为一个有WIFI的板子,查看完参数之后就一定要连接WIFI,在配置WIFI过程中,需要使用Uart接口进行配置。别忘了在配置WIFI前装好随板子附带的WIFI天线。
在命令行中输入以下生成对应的PSK
  1. cd ~
复制代码
其中myWIFI替换成你要连接WIFI网络的名字,myPassWord替换成WIFI网络密码。

然后输入以下命令查看有没有生成对应的PSK:
  1. cat wifi.conf
复制代码
此时屏幕会打印出wifi.conf文件内容,看一下WIFI名字和密码对不对,PSK有没有生成就好了。此时这个wifi.conf配置文件已经保存在~中,即是用户文件夹中,下一次连接wifi就不需要再次生成了,直接导入进去。

然后接着输入以下命令导入进去,连接WIFI网络
  1. wpa_supplicant -D wext -B -i wlan0 -c wifi.conf
复制代码
在连接了WIFI还不能上网,还需要向路由器DHCP取分配的IP地址和其他网络参数。

输入以下命令进行获取DHCP信息
  1. udhcpc -b -i wlan0 -R
复制代码
到此步应该就成功了

输入以下命令查看是否获取成功:
  1. ifconfig wlan0
复制代码


既然连上网了,先来测试一下是否能够ping通外网地址:
输入以下命令来测试一下是否能正确获取和链接爱板网的ip地址吧~
  1. ping -c 5 www.eeboard.com
复制代码
如果没问题的话应该如图所示,爱板网网速还是挺快的~


既然能ping通,接下来就试试telnet功能吧,由于telnet没有加密,因此安全性并不是很好,现在基本淘汰了,但是telnet还有一个很好玩的地方,可以用来看“电影”,整个“电影”由字符串组成,主题是星战,不得不佩服国外作者的耐心~
输入以下命令即可观看:
  1. telnet towel.blinkenlights.nl
复制代码
这个一直看就行,不用操作,退出按Ctrl+C即可



联网已经搞定了,能够联网对于我们来说就很方便了,可以通过WIFI来操作,我们可以通过一个加密的telnet来连接开发板来操作,这样就不需要Uart转USB的模块了,开发也方便多了。我所采用的是SSH2协议,SSH2是经过SSL加密处理的,更加安全,SecureCRT软件也支持该种方式进行登录。
在开始配置之前,需要查看路由器分配给开发板的IP地址,输入:
  1. ifconfig wlan0
复制代码
查看ip地址一栏,并且记下来。然后设置SecureCRT来连接,hostname为之前查看的开发板ip地址,端口为22。

对于Linux用户来说,Linux也支持SSH登录方式,没有安装的可以去下载安装OpenSSH。
这里以Ubuntu为例,Ubuntu本身预装了,只需输入以下命令:
  1. ssh root@192.168.1.2
复制代码
注意,192.168.1.2替换为你之前查到的开发板ip地址。


对于想通过WIFI来传输文件的用户,SecureCRT支持SFTP功能,来进行文件安全加密的互传。但是启动失败了,经查是米尔的板子安装了OPENSSH,但是并没有安装SFTP功能,缺少文件,所以没有进行。
不过,对于一般用户来说,特别是在内网中使用的话,使用简易没加密版的TFTP也可以的。米尔预装的系统中有TFTP功能,可以提供简单的文件互传功能。

对于Linux用户,需要安装tftp-server功能,这里就不说了~
对于Windows用户,系统已经自带了TFTP功能,但是很可能没有安装,需要到控制面板中安装一下。如果不想安装,可以推荐使用一个绿色版小型TFTP软件——tftpd64(32位为tftpd32),自带Client和Server模式,最重要的是占空间小。绿色包我放在论坛上,直接运行不用安装!

tftpd64.460.zip (517.06 KB, 下载次数: 1, 售价: 1 与非币)


Tftpd64界面如下,很简洁


在传输之前需要设置一下,Server interfaces中选中网卡,在此我使用的是有线网卡,因此选中它。


点击Setting,然后在TFTP选项卡中Base Directory中选择接受和发送的文件夹地址。


在DHCP选项卡中,填入下图红框中的内容,以下数值因不同设备而不同,请根据路由器参数而设置。


已经设置完成了,接下来往开发板中写入命令,在此以wifi.conf为例,往TFTP服务器(电脑)中传输这个文件。
TFTP命令很简单:
  1. tftp (参数1) xxx.xx (参数2) (IP地址)
复制代码
参数1有 -l 本地文件; -r 服务器文件
参数2有 -g 取文件; -p 发送文件
ip地址为电脑ip地址
常用的只有两个,就是下面例子所说的:

输入以下命令
  1. cd ~
  2. tftp -l wifi.conf -p 192.168.1.4
复制代码
其中192.168.1.4为电脑的ip地址,可以在软件中Servers interfaces中看到。
可以看到正在传输中

可以在Log日志文件中看到已经把这个文件传输到电脑中了。


接下来要测试一下开发板中从电脑中提取一个文件。我们在电脑随便建立一个待提取的文件,这里以test.txt为测试文件,并把这个文件放在刚刚设置好的Base Directory目录中。


往开发板中输入以下命令提取文件:
  1. tftp -r test.txt -g 192.168.1.4
复制代码

在日志中可以看出开发板已经成功提取了文件


在命令行中可以看到多了test.txt文件,用cat输出文件正是服务器中测试的文件,说明传输成功了。



分享到:
回复

使用道具 举报

回答|共 2 个

倒序浏览

沙发

ky123

发表于 2018-3-27 09:03:35 | 只看该作者

哎,毕竟可依漂亮可爱又认真负责
板凳

风之山谷

发表于 2018-3-27 09:44:28 | 只看该作者

ky123 发表于 2018-3-27 09:03
哎,毕竟可依漂亮可爱又认真负责

可依还时刻不忘自夸
您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条