嵌入式技术论坛
直播中

605342

12年用户 111经验值
擅长:EMC/MEI设计,控制/MCU
私信 关注
[经验]

【MYD-Y6ULX试用体验】开箱测试

本帖最后由 Tony_Ho 于 2018-2-13 13:56 编辑

硬件
在一些
时间的延误后,终于收到了顺丰过来的板子,本以为需要到年后了。听说板子的延误是因为发现了一个小问题。
收到板子后打开看到的是盒子包装,看起来“高大上”的感觉:
Selection_097.png

打开,里面有一张V3 软件的BSP, 网线, OTG USB 线,以及电源线:
Selection_098.png

核心的板子看起来不错,至少做工和基本可见的布线很漂亮:
Selection_099.png
但是板子的尺寸比我想象的小。

软件
在将关盘拷贝到电脑后,发现结构和以前IoT和Industry里面是类似的:
.
├── 01-Document
├── 02-Images
├── 03-Tools
├── 04-Source
└── uboot-imx-20180206.tar.gz
这个uboot是从网站下载的,因为看起来更新。
同样的没有找到如何连接串口等的说明, 但是对于我们这些嵌入式老鸟而言,看一眼板子,就会发现TX,RX和GND,就位于板子电源边,插上,打开串口上电,一切都很好。

于是根据手册编译代码,然后烧写启动,意外发生了。

Kernel panic
panic的log如下:
  1. mmc0: host does not support reading read-only switch, assuming write-enable
  2. mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
  3. Unhandled fault: external abort on non-linefetch (0x1008) at 0x92ac0fa8
  4. pgd = 80004000
  5. [92ac0fa8] *pgd=8c317811, *pte=02140653, *ppte=02140453
  6. Internal error: : 1008 [#1] PREEMPT SMP ARM
  7. Modules linked in:
  8. CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.15+ #1
  9. Hardware name: Freescale i.MX6 Ultralite (Device Tree)
  10. task: 8c050000 ti: 8c054000 task.ti: 8c054000
  11. PC is at caam_probe+0x134/0xf14
  12. LR is at _raw_spin_unlock_irqrestore+0x28/0x54
  13. pc : [<8057d468>]    lr : [<8077e658>]    psr: a0000113
  14. sp : 8c055e20  ip : 807aad64  fp : 00000000
  15. r10: 80ad5c6c  r9 : 80ac926c  r8 : 00000000
  16. r7 : fffffdfb  r6 : 80b2c290  r5 : 8fdefc78  r4 : 8c274a90
  17. r3 : 92ac0000  r2 : 00000000  r1 : 60000113  r0 : 8fdefc78
  18. Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
  19. Control: 10c53c7d  Table: 8000406a  DAC: 00000015
  20. Process swapper/0 (pid: 1, stack limit = 0x8c054210)
  21. Stack: (0x8c055e20 to 0x8c056000)
  22. 5e20: 8c055e28 8c459dc0 00000000 00000000 8c12d600 8c12d610 8c12f690 80149a60
  23. 5e40: 00000001 80ac926c 8c12f690 8c459d20 00000000 8c12f690 92ac0000 00000001
  24. 5e60: 8c459dc0 80ba1d18 8c12d610 80b2c290 fffffdfb 00000000 80ac926c 80ad5c6c
  25. 5e80: 00000000 80387508 80ba1d18 8c12d610 80b2c290 00000000 00000000 80385da4
  26. 5ea0: 8c12d610 80b2c290 8c12d644 80b07f50 00000000 80385fb4 00000000 80b2c290
  27. 5ec0: 80385f28 80384430 8c03095c 8c121f34 80b2c290 8c45a380 00000000 80385534
  28. 5ee0: 809ddf88 80ae1820 8c45b500 80b2c290 80ae1820 8c45b500 80ab3bdc 803865b4
  29. 5f00: 80ae1820 80ae1820 8c45b500 80009718 80ac9248 80140f5c 00000000 8c031c00
  30. 5f20: 00000000 80ae9568 60000113 00000000 8fde12f3 8fde12eb 807aad64 8004d58c
  31. 5f40: 00000000 809c257c 00000006 00000006 80ae9550 00000109 00000006 80b4a000
  32. 5f60: 00000109 00000006 80b4a000 80b4a000 80ac9264 80a71dbc 00000006 00000006
  33. 5f80: 80a71594 80051c4c 00000000 80774ca4 00000000 00000000 00000000 00000000
  34. 5fa0: 00000000 80774cac 00000000 8000f528 00000000 00000000 00000000 00000000
  35. 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  36. 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff
  37. [<8057d468>] (caam_probe) from [<80387508>] (platform_drv_probe+0x44/0xac)
  38. [<80387508>] (platform_drv_probe) from [<80385da4>] (driver_probe_device+0x174/0x2b4)
  39. [<80385da4>] (driver_probe_device) from [<80385fb4>] (__driver_attach+0x8c/0x90)
  40. [<80385fb4>] (__driver_attach) from [<80384430>] (bus_for_each_dev+0x68/0x9c)
  41. [<80384430>] (bus_for_each_dev) from [<80385534>] (bus_add_driver+0x148/0x1f0)
  42. [<80385534>] (bus_add_driver) from [<803865b4>] (driver_register+0x78/0xf8)
  43. [<803865b4>] (driver_register) from [<80009718>] (do_one_initcall+0x8c/0x1d4)
  44. [<80009718>] (do_one_initcall) from [<80a71dbc>] (kernel_init_freeable+0x144/0x1e4)
  45. [<80a71dbc>] (kernel_init_freeable) from [<80774cac>] (kernel_init+0x8/0xe8)
  46. [<80774cac>] (kernel_init) from [<8000f528>] (ret_from_fork+0x14/0x2c)
  47. Code: eb00891d e3500000 0a0002f0 e59d3038 (e5936fa8)
  48. ---[ end trace 6bae7c20fe048c6c ]---
  49. u*** 1-1: new high-speed USB device number 2 using ci_hdrc
  50. mmc0: new high speed SDHC card at address aaaa
  51. mmcblk0: mmc0:aaaa SU08G 7.40 GiB
  52. Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

  53. ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

  54. random: nonblocking pool is initialized

引起问题的模块也很清晰,为CAAM这个模块, 我们知道这个模块FSL是用于AES等加解密相关的硬件模块。
在开箱中我们就先disable掉这个模块先用用。

在menuconfig中干掉这个模块后,我们继续重新编译启动,就可以启动起来了。

因为我要做的是使用蓝牙语音,因此,需要测试的USB,SD,wm8960.
不过在这些测试之前,需要先编译一个Yocto环境。 在编译好了之后,我们在下一篇继续。

回帖(1)

王栋春

2018-2-17 23:00:46
非常不错的资料分享,学习了   
举报

更多回帖

发帖
×
20
完善资料,
赚取积分