1. Overview[edit | edit source]
This stage explains how to connect the Linux® terminal of your board to your host computer through the ST-LINK/V2-1.
Then you will see how to execute basic commands with the Linux command line interface in order to be familiarized with the Linux console.
2. The serial terminal[edit | edit source]
The serial terminal allows to communicate with the board trough a UART serial interface.
- Install minicom
PC $> sudo apt-get install minicom
- Get the ttyACM device instance that need to be used to access the ST-LINK/V2-1
PC $> ls /dev/ttyACM* /dev/ttyACM0
- Connect the minicom to the /dev/ttyACM0 device
PC $> minicom -D /dev/ttyACM0 Welcome to minicom 2.7 OPTIONS: I18n Compiled on Nov 15 2018, 20:18:47. Port /dev/ttyACM0, 15:56:03 Press CTRL-A Z for help on special keys
- Press the reset button to reset the board. You should see boot log displayed in the minicom window
NOTICE: CPU: STM32MP157CAC Rev.B NOTICE: Model: STMicroelectronics STM32MP157C-DK2 Discovery Board NOTICE: Board: MB1272 Var2.0 Rev.C-01 INFO: Reset reason (0x14): INFO: Pad Reset from NRST INFO: PMIC version = 0x10 INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe3000 INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using SDMMC INFO: Instance 1 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.4-r1.0(debug):v2.4-dirty NOTICE: BL2: Built : 16:43:51, Nov 17 2020 INFO: BL2: Doing platform setup INFO: RAM: DDR3-DDR3L 16bits 533000Khz WARNING: Couldn't find property st,phy-cal in dtb INFO: Memory size = 0x20000000 (512 MB) INFO: BL2: Loading image id 31 INFO: Loading image id=31 at address 0x2ffff000 INFO: Image id=31 loaded: 0x2ffff000 - 0x2ffff226 INFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x2ffff000 INFO: FCONF: Reading firmware configuration information for: dyn_cfg INFO: FCONF: Reading firmware configuration information for: stm32mp1_firewall INFO: BL2: Loading image id 4 INFO: Loading image id=4 at address 0x2ffc5000 INFO: Image id=4 loaded: 0x2ffc5000 - 0x2ffd847c WARNING: Not a known TEE, use default loading options. INFO: BL2: Skip loading image id 21 INFO: BL2: Skip loading image id 22 INFO: BL2: Loading image id 23 INFO: Loading image id=23 at address 0xc0500000 INFO: Image id=23 loaded: 0xc0500000 - 0xc051cf56 INFO: BL2: Loading image id 26 INFO: Loading image id=26 at address 0x2ffc0000 INFO: Image id=26 loaded: 0x2ffc0000 - 0x2ffc46e4 INFO: BL2: Loading image id 5 INFO: Loading image id=5 at address 0xc0100000 INFO: Image id=5 loaded: 0xc0100000 - 0xc01cf9d8 NOTICE: BL2: Booting BL32 INFO: Entry point address = 0x2ffc5000 INFO: SPSR = 0x1d3 NOTICE: SP_MIN: v2.4-r1.0(debug):v2.4-dirty NOTICE: SP_MIN: Built : 16:43:51, Nov 17 2020 INFO: ARM GICv2 driver initialized INFO: Set calibration timer to 60 sec INFO: stm32mp1 IWDG1 is secure INFO: SP_MIN: Initializing runtime services INFO: SP_MIN: Preparing exit to normal world U-Boot 2020.10-stm32mp-r1 (Oct 05 2020 - 15:15:32 +0000) CPU: STM32MP157CAC Rev.B Model: STMicroelectronics STM32MP157C-DK2 Discovery Board Board: stm32mp1 in trusted mode (st,stm32mp157c-dk2) Board: MB1272 Var2.0 Rev.C-01 DRAM: 512 MiB Clocks: - MPU : 650 MHz - MCU : 208.878 MHz - AXI : 266.500 MHz - PER : 24 MHz - DDR : 533 MHz WDT: Started with servicing (32s timeout) NAND: 0 MiB MMC: STM32 SD/MMC: 0, STM32 SD/MMC: 1 Loading Environment from MMC... OK In: serial Out: serial Err: serial Net: eth0: ethernet@5800a000 Hit any key to stop autoboot: 0 Boot over mmc0! switch to partitions #0, OK mmc0 is current device Scanning mmc 0:4... Found /mmc0_extlinux/stm32mp157c-dk2_extlinux.conf Retrieving file: /mmc0_extlinux/stm32mp157c-dk2_extlinux.conf 706 bytes read in 38 ms (17.6 KiB/s) Retrieving file: /splash.bmp 18244 bytes read in 40 ms (445.3 KiB/s) Select the boot mode 1: OpenSTLinux 2: stm32mp157c-dk2-a7-examples 3: stm32mp157c-dk2-m4-examples Enter choice: 1: OpenSTLinux Retrieving file: /uInitrd 3634613 bytes read in 193 ms (18 MiB/s) Retrieving file: /uImage 7457152 bytes read in 354 ms (20.1 MiB/s) append: root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw console=ttySTM0,115200 Retrieving file: /stm32mp157c-dk2.dtb 116117 bytes read in 43 ms (2.6 MiB/s) ## Booting kernel from Legacy Image at c2000000 ... Image Name: Linux-5.10.10 Created: 2021-01-23 15:04:06 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 7457088 Bytes = 7.1 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 Loading Ramdisk to cfc88000, end cffff5b5 ... OK Loading Device Tree to cfc68000, end cfc87594 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.10.10 (oe-user@oe-host) (arm-ostl-linux-gnueabi-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP PREEMPT Sat Jan 23 15:04:06 UTC 2021 [ 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@10000000, 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 0x10041000, size 0 MiB [ 0.000000] OF: reserved mem: initialized node vdev0vring1@10041000, 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 vdev0buffer@10042000, 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@30000000, 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@38000000, compatible id shared-dma-pool [ 0.000000] cma: Reserved 128 MiB at 0xd8000000 [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x00000000c0000000-0x00000000dfffffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000c0000000-0x00000000d3ffffff] [ 0.000000] node 0: [mem 0x00000000d8000000-0x00000000dfffffff] [ 0.000000] Initmem setup node 0 [mem 0x00000000c0000000-0x00000000dfffffff] [ 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.2 [ 0.000000] percpu: Embedded 20 pages/cpu s51788 r8192 d21940 u81920 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 113536 [ 0.000000] Kernel command line: root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw console=ttySTM0,115200 [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 300984K/458752K available (11264K kernel code, 1206K rwdata, 3312K rodata, 1024K init, 248K bss, 26696K reserved, 131072K cma-reserved, 0K highmem) [ 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] Trampoline variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] random: get_random_bytes called from start_kernel+0x390/0x568 with crng_init=0 [ 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.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000031] Switching to timer-based delay loop, resolution 41ns [ 0.001749] Console: colour dummy device 80x30 [ 0.001808] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.001838] pid_max: default: 32768 minimum: 301 [ 0.002100] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.002126] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.003479] CPU: Testing write buffer coherency: ok [ 0.003929] /cpus/cpu@0 missing clock-frequency property [ 0.003975] /cpus/cpu@1 missing clock-frequency property [ 0.003997] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.005287] Setting up static identity map for 0xc0100000 - 0xc0100060 [ 0.005512] rcu: Hierarchical SRCU implementation. [ 0.006971] smp: Bringing up secondary CPUs ... [ 0.008219] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.008477] smp: Brought up 1 node, 2 CPUs [ 0.008507] SMP: Total of 2 processors activated (96.00 BogoMIPS). [ 0.008520] CPU: All CPU(s) started in SVC mode. [ 0.009369] devtmpfs: initialized [ 0.045879] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.046266] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.046304] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.052603] pinctrl core: initialized pinctrl subsystem [ 0.054576] NET: Registered protocol family 16 [ 0.057996] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.059985] thermal_sys: Registered thermal governor 'step_wise' [ 0.060388] cpuidle: using governor menu [ 0.060809] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.060830] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.061274] Serial: AMBA PL011 UART driver [ 0.114186] stm32-pm-domain pm_domain: domain core-ret-power-domain registered [ 0.114237] stm32-pm-domain pm_domain: subdomain core-power-domain registered [ 0.114257] stm32-pm-domain pm_domain: domains probed [ 0.143053] SCSI subsystem initialized [ 0.143948] usbcore: registered new interface driver usbfs [ 0.144039] usbcore: registered new interface driver hub [ 0.144116] usbcore: registered new device driver usb [ 0.144439] pps_core: LinuxPPS API ver. 1 registered [ 0.144457] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.144496] PTP clock support registered [ 0.145431] arm-scmi firmware:scmi0: SCMI Notifications - Core Enabled. [ 0.145521] arm-scmi firmware:scmi0: SCMI Protocol v2.0 'ST:' Firmware version 0x0 [ 0.149148] clocksource: Switched to clocksource arch_sys_counter [ 1.595534] NET: Registered protocol family 2 [ 1.596801] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 1.596979] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 1.597055] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 1.597154] TCP: Hash tables configured (established 4096 bind 4096) [ 1.597333] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 1.597392] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 1.597906] NET: Registered protocol family 1 [ 1.598919] RPC: Registered named UNIX socket transport module. [ 1.598946] RPC: Registered udp transport module. [ 1.598959] RPC: Registered tcp transport module. [ 1.598971] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.599517] Trying to unpack rootfs image as initramfs... [ 1.976821] Freeing initrd memory: 3552K [ 1.977914] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available [ 1.980222] Initialise system trusted keyrings [ 1.980686] workingset: timestamp_bits=14 max_order=17 bucket_order=3 [ 1.991843] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.993358] NFS: Registering the id_resolver key type [ 1.993420] Key type id_resolver registered [ 1.993435] Key type id_legacy registered [ 1.993621] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.993838] ntfs: driver 2.1.32 [Flags: R/O]. [ 1.994169] jffs2: version 2.2. (NAND) �۩ 2001-2006 Red Hat, Inc. [ 1.995113] fuse: init (API version 7.32) [ 1.996219] NET: Registered protocol family 38 [ 1.996246] Key type asymmetric registered [ 1.996262] Asymmetric key parser 'x509' registered [ 1.996334] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246) [ 1.996353] io scheduler mq-deadline registered [ 1.996367] io scheduler kyber registered [ 2.010422] STM32 USART driver initialized [ 2.034435] brd: module loaded [ 2.034800] random: fast init done [ 2.039550] random: crng init done [ 2.048711] loop: module loaded [ 2.055184] libphy: Fixed MDIO Bus: probed [ 2.057337] CAN device driver interface [ 2.059718] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver [ 2.059822] usbcore: registered new interface driver pegasus [ 2.059908] usbcore: registered new interface driver asix [ 2.059973] usbcore: registered new interface driver ax88179_178a [ 2.060055] usbcore: registered new interface driver cdc_ether [ 2.060140] usbcore: registered new interface driver smsc75xx [ 2.060224] usbcore: registered new interface driver smsc95xx [ 2.060288] usbcore: registered new interface driver net1080 [ 2.060351] usbcore: registered new interface driver cdc_subset [ 2.060414] usbcore: registered new interface driver zaurus [ 2.060521] usbcore: registered new interface driver cdc_ncm [ 2.062156] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 2.062221] ehci-platform: EHCI generic platform driver [ 2.062708] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 2.062751] ohci-platform: OHCI generic platform driver [ 2.063564] usbcore: registered new interface driver usb-storage [ 2.067582] i2c /dev entries driver [ 2.072630] stm32-cpufreq stm32-cpufreq: Failed to get chip info: -517 [ 2.074041] sdhci: Secure Digital Host Controller Interface driver [ 2.074061] sdhci: Copyright(c) Pierre Ossman [ 2.074074] Synopsys Designware Multimedia Card Interface Driver [ 2.074586] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.076073] ledtrig-cpu: registered to indicate activity on CPUs [ 2.076198] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping .... [ 2.076693] usbcore: registered new interface driver usbhid [ 2.076710] usbhid: USB HID core driver [ 2.078261] remoteproc remoteproc0: releasing m4 [ 2.080749] NET: Registered protocol family 17 [ 2.080796] can: controller area network core [ 2.080937] NET: Registered protocol family 29 [ 2.080962] can: raw protocol [ 2.080976] can: broadcast manager protocol [ 2.080998] can: netlink gateway - max_hops=1 [ 2.081879] Key type dns_resolver registered [ 2.082068] ThumbEE CPU extension supported. [ 2.082099] Registering SWP/SWPB emulation handler [ 2.082521] registered taskstats version 1 [ 2.082551] Loading compiled-in X.509 certificates [ 2.126718] stm32-mdma 58000000.dma-controller: STM32 MDMA driver registered [ 2.130584] stm32-dma 48000000.dma-controller: STM32 DMA driver registered [ 2.133305] stm32-dma 48001000.dma-controller: STM32 DMA driver registered [ 2.143036] stm_thermal 50028000.thermal: stm_thermal_probe: Driver initialized successfully [ 2.150338] remoteproc remoteproc0: releasing m4 [ 2.151300] /soc/interrupt-controller@5000d000: bank0 [ 2.151334] /soc/interrupt-controller@5000d000: bank1 [ 2.151355] /soc/interrupt-controller@5000d000: bank2 [ 2.153803] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added [ 2.154306] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added [ 2.154744] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added [ 2.155144] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added [ 2.155544] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added [ 2.155923] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added [ 2.156334] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added [ 2.156711] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added [ 2.157086] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added [ 2.157427] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized [ 2.158956] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added [ 2.159000] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized [ 2.162877] 4000e000.serial: ttySTM3 at MMIO 0x4000e000 (irq = 61, base_baud = 4000000) is a stm32-usart [ 2.163218] serial serial0: tty port ttySTM3 registered [ 2.165214] stm32-usart 40010000.serial: interrupt mode for rx (no dma) [ 2.165244] stm32-usart 40010000.serial: interrupt mode for tx (no dma) [ 2.165285] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 62, base_baud = 4000000) is a stm32-usart [ 3.330090] printk: console [ttySTM0] enabled [ 3.341987] stm32-dwmac 5800a000.ethernet: IRQ eth_lpi not found [ 3.346770] stm32-dwmac 5800a000.ethernet: PTP uses main clock [ 3.352565] stm32-dwmac 5800a000.ethernet: no reset control found [ 3.359231] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42 [ 3.365441] stm32-dwmac 5800a000.ethernet: DWMAC4/5 [ 3.370501] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported [ 3.377704] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported [ 3.385096] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported [ 3.391914] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported [ 3.398291] stm32-dwmac 5800a000.ethernet: TSO supported [ 3.403497] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 3.411327] stm32-dwmac 5800a000.ethernet: Enabled Flow TC (entries=2) [ 3.417824] stm32-dwmac 5800a000.ethernet: TSO feature enabled [ 3.423685] stm32-dwmac 5800a000.ethernet: Using 32 bits DMA width [ 3.432089] libphy: stmmac: probed [ 3.449461] stm32_rtc 5c004000.rtc: registered as rtc0 [ 3.453206] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01T00:29:47 UTC (946686587) [ 3.462750] stm32_rtc 5c004000.rtc: Date/Time must be initialized [ 3.467952] stm32_rtc 5c004000.rtc: registered rev:1.2 [ 3.502964] stm32f7-i2c 40012000.i2c: STM32F7 I2C-0 bus adapter [ 3.536014] stpmic1 1-0033: PMIC Chip Version: 0x10 [ 3.547815] vddcore: supplied by vin [ 3.553221] vdd_ddr: supplied by vin [ 3.558415] vdd: supplied by vin [ 3.563486] v3v3: supplied by vin [ 3.568296] v1v8_audio: supplied by v3v3 [ 3.574804] v3v3_hdmi: supplied by vin [ 3.580790] vtt_ddr: supplied by vdd_ddr [ 3.583820] vdd_usb: supplied by vin [ 3.590248] vdda: supplied by vin [ 3.595516] v1v2_hdmi: supplied by v3v3 [ 3.601273] vref_ddr: supplied by vin [ 3.604067] bst_out: supplied by vin [ 3.607932] vbus_otg: supplied by bst_out [ 3.612133] vbus_sw: supplied by bst_out [ 3.618377] input: pmic_onkey as /devices/platform/soc/5c002000.i2c/i2c-1/1-0033/5c002000.i2c:stpmic@33:onkey/input/input0 [ 3.629238] stm32f7-i2c 5c002000.i2c: STM32F7 I2C-1 bus adapter [ 3.637902] mmci-pl18x 58005000.sdmmc: Got CD GPIO [ 3.642383] mmci-pl18x 58005000.sdmmc: mmc0: PL180 manf 53 rev2 at 0x58005000 irq 54,0 (pio) [ 3.678639] mmci-pl18x 58007000.sdmmc: allocated mmc-pwrseq [ 3.683959] mmci-pl18x 58007000.sdmmc: mmc1: PL180 manf 53 rev1 at 0x58007000 irq 55,0 (pio) [ 3.723682] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0 [ 3.732805] stm32-rproc 10000000.m4: wdg irq registered [ 3.737879] remoteproc remoteproc0: m4 is available [ 3.745066] mmc0: new high speed SDHC card at address 5048 [ 3.750017] reg11: supplied by vdd [ 3.753382] reg18: supplied by vdd [ 3.756939] mmcblk0: mmc0:5048 SD32G 29.0 GiB [ 3.762914] stm32-usbphyc 5a006000.usbphyc: registered rev:1.0 [ 3.771629] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 3.778074] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 3.789919] mmcblk0: p1 p2 p3 p4 p5 p6 p7 [ 3.793212] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 3.802609] dwc2 49000000.usb-otg: supply vusb_d not found, using dummy regulator [ 3.808923] dwc2 49000000.usb-otg: supply vusb_a not found, using dummy regulator [ 3.820397] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 3.825930] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 3.832386] mmc1: queuing unknown CIS tuple 0x80 (6 bytes) [ 3.921270] mmc1: new high speed SDIO card at address 0001 [ 3.949448] dwc2 49000000.usb-otg: EPs: 9, dedicated fifos, 952 entries in SPRAM [ 3.956139] dwc2 49000000.usb-otg: DWC OTG Controller [ 3.960563] dwc2 49000000.usb-otg: new USB bus registered, assigned bus number 1 [ 3.967897] dwc2 49000000.usb-otg: irq 87, io mem 0x49000000 [ 3.974887] hub 1-0:1.0: USB hub found [ 3.977313] hub 1-0:1.0: 1 port detected [ 3.983837] ehci-platform 5800d000.usbh-ehci: EHCI Host Controller [ 3.988618] ehci-platform 5800d000.usbh-ehci: new USB bus registered, assigned bus number 2 [ 3.997695] ehci-platform 5800d000.usbh-ehci: irq 64, io mem 0x5800d000 [ 4.029176] ehci-platform 5800d000.usbh-ehci: USB 2.0 started, EHCI 1.00 [ 4.035832] hub 2-0:1.0: USB hub found [ 4.038232] hub 2-0:1.0: 2 ports detected [ 4.049025] i2c i2c-0: Added multiplexed i2c bus 2 [ 4.059648] [drm] Initialized stm 1.0.0 20170330 for 5a001000.display-controller on minor 0 [ 4.067848] input: generic ft5x06 (11) as /devices/platform/soc/40012000.i2c/i2c-0/0-002a/input/input1 [ 4.079713] Freeing unused kernel memory: 1024K [ 4.089594] Run /init as init process Starting version 244.5+ [ 4.409367] usb 2-1: new high-speed USB device number 2 using ehci-platform [ 4.661215] hub 2-1:1.0: USB hub found [ 4.667185] hub 2-1:1.0: 4 ports detected [ 5.804612] EXT4-fs (mmcblk0p6): recovery complete [ 5.809318] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null) [ 6.341405] systemd[1]: System time before build time, advancing clock. [ 6.478449] NET: Registered protocol family 10 [ 6.516607] Segment Routing with IPv6 [ 6.563409] systemd[1]: systemd 244.5+ running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD) [ 6.590482] systemd[1]: Detected architecture arm. Welcome to ST OpenSTLinux - Weston - (A Yocto Project Based Distro) 3.1-openstlinux-5.10-dunfell-mp1-21-03-31 (dunfell)! [ 6.681764] systemd[1]: Set hostname to <stm32mp1>. [ 6.695597] systemd[1]: Hardware watchdog 'STM32 Independent Watchdog', version 0 [ 6.702934] systemd[1]: Set hardware watchdog to 32s. [ 7.628476] systemd[1]: Unnecessary job for /dev/ttySTM0 was removed. [ 7.643347] systemd[1]: Created slice system-getty.slice. [ OK ] Created slice system-getty.slice. [ 7.681787] systemd[1]: Created slice system-serial\x2dgetty.slice. [ OK ] Created slice system-serial\x2dgetty.slice. [ 7.721593] systemd[1]: Created slice User and Session Slice. [ OK ] Created slice User and Session Slice. [ 7.760026] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ OK ] Started Dispatch Password �…ts to Console Directory Watch. [ 7.799937] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ OK ] Started Forward Password R�…uests to Wall Directory Watch. [ 7.839845] systemd[1]: Reached target Paths. [ OK ] Reached target Paths. [ 7.869513] systemd[1]: Reached target Remote File Systems. [ OK ] Reached target Remote File Systems. [ 7.909486] systemd[1]: Reached target Slices. [ OK ] Reached target Slices. [ 7.939559] systemd[1]: Reached target Swap. [ OK ] Reached target Swap. [ 8.001083] systemd[1]: Listening on RPCbind Server Activation Socket. [ OK ] Listening on RPCbind Server Activation Socket. [ 8.039578] systemd[1]: Reached target RPC Port Mapper. [ OK ] Reached target RPC Port Mapper. [ 8.080694] systemd[1]: Listening on Syslog Socket. [ OK ] Listening on Syslog Socket. [ 8.134474] systemd[1]: Listening on Process Core Dump Socket. [ OK ] Listening on Process Core Dump Socket. [ 8.170055] systemd[1]: Listening on initctl Compatibility Named Pipe. [ OK ] Listening on initctl Compatibility Named Pipe. [ 8.216274] systemd[1]: Condition check resulted in Journal Audit Socket being skipped. [ 8.224145] systemd[1]: Listening on Journal Socket (/dev/log). [ OK ] Listening on Journal Socket (/dev/log). [ 8.260603] systemd[1]: Listening on Journal Socket. [ OK ] Listening on Journal Socket. [ 8.301028] systemd[1]: Listening on Network Service Netlink Socket. [ OK ] Listening on Network Service Netlink Socket. [ 8.340532] systemd[1]: Listening on udev Control Socket. [ OK ] Listening on udev Control Socket. [ 8.380190] systemd[1]: Listening on udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. [ 8.420707] systemd[1]: Condition check resulted in Huge Pages File System being skipped. [ 8.435111] systemd[1]: Mounting POSIX Message Queue File System... Mounting POSIX Message Queue File System... [ 8.476871] systemd[1]: Mounting Kernel Debug File System... Mounting Kernel Debug File System... [ 8.518981] systemd[1]: Mounting Temporary Directory (/tmp)... Mounting Temporary Directory (/tmp)... [ 8.567669] systemd[1]: Starting Create list of static device nodes for the current kernel... Starting Create list of st�…odes for the current kernel... [ 8.616500] systemd[1]: Starting Mount partitions... Starting Mount partitions... [ 8.664049] systemd[1]: Started Hardware RNG Entropy Gatherer Daemon. [ OK ] Started Hardware RNG Entropy Gatherer Daemon. [ 8.708129] systemd[1]: Starting RPC Bind... Starting RPC Bind... [ 8.749810] systemd[1]: Condition check resulted in File System Check on Root Device being skipped. [ 8.787372] systemd[1]: Starting Journal Service... Starting Journal Service... [ 8.823072] systemd[1]: Condition check resulted in Load Kernel Modules being skipped. [ 8.872952] systemd[1]: Mounting FUSE Control File System... Mounting FUSE Control File System... [ 8.916523] systemd[1]: Mounting Kernel Configuration File System... Mounting Kernel Configuration File System... [ 8.956990] systemd[1]: Starting Remount Root and Kernel File Systems... Starting Remount Root and Kernel File Systems... [ 9.032450] systemd[1]: Starting Apply Kernel Variables... Starting Apply Kernel Variables... [ 9.087285] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null) [ 9.101645] systemd[1]: Starting udev Coldplug all Devices... Starting udev Coldplug all Devices... [ 9.205793] EXT4-fs (mmcblk0p4): recovery complete [ 9.211335] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: (null) [ 9.218053] ext4 filesystem being mounted at /boot supports timestamps until 2038 (0x7fffffff) [ 9.246625] systemd[1]: Started RPC Bind. [ OK ] Started RPC Bind. [ 9.310477] systemd[1]: Mounted POSIX Message Queue File System. [ OK ] Mounted POSIX Message Queue File System. [ 9.392334] systemd[1]: Mounted Kernel Debug File System. [ OK ] Mounted Kernel Debug File System. [ 9.440661] systemd[1]: Mounted Temporary Directory (/tmp). [ OK ] Mounted Temporary Directory (/tmp). [ 9.489584] systemd[1]: Started Create list of static device nodes for the current kernel. [ OK ] Started Create list of sta�… nodes for the current kernel. [ 9.543349] systemd[1]: Mounted FUSE Control File System. [ OK ] Mounted FUSE Control File System. [ 9.570845] systemd[1]: Mounted Kernel Configuration File System. [ OK ] Mounted Kernel Configuration File System. [ 9.639566] systemd[1]: Started Remount Root and Kernel File Systems. [ OK ] Started Remount Root and Kernel File Systems. [ 9.662851] systemd[1]: Started Journal Service. [ OK ] Started Journal Service. [ OK ] Started Apply Kernel Variables. [ OK ] Started Starts Psplash Boot screen. [ 9.785320] EXT4-fs (mmcblk0p5): recovery complete [ 9.789599] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null) [ 9.796861] ext4 filesystem being mounted at /vendor supports timestamps until 2038 (0x7fffffff) Starting Flush Journal to Persistent Storage... [ 9.901644] systemd-journald[280]: Received client request to flush runtime journal. Starting Create Static Device Nodes in /dev... [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Started Create Static Device Nodes in /dev. [ OK ] Reached target Local File Systems (Pre). Mounting /var/volatile... Starting udev Kernel Device Manager... [ OK ] Mounted /var/volatile. Starting Load/Save Random Seed... [ OK ] Started Load/Save Random Seed. [ OK ] Started udev Kernel Device Manager. [ 10.819473] EXT4-fs (mmcblk0p7): recovery complete [ 10.839373] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null) [ 10.846129] ext4 filesystem being mounted at /usr/local supports timestamps until 2038 (0x7fffffff) [ OK ] Started Mount partitions. [ OK ] Reached target Local File Systems. Starting Create Volatile Files and Directories... [ OK ] Started Create Volatile Files and Directories. Starting Network Time Synchronization... Starting Update UTMP about System Boot/Shutdown... [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Started Network Time Synchronization. [ OK ] Reached target System Time Set. [ OK ] Reached target System Time Synchronized. [ OK ] Started udev Coldplug all Devices. [ OK ] Reached target System Initialization. [ OK 13.080581] Bluetooth: Core ver 2.22 [ 13.083695] NET: Registered protocol family 31 m] Started Daily apt download activities. [ 13.101779] st,stm32-i2s 4000b000.audio-controller: No cache defaults, reading back from HW [ OK ] Started Daily Cleanup of Temporary Directories. [ 13.131173] Bluetooth: HCI device and connection manager initialized [ 13.136120] Bluetooth: HCI socket layer initialized [ OK ] Reached target Timers. [ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket. [ OK ] Listening on D-Bus System Message Bus Socket. [ 13.199641] Bluetooth: L2CAP socket layer initialized [ 13.203347] Bluetooth: SCO socket layer initialized [ 13.269648] stm32-cryp 54001000.cryp: will run requests pump with realtime priority [ 13.271084] stm32-hash 54002000.hash: will run requests pump with realtime priority [ 13.304665] Bluetooth: HCI UART driver ver 2.3 [ 13.307676] Bluetooth: HCI UART protocol H4 registered [ 13.320826] Bluetooth: HCI UART protocol Broadcom registered [ OK ] Listening on dropbear.socket. [ OK ] Reached target Sockets. [ 13.469459] stm32-hash 54002000.hash: Init HASH done HW ver 23 DMA mode 1 [ 13.476274] stm32-cryp 54001000.cryp: Initialized [ OK ] Reached target Basic System. [ OK ] Started Kernel Logging Service. [ 13.581819] stm32-crc32 58009000.crc: Initialized [ 13.608683] galcore: loading out-of-tree module taints kernel. [ OK ] Started System Logging Service. [ 13.720835] Bluetooth: hci0: BCM: chip id 94 [ 13.724540] Bluetooth: hci0: BCM: features 0x2e [ 13.729808] Bluetooth: hci0: BCM43430A1 [ 13.732241] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0000 [ 13.744882] Bluetooth: hci0: BCM43430A1 'brcm/BCM43430A1.hcd' Patch [ OK ] Started D-Bus System Message Bus. [ 13.873636] Galcore version 6.4.3.279124 [ 14.161069] cfg80211: Loading compiled-in X.509 certificates for regulatory database Starting IPv6 Packet Filtering Framework... Starting IPv4 Packet Filtering Framework... [ 14.350356] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' Starting Netdata, Real-time performance monitoring... [ 14.426838] Bluetooth: hci0: BCM4343WA1 37.4MHz Murata Type-1DX BT4.2-0093 [ 14.432657] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0395 [ 14.521939] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 Starting Login Service... [ 14.720128] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ OK ] Started TEE Supplicant. Starting Enable USB Ethernet gadget... [ 14.809974] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Feb 16 2020 22:39:24 version 7.45.98.97 (r724416 CY) FWID 01-bf41ed64 [ OK ] Started IPv6 Packet Filtering Framework. [ OK ] Started IPv4 Packet Filtering Framework. [ 15.400454] using random self ethernet address [ 15.413001] using random host ethernet address [ 15.634991] usb0: HOST MAC 50:0e:22:14:9c:21 [ 15.638013] usb0: MAC ae:9c:4a:0b:df:f2 [ 15.679451] dwc2 49000000.usb-otg: bound driver configfs-gadget [ 15.940645] cs42l51 0-004a: Cirrus Logic CS42L51, Revision: 01 [ OK ] Started Netdata, Real-time performance monitoring. [ OK ] Started Enable USB Ethernet gadget. [ OK ] Started Login Service. [ OK ] Created slice system-systemd\x2dbacklight.slice. [ OK ] Created slice system-weston.slice. [ OK ] Reached target Network (Pre). [ OK ] Reached target Hardware activated USB gadget. [ OK ] Listening on Load/Save RF �…itch Status /dev/rfkill Watch. Starting Save/Restore Sound Card State... Starting Bluetooth service... Starting Load/Save Screen �…of backlight:5a000000.dsi.0... Starting Network Service... [ OK ] Started Save/Restore Sound Card State. [ OK ] Started Load/Save Screen B�…s of backlight:5a000000.dsi.0. [ OK ] Reached target Sound Card. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Bluetooth service. [ OK ] Reached target Bluetooth. Starting Hostname Service... [ OK ] Started Network Service. Starting Network Name Resolution... [ 19.011738] stm32-dwmac 5800a000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211F Gigabit Ethernet] (irq=POLL) [ 19.058061] dwmac4: Master AXI performs any burst length [ 19.062201] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found [ 19.089383] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported [ 19.114589] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock [ 19.149445] stm32-dwmac 5800a000.ethernet eth0: configuring for phy/rgmii-id link mode [ OK ] Started Hostname Service. [ OK ] Started Network Name Resolution. [ OK ] Reached target Network. [ OK ] Reached target Host and Network Name Lookups. Starting Avahi mDNS/DNS-SD Stack... [ OK ] Started IIO Daemon. [ OK ] Started Respond to IPv6 Node Information Queries. Starting Sound Service... [ OK ] Started Network Router Discovery Daemon. Starting Permit User Sessions... Starting Target Communication Framework agent... [ OK ] Started Permit User Sessions. [ OK ] Started Target Communication Framework agent. [ OK ] Started Avahi mDNS/DNS-SD Stack. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttySTM0. [ OK ] Reached target Login Prompts. Starting Weston Wayland Compositor (on tty7)... [ OK ] Started Sound Service. [ OK ] Reached target Multi-User System. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Weston Wayland Compositor (on tty7). ST OpenSTLinux - Weston - (A Yocto Project Based Distro) 3.1-openstlinux-5.10-dunfell-mp1-21-03-31 stm32mp1 ttySTM0 stm32mp1 login: root (automatic login) Last login: Sun Sep 20 10:44:13 UTC 2020 on tty7 root@stm32mp1:~# [ 34.409316] usb33: supplied by vdd_usb [ 34.411784] vref: supplied by vdd [ 34.415184] vref: disabling [ 34.417729] vdda: disabling root@stm32mp1:~#
3. Basic commands[edit | edit source]
3.1. Printing distribution specific information[edit | edit source]
Board $> cat /etc/build
-----------------------
Build Configuration: |
-----------------------
BB_VERSION = 1.46.0
BUILD_SYS = x86_64-linux
NATIVELSBSTRING = universal
TARGET_SYS = arm-ostl-linux-gnueabi
MACHINE = stm32mp1
DISTRO = openstlinux-weston
DISTRO_VERSION = 3.1-openstlinux-5.10-dunfell-mp1-21-03-31
TUNE_FEATURES = arm vfp cortexa7 neon vfpv4 thumb callconvention-hard
TARGET_FPU = hard
MANIFESTVERSION = ostl-21-03-31-rc4-2-g7ef7d27
DISTRO_CODENAME = dunfell
ACCEPT_EULA_stm32mp1 = 1
GCCVERSION = 9.%
PREFERRED_PROVIDER_virtual/kernel = linux-stm32mp
PREFERRED_VERSION_linux-stm32mp =
-----------------------
Layer Revisions: |
-----------------------
meta-python = default.xml:5bba79488b7d393d2258d6e917f7bf7b0d7c4073
meta-oe = default.xml:5bba79488b7d393d2258d6e917f7bf7b0d7c4073
meta-gnome = default.xml:5bba79488b7d393d2258d6e917f7bf7b0d7c4073
meta-initramfs = default.xml:5bba79488b7d393d2258d6e917f7bf7b0d7c4073
meta-multimedia = default.xml:5bba79488b7d393d2258d6e917f7bf7b0d7c4073
meta-networking = default.xml:5bba79488b7d393d2258d6e917f7bf7b0d7c4073
meta-webserver = default.xml:5bba79488b7d393d2258d6e917f7bf7b0d7c4073
meta-filesystems = default.xml:5bba79488b7d393d2258d6e917f7bf7b0d7c4073
meta-perl = default.xml:5bba79488b7d393d2258d6e917f7bf7b0d7c4073
meta-st-stm32mp = default.xml:2e80e33539a193c6a8add6131c4c760009c49cea
meta-qt5 = default.xml:0d8eb956015acdea7e77cd6672d08dce18061510
meta-st-openstlinux = default.xml:673d7ee4572e3faadec3e43d5f0fa004465b78d9
meta = default.xml:72431ee8de5e3a53d259cebf420a7713ac9e1f14
3.2. Printing system information[edit | edit source]
Board $> uname -a Linux stm32mp1 5.10.10 #1 SMP PREEMPT Sat Jan 23 15:04:06 UTC 2021 armv7l armv7l armv7l GNU/Linux
3.3. Printing Linux kernel and GCC versions[edit | edit source]
Board $> cat /proc/version Linux version 5.10.10 (oe-user@oe-host) (arm-ostl-linux-gnueabi-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP PREEMPT Sat Jan 23 15:04:06 UTC 2021
3.4. Printing the amount of disk space available on all mounted file systems[edit | edit source]
Board $> df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 147M 0 147M 0% /dev
/dev/mmcblk0p6 690M 424M 220M 66% /
tmpfs 214M 64K 214M 1% /dev/shm
tmpfs 214M 8.8M 205M 5% /run
tmpfs 214M 0 214M 0% /sys/fs/cgroup
tmpfs 214M 20K 214M 1% /tmp
/dev/mmcblk0p4 58M 14M 40M 27% /boot
/dev/mmcblk0p5 15M 6.8M 6.7M 51% /vendor
tmpfs 214M 144K 214M 1% /var/volatile
/dev/mmcblk0p7 28G 38M 26G 1% /usr/local
tmpfs 43M 0 43M 0% /run/user/0
3.5. ssh connection (only if Ethernet cable is connected)[edit | edit source]
- Get the IP address of your board
Board $> ip addr show eth0 3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff inet xx.xx.xx.xx/xx brd xx.xx.xx.xx scope global dynamic eth0 valid_lft 159045sec preferred_lft 159045sec inet6 xxxx::xx:xx:xx:xx/64 scope link valid_lft forever preferred_lft forever
- On the host computer connect the terminal to the board using ssh
PC $> ssh root@xx.xx.xx.xx
root@stm32mp1:~#