发 帖  
原厂入驻New

[经验] 【MYD-YA157C开发板试用连载】+工程调试

5 天前  358
分享
0
     大家好!承接上次的weston系统构建, 构建的进程缓慢,最终以一片红色字样,宣告构建失败。后续有机会再对weston系统构建做进一步了解。
报错.png
    今天与大家分享一下关于该开发板的启动过程以及协处理器CM4调试的体验。首先我们将开发设置成eMMC启动模式,关于Boot启动的模式,截图如下:
boot启动模式列表.png
     然后将USB转TTL数据线正确连接,通电后即可正常启动。在PC端串口调试下将打印出启动信息,启动后进入uboot时,在两秒之内做出回车反应,进入uboot交互模式,输入help显示所示支持的命令,具体信息如下:
  1. NOtiCE:  CPU: STM32MP157AAC Rev.B
  2. NOTICE:  Model: STmicroelectronics STM32MP157C-DK2 Discovery Board
  3. INFO:    Reset reason (0x14):
  4. INFO:      Pad Reset from NRST
  5. INFO:    Using EMMC
  6. INFO:      Instance 2
  7. INFO:    Boot used partition fsbl1
  8. INFO:    bootrom: 252928 (0x3dc00) bytes copied from eMMC
  9. NOTICE:  BL2: v2.0-r1.5(debug):v2.0-stm32mp-r1.5-dirty
  10. NOTICE:  BL2: Built : 08:43:18, Aug 22 2019
  11. INFO:    BL2: Doing platform setup
  12. INFO:    PMIC version = 0x20
  13. INFO:    RAM: ddr3-1066/888 bin G 2x2Gb 533MHz v1.44
  14. INFO:    Memory size = 0x20000000 (512 MB)
  15. INFO:    BL2 runs SP_MIN setup
  16. INFO:    BL2: Loading image id 4
  17. INFO:    Loading image id=4 at address 0x2fff0000
  18. INFO:    Image id=4 loaded: 0x2fff0000 - 0x30000000
  19. INFO:    BL2: Loading image id 5
  20. INFO:    Loading image id=5 at address 0xc0100000
  21. INFO:    STM32 Image size : 748845
  22. WARNING: Skip signature check (header option)
  23. INFO:    Image id=5 loaded: 0xc0100000 - 0xc01b6d2d
  24. INFO:    read version 0 current version 0
  25. NOTICE:  BL2: Booting BL32
  26. INFO:    Entry point address = 0x2fff0000
  27. INFO:    SPSR = 0x1d3
  28. INFO:    PMIC version = 0x20
  29. NOTICE:  SP_MIN: v2.0-r1.5(debug):v2.0-stm32mp-r1.5-dirty
  30. NOTICE:  SP_MIN: Built : 08:43:28, Aug 22 2019
  31. INFO:    ARM GICv2 driver initialized
  32. INFO:    stm32mp HSI (18): Secure only
  33. INFO:    stm32mp HSE (20): Secure only
  34. INFO:    stm32mp PLL2 (27): Secure only
  35. INFO:    stm32mp PLL2_R (30): Secure only
  36. INFO:    SP_MIN: Initializing runtime services
  37. INFO:    SP_MIN: Preparing exit to normal world


  38. U-Boot 2018.11-stm32mp-r2.4 (Sep 06 2019 - 20:22:24 -0700)

  39. CPU: STM32MP157AAC Rev.B
  40. Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
  41. Board: stm32mp1 in trusted mode (st,stm32mp157c-dk2)
  42.        Watchdog enabLED
  43. DRAM:  512 MiB
  44. clocks:
  45. - MPU : 650 MHz
  46. - MCU : 208.878 MHz
  47. - AXI : 266.500 MHz
  48. - PER : 24 MHz
  49. - DDR : 533 MHz
  50. stm32 vrefbuf timed out: -110
  51. adc@0: can't enable vdd-supply!board_check_usb_power: single shot failed for adc@0[18]!
  52. NAND:  0 MiB
  53. MMC:   STM32 SDMMC2: 0, STM32 SDMMC2: 1
  54. In:    serial
  55. Out:   serial
  56. Err:   serial
  57. Net:   eth0: ethernet@5800a000
  58. Hit any key to stop autoboot:  0
  59. STM32MP>
  60. STM32MP>
  61. STM32MP> help
  62. ?       - alias for 'help'
  63. adc     - ADC sub-system
  64. base    - print or set address offset
  65. bdinfo  - print Board Info structure
  66. blkcache- block cache diagnostics and control
  67. bmp     - manipulate BMP image data
  68. bootm   - boot application image from memory
  69. bootp   - boot image via network using BOOTP/TFTP protocol
  70. bootz   - boot Linux zImage image from memory
  71. chpart  - change active partition
  72. clk     - CLK sub-system
  73. cls     - clear screen
  74. cmp     - memory compare
  75. coninfo - print console devices and information
  76. cp      - memory copy
  77. crc32   - checksum calculation
  78. dcache  - enable or disable data cache
  79. dfu     - Device Firmware Upgrade
  80. dhcp    - boot image via network using DHCP/TFTP protocol
  81. dm      - Driver model low level access
  82. echo    - echo args to console
  83. editenv - edit environment variable
  84. env     - environment handling commands
  85. erase   - erase FLASH memory
  86. exit    - exit script
  87. ext2load- load binary file from a Ext2 filesystem
  88. ext2ls  - list files in a directory (default /)
  89. ext4load- load binary file from a Ext4 filesystem
  90. ext4ls  - list files in a directory (default /)
  91. ext4size- determine a file's size
  92. ext4write- create a file in the root directory
  93. false   - do nothing, unsuccessfully
  94. fastboot- run as a fastboot usb or udp device
  95. fatinfo - print information about filesystem
  96. fatload - load binary file from a dos filesystem
  97. fatls   - list files in a directory (default /)
  98. fatsize - determine a file's size
  99. fdt     - flattened device tree utility commands
  100. flinfo  - print FLASH memory information
  101. fstype  - Look up a filesystem type
  102. fuse    - Fuse sub-system
  103. go      - start application at address 'addr'
  104. gpio    - query and control gpio pins
  105. gpt     - GUID Partition Table
  106. help    - print command description/usage
  107. i2c     - I2C sub-system
  108. icache  - enable or disable instruction cache
  109. itest   - return true/false on integer compare
  110. lcdputs - print string on video framebuffer
  111. led     - manage LEDs
  112. load    - load binary file from a filesystem
  113. loadb   - load binary file over serial line (kermit mode)
  114. loads   - load S-Record file over serial line
  115. loadx   - load binary file over serial line (xmodem mode)
  116. loady   - load binary file over serial line (ymodem mode)
  117. loop    - infinite loop on address range
  118. ls      - list files in a directory (default /)
  119. md      - memory display
  120. mdio    - MDIO utility commands
  121. meminfo - display memory information
  122. mii     - MII utility commands
  123. mm      - memory modIFy (auto-incrementing address)
  124. mmc     - MMC sub system
  125. mmcinfo - display MMC info
  126. mtdparts- define flash/nand partitions
  127. mtest   - simple RAM read/write test
  128. mw      - memory write (fill)
  129. nand    - NAND sub-system
  130. nboot   - boot from NAND device
  131. nfs     - boot image via network using NFS protocol
  132. nm      - memory modify (constant address)
  133. part    - disk partition related commands
  134. ping    - send ICMP ECHO_REQUEST to network host
  135. pinmux  - show pin-controller muxing
  136. pmic    - PMIC sub-system
  137. poweroff- PeRForm POWEROFF of the device
  138. printenv- print environment variables
  139. protect - enable or disable FLASH write protection
  140. pxe     - commands to get and boot from pxe files
  141. regulator- uclass operations
  142. reset   - Perform RESET of the CPU
  143. rproc   - Control operation of remote processors in an SoC
  144. run     - run commands in an environment variable
  145. save    - save file to a filesystem
  146. setcurs - set cursor position within screen
  147. setenv  - set environment variables
  148. setexpr - set environment variable as the result of eval expression
  149. sf      - SPI flash sub-system
  150. showvar - print local hushshell variables
  151. size    - determine a file's size
  152. sleep   - delay execution for some time
  153. source  - run script from memory
  154. stboard - read/write board reference in OTP
  155. stm32key- Fuse ST Hash key
  156. stm32prog- <link> <dev> [<addr>] [<size>]
  157. start communication with tools STM32Cubeprogrammer on <link> with Flashlayout at <addr>
  158. sysboot - command to get and boot from syslinux files
  159. test    - minimal test like /bin/sh
  160. tftpboot- boot image via network using TFTP protocol
  161. time    - run commands and summarize execution time
  162. timer   - access the system timer
  163. true    - do nothing, successfully
  164. ubi     - ubi commands
  165. ubifsload- load file from an UBIFS filesystem
  166. ubifsls - list files in a directory
  167. ubifsmount- mount UBIFS volume
  168. ubifsumount- unmount UBIFS volume
  169. ums     - Use the UMS [USB Mass Storage]
  170. usb     - USB sub-system
  171. usbboot - boot from USB device
  172. version - print monitor, compiler and linker version
复制代码
      如果没有及时回车,让其自动进入Weston系统,其输出的log信息如下:

  1. NOTICE:  CPU: STM32MP157AAC Rev.B
  2. NOTICE:  Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
  3. INFO:    Reset reason (0x14):
  4. INFO:      Pad Reset from NRST
  5. INFO:    Using EMMC
  6. INFO:      Instance 2
  7. INFO:    Boot used partition fsbl1
  8. INFO:    BootROM: 252928 (0x3dc00) bytes copied from eMMC
  9. NOTICE:  BL2: v2.0-r1.5(debug):v2.0-stm32mp-r1.5-dirty
  10. NOTICE:  BL2: Built : 08:43:18, Aug 22 2019
  11. INFO:    BL2: Doing platform setup
  12. INFO:    PMIC version = 0x20
  13. INFO:    RAM: DDR3-1066/888 bin G 2x2Gb 533MHz v1.44
  14. INFO:    Memory size = 0x20000000 (512 MB)
  15. INFO:    BL2 runs SP_MIN setup
  16. INFO:    BL2: Loading image id 4
  17. INFO:    Loading image id=4 at address 0x2fff0000
  18. INFO:    Image id=4 loaded: 0x2fff0000 - 0x30000000
  19. INFO:    BL2: Loading image id 5
  20. INFO:    Loading image id=5 at address 0xc0100000
  21. INFO:    STM32 Image size : 748845
  22. WARNING: Skip signature check (header option)
  23. INFO:    Image id=5 loaded: 0xc0100000 - 0xc01b6d2d
  24. INFO:    read version 0 current version 0
  25. NOTICE:  BL2: Booting BL32
  26. INFO:    Entry point address = 0x2fff0000
  27. INFO:    SPSR = 0x1d3
  28. INFO:    PMIC version = 0x20
  29. NOTICE:  SP_MIN: v2.0-r1.5(debug):v2.0-stm32mp-r1.5-dirty
  30. NOTICE:  SP_MIN: Built : 08:43:28, Aug 22 2019
  31. INFO:    ARM GICv2 driver initialized
  32. INFO:    stm32mp HSI (18): Secure only
  33. INFO:    stm32mp HSE (20): Secure only
  34. INFO:    stm32mp PLL2 (27): Secure only
  35. INFO:    stm32mp PLL2_R (30): Secure only
  36. INFO:    SP_MIN: Initializing runtime services
  37. INFO:    SP_MIN: Preparing exit to normal world


  38. U-Boot 2018.11-stm32mp-r2.4 (Sep 06 2019 - 20:22:24 -0700)

  39. CPU: STM32MP157AAC Rev.B
  40. Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
  41. Board: stm32mp1 in trusted mode (st,stm32mp157c-dk2)
  42.        Watchdog enabled
  43. DRAM:  512 MiB
  44. Clocks:
  45. - MPU : 650 MHz
  46. - MCU : 208.878 MHz
  47. - AXI : 266.500 MHz
  48. - PER : 24 MHz
  49. - DDR : 533 MHz
  50. stm32 vrefbuf timed out: -110
  51. adc@0: can't enable vdd-supply!board_check_usb_power: single shot failed for adc@0[18]!
  52. NAND:  0 MiB
  53. MMC:   STM32 SDMMC2: 0, STM32 SDMMC2: 1
  54. In:    serial
  55. Out:   serial
  56. Err:   serial
  57. Net:   eth0: ethernet@5800a000
  58. Hit any key to stop autoboot:  0
  59. Boot over mmc1!
  60. switch to partitions #0, OK
  61. mmc1(part 0) is current device
  62. Scanning mmc 1:2...
  63. Found U-Boot script /boot.scr.uimg
  64. 526 bytes read in 0 ms
  65. ## Executing script at c4100000
  66. ** File not found rproc-m4-fw.elf **
  67. 6836016 bytes read in 158 ms (41.3 MiB/s)
  68. 71533 bytes read in 2 ms (34.1 MiB/s)
  69. ## Booting kernel from Legacy Image at c2000000 ...
  70.    Image Name:   Linux-4.19.9
  71.    Image Type:   ARM Linux Kernel Image (uncompressed)
  72.    Data Size:    6835952 Bytes = 6.5 MiB
  73.    Load Address: c2000040
  74.    Entry Point:  c2000040
  75.    Verifying Checksum ... OK
  76. ## Flattened Device Tree blob at c4000000
  77.    Booting using the fdt blob at 0xc4000000
  78.    XIP Kernel Image ... OK
  79.    Using Device Tree in place at c4000000, end c401476c

  80. Starting kernel ...

  81. [    0.000000] Booting Linux on physical CPU 0x0
  82. [    0.000000] Linux version 4.19.9 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP PREEMPT Thu Dec 13 08:16:23 UTC 2018
  83. [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
  84. [    0.000000] CPU: div instructions available: patching division code
  85. [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  86. [    0.000000] OF: fdt: Machine model: STMicroelectronics STM32MP157C-DK2 Discovery Board
  87. [    0.000000] Memory policy: Data cache writealloc
  88. [    0.000000] Reserved memory: created DMA memory pool at 0x10000000, size 0 MiB
  89. [    0.000000] OF: reserved mem: initialized node mcuram2@0x10000000, compatible id shared-dma-pool
  90. [    0.000000] Reserved memory: created DMA memory pool at 0x10040000, size 0 MiB
  91. [    0.000000] OF: reserved mem: initialized node vdev0vring0@10040000, compatible id shared-dma-pool
  92. [    0.000000] Reserved memory: created DMA memory pool at 0x10042000, size 0 MiB
  93. [    0.000000] OF: reserved mem: initialized node vdev0vring1@10042000, compatible id shared-dma-pool
  94. [    0.000000] Reserved memory: created DMA memory pool at 0x10044000, size 0 MiB
  95. [    0.000000] OF: reserved mem: initialized node vdev0buffer@10044000, compatible id shared-dma-pool
  96. [    0.000000] Reserved memory: created DMA memory pool at 0x30000000, size 0 MiB
  97. [    0.000000] OF: reserved mem: initialized node mcuram@0x30000000, compatible id shared-dma-pool
  98. [    0.000000] Reserved memory: created DMA memory pool at 0x38000000, size 0 MiB
  99. [    0.000000] OF: reserved mem: initialized node retram@0x38000000, compatible id shared-dma-pool
  100. [    0.000000] cma: Reserved 128 MiB at 0xd4000000
  101. [    0.000000] psci: probing for conduit method from DT.
  102. [    0.000000] psci: PSCIv1.1 detected in firmware.
  103. [    0.000000] psci: Using standard PSCI v0.2 function IDs
  104. [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
  105. [    0.000000] psci: SMC Calling Convention v1.0
  106. [    0.000000] random: get_random_bytes called from start_kernel+0xa0/0x494 with crng_init=0
  107. [    0.000000] percpu: Embedded 17 pages/cpu @(ptrval) s40204 r8192 d21236 u69632
  108. [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 113680
  109. [    0.000000] Kernel command line: root=/dev/mmcblk2p4 rootwait rw console=ttySTM0,115200
  110. [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
  111. [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
  112. [    0.000000] Memory: 306096K/458752K available (10240K kernel code, 844K rwdata, 2936K rodata, 1024K init, 218K bss, 21584K reserved, 131072K cma-reserved, 0K highmem)
  113. [    0.000000] Virtual kernel memory layout:
  114. [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  115. [    0.000000]     fixmap  : 0xFFC00000 - 0xfff00000   (3072 kB)
  116. [    0.000000]     vmalloc : 0xdc800000 - 0xff800000   ( 560 MB)
  117. [    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
  118. [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
  119. [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
  120. [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (11232 kB)
  121. [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
  122. [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 845 kB)
  123. [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 219 kB)
  124. [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
  125. [    0.000000] rcu: Preemptible hierarchical RCU implementation.
  126. [    0.000000] rcu:     RCU event tracing is enabled.
  127. [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
  128. [    0.000000]  Tasks RCU enabled.
  129. [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
  130. [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
  131. [    0.000000] /soc/interrupt-controller@5000d000: bank0
  132. [    0.000000] /soc/interrupt-controller@5000d000: bank1
  133. [    0.000000] /soc/interrupt-controller@5000d000: bank2
  134. [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
  135. [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
  136. [    0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
  137. [    0.000027] switching to timer-based delay loop, resolution 41ns
  138. [    0.001982] Console: colour dummy device 80x30
  139. [    0.002033] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
  140. [    0.002056] pid_max: default: 32768 minimum: 301
  141. [    0.002295] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  142. [    0.002317] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  143. [    0.003330] CPU: Testing write buffer coherency: ok
  144. [    0.003823] CPU0: update cpu_capacity 1024
  145. [    0.003846] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  146. [    0.059769] Setting up static identity map for 0xc0100000 - 0xc0100060
  147. [    0.079760] rcu: Hierarchical SRCU implementation.
  148. [    0.119904] smp: Bringing up secondary CPUs ...
  149. [    0.200498] CPU1: update cpu_capacity 1024
  150. [    0.200510] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
  151. [    0.200717] smp: Brought up 1 node, 2 CPUs
  152. [    0.200748] SMP: Total of 2 processors activated (96.00 BogoMIPS).
  153. [    0.200759] CPU: All CPU(s) started in SVC mode.
  154. [    0.201879] devtmpfs: initialized
  155. [    0.228077] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
  156. [    0.228581] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  157. [    0.228614] futex hash table entries: 512 (order: 3, 32768 bytes)
  158. [    0.234594] pinctrl core: initialized pinctrl subsystem
  159. [    0.236701] NET: Registered protocol family 16
  160. [    0.243119] DMA: preallocated 256 KiB pool for atomic coherent allocations
  161. [    0.245554] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
  162. [    0.245575] hw-breakpoint: maximum watchpoint size is 8 bytes.
  163. [    0.245880] Serial: AMBA PL011 UART driver
  164. [    0.248090] stm32-pm-domain pm_domain: domain core-ret-power-domain registered
  165. [    0.248127] stm32-pm-domain pm_domain: subdomain core-power-domain registered
  166. [    0.248142] stm32-pm-domain pm_domain: domains probed
  167. [    0.265525] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
  168. [    0.265852] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
  169. [    0.266153] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
  170. [    0.266453] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
  171. [    0.266726] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
  172. [    0.267005] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
  173. [    0.267272] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
  174. [    0.267547] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
  175. [    0.267829] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
  176. [    0.268057] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
  177. [    0.268966] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
  178. [    0.268996] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
  179. [    0.289479] stm32-mdma 58000000.dma: STM32 MDMA driver registered
  180. [    0.294866] SCSI subsystem initialized
  181. [    0.295646] usbcore: registered new interface driver usbfs
  182. [    0.295728] usbcore: registered new interface driver hub
  183. [    0.295867] usbcore: registered new device driver usb
  184. [    0.296203] pps_core: LinuxPPS API ver. 1 registered
  185. [    0.296216] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
  186. [    0.296250] PTP clock support registered
  187. [    0.296555] EDAC MC: Ver: 3.0.0
  188. [    0.297431] Advanced Linux Sound Architecture Driver Initialized.
  189. [    0.298224] Bluetooth: Core ver 2.22
  190. [    0.298316] NET: Registered protocol family 31
  191. [    0.298330] Bluetooth: HCI device and connection manager initialized
  192. [    0.298353] Bluetooth: HCI socket layer initialized
  193. [    0.298370] Bluetooth: L2CAP socket layer initialized
  194. [    0.298428] Bluetooth: SCO socket layer initialized
  195. [    0.299300] clocksource: Switched to clocksource arch_sys_counter
  196. [    0.393554] NET: Registered protocol family 2
  197. [    0.394721] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
  198. [    0.394773] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
  199. [    0.394840] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
  200. [    0.394938] TCP: Hash tables configured (established 4096 bind 4096)
  201. [    0.395073] UDP hash table entries: 256 (order: 1, 8192 bytes)
  202. [    0.395120] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
  203. [    0.395427] NET: Registered protocol family 1
  204. [    0.396331] RPC: Registered named UNIX socket transport module.
  205. [    0.396353] RPC: Registered udp transport module.
  206. [    0.396364] RPC: Registered tcp transport module.
  207. [    0.396374] RPC: Registered tcp NFSv4.1 backchannel transport module.
  208. [    0.397448] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
  209. [    0.399832] Initialise system trusted keyrings
  210. [    0.400216] workingset: timestamp_bits=14 max_order=17 bucket_order=3
  211. [    0.411149] squashfs: version 4.0 (2009/01/31) Phillip Lougher
  212. [    0.412290] NFS: Registering the id_resolver key type
  213. [    0.412340] Key type id_resolver registered
  214. [    0.412353] Key type id_legacy registered
  215. [    0.412573] ntfs: driver 2.1.32 [Flags: R/O].
  216. [    0.413081] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
  217. [    0.414009] fuse init (API version 7.27)
  218. [    0.414705] pstore: using deflate compression
  219. [    0.421116] NET: Registered protocol family 38
  220. [    0.421335] Key type asymmetric registered
  221. [    0.421354] Asymmetric key parser 'x509' registered
  222. [    0.421454] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
  223. [    0.421472] io scheduler noop registered
  224. [    0.421484] io scheduler deadline registered
  225. [    0.421724] io scheduler cfq registered (default)
  226. [    0.421740] io scheduler mq-deadline registered
  227. [    0.421752] io scheduler kyber registered
  228. [    0.423143] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.1
  229. [    0.423264] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.2
  230. [    0.423390] stm32-usbphyc 5a006000.usbphyc: Dropping the link to regulator.2
  231. [    0.423499] stm32-usbphyc 5a006000.usbphyc: Dropping the link to regulator.1
  232. [    0.425909] gpio-backlight panel-backlight: Error: The gpios parameter is missing or invalid.
  233. [    0.425947] gpio-backlight: probe of panel-backlight failed with error -2
  234. [    0.428571] stm32-dma 48000000.dma: STM32 DMA driver registered
  235. [    0.430449] stm32-dma 48001000.dma: STM32 DMA driver registered
  236. [    0.510638] STM32 USART driver initialized
  237. [    0.512024] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 25, base_baud = 4000000) is a stm32-usart
  238. [    1.471127] console [ttySTM0] enabled
  239. [    1.475313] stm32-usart 40010000.serial: interrupt mode used for rx (no dma)
  240. [    1.481823] stm32-usart 40010000.serial: interrupt mode used for tx (no dma)
  241. [    1.489874] 40011000.serial: ttySTM3 at MMIO 0x40011000 (irq = 27, base_baud = 4000000) is a stm32-usart
  242. [    1.498833] stm32-usart 40011000.serial: interrupt mode used for rx (no dma)
  243. [    1.505414] stm32-usart 40011000.serial: interrupt mode used for tx (no dma)
  244. [    1.513149] stm32-usart 40018000.serial: failed to get alias id, errno -19
  245. [    1.520281] 40019000.serial: ttySTM2 at MMIO 0x40019000 (irq = 34, base_baud = 4000000) is a stm32-usart
  246. [    1.529402] stm32-usart 40019000.serial: interrupt mode used for rx (no dma)
  247. [    1.535781] stm32-usart 40019000.serial: interrupt mode used for tx (no dma)
  248. [    1.568539] brd: module loaded
  249. [    1.582988] loop: module loaded
  250. [    1.590680] nand: No NAND device found
  251. [    1.595454] spidev spi0.0: buggy DT: spidev listed directly in DT
  252. [    1.600174] ------------[ cut here ]------------
  253. [    1.604711] WARNING: CPU: 0 PID: 1 at drivers/spi/spidev.c:730 spidev_probe+0x1d8/0x214
  254. [    1.612754] Modules linked in:
  255. [    1.615746] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.9 #1
  256. [    1.621653] Hardware name: STM32 (Device Tree Support)
  257. [    1.626816] [<c0111f68>] (unwind_backtrace) from [<c010dc28>] (show_stack+0x10/0x14)
  258. [    1.634538] [<c010dc28>] (show_stack) from [<c0a57a7c>] (dump_stack+0x7c/0x90)
  259. [    1.641760] [<c0a57a7c>] (dump_stack) from [<c0125ba8>] (__warn.part.3+0xbc/0xd8)
  260. [    1.649238] [<c0125ba8>] (__warn.part.3) from [<c0125d24>] (warn_slowpath_null+0x44/0x4c)
  261. [    1.657412] [<c0125d24>] (warn_slowpath_null) from [<c06a9060>] (spidev_probe+0x1d8/0x214)
  262. [    1.665676] [<c06a9060>] (spidev_probe) from [<c06a4e34>] (spi_drv_probe+0x80/0xa4)
  263. [    1.673332] [<c06a4e34>] (spi_drv_probe) from [<c05ee318>] (really_probe+0x238/0x3fc)
  264. [    1.681158] [<c05ee318>] (really_probe) from [<c05ee694>] (driver_probe_device+0x78/0x1c4)
  265. [    1.689420] [<c05ee694>] (driver_probe_device) from [<c05ec35c>] (bus_for_each_drv+0x80/0xc4)
  266. [    1.697942] [<c05ec35c>] (bus_for_each_drv) from [<c05ee044>] (__device_attach+0xd0/0x164)
  267. [    1.706203] [<c05ee044>] (__device_attach) from [<c05ed28c>] (bus_probe_device+0x84/0x8c)
  268. [    1.714377] [<c05ed28c>] (bus_probe_device) from [<c05e9df4>] (device_add+0x380/0x638)
  269. [    1.722292] [<c05e9df4>] (device_add) from [<c06a5b08>] (spi_add_device+0x98/0x16c)
  270. [    1.729946] [<c06a5b08>] (spi_add_device) from [<c06a60bc>] (of_register_spi_device+0x224/0x334)
  271. [    1.738729] [<c06a60bc>] (of_register_spi_device) from [<c06a6738>] (spi_register_controller+0x33c/0x694)
  272. [    1.748294] [<c06a6738>] (spi_register_controller) from [<c06aee3c>] (stm32_spi_probe+0x4f8/0x5b8)
  273. [    1.757248] [<c06aee3c>] (stm32_spi_probe) from [<c05f05d8>] (platform_drv_probe+0x48/0x98)
  274. [    1.765597] [<c05f05d8>] (platform_drv_probe) from [<c05ee318>] (really_probe+0x238/0x3fc)
  275. [    1.773861] [<c05ee318>] (really_probe) from [<c05ee694>] (driver_probe_device+0x78/0x1c4)
  276. [    1.782124] [<c05ee694>] (driver_probe_device) from [<c05ee900>] (__driver_attach+0x120/0x13c)
  277. [    1.790732] [<c05ee900>] (__driver_attach) from [<c05ec288>] (bus_for_each_dev+0x74/0xb4)
  278. [    1.798908] [<c05ec288>] (bus_for_each_dev) from [<c05ed5bc>] (bus_add_driver+0x1f0/0x25c)
  279. [    1.807171] [<c05ed5bc>] (bus_add_driver) from [<c05ef5b0>] (driver_register+0x74/0x108)
  280. [    1.815259] [<c05ef5b0>] (driver_register) from [<c0102ea4>] (do_one_initcall+0x54/0x284)
  281. [    1.823437] [<c0102ea4>] (do_one_initcall) from [<c0f011d0>] (kernel_init_freeable+0x34c/0x3dc)
  282. [    1.832134] [<c0f011d0>] (kernel_init_freeable) from [<c0a6c394>] (kernel_init+0x8/0x110)
  283. [    1.840307] [<c0a6c394>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
  284. [    1.847864] Exception stack(0xd309bfb0 to 0xd309bff8)
  285. [    1.852913] bfa0:                                     00000000 00000000 00000000 00000000
  286. [    1.861090] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  287. [    1.869265] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
  288. [    1.876028] ---[ end trace 658f018852a43120 ]---
  289. [    1.880873] spi_stm32 44004000.spi: driver initialized
  290. [    1.887462] libphy: Fixed MDIO Bus: probed
  291. [    1.891615] CAN device driver interface
  292. [    1.895302] m_can 4400e000.can: m_can device registered (irq=37, version=32)
  293. [    1.903657] stm32-dwmac 5800a000.ethernet: PTP uses main clock
  294. [    1.908037] stm32-dwmac 5800a000.ethernet: no reset control found
  295. [    1.914248] stm32-dwmac 5800a000.ethernet: No phy clock provided...
  296. [    1.921501] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
  297. [    1.927344] stm32-dwmac 5800a000.ethernet:   DWMAC4/5
  298. [    1.932366] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
  299. [    1.939629] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
  300. [    1.946906] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
  301. [    1.953800] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
  302. [    1.960060] stm32-dwmac 5800a000.ethernet: TSO supported
  303. [    1.965346] stm32-dwmac 5800a000.ethernet: TSO feature enabled
  304. [    1.971195] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
  305. [    1.979242] libphy: stmmac: probed
  306. [    1.985398] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
  307. [    1.991533] usbcore: registered new interface driver pegasus
  308. [    1.997076] usbcore: registered new interface driver asix
  309. [    2.002568] usbcore: registered new interface driver ax88179_178a
  310. [    2.008519] usbcore: registered new interface driver cdc_ether
  311. [    2.014402] usbcore: registered new interface driver smsc75xx
  312. [    2.020144] usbcore: registered new interface driver smsc95xx
  313. [    2.025823] usbcore: registered new interface driver net1080
  314. [    2.031532] usbcore: registered new interface driver cdc_subset
  315. [    2.037401] usbcore: registered new interface driver zaurus
  316. [    2.043031] usbcore: registered new interface driver cdc_ncm
  317. [    2.049915] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  318. [    2.055123] ehci-platform: EHCI generic platform driver
  319. [    2.060901] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  320. [    2.066505] ohci-platform: OHCI generic platform driver
  321. [    2.072741] usbcore: registered new interface driver usb-storage
  322. [    2.082884] stm32_rtc 5c004000.rtc: rtc core: registered 5c004000.rtc as rtc0
  323. [    2.089020] stm32_rtc 5c004000.rtc: Date/Time must be initialized
  324. [    2.094839] stm32_rtc 5c004000.rtc: registered rev:1.2
  325. [    2.100458] i2c /dev entries driver
  326. [    2.124021] stm32f7-i2c 40013000.i2c: can't use DMA
  327. [    2.131048] sii902x 0-0039: 0-0039 supply iovcc not found, using dummy regulator
  328. [    2.137080] sii902x 0-0039: Linked as a consumer to regulator.0
  329. [    2.142979] sii902x 0-0039: 0-0039 supply cvcc12 not found, using dummy regulator
  330. [    2.154666] i2c i2c-0: Added multiplexed i2c bus 1
  331. [    2.479518] edt_ft5x06 0-0038: touchscreen probe failed
  332. [    2.483414] stm32f7-i2c 40013000.i2c: STM32F7 I2C-0 bus adapter
  333. [    2.510182] stm32f7-i2c 5c002000.i2c: can't use DMA
  334. [    2.516123] typec_stusb 2-0028: STUSB driver registered
  335. [    2.521858] stpmic1 2-0033: PMIC Chip Version: 0x20
  336. [    2.531015] BUCK1: supplied by regulator-dummy
  337. [    2.537962] BUCK2: supplied by regulator-dummy
  338. [    2.544524] BUCK3: supplied by regulator-dummy
  339. [    2.551382] BUCK4: supplied by regulator-dummy
  340. [    2.557903] LDO1: supplied by v3v3
  341. [    2.565530] LDO2: supplied by regulator-dummy
  342. [    2.572326] LDO3: supplied by vdd_ddr
  343. [    2.578475] LDO4: supplied by regulator-dummy
  344. [    2.583023] LDO5: supplied by regulator-dummy
  345. [    2.589898] LDO6: supplied by v3v3
  346. [    2.595711] VREF_DDR: supplied by regulator-dummy
  347. [    2.599395] random: fast init done
  348. [    2.605099] BOOST: supplied by regulator-dummy
  349. [    2.609214] VBUS_OTG: supplied by bst_out
  350. [    2.613370] SW_OUT: supplied by bst_out
  351. [    2.620508] input: pmic_onkey as /devices/platform/soc/5c002000.i2c/i2c-2/2-0033/5c002000.i2c:stpmic@33:onkey/input/input1
  352. [    2.631420] stm32f7-i2c 5c002000.i2c: STM32F7 I2C-2 bus adapter
  353. [    2.640063] stm_thermal 50028000.thermal: stm_thermal_probe: Driver initialized successfully
  354. [    2.651054] mmci-pl18x 48004000.sdmmc: allocated mmc-pwrseq
  355. [    2.655421] mmci-pl18x 48004000.sdmmc: Linked as a consumer to regulator.8
  356. [    2.662283] mmci-pl18x 48004000.sdmmc: mmc0: PL180 manf 53 rev1 at 0x48004000 irq 57,0 (pio)
  357. [    2.699653] mmci-pl18x 58005000.sdmmc: Linked as a consumer to regulator.13
  358. [    2.705442] mmci-pl18x 58005000.sdmmc: mmc1: PL180 manf 53 rev2 at 0x58005000 irq 65,0 (pio)
  359. [    2.725298] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
  360. [    2.730892] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
  361. [    2.736382] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
  362. [    2.743237] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
  363. [    2.744612] mmci-pl18x 58007000.sdmmc: Linked as a consumer to regulator.8
  364. [    2.750577] mmc0: queuing unknown CIS tuple 0x81 (9 bytes)
  365. [    2.754546] mmci-pl18x 58007000.sdmmc: mmc2: PL180 manf 53 rev2 at 0x58007000 irq 66,0 (pio)
  366. [    2.796363] sdhci: Secure Digital Host Controller Interface driver
  367. [    2.801234] sdhci: Copyright(c) Pierre Ossman
  368. [    2.805460] Synopsys Designware Multimedia Card Interface Driver
  369. [    2.813282] sdhci-pltfm: SDHCI platform and OF driver helper
  370. [    2.822323] ledtrig-cpu: registered to indicate activity on CPUs
  371. [    2.828081] usbcore: registered new interface driver usbhid
  372. [    2.832566] usbhid: USB HID core driver
  373. [    2.838154] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
  374. [    2.845470] stm32-rproc m4@0: wdg irq registered
  375. [    2.849041] remoteproc remoteproc0: m4 is available
  376. [    2.854708] stm32-adc-core 48003000.adc: Linked as a consumer to regulator.9
  377. [    2.860857] stm32-adc-core 48003000.adc: Linked as a consumer to regulator.7
  378. [    2.874611] mmc2: new DDR MMC card at address 0001
  379. [    2.879981] mmcblk2: mmc2:0001 004G60 3.69 GiB
  380. [    2.885699] mmcblk2boot0: mmc2:0001 004G60 partition 1 2.00 MiB
  381. [    2.886685] mmc0: new high speed SDIO card at address 0001
  382. [    2.892841] mmcblk2boot1: mmc2:0001 004G60 partition 2 2.00 MiB
  383. [    2.902132] mmcblk2rpmb: mmc2:0001 004G60 partition 3 512 KiB, chardev (244:0)
  384. [    2.912494] iio iio:device3: Can't get offset/scale: -517
  385. [    2.920271] optee: probing for conduit method from DT.
  386. [    2.924052] optee: api uid mismatch
  387. [    2.931621]  mmcblk2: p1 p2 p3 p4 p5
  388. [    2.934396] NET: Registered protocol family 17
  389. [    2.938256] can: controller area network core (rev 20170425 abi 9)
  390. [    2.944847] NET: Registered protocol family 29
  391. [    2.948908] can: raw protocol (rev 20170425)
  392. [    2.953213] can: broadcast manager protocol (rev 20170425 t)
  393. [    2.958742] can: netlink gateway (rev 20170425) max_hops=1
  394. [    2.965515] Bluetooth: RFCOMM TTY layer initialized
  395. [    2.969084] Bluetooth: RFCOMM socket layer initialized
  396. [    2.974269] Bluetooth: RFCOMM ver 1.11
  397. [    2.977943] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
  398. [    2.983260] Bluetooth: BNEP filters: protocol multicast
  399. [    2.988475] Bluetooth: BNEP socket layer initialized
  400. [    2.993443] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
  401. [    2.999422] Bluetooth: HIDP socket layer initialized
  402. [    3.004636] Key type dns_resolver registered
  403. [    3.008712] ThumbEE CPU extension supported.
  404. [    3.012864] Registering SWP/SWPB emulation handler
  405. [    3.018592] registered taskstats version 1
  406. [    3.021784] Loading compiled-in X.509 certificates
  407. [    3.051460] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.1
  408. [    3.057429] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.2
  409. [    3.064853] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.12
  410. [    3.072854] stm32-usbphyc 5a006000.usbphyc: registered rev:1.0
  411. [    3.079530] [drm] ltdc hw version 0x00010300 - ready
  412. [    3.083127] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
  413. [    3.089697] [drm] Driver supports precise vblank timestamp query.
  414. [    3.096409] [drm] Initialized stm 1.0.0 20170330 for 5a001000.display-controller on minor 0
  415. [    3.249205] Console: switching to colour frame buffer device 160x45
  416. [    3.270755] stm32-display 5a001000.display-controller: fb0: DRM emulated frame buffer device
  417. [    3.280152] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_d not found, using dummy regulator
  418. [    3.288224] dwc2 49000000.usb-otg: Linked as a consumer to regulator.0
  419. [    3.294807] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_a not found, using dummy regulator
  420. [    3.316188] dwc2 49000000.usb-otg: EPs: 9, dedicated fifos, 952 entries in SPRAM
  421. [    3.323951] ehci-platform 5800d000.usbh-ehci: EHCI Host Controller
  422. [    3.328713] ehci-platform 5800d000.usbh-ehci: new USB bus registered, assigned bus number 1
  423. [    3.337591] ehci-platform 5800d000.usbh-ehci: irq 71, io mem 0x5800d000
  424. [    3.369345] ehci-platform 5800d000.usbh-ehci: USB 2.0 started, EHCI 1.00
  425. [    3.375932] hub 1-0:1.0: USB hub found
  426. [    3.378381] hub 1-0:1.0: 2 ports detected
  427. [    3.383816] ohci-platform 5800c000.usbh-ohci: Generic Platform OHCI controller
  428. [    3.389783] ohci-platform 5800c000.usbh-ohci: new USB bus registered, assigned bus number 2
  429. [    3.398383] ohci-platform 5800c000.usbh-ohci: irq 70, io mem 0x5800c000
  430. [    3.474502] hub 2-0:1.0: USB hub found
  431. [    3.476847] hub 2-0:1.0: 2 ports detected
  432. [    3.484553] asoc-audio-graph-card sound: i2s-hifi <-> 4000b000.audio-controller mapping ok
  433. [    3.491582] asoc-audio-graph-card sound: ASoC: no source widget found for MCLK
  434. [    3.498587] asoc-audio-graph-card sound: ASoC: Failed to add route MCLK -> direct -> Playback
  435. [    3.507204] asoc-audio-graph-card sound: ASoC: no source widget found for MCLK
  436. [    3.514375] asoc-audio-graph-card sound: ASoC: Failed to add route MCLK -> direct -> Capture
  437. [    3.522800] asoc-audio-graph-card sound: ASoC: no source widget found for Mic Bias
  438. [    3.530408] asoc-audio-graph-card sound: ASoC: Failed to add route Mic Bias -> direct -> MICL
  439. [    3.542624] input: joystick as /devices/platform/joystick/input/input2
  440. [    3.548242] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01 00:08:55 UTC (946685335)
  441. [    3.557419] vref: supplied by vdd
  442. [    3.559959] ALSA device list:
  443. [    3.562654]   #0: STM32M  3.653717] EXT4-fs (mmcblk2p4): recovery complete
  444. [    3.657827] EXT4-fs (mmcblk2p4): mounted filesystem with ordered data mode. Opts: (null)
  445. [    3.665286] VFS: Mounted root (ext4 filesystem) on device 179:4.
  446. [    3.672169] devtmpfs: mounted
  447. [    3.676033] Freeing unused kernel memory: 1024K
  448. [    3.679479] Run /sbin/init as init process
  449. [    3.820581] systemd[1]: System time before build time, advancing clock.
  450. [    3.885510] NET: Registered protocol family 10
  451. [    3.927745] Segment Routing with IPv6
  452. [    3.945661] systemd[1]: systemd 239 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
  453. [    3.966447] systemd[1]: Detected architecture arm.

  454. Welcome to ST OpenSTLinux - Weston - (A Yocto Project Based Distro) 2.6-snapshot-20190301 (thud)!

  455. [    4.020589] systemd[1]: Set hostname to <stm32mp1>.
  456. [    4.029515] systemd[1]: Hardware watchdog 'STM32 Independent Watchdog', version 0
  457. [    4.036628] systemd[1]: Set hardware watchdog to 30s.
  458. [    4.647216] systemd[1]: Unnecessary job for dev-ttySTM0.device was removed.
  459. [    4.654969] random: systemd: uninitialized urandom read (16 bytes read)
  460. [    4.661030] systemd[1]: Listening on udev Kernel Socket.
  461. [  OK  ] Listening on udev Kernel Socket.
  462. [    4.699620] random: systemd: uninitialized urandom read (16 bytes read)
  463. [    4.707785] systemd[1]: Created slice User and Session Slice.
  464. [  OK  ] Created slice User and Session Slice.
  465. [    4.739705] random: systemd: uninitialized urandom read (16 bytes read)
  466. [    4.746061] systemd[1]: Listening on Journal Socket.
  467. [  OK  ] Listening on Journal Socket.
  468. [    4.787449] systemd[1]: Mounting POSIX Message Queue File System...
  469.          Mounting POSIX Message Queue File System...
  470. [  OK  ] Listening on Syslog Socket.
  471. [  OK  ] Reached target Swap.
  472.          Starting Remount Root and Kernel File Systems...
  473. [  OK  ] Started Forward Password Requests to Wall Directory Watch.
  474. [    4.930269] EXT4-fs (mmcblk2p4): re-mounted. Opts: (null)
  475. [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
  476. [    4.975193] random: crng init done
  477. [    4.977137] random: 7 urandom warning(s) missed due to ratelimiting
  478.          Starting Mount partitions...
  479. [  OK  ] Listening on Process Core Dump Socket.
  480.          Mounting Kernel Debug File System...
  481. [  OK  ] Created slice system-serial\x2dgetty.slice.
  482. [  OK  ] Reached target Remote File Systems.
  483. [  OK  ] Created slice system-getty.slice.
  484.          Mounting Temporary Directory (/tmp)...
  485. [  OK  ] Listening on Journal Socket (/dev/log).
  486. [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
  487.          Starting Journal Service...
  488. [  OK  ] Listening on udev Control Socket.
  489. [  OK  ] Listening on initctl Compatibility Named Pipe.
  490.          Starting Create list of required st…ce nodes for the current kernel...
  491. [  OK  ] Listening on Network Service Netlink Socket.
  492.          Starting Load Kernel Modules...
  493. [  OK  ] Reached target Slices.
  494. [  OK  ] Reached target Paths.
  495.          Starting udev Coldplug all Devices...
  496. [  OK  ] Started Journal Service.
  497. [  OK  ] Mounted POSIX Message Queue File System.
  498. [  OK  ] Started Remount Root and Kernel File Systems.
  499. [  OK  ] Started Mount partitions.
  500. [  OK  ] Mounted Kernel Debug File System.
  501. [  OK  ] Mounted Temporary Directory (/tmp).
  502. [  OK  ] Started Create list of required sta…vice nodes for the current kernel.
  503. [  OK  ] Started Load Kernel Modules.
  504.          Mounting Kernel Configuration File System...
  505.          Mounting FUSE Control File System...
  506.          Starting Apply Kernel Variables...
  507. [  OK  ] Started Starts Psplash Boot screen.
  508.          Starting Create Static Device Nodes in /dev...
  509.          Starting Flush Journal to Persistent Storage...
  510. [  OK  ] Mounted Kernel Configuration File System.
  511. [  OK  ] Mounted FUSE Control File System.
  512. [  OK  ] Started Apply Kernel Variables.
  513. [  OK  ] Started Create Static Device Nodes in /dev.
  514.          Starting udev Kernel Device Manager...
  515. [  OK  ] Reached target Local File Systems (Pre).
  516. [  OK  ] Reached target Containers.
  517.          Mounting /var/volatile...
  518. [  OK  ] Started udev Kernel Device Manager.
  519. [    6.431926] systemd-journald[165]: Received request to flush runtime journal from PID 1
  520. [  OK  ] Started Flush Journal to Persistent Storage.
  521. [  OK  ] Mounted /var/volatile.
  522.          Starting Load/Save Random Seed...
  523. [  OK  ] Reached target Local File Systems.
  524.          Starting Create Volatile Files and Directories...
  525. [  OK  ] Started Load/Save Random Seed.
  526. [  OK  ] Started Create Volatile Files and Directories.
  527.          Starting Update UTMP about System Boot/Shutdown...
  528.          Starting Network Time Synchronization...
  529. [  OK  ] Started Update UTMP about System Boot/Shutdown.
  530. [  OK  ] Started Network Time Synchronization.
  531. [  OK  ] Reached target System Time Synchronized.
  532. [  OK  ] Started udev Coldplug all Devices.
  533. [    8.178681] cfg80211: Loading compiled-in X.509 certificates for regulatory database
  534. [    8.270377] galcore: loading out-of-tree module taints kernel.
  535. [    8.297044] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
  536. [    8.444587] Galcore version 6.2.4.174315
  537. [    8.503999] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
  538. [    8.841939] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
  539. [    8.931518] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Sep 11 2018 09:22:09 version 7.45.98.65 (r707797 CY) FWID 01-b54727f
  540. [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
  541. [  OK  ] Reached target System Initialization.
  542. [  OK  ] Started Daily Cleanup of Temporary Directories.
  543. [  OK  ] Listening on D-Bus System Message Bus Socket.
  544. [  OK  ] Listening on dropbear.socket.
  545. [  OK  ] Listening on RPCBind Server Activation Socket.
  546.          Starting Console System Startup Logging...
  547. [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
  548. [  OK  ] Reached target Sockets.
  549. [  OK  ] Reached target Basic System.
  550.          Starting Enable USB Ethernet gadget...
  551. [  OK  ] Started D-Bus System Message Bus.
  552. [   16.416902] using random self ethernet address
  553. [   16.420063] using random host ethernet address
  554.          Starting Netdata, Real-time performance monitoring...
  555. [   16.477064] usb0: HOST MAC 02:d2:76:b4:69:f8
  556. [   16.482069] usb0: MAC 4e:67:e5:cc:41:0d
  557. [   16.487589] dwc2 49000000.usb-otg: bound driver configfs-gadget

  558.          Starting Weston Wayland Compositor...
  559.          Starting Save/Restore Sound Card State...
  560. [  OK  ] Started System Logging Service.
  561. [  OK  ] Started ST Verify if eth0 network interface are already configured.
  562.          Starting Network Service...
  563. [  OK  ] Started Kernel Logging Service.
  564. [   16.770003] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
  565.          Starting Sound Service...
  566. [  OK  ] Started Console System Startup Logging.
  567. [  OK  ] Started Enable USB Ethernet gadget.
  568. [  OK  ] Started Save/Restore Sound Card State.
  569. [  OK  ] Started Network Service.
  570. [   17.230147] Micrel KSZ9031 Gigabit PHY stmmac-0:06: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:06, irq=POLL)
  571.          Stopping Network Service...
  572.          Starting Load/Save RF Kill Switch Status...
  573. [   17.302953] dwmac4: Master AXI performs any burst length
  574. [   17.306857] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
  575. [  OK  ] Reached target [   17.320812] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
  576. Sound Card.
  577. [   17.353209] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock
  578. [   17.366396] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
  579. [  OK  ] Started Sound Service.
  580. [  OK  ] Started Load/Save RF Kill Switch Status.
  581. [   17.461234] Gcnano is present and activated
  582. [  OK  ] Stopped Network Service.
  583.          Starting Bluetooth service...
  584.          Starting Network Service...
  585. [  OK  ] Started Login Service.
  586. [  OK  ] Started Weston Wayland Compositor.
  587. [  OK  ] Started Bluetooth service.
  588. [  OK  ] Started Network Service.
  589.          Starting Hostname Service...
  590.          Starting Wait for Network to be Configured...
  591.          Starting Network Name Resolution...
  592. [  OK  ] Started Netdata, Real-time performance monitoring.
  593. [  OK  ] Started Hostname Service.
  594. [  OK  ] Started Network Name Resolution.
  595.          Starting Avahi mDNS/DNS-SD Stack...
  596. [  OK  ] Reached target Network.
  597.          Starting Target Communication Framework agent...
  598.          Starting Permit User Sessions...
  599. [  OK  ] Started IIO Daemon.
  600. [  OK  ] Reached target Host and Network Name Lookups.
  601. [  OK  ] Started Target Communication Framework agent.
  602. [  OK  ] Started Permit User Sessions.
  603. [  OK  ] Started Avahi mDNS/DNS-SD Stack.
  604. [  OK  ] Started Getty on tty1.
  605. [  OK  ] Started Serial Getty on ttySTM0.
  606. [  OK  ] Reached target Login Prompts.
  607. [  OK  ] Reached target Multi-User System.
  608.          Starting Update UTMP about System Runlevel Changes...
  609. [  OK  ] Started Update UTMP about System Runlevel Changes.

  610. ST OpenSTLinux - Weston - (A Yocto Project Based Distro) 2.6-snapshot stm32mp1 ttySTM0

  611. stm32mp1 login: root (automatic login)

  612. root@stm32mp1:~#
  613. root@stm32mp1:~#
  614. Display all 1234 possibilities? (y or n)
  615. !                                   lslocks
  616. ./                                  lslogins
  617. :                                   lsmem
  618. X                                   lsmod
  619. Xorg                                lsmod.kmod
  620. Xwayland                            lsns
  621. [                                   lspci
  622. [[                                  lsusb
  623. ]]                                  lsusb.usbutils
  624. aconnect                            lsz
  625. add-shell                           lttng
  626. add-shell.debianutils               lttng-crash
  627. addgroup                            lttng-relayd
  628. addpart                             lttng-sessiond
  629. adduser                             lzcat
  630. agetty                              machinectl
  631. alias                               mapfile
  632. alsabat                             mapscrn
  633. alsactl                             md5sum
  634. alsaloop                            md5sum.coreutils
  635. alsamixer                           mdev
  636. alsatplg                            media-ctl
  637. alsaucm                             memtester
复制代码
     由上输出的log信息可以知道该开发板的基本硬件配置信息,以及启动设置加载的驱动项。启动时连接了支持HDMI输入的显示器,因此屏上会显示三秒的图案

启动时HDMI输出.jpg
     我们知道MYD-YA157C采用双Cortex®-A7内核与Cortex®-M4内核,那它们是怎么协调工作的呢?我们得了解协处理器CM4调试以及异构通讯的实现办法。首先将开发包资料MYD-YA157C/03-Tools/STM32mp1 Tools/stm32cube_fw_mp1_v100.zip解压并拷贝到工作目录,工作目录自定义,然后打开STM32CubeIDE软件,点击界面 [File]>[Import] 并选择导入

ac6 System Workbench for STM32 Project
导入工程.png
导入路径.png
      然后找到需要导入工程的具体路径:
导入指定工程.png
     等待导入完毕后,我们进行全编译一下,没有报错,没有警告
编译工程ok.png
    STM32MP1包含的CM4协处理器,有两种调试方式,量产模式和工程模式。
    关于量产模式:在该模式下,开发者需要注意以下事项,才可以开发或调试CM4固件。
    ①、设备板子boot模式,切换到量产模式,Linux系统必须在运行状态,所以这个启动模式需要设置成相应的启动模式才行。
    ②、M4固件下载到嵌入式文件系统,然后通过remoteproc架构上传给cortex-M4核。实际上由于cortex-M4核是由linux启动的,所以没有办法去监控早期的启动阶段。
     ③、工程目标需要连接网络,在这种模式下,A7核发送命令给M4核。
     关于工程模式:在该模式下调试,需注意如下事项。
     I、如果使能工程调试模式,需要切换boot模式。
     II、Cortex-A7进入循环,而Cortex-M4作为常规STM32设备进行调试,其中使用调试器连接加载应用程序。
     由于调试需要使用STLink工具进行连接,其连接方式与Keil环境下的JLink大相径庭,这里就不再赘述了。
     至于系统的更新,如何制作一张TF卡启动器呢?首先我们需要采用一张内存大于4G的内存卡。制作镜像工具Win32DiskImager-1.0.0-binary在03-Tools目录下,在windows环境下先解压Win32DiskImager-1.0.0-binary.zip与flashlayout_myir-image-weston_FlashLayout_sdcard_stm32mp157c-ya157c-4e512d-trusted.zip文件,然后将TF卡使用读卡器插入电脑,双击打开Win32DiskImager.exe读出U盘分区,加载镜像文件,选择好系统包后点击打开即可。
烧写.jpg
      大约耗时三分钟左右,然后弹出写入成功的对话框
写入成功.jpg
       检查是否烧写成功呢,当写入完成后,即可使用此TF进行启动,将TF插入开发板背面的TF卡槽(J7)处,并将拨码开关调至(B2/B1/B0: 1 0 1) 即可启动系统。
      此次分享就到这里啦,关于MYD-YA157C开发板的异构通讯实现方式,还需要进一步调试中。欢迎各位坛友发帖留言,期待您的不同见解喔,咱们下期再见。
DM00489389_ENV3.pdf (3.43 MB, 下载次数: 0)

评论

高级模式
您需要登录后才可以回帖 登录 | 注册

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
发经验
关闭

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

快速回复 返回顶部 返回列表