STM32MP157C-DK2 開機測試

開發板選擇

    stm32mpu wiki的General Books使用了兩款STM32MP1開發板作爲演示講解,STM32MP157x-EV1和STM32MP157C-DK2,由於STM32MP1是比較新的東西,自己對Linux開發也不熟,爲了避免在學習過程中遇到遇到過多的問題,所以選擇購買和教程一致的開發板。STM32MP157x-EV1在某寶上就可以買到,價格3500左右,對我來說價格太貴了,所以不考慮。STM32MP157C-DK2屬於禁運商品,所以不太好購買,可以讓代理商代購,價格在1500左右,貨期2周,價格還能接受,所以我購買的STM32MP157C-DK2開發板。

開發板介紹    

    經過兩週的等待,設備到手了,總共4樣東西,STM32MP157C-DK2 Discovery kit一套,16GB MicroSD一張,USB TypeC to USB TypeC線一根,一份說明書。如下圖所示:

接口說明,如下圖所示:

1

1、CN6爲供電接口,USB TypeC接口,需要使用5V 3A供電,可以使用USB A接口的電源適配器+USB A轉USB TypeC連接線給開發板供電,一般手機的充電器就行,也可以使用USB TypeC接口的電源適配器+USB TypeC to USB TypeC線供電,目前在一些筆記本使用此類充電器。

2、CN11爲調試接口,Micro USB接口,連接開發板自帶的ST-Link/V2-1仿真器,用於燒寫固件,UART調試,ST-Link/V2-1的USB轉UART連接了STM32MP157C的UART Debug接口,所以可以通過ST-Link/V2-1的COM接口輸入命令,查看調試信息,波特率115200,數據位8位,停止位1位,無奇偶檢驗。

3、CN7爲USB OTG接口,USB TypeC接口,用於連接鼠標、鍵盤、U盤等USB外設,需要USB TypeC轉USB A母頭的轉接頭配合使用。

4、CN8位千兆以太網口,RJ45接口,可以通過此接口連接到網絡,通過SSH調試開發板。

開發板測試

1、電腦使用Windows系統,使用一根USB A轉MicroUSB的連接線,USB A插入電腦的USB口,MicroUSB插入CN11,如果電腦沒有ST-Link/V2-1的驅動,需要先安裝驅動,ST官方驅動下載鏈接:https://www.st.com/content/st_com/zh/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-utilities/stsw-link009.html

網盤驅動下載鏈接:https://pan.baidu.com/s/1FOvDOXQRzq63wc4Vc93LWA  提取碼:vum5 ;驅動安裝好之後,打開電腦的設備管理器(鼠標右鍵我的電腦->管理->設備管理器),可以看到端口(COM和LPT)下面有STMicroelectronics STLink Virtual COM Port,通用串行總線設備下面有ST-Link Debug,如下圖所示:

2、運行SecureCRT軟件,鼠標右鍵Sessions->New Session,Protocol選擇Serial,單擊下一步,Port選擇STLink Virtual COM POrton的編號(如COM28),Baud rate:115200,Data bits:8,Parity:None,Stop bits:1,然後點擊下一步,點擊完成,Sessions下面會有一個新的Session名稱,雙擊此名稱,會連接到開發板。如果沒有安裝此軟件,需安裝後再進行操作,也可使用其它終端軟件。

3、給開發板供電,開發板上的顯示屏會有顯示界面,SecureCRT Session會顯示啓動Log,如下圖所示:

NOTICE:  CPU: STM32MP157CAC Rev.B
NOTICE:  Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
NOTICE:  Board: MB1272 Var2 Rev.C-01
INFO:    Reset reason (0x15):
INFO:      Power-on Reset (rst_por)
INFO:    Using SDMMC
INFO:      Instance 1
INFO:    Boot used partition fsbl1
INFO:    Product_below_2v5=1: HSLVEN update is
INFO:      destructive, no update as VDD>2.7V
NOTICE:  BL2: v2.0(debug):
NOTICE:  BL2: Built : 13:13:37, Oct  2 2018
INFO:    BL2: Doing platform setup
INFO:    PMIC version = 0x10
INFO:    RAM: DDR3-1066/888 bin G 1x4Gb 533MHz v1.41
INFO:    Memory size = 0x20000000 (512 MB)
INFO:    BL2 runs SP_MIN setup
INFO:    BL2: Loading image id 4
INFO:    Loading image id=4 at address 0x2fff0000
INFO:    Image id=4 loaded: 0x2fff0000 - 0x30000000
INFO:    BL2: Loading image id 5
INFO:    Loading image id=5 at address 0xc0100000
INFO:    STM32 Image size : 748404
WARNING: Skip signature check (header option)
INFO:    Image id=5 loaded: 0xc0100000 - 0xc01b6b74
INFO:    read version 0 current version 0
NOTICE:  BL2: Booting BL32
INFO:    Entry point address = 0x2fff0000
INFO:    SPSR = 0x1d3
INFO:    PMIC version = 0x10
NOTICE:  SP_MIN: v2.0(debug):
NOTICE:  SP_MIN: Built : 13:13:37, Oct  2 2018
INFO:    ARM GICv2 driver initialized
INFO:    stm32mp HSI (18): Secure only
INFO:    stm32mp HSE (20): Secure only
INFO:    stm32mp PLL2 (27): Secure only
INFO:    stm32mp PLL2_R (30): Secure only
INFO:    SP_MIN: Initializing runtime services
INFO:    SP_MIN: Preparing exit to normal world


U-Boot 2018.11-stm32mp-r2 (Nov 14 2018 - 16:10:06 +0000)

CPU: STM32MP157CAC Rev.B
Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
Board: stm32mp1 in trusted mode (st,stm32mp157c-dk2)
Board: MB1272 Var2 Rev.C-01
       Watchdog enabled
DRAM:  512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz

*******************************************
*   WARNING 500mA power supply detected   *
* Current too low, use a 3A power supply! *
*******************************************

NAND:  0 MiB
MMC:   STM32 SDMMC2: 0, STM32 SDMMC2: 1
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@5800a000
Boot over mmc0!
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:4...
Found U-Boot script /boot.scr.uimg
1553 bytes read in 0 ms
## Executing script at c4100000
Scanning mmc 0:4...
Found /mmc0_stm32mp157c-dk2_extlinux/extlinux.conf
Retrieving file: /mmc0_stm32mp157c-dk2_extlinux/extlinux.conf
616 bytes read in 0 ms
Retrieving file: /mmc0_stm32mp157c-dk2_extlinux/../splash.bmp
46180 bytes read in 3 ms (14.7 MiB/s)
Select the boot mode
1:      stm32mp157c-dk2-sdcard
2:      stm32mp157c-dk2-a7-examples-sdcard
3:      stm32mp157c-dk2-m4-examples-sdcard
Enter choice: 1:        stm32mp157c-dk2-sdcard
Retrieving file: /uImage
6569168 bytes read in 288 ms (21.8 MiB/s)
append: root=/dev/mmcblk0p6 rootwait rw console=ttySTM0,115200
Retrieving file: /stm32mp157c-dk2.dtb
69510 bytes read in 4 ms (16.6 MiB/s)
## Booting kernel from Legacy Image at c2000000 ...
   Image Name:   Linux-4.19.9
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6569104 Bytes = 6.3 MiB
   Load Address: c2000040
   Entry Point:  c2000040
   Verifying Checksum ... OK
## Flattened Device Tree blob at c4000000
   Booting using the fdt blob at 0xc4000000
   XIP Kernel Image ... OK
   Using Device Tree in place at c4000000, end c4013f85

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    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
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: STMicroelectronics STM32MP157C-DK2 Discovery Board
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created DMA memory pool at 0x10000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram2@0x10000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10040000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring0@10040000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10042000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring1@10042000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10044000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0buffer@10044000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x30000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram@0x30000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x38000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node retram@0x38000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 128 MiB at 0xd4000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] random: get_random_bytes called from start_kernel+0xa0/0x494 with crng_init=0
[    0.000000] percpu: Embedded 17 pages/cpu @(ptrval) s40204 r8192 d21236 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 113680
[    0.000000] Kernel command line: root=/dev/mmcblk0p6 rootwait rw console=ttySTM0,115200
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 306144K/458752K available (10240K kernel code, 816K rwdata, 2860K rodata, 1024K init, 208K bss, 21536K reserved, 131072K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff800000   ( 560 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (11232 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 817 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 209 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] /soc/interrupt-controller@5000d000: bank0
[    0.000000] /soc/interrupt-controller@5000d000: bank1
[    0.000000] /soc/interrupt-controller@5000d000: bank2
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000027] Switching to timer-based delay loop, resolution 41ns
[    0.001914] Console: colour dummy device 80x30
[    0.001966] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001989] pid_max: default: 32768 minimum: 301
[    0.002227] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002247] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003257] CPU: Testing write buffer coherency: ok
[    0.003760] CPU0: update cpu_capacity 1024
[    0.003780] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.059784] Setting up static identity map for 0xc0100000 - 0xc0100060
[    0.079769] rcu: Hierarchical SRCU implementation.
[    0.119926] smp: Bringing up secondary CPUs ...
[    0.200525] CPU1: update cpu_capacity 1024
[    0.200538] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.200748] smp: Brought up 1 node, 2 CPUs
[    0.200777] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.200787] CPU: All CPU(s) started in SVC mode.
[    0.201938] devtmpfs: initialized
[    0.227118] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.227668] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.227701] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.233801] pinctrl core: initialized pinctrl subsystem
[    0.235912] NET: Registered protocol family 16
[    0.243167] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.245608] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.245629] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.245945] Serial: AMBA PL011 UART driver
[    0.248103] stm32-pm-domain pm_domain: domain core-ret-power-domain registered
[    0.248138] stm32-pm-domain pm_domain: subdomain core-power-domain registered
[    0.248153] stm32-pm-domain pm_domain: domains probed
[    0.263666] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
[    0.264023] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
[    0.264319] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
[    0.264585] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
[    0.264858] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
[    0.265118] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
[    0.265389] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
[    0.265671] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
[    0.265927] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
[    0.266133] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
[    0.266993] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
[    0.267022] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
[    0.286710] stm32-mdma 58000000.dma: STM32 MDMA driver registered
[    0.291916] SCSI subsystem initialized
[    0.292705] usbcore: registered new interface driver usbfs
[    0.292787] usbcore: registered new interface driver hub
[    0.292940] usbcore: registered new device driver usb
[    0.293253] pps_core: LinuxPPS API ver. 1 registered
[    0.293267] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.293299] PTP clock support registered
[    0.293582] EDAC MC: Ver: 3.0.0
[    0.294466] Advanced Linux Sound Architecture Driver Initialized.
[    0.296096] clocksource: Switched to clocksource arch_sys_counter
[    0.390127] NET: Registered protocol family 2
[    0.391202] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.391253] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.391319] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.391416] TCP: Hash tables configured (established 4096 bind 4096)
[    0.391562] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.391609] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.392086] NET: Registered protocol family 1
[    0.392984] RPC: Registered named UNIX socket transport module.
[    0.393006] RPC: Registered udp transport module.
[    0.393016] RPC: Registered tcp transport module.
[    0.393026] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.394103] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.396387] Initialise system trusted keyrings
[    0.396759] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.407545] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.408657] NFS: Registering the id_resolver key type
[    0.408716] Key type id_resolver registered
[    0.408729] Key type id_legacy registered
[    0.408952] ntfs: driver 2.1.32 [Flags: R/O].
[    0.409445] jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
[    0.410376] fuse init (API version 7.27)
[    0.411078] pstore: using deflate compression
[    0.413990] NET: Registered protocol family 38
[    0.414019] Key type asymmetric registered
[    0.414032] Asymmetric key parser 'x509' registered
[    0.414129] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.414146] io scheduler noop registered
[    0.414158] io scheduler deadline registered
[    0.414402] io scheduler cfq registered (default)
[    0.414419] io scheduler mq-deadline registered
[    0.414432] io scheduler kyber registered
[    0.415756] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.1
[    0.415897] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.2
[    0.416025] stm32-usbphyc 5a006000.usbphyc: Dropping the link to regulator.2
[    0.416245] stm32-usbphyc 5a006000.usbphyc: Dropping the link to regulator.1
[    0.421006] stm32-dma 48000000.dma: STM32 DMA driver registered
[    0.422797] stm32-dma 48001000.dma: STM32 DMA driver registered
[    0.505525] STM32 USART driver initialized
[    0.506963] 4000e000.serial: ttySTM3 at MMIO 0x4000e000 (irq = 25, base_baud = 4000000) is a stm32-usart
[    0.507264] serial serial0: tty port ttySTM3 registered
[    0.507324] stm32-usart 4000e000.serial: interrupt mode used for rx (no dma)
[    0.507342] stm32-usart 4000e000.serial: interrupt mode used for tx (no dma)
[    0.508589] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 27, base_baud = 4000000) is a stm32-usart
[    1.453678] console [ttySTM0] enabled
[    1.457916] stm32-usart 40010000.serial: interrupt mode used for rx (no dma)
[    1.464339] stm32-usart 40010000.serial: interrupt mode used for tx (no dma)
[    1.479223] stm32-display-dsi 5a000000.dsi: Linked as a consumer to regulator.2
[    1.488488] panel-orisetech-otm8009a 5a000000.dsi.0: 5a000000.dsi.0 supply power not found, using dummy regulator
[    1.497513] panel-orisetech-otm8009a 5a000000.dsi.0: Linked as a consumer to regulator.0
[    1.520986] brd: module loaded
[    1.535413] loop: module loaded
[    1.543304] libphy: Fixed MDIO Bus: probed
[    1.547499] CAN device driver interface
[    1.552278] stm32-dwmac 5800a000.ethernet: PTP uses main clock
[    1.556733] stm32-dwmac 5800a000.ethernet: no reset control found
[    1.562803] stm32-dwmac 5800a000.ethernet: No phy clock provided...
[    1.570131] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[    1.576014] stm32-dwmac 5800a000.ethernet:   DWMAC4/5
[    1.581029] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[    1.588406] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[    1.595615] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[    1.602534] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[    1.608797] stm32-dwmac 5800a000.ethernet: TSO supported
[    1.614089] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[    1.619954] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.628039] libphy: stmmac: probed
[    1.634007] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    1.640140] usbcore: registered new interface driver pegasus
[    1.645703] usbcore: registered new interface driver asix
[    1.651189] usbcore: registered new interface driver ax88179_178a
[    1.657205] usbcore: registered new interface driver cdc_ether
[    1.663019] usbcore: registered new interface driver smsc75xx
[    1.668808] usbcore: registered new interface driver smsc95xx
[    1.674501] usbcore: registered new interface driver net1080
[    1.680229] usbcore: registered new interface driver cdc_subset
[    1.686125] usbcore: registered new interface driver zaurus
[    1.691694] usbcore: registered new interface driver cdc_ncm
[    1.698540] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.703852] ehci-platform: EHCI generic platform driver
[    1.709628] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.715299] ohci-platform: OHCI generic platform driver
[    1.721257] usbcore: registered new interface driver usb-storage
[    1.731427] stm32_rtc 5c004000.rtc: rtc core: registered 5c004000.rtc as rtc0
[    1.737689] stm32_rtc 5c004000.rtc: Date/Time must be initialized
[    1.743217] stm32_rtc 5c004000.rtc: registered rev:1.2
[    1.749004] i2c /dev entries driver
[    1.772575] stm32f7-i2c 40012000.i2c: can't use DMA
[    1.779744] sii902x 0-0039: Failed to get supply 'iovcc': -517
[    1.785083] stm32f7-i2c 40012000.i2c: STM32F7 I2C-0 bus adapter
[    1.811094] stm32f7-i2c 5c002000.i2c: can't use DMA
[    1.817013] typec_stusb 1-0028: STUSB driver registered
[    1.822588] stpmic1 1-0033: PMIC Chip Version: 0x10
[    1.831747] BUCK1: supplied by regulator-dummy
[    1.838725] BUCK2: supplied by regulator-dummy
[    1.845166] BUCK3: supplied by regulator-dummy
[    1.852128] BUCK4: supplied by regulator-dummy
[    1.858636] LDO1: supplied by v3v3
[    1.866275] LDO2: supplied by regulator-dummy
[    1.873007] LDO3: supplied by vdd_ddr
[    1.879136] LDO4: supplied by regulator-dummy
[    1.883645] LDO5: supplied by regulator-dummy
[    1.890505] LDO6: supplied by v3v3
[    1.896321] VREF_DDR: supplied by regulator-dummy
[    1.902754] BOOST: supplied by regulator-dummy
[    1.906922] VBUS_OTG: supplied by bst_out
[    1.910882] SW_OUT: supplied by bst_out
[    1.916073] random: fast init done
[    1.920055] input: pmic_onkey as /devices/platform/soc/5c002000.i2c/i2c-1/1-0033/5c002000.i2c:stpmic@33:onkey/input/input0
[    1.930326] stm32f7-i2c 5c002000.i2c: STM32F7 I2C-1 bus adapter
[    1.939370] stm_thermal 50028000.thermal: stm_thermal_probe: Driver initialized successfully
[    1.950079] mmci-pl18x 58005000.sdmmc: Linked as a consumer to regulator.8
[    1.955663] mmci-pl18x 58005000.sdmmc: mmc0: PL180 manf 53 rev2 at 0x58005000 irq 58,0 (pio)
[    1.993071] mmci-pl18x 58007000.sdmmc: allocated mmc-pwrseq
[    1.997631] mmci-pl18x 58007000.sdmmc: Linked as a consumer to regulator.8
[    2.005322] mmci-pl18x 58007000.sdmmc: mmc1: PL180 manf 53 rev1 at 0x58007000 irq 59,0 (pio)
[    2.039567] sdhci: Secure Digital Host Controller Interface driver
[    2.045425] sdhci: Copyright(c) Pierre Ossman
[    2.048754] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.056735] Synopsys Designware Multimedia Card Interface Driver
[    2.063358] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.064531] mmc0: new high speed SDHC card at address aaaa
[    2.073960] ledtrig-cpu: registered to indicate activity on CPUs
[    2.076289] mmcblk0: mmc0:aaaa SS16G 14.8 GiB 
[    2.080965] usbcore: registered new interface driver usbhid
[    2.089489] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    2.090069] usbhid: USB HID core driver
[    2.097492] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.105949] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
[    2.106599] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.113061] stm32-rproc m4@0: wdg irq registered
[    2.120797] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.122263] remoteproc remoteproc0: m4 is available
[    2.129470] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.133195] vref: supplied by vdd
[    2.140832] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
[    2.141410] stm32-adc-core 48003000.adc: Linked as a consumer to regulator.4
[    2.148166]  mmcblk0: p1 p2 p3 p4 p5 p6 p7
[    2.153911] stm32-adc-core 48003000.adc: Linked as a consumer to regulator.7
[    2.187882] iio iio:device2: Can't get offset/scale: -517
[    2.195130] optee: probing for conduit method from DT.
[    2.198874] optee: api uid mismatch
[    2.211848] NET: Registered protocol family 17
[    2.214855] can: controller area network core (rev 20170425 abi 9)
[    2.221292] NET: Registered protocol family 29
[    2.225471] can: raw protocol (rev 20170425)
[    2.229786] can: broadcast manager protocol (rev 20170425 t)
[    2.235407] can: netlink gateway (rev 20170425) max_hops=1
[    2.241516] Key type dns_resolver registered
[    2.241564] mmc1: new high speed SDIO card at address 0001
[    2.245310] ThumbEE CPU extension supported.
[    2.254928] Registering SWP/SWPB emulation handler
[    2.260667] registered taskstats version 1
[    2.263796] Loading compiled-in X.509 certificates
[    2.294037] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.1
[    2.300120] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.2
[    2.307411] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.12
[    2.315359] stm32-usbphyc 5a006000.usbphyc: registered rev:1.0
[    2.322553] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_d not found, using dummy regulator
[    2.330299] dwc2 49000000.usb-otg: Linked as a consumer to regulator.0
[    2.336683] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_a not found, using dummy regulator
[    2.358105] dwc2 49000000.usb-otg: EPs: 9, dedicated fifos, 952 entries in SPRAM
[    2.365681] ehci-platform 5800d000.usbh-ehci: EHCI Host Controller
[    2.370522] ehci-platform 5800d000.usbh-ehci: new USB bus registered, assigned bus number 1
[    2.379301] ehci-platform 5800d000.usbh-ehci: irq 63, io mem 0x5800d000
[    2.406132] ehci-platform 5800d000.usbh-ehci: USB 2.0 started, EHCI 1.00
[    2.412657] hub 1-0:1.0: USB hub found
[    2.415182] hub 1-0:1.0: 2 ports detected
[    2.422271] sii902x 0-0039: Linked as a consumer to regulator.10
[    2.427010] sii902x 0-0039: Linked as a consumer to regulator.14
[    2.437066] i2c i2c-0: Added multiplexed i2c bus 2
[    2.442958] cs42l51 0-004a: Linked as a consumer to regulator.8
[    2.447650] cs42l51 0-004a: Linked as a consumer to regulator.9
[    2.456179] cs42l51 0-004a: Cirrus Logic CS42L51, Revision: 01
[    2.464262] asoc-audio-graph-card sound: cs42l51-hifi0 <-> 4400b004.audio-controller mapping ok
[    2.472577] asoc-audio-graph-card sound: cs42l51-hifi1 <-> 4400b024.audio-controller mapping ok
[    2.480738] asoc-audio-graph-card sound: i2s-hifi <-> 4000b000.audio-controller mapping ok
[    2.489805] cs42l51 0-004a: ASoC: mux DAC Mux has no paths
[    2.729302] [drm] ltdc hw version 0x00010300 - ready
[    2.732905] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.739501] [drm] Driver supports precise vblank timestamp query.
[    2.746537] [drm] Initialized stm 1.0.0 20170330 for 5a001000.display-controller on minor 0
[    2.755010] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01 00:00:12 UTC (946684812)
[    2.763650] vdda: disabling
[    2.765827] ALSA device list:
[    2.768404]   #0: STM32M餥    2.786229] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    2.903192] EXT4-fs (mmcblk0p6): recovery complete
[    2.908375] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[    2.915085] VFS: Mounted root (ext4 filesystem) on device 179:6.
[    2.927363] devtmpfs: mounted
[    2.930720] Freeing unused kernel memory: 1024K
[    2.934112] Run /sbin/init as init process
[    2.987843] hub 1-1:1.0: USB hub found
[    2.990336] hub 1-1:1.0: 4 ports detected
[    3.186506] systemd[1]: System time before build time, advancing clock.
[    3.285097] NET: Registered protocol family 10
[    3.326885] Segment Routing with IPv6
[    3.350320] 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)
[    3.371051] systemd[1]: Detected architecture arm.

Welcome to ST OpenSTLinux - Weston - (A Yocto Project Based Distro) 2.6-openstlinux-19-02-20-github-display-fix (thud)!

[    3.429318] systemd[1]: Set hostname to <stm32mp1>.
[    3.441973] systemd[1]: Hardware watchdog 'STM32 Independent Watchdog', version 0
[    3.449213] systemd[1]: Set hardware watchdog to 30s.
[    4.080795] systemd[1]: Unnecessary job for dev-ttySTM0.device was removed.
[    4.088606] random: systemd: uninitialized urandom read (16 bytes read)
[    4.094806] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    4.126652] random: systemd: uninitialized urandom read (16 bytes read)
[    4.132737] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    4.166367] random: systemd: uninitialized urandom read (16 bytes read)
[    4.176045] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    4.217431] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Reached target Swap.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket.
         Starting Load Kernel Modules...
         Starting udev Coldplug all Devices...
         Mounting Kernel Debug File System...
         Starting Mount partitions...
         Mounting Temporary Directory (/tmp)...
[  OK  ] Listening on Process Core Dump Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
[  OK  ] Reached target Remote File Systems.
[    4.835234] random: crng init done
[    4.837947] random: 7 urandom warning(s) missed due to ratelimiting
         Starting Journal Service...
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
         Starting Create list of required st鈥e nodes for the current kernel...
[  OK  ] Reached target Paths.
         Mounting POSIX Message Queue File System...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Load Kernel Modules.
[    5.090148] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Temporary Directory (/tmp).
[    5.171443] EXT4-fs (mmcblk0p4): recovery complete
[    5.174806] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Started Create list of required sta鈥ice nodes for the current kernel.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Starts Psplash Boot screen.
         Starting Create Static Device Nodes in /dev...
         Starting Apply Kernel Variables...
         Mounting Kernel Configuration File System...
         Mounting FUSE Control File System...
[  OK  ] Started Journal Service.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Mounted FUSE Control File System.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Containers.
[    5.855574] EXT4-fs (mmcblk0p7): recovery complete
[    5.861325] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
         Mounting /var/volatile...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Mounted /var/volatile.
[    6.334921] systemd-journald[138]: Received request to flush runtime journal from PID 1
         Starting Load/Save Random Seed...
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Load/Save Random Seed.
[    6.554738] EXT4-fs (mmcblk0p5): recovery complete
[    6.559550] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Started Mount partitions.
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[    7.354287] input: generic ft5x06 (11) as /devices/platform/soc/40012000.i2c/i2c-0/0-0038/input/input2
[    7.436447] Bluetooth: Core ver 2.22
[    7.438734] NET: Registered protocol family 31
[    7.443010] Bluetooth: HCI device and connection manager initialized
[    7.469870] Bluetooth: HCI socket layer initialized
[    7.478426] Bluetooth: L2CAP socket layer initialized
[    7.482117] Bluetooth: SCO socket layer initialized
[  OK  ] Started udev Coldplug all Devic[    7.522229] Bluetooth: HCI UART driver ver 2.3
es.
[    7.531749] Bluetooth: HCI UART protocol H4 registered
[    7.535883] Bluetooth: HCI UART protocol Broadcom registered
[    7.538038] hci_uart_bcm serial0-0: No reset resource, using default baud rate
[    7.695465] galcore: loading out-of-tree module taints kernel.
[    7.727180] Bluetooth: hci0: BCM: chip id 94
[    7.730563] Bluetooth: hci0: BCM: features 0x2e
[    7.737082] Bluetooth: hci0: BCM43430A1
[    7.739507] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0000
[    7.809549] Galcore version 6.2.4.174315
[    8.035909] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    8.187706] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    8.302570] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[  OK  ] Started Network Time Synchronization.
[    8.357077] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0022
[    8.536994] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    8.628529] 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
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Created slice system-systemd\x2dbacklight.slice.
         Starting Load/Save Screen Backlight鈥ss of backlight:5a000000.dsi.0...
[  OK  ] Started Load/Save Screen Backlight 鈥ness of backlight:5a000000.dsi.0.
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
         Starting Console System Startup Logging...
[  OK  ] Listening on dropbear.socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Netdata, Real-time performance monitoring...
         Starting Weston Wayland Compositor...
[  OK  ] Started Kernel Logging Service.
         Starting Bluetooth service...
         Starting Save/Restore Sound Card State...
[  OK  ] Started D-Bus System Message Bus.
         Starting Enable USB Ethernet gadget...
         Starting Login Service...
[  OK  ] Started TEE Supplicant.
[  OK  ] Started System Logging Service.
[  OK  ] Started ST Verify if eth0 network interface are already configured.
         Starting Network Service...
[   16.592532] using random self ethernet address
[   16.595745] using random host ethernet address
         Starting Sound Service...
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Started Console System Startup Logging.
[   16.840178] usb0: HOST MAC 12:97:dd:f2:39:33
[   16.847516] usb0: MAC ea:c9:15:09:58:42
[   16.849987] dwc2 49000000.usb-otg: bound driver configfs-gadget
[  OK  ] Started Save/Restore Sound Card State.
[  OK  ] Reached target Sound Card.
[  OK  ] Started Network Service.
[   17.202462] Generic PHY stmmac-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[   17.287328] dwmac4: Master AXI performs any burst length
[   17.291218] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
[   17.312298] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   17.322770] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock
[   17.341443] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   17.346932] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[  OK  ] Started Enable USB Ethernet gadget.
         Starting Hostname Service...
         Stopping Network Service...
[  OK  ] Started Login Service.
[   17.553615] Gcnano is present and activated
[  OK  ] Started Bluetooth service.
[  OK  ] Stopped Network Service.
         Starting Network Service...
[  OK  ] Reached target Bluetooth.
[  OK  ] Started Weston Wayland Compositor.
[  OK  ] Started Netdata, Real-time performance monitoring.
[  OK  ] Started Network Service.
         Starting Network Name Resolution...
         Starting Wait for Network to be Configured...
[  OK  ] Started Hostname Service.
[  OK  ] Started Sound Service.
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Host and Network Name Lookups.
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Reached target Network.
         Starting Target Communication Framework agent...
[  OK  ] Started IIO Daemon.
         Starting Permit User Sessions...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Target Communication Framework agent.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttySTM0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

ST OpenSTLinux - Weston - (A Yocto Project Based Distro) 2.6-openstlinux-19-02-20-github-display-fix stm32mp1 ttySTM0

stm32mp1 login: root (automatic login)

root@stm32mp1:~# 

4、輸入基本測試指令:

root@stm32mp1:~# lsb_release -a
LSB Version:    core-5.0-noarch:core-5.0-arm
Distributor ID: openstlinux-weston
Description:    ST OpenSTLinux - Weston - (A Yocto Project Based Distro) 2.6-openstlinux-19-02-20-github-display-fix
Release:        2.6-openstlinux-19-02-20-github-display-fix
Codename:       thud
root@stm32mp1:~# uname -a
Linux stm32mp1 4.19.9 #1 SMP PREEMPT Thu Dec 13 08:16:23 UTC 2018 armv7l armv7l armv7l GNU/Linux
root@stm32mp1:~# cat /proc/version
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
root@stm32mp1:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       719M  342M  339M  51% /
devtmpfs        150M     0  150M   0% /dev
tmpfs           214M     0  214M   0% /dev/shm
tmpfs           214M   12M  203M   6% /run
tmpfs           214M     0  214M   0% /sys/fs/cgroup
tmpfs           214M  4.0K  214M   1% /tmp
/dev/mmcblk0p4   58M  8.2M   46M  16% /boot
/dev/mmcblk0p7   14G   67M   13G   1% /usr/local
tmpfs           214M   80K  214M   1% /var/volatile
/dev/mmcblk0p5   15M  8.2M  5.3M  61% /vendor
tmpfs            43M     0   43M   0% /run/user/0
root@stm32mp1:~# 

STM32MP1 QQ技術交流羣:861926625

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章