New Rev: STM32MP157F-DK2

Thanks for the thorough walk-through. I am using the newest version of the devkit, the STM32MP157F-DK2. Since this is device tree is not included in u-boot yet, I tried compiling with DEVICE_TREE=stm32mp157c-dk2 since this seemed like the closest match. However, when I power the board, nothing happens. I just get a slow blinking red LED on LD4. I tried with the attached touch screen and also with a monitor plugged in, but got nothing. Any suggestion on what to change to make this work with the STM32MP157F-DK2 devkit?
Thanks,
Jamie

Getting this repeated message over the serial port:

Hi @jmilliken , i actually didn’t have the F model yet, i see we have some in stock, so I’ve got one routed to me now…

Edit: quick Edit, i updated the instructions for ARM Trusted Firmware A, this might help the F revision, i’m still waiting for the delivery to arrive…

So a classic board, boot looks like this:

NOTICE:  CPU: STM32MP157CAC Rev.B
NOTICE:  Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
NOTICE:  Board: MB1272 Var2.0 Rev.C-01
NOTICE:  BL2: v2.5(release):v2.5
NOTICE:  BL2: Built : 16:23:44, Mar 15 2022
NOTICE:  BL2: Booting BL32
NOTICE:  SP_MIN: v2.5(release):v2.5
NOTICE:  SP_MIN: Built : 16:23:49, Mar 15 2022


U-Boot 2022.04-rc4 (Mar 15 2022 - 16:21:37 -0500)

CPU: STM32MP157CAC Rev.B
Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
Board: stm32mp1 in trusted - stm32image 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
Core:  245 devices, 37 uclasses, devicetree: board
WDT:   Started watchdog@5a002000 with servicing (32s timeout)
NAND:  0 MiB
MMC:   STM32 SD/MMC: 0
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
invalid MAC address in OTP 00:00:00:00:00:00
Previous ADC measurements was not the one expected, retry in 20ms
****************************************************
*        WARNING 500mA power supply detected       *
*     Current too low, use a 3A power supply!      *
****************************************************

Net:   
Error: ethernet@5800a000 address not set.
No ethernet found.

Hit any key to stop autoboot:  0 
Boot over mmc0!
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:4...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
1:	Linux 5.15.26-armv7-lpae-x21
Retrieving file: /boot/vmlinuz-5.15.26-armv7-lpae-x21
append: console=ttySTM0,115200 root=/dev/mmcblk0p4 ro rootfstype=ext4 rootwait
Retrieving file: /boot/dtbs/5.15.26-armv7-lpae-x21/stm32mp157c-dk2.dtb
Kernel image @ 0xc2000000 [ 0x000000 - 0xb8c200 ]
## Flattened Device Tree blob at c4000000
   Booting using the fdt blob at 0xc4000000
   Loading Device Tree to cffe8000, end cffffaa8 ... OK
optee optee: OP-TEE api uid mismatch

Starting kernel ...

Regards,

Okay, got the F revision…

Just swapped the microSD that was in my “C” revision…

NOTICE:  CPU: STM32MP157FAC Rev.Z
NOTICE:  Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
NOTICE:  Board: MB1272 Var4.0 Rev.C-02
NOTICE:  BL2: v2.5(release):v2.5
NOTICE:  BL2: Built : 16:23:44, Mar 15 2022
NOTICE:  BL2: Booting BL32
NOTICE:  SP_MIN: v2.5(release):v2.5
NOTICE:  SP_MIN: Built : 16:23:49, Mar 15 2022


U-Boot 2022.04-rc4 (Mar 15 2022 - 16:21:37 -0500)

CPU: STM32MP157FAC Rev.Z
Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
Board: stm32mp1 in trusted - stm32image mode (st,stm32mp157c-dk2)
Board: MB1272 Var4.0 Rev.C-02
DRAM:  512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
Core:  245 devices, 37 uclasses, devicetree: board
WDT:   Started watchdog@5a002000 with servicing (32s timeout)
NAND:  0 MiB
MMC:   STM32 SD/MMC: 0
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
invalid MAC address in OTP 00:00:00:00:00:00
Previous ADC measurements was not the one expected, retry in 20ms
****************************************************
*        WARNING 500mA power supply detected       *
*     Current too low, use a 3A power supply!      *
****************************************************

Net:   
Error: ethernet@5800a000 address not set.
No ethernet found.

Hit any key to stop autoboot:  0 
Boot over mmc0!
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:4...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
1:	Linux 5.15.26-armv7-lpae-x21
Retrieving file: /boot/vmlinuz-5.15.26-armv7-lpae-x21
append: console=ttySTM0,115200 root=/dev/mmcblk0p4 ro rootfstype=ext4 rootwait
Retrieving file: /boot/dtbs/5.15.26-armv7-lpae-x21/stm32mp157c-dk2.dtb
Kernel image @ 0xc2000000 [ 0x000000 - 0xb8c200 ]
## Flattened Device Tree blob at c4000000
   Booting using the fdt blob at 0xc4000000
   Loading Device Tree to cffe8000, end cffffaa8 ... OK
optee optee: OP-TEE api uid mismatch

Starting kernel ...

Full boot:

NOTICE:  CPU: STM32MP157FAC Rev.Z
NOTICE:  Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
NOTICE:  Board: MB1272 Var4.0 Rev.C-02
NOTICE:  BL2: v2.5(release):v2.5
NOTICE:  BL2: Built : 16:23:44, Mar 15 2022
NOTICE:  BL2: Booting BL32
NOTICE:  SP_MIN: v2.5(release):v2.5
NOTICE:  SP_MIN: Built : 16:23:49, Mar 15 2022


U-Boot 2022.04-rc4 (Mar 15 2022 - 16:21:37 -0500)

CPU: STM32MP157FAC Rev.Z
Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
Board: stm32mp1 in trusted - stm32image mode (st,stm32mp157c-dk2)
Board: MB1272 Var4.0 Rev.C-02
DRAM:  512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
Core:  245 devices, 37 uclasses, devicetree: board
WDT:   Started watchdog@5a002000 with servicing (32s timeout)
NAND:  0 MiB
MMC:   STM32 SD/MMC: 0
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
invalid MAC address in OTP 00:00:00:00:00:00
Previous ADC measurements was not the one expected, retry in 20ms
****************************************************
*        WARNING 500mA power supply detected       *
*     Current too low, use a 3A power supply!      *
****************************************************

Net:   
Error: ethernet@5800a000 address not set.
No ethernet found.

Hit any key to stop autoboot:  0 
Boot over mmc0!
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:4...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
1:	Linux 5.15.26-armv7-lpae-x21
Retrieving file: /boot/vmlinuz-5.15.26-armv7-lpae-x21
append: console=ttySTM0,115200 root=/dev/mmcblk0p4 ro rootfstype=ext4 rootwait
Retrieving file: /boot/dtbs/5.15.26-armv7-lpae-x21/stm32mp157c-dk2.dtb
Kernel image @ 0xc2000000 [ 0x000000 - 0xb8c200 ]
## Flattened Device Tree blob at c4000000
   Booting using the fdt blob at 0xc4000000
   Loading Device Tree to cffe8000, end cffffaa8 ... OK
optee optee: OP-TEE api uid mismatch

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.26-armv7-lpae-x21 (voodoo@hestia) (arm-linux-gnueabi-gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Tue Mar 15 16:20:42 CDT 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[    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] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000010000000, 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 0x0000000010040000, 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 0x0000000010041000, 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 0x0000000010042000, 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 0x0000000030000000, 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 0x0000000038000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node retram@38000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 64 MiB at 0x00000000dc000000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00000000c0000000-0x00000000dfffffff]
[    0.000000]   Normal   empty
[    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 0x00000000d4000000-0x00000000d7ffffff]
[    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 17 pages/cpu s40140 r8192 d21300 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttySTM0,115200 root=/dev/mmcblk0p4 ro rootfstype=ext4 rootwait
[    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:on, heap free:off
[    0.000000] Memory: 358392K/524288K available (18432K kernel code, 2182K rwdata, 4588K rodata, 2048K init, 370K bss, 100360K reserved, 65536K cma-reserved, 0K highmem)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x30/0x498 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ftrace: allocating 53503 entries in 157 pages
[    0.000000] ftrace: allocated 157 pages with 5 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    0.000000] 	Rude variant of Tasks RCU enabled.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    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] 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.000002] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000033] Switching to timer-based delay loop, resolution 41ns
[    0.008677] Console: colour dummy device 80x30
[    0.008792] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.008829] pid_max: default: 32768 minimum: 301
[    0.009155] LSM: Security Framework initializing
[    0.009262] Yama: becoming mindful.
[    0.009591] AppArmor: AppArmor initialized
[    0.009623] TOMOYO Linux initialized
[    0.009756] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.009795] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.011701] CPU: Testing write buffer coherency: ok
[    0.012340] CPU0: update cpu_capacity 1024
[    0.012373] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.014358] Setting up static identity map for 0xc0200000 - 0xc0200060
[    0.014703] rcu: Hierarchical SRCU implementation.
[    0.017609] EFI services will not be available.
[    0.018598] smp: Bringing up secondary CPUs ...
[    0.020146] CPU1: update cpu_capacity 1024
[    0.020174] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.020488] smp: Brought up 1 node, 2 CPUs
[    0.020534] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.020554] CPU: All CPU(s) started in SVC mode.
[    0.022036] devtmpfs: initialized
[    0.057358] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.057966] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.058048] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.063674] pinctrl core: initialized pinctrl subsystem
[    0.066009] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.077830] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.079071] audit: initializing netlink subsys (disabled)
[    0.079630] audit: type=2000 audit(0.072:1): state=initialized audit_enabled=0 res=1
[    0.082795] thermal_sys: Registered thermal governor 'fair_share'
[    0.082822] thermal_sys: Registered thermal governor 'bang_bang'
[    0.082846] thermal_sys: Registered thermal governor 'step_wise'
[    0.083332] cpuidle: using governor menu
[    0.084050] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.084084] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.124129] /soc/interrupt-controller@5000d000: bank0
[    0.124199] /soc/interrupt-controller@5000d000: bank1
[    0.124237] /soc/interrupt-controller@5000d000: bank2
[    0.143220] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
[    0.144327] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
[    0.145367] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
[    0.146400] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
[    0.147480] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
[    0.148478] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
[    0.149520] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
[    0.150510] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
[    0.151565] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
[    0.151976] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
[    0.157153] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
[    0.157220] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
[    0.159033] platform 5a000000.dsi: Fixing up cyclic dependency with 5a001000.display-controller
[    0.184272] Kprobes globally optimized
[    0.185663] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.198517] raid6: skip pq benchmark and using algorithm neonx8
[    0.198562] raid6: using neon recovery algorithm
[    0.204013] stm32-dma 48000000.dma-controller: STM32 DMA driver registered
[    0.206628] stm32-dma 48001000.dma-controller: STM32 DMA driver registered
[    0.212272] stm32-mdma 58000000.dma-controller: STM32 MDMA driver registered
[    0.217084] iommu: Default domain type: Translated 
[    0.217124] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.219839] SCSI subsystem initialized
[    0.220805] usbcore: registered new interface driver usbfs
[    0.220941] usbcore: registered new interface driver hub
[    0.221036] usbcore: registered new device driver usb
[    0.222351] mc: Linux media interface: v0.10
[    0.222429] videodev: Linux video capture interface: v2.00
[    0.222655] pps_core: LinuxPPS API ver. 1 registered
[    0.222676] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.222734] PTP clock support registered
[    0.225810] NetLabel: Initializing
[    0.225849] NetLabel:  domain hash size = 128
[    0.225865] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.226028] NetLabel:  unlabeled traffic allowed by default
[    0.227477] clocksource: Switched to clocksource arch_sys_counter
[    0.428544] VFS: Disk quotas dquot_6.6.0
[    0.428765] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.430465] AppArmor: AppArmor Filesystem Enabled
[    0.459262] NET: Registered PF_INET protocol family
[    0.459648] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.461904] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.462009] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.462111] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.462221] TCP: Hash tables configured (established 4096 bind 4096)
[    0.462593] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.462752] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.462828] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.463284] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.472318] RPC: Registered named UNIX socket transport module.
[    0.472365] RPC: Registered udp transport module.
[    0.472382] RPC: Registered tcp transport module.
[    0.472397] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.472422] NET: Registered PF_XDP protocol family
[    0.474061] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    1.833885] Initialise system trusted keyrings
[    1.834461] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.847893] zbud: loaded
[    1.852755] NFS: Registering the id_resolver key type
[    1.852844] Key type id_resolver registered
[    1.852861] Key type id_legacy registered
[    1.853078] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.853104] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.853646] fuse: init (API version 7.34)
[    2.004647] xor: measuring software checksum speed
[    2.020360]    arm4regs        :   631 MB/sec
[    2.039393]    8regs           :   520 MB/sec
[    2.056016]    32regs          :   594 MB/sec
[    2.067659]    neon            :   847 MB/sec
[    2.067680] xor: using function: neon (847 MB/sec)
[    2.067707] Key type asymmetric registered
[    2.067725] Asymmetric key parser 'x509' registered
[    2.067941] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    2.068399] io scheduler mq-deadline registered
[    2.089028] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    2.095591] STM32 USART driver initialized
[    2.096967] stm32-usart 40010000.serial: interrupt mode for rx (no dma)
[    2.097005] stm32-usart 40010000.serial: interrupt mode for tx (no dma)
[    2.097049] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 68, base_baud = 4000000) is a stm32-usart
[    3.179811] printk: console [ttySTM0] enabled
[    3.188444] sdhci: Secure Digital Host Controller Interface driver
[    3.193213] sdhci: Copyright(c) Pierre Ossman
[    3.197892] Synopsys Designware Multimedia Card Interface Driver
[    3.204331] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.209647] random: fast init done
[    3.216103] random: crng init done
[    3.231619] etnaviv etnaviv: bound 59000000.gpu (ops 0xc1503740)
[    3.236274] etnaviv-gpu 59000000.gpu: model: GC400, revision: 4652
[    3.243308] etnaviv-gpu 59000000.gpu: Need to move linear window on MC1.0, disabling TS
[    3.251818] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[    3.268585] stm32-dwmac 5800a000.ethernet: IRQ eth_wake_irq not found
[    3.273651] stm32-dwmac 5800a000.ethernet: IRQ eth_lpi not found
[    3.280861] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[    3.286628] stm32-dwmac 5800a000.ethernet: 	DWMAC4/5
[    3.291555] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[    3.298841] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[    3.306146] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[    3.313020] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[    3.319424] stm32-dwmac 5800a000.ethernet: TSO supported
[    3.324575] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.332415] stm32-dwmac 5800a000.ethernet: device MAC address 4e:88:01:cc:b2:67
[    3.339734] stm32-dwmac 5800a000.ethernet: Enabled L3L4 Flow TC (entries=2)
[    3.346673] stm32-dwmac 5800a000.ethernet: Enabled RFS Flow TC (entries=8)
[    3.353557] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[    3.359369] stm32-dwmac 5800a000.ethernet: Using 32 bits DMA width
[    3.376249] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.381451] ehci-platform: EHCI generic platform driver
[    3.387011] ehci-omap: OMAP-EHCI Host Controller driver
[    3.393056] usbcore: registered new interface driver uas
[    3.397256] usbcore: registered new interface driver usb-storage
[    3.403191] usbcore: registered new interface driver ums-alauda
[    3.409104] usbcore: registered new interface driver ums-cypress
[    3.415105] usbcore: registered new interface driver ums-datafab
[    3.421079] usbcore: registered new interface driver ums_eneub6250
[    3.427245] usbcore: registered new interface driver ums-freecom
[    3.433272] usbcore: registered new interface driver ums-isd200
[    3.439172] usbcore: registered new interface driver ums-jumpshot
[    3.445266] usbcore: registered new interface driver ums-karma
[    3.451071] usbcore: registered new interface driver ums-onetouch
[    3.457182] usbcore: registered new interface driver ums-realtek
[    3.463169] usbcore: registered new interface driver ums-sddr09
[    3.469079] usbcore: registered new interface driver ums-sddr55
[    3.474999] usbcore: registered new interface driver ums-usbat
[    3.490337] stm32_rtc 5c004000.rtc: IRQ index 1 not found
[    3.494372] stm32_rtc 5c004000.rtc: alarm can't wake up the system: -6
[    3.501910] stm32_rtc 5c004000.rtc: registered as rtc0
[    3.506048] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01T00:00:07 UTC (946684807)
[    3.515195] stm32_rtc 5c004000.rtc: Date/Time must be initialized
[    3.520806] stm32_rtc 5c004000.rtc: registered rev:1.2
[    3.527254] i2c_dev: i2c /dev entries driver
[    3.554468] i2c 0-0039: Fixing up cyclic dependency with 4000b000.audio-controller
[    3.560807] i2c 0-0039: Fixing up cyclic dependency with 5a001000.display-controller
[    3.574744] stm32f7-i2c 40012000.i2c: STM32F7 I2C-0 bus adapter
[    3.611823] stpmic1 1-0033: PMIC Chip Version: 0x20
[    3.621405] vddcore: supplied by vin
[    3.626905] vdd_ddr: supplied by vin
[    3.632375] vdd: supplied by vin
[    3.637498] v3v3: supplied by vin
[    3.642470] v1v8_audio: supplied by v3v3
[    3.649221] v3v3_hdmi: supplied by vin
[    3.655492] vtt_ddr: supplied by vdd_ddr
[    3.661365] vdd_usb: supplied by vin
[    3.664369] vdda: supplied by vin
[    3.670320] v1v2_hdmi: supplied by v3v3
[    3.676240] vref_ddr: supplied by vin
[    3.681990] bst_out: supplied by vin
[    3.685179] vbus_otg: supplied by bst_out
[    3.689357] vbus_sw: supplied by bst_out
[    3.696194] stm32f7-i2c 5c002000.i2c: STM32F7 I2C-1 bus adapter
[    3.706399] stm_thermal 50028000.thermal: stm_thermal_probe: Driver initialized successfully
[    3.720218] ledtrig-cpu: registered to indicate activity on CPUs
[    3.725680] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    3.734575] stm32-crc32 58009000.crc: Initialized
[    3.739707] stm32-hash 54002000.hash: will run requests pump with realtime priority
[    3.748264] stm32-hash 54002000.hash: Init HASH done HW ver 23 DMA mode 1
[    3.755307] stm32-cryp 54001000.cryp: will run requests pump with realtime priority
[    3.764336] stm32-cryp 54001000.cryp: Initialized
[    3.768513] hid: raw HID events driver (C) Jiri Kosina
[    3.773321] usbcore: registered new interface driver usbhid
[    3.778333] usbhid: USB HID core driver
[    3.783745] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
[    3.791750] drop_monitor: Initializing network drop monitor service
[    3.798113] NET: Registered PF_INET6 protocol family
[    3.809015] Segment Routing with IPv6
[    3.811328] In-situ OAM (IOAM) with IPv6
[    3.815523] mip6: Mobile IPv6
[    3.818121] NET: Registered PF_PACKET protocol family
[    3.823747] Key type dns_resolver registered
[    3.827420] mpls_gso: MPLS GSO support
[    3.831553] ThumbEE CPU extension supported.
[    3.835489] Registering SWP/SWPB emulation handler
[    3.841446] registered taskstats version 1
[    3.844356] Loading compiled-in X.509 certificates
[    3.849953] zswap: loaded using pool lzo/zbud
[    3.855023] Key type ._fscrypt registered
[    3.857709] Key type .fscrypt registered
[    3.861534] Key type fscrypt-provisioning registered
[    3.875433] Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=yes
[    3.880998] AppArmor: AppArmor sha1 policy hashing enabled
[    3.930796] vref: supplied by vdd
[    3.934416] reg11: supplied by vdd
[    3.937036] reg18: supplied by vdd
[    3.940357] usb33: supplied by vdd_usb
[    3.945339] mmci-pl18x 58005000.mmc: Got CD GPIO
[    3.949890] mmci-pl18x 58005000.mmc: mmc0: PL180 manf 53 rev2 at 0x58005000 irq 57,0 (pio)
[    4.004862] i2c i2c-0: Added multiplexed i2c bus 2
[    4.012033] stm32-usbphyc 5a006000.usbphyc: registered rev:1.0
[    4.024631] [drm] Initialized stm 1.0.0 20170330 for 5a001000.display-controller on minor 1
[    4.041510] mmc0: new high speed SDHC card at address aaaa
[    4.044614] mmcblk0: mmc0:aaaa SS08G 7.40 GiB 
[    4.062934]  mmcblk0: p1 p2 p3 p4
[    4.451553] Console: switching to colour frame buffer device 60x50
[    4.489524] stm32-display 5a001000.display-controller: [drm] fb0: stmdrmfb frame buffer device
[    4.501117] ehci-platform 5800d000.usb: EHCI Host Controller
[    4.505474] ehci-platform 5800d000.usb: new USB bus registered, assigned bus number 1
[    4.514530] ehci-platform 5800d000.usb: irq 59, io mem 0x5800d000
[    4.531532] ehci-platform 5800d000.usb: USB 2.0 started, EHCI 1.00
[    4.536944] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    4.544578] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.551872] usb usb1: Product: EHCI Host Controller
[    4.556647] usb usb1: Manufacturer: Linux 5.15.26-armv7-lpae-x21 ehci_hcd
[    4.563424] usb usb1: SerialNumber: 5800d000.usb
[    4.569340] hub 1-0:1.0: USB hub found
[    4.571922] hub 1-0:1.0: 2 ports detected
[    4.596154] EXT4-fs (mmcblk0p4): INFO: recovery required on readonly filesystem
[    4.602443] EXT4-fs (mmcblk0p4): write access will be enabled during recovery
[    4.831597] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    4.992326] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[    4.999177] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    5.007845] hub 1-1:1.0: USB hub found
[    5.010422] hub 1-1:1.0: 4 ports detected
[    5.524493] EXT4-fs (mmcblk0p4): recovery complete
[    5.550574] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    5.559080] VFS: Mounted root (ext4 filesystem) readonly on device 179:4.
[    5.578329] devtmpfs: mounted
[    5.593320] Freeing unused kernel image (initmem) memory: 2048K
[    5.600618] Checked W+X mappings: passed, no W+X pages found
[    5.604910] Run /sbin/init as init process
[    5.616198] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist.
[    6.066253] systemd[1]: System time before build time, advancing clock.
[    6.246354] systemd[1]: systemd 247.3-6 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[    6.269030] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 11 (bullseye)!

[    6.308832] systemd[1]: Set hostname to <arm>.
[    7.834290] systemd[1]: Queued start job for default target Graphical Interface.
[    7.852608] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    7.875615] systemd[1]: Created slice system-modprobe.slice.
[  OK  ] Created slice system-modprobe.slice.
[    7.899881] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    7.926740] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    7.948843] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[    7.976633] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[    8.005893] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary…s File System Automount Point.
[    8.032292] systemd[1]: Reached target Local Encrypted Volumes.
[  OK  ] Reached target Local Encrypted Volumes.
[    8.056433] systemd[1]: Reached target Paths.
[  OK  ] Reached target Paths.
[    8.076043] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    8.095942] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    8.116163] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    8.149755] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    8.169178] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    8.192643] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[    8.217858] systemd[1]: Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Audit Socket.
[    8.241225] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    8.265607] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    8.285969] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    8.309048] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    8.338094] systemd[1]: Mounting Huge Pages File System...
         Mounting Huge Pages File System...
[    8.370535] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    8.408409] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[    8.441427] systemd[1]: Mounting Kernel Trace File System...
         Mounting Kernel Trace File System...
[    8.489576] systemd[1]: Starting Restore / save the current clock...
         Starting Restore / save the current clock...
[    8.525724] systemd[1]: Starting Create list of static device nodes for the current kernel...
         Starting Create list of st…odes for the current kernel...
[    8.568339] systemd[1]: Starting Load Kernel Module configfs...
         Starting Load Kernel Module configfs...
[    8.600125] systemd[1]: Starting Load Kernel Module drm...
         Starting Load Kernel Module drm...
[    8.628483] systemd[1]: Starting Load Kernel Module fuse...
         Starting Load Kernel Module fuse...
[    8.657143] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    8.675912] systemd[1]: Starting File System Check on Root Device...
         Starting File System Check on Root Device...
[    8.716514] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    8.765367] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    8.782675] systemd[1]: Starting Coldplug All udev Devices...
         Starting Coldplug All udev Devices...
[    8.876614] systemd[1]: Mounted Huge Pages File System.
[  OK  ] Mounted Huge[    8.885558] systemd[1]: Mounted POSIX Message Queue File System.
 Pages File System.
[  OK  ] Mounted POSI[    8.900301] systemd[1]: Mounted Kernel Debug File System.
X Message Queue File System.
[    8.909203] systemd[1]: Mounted Kernel Trace File System.
0;32m  OK  ] Mounted Kernel Debug File System.
[  OK  ] [    8.921650] systemd[1]: Finished Restore / save the current clock.
Mounted Kernel Trace File System.
[  OK  ] Finished Restore / save the current clock.
[    8.955394] systemd[1]: Finished Create list of static device nodes for the current kernel.
[  OK  ] Finished Create [    8.966930] systemd[1]: modprobe@configfs.service: Succeeded.
list of st… nodes for the current kernel.
[    8.978205] systemd[1]: Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module configfs.
[    8.989281] systemd[1]: modprobe@drm.service: Succeeded.
[    8.998415] systemd[1]: Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module drm.
[    9.009118] systemd[1]: modprobe@fuse.service: Succeeded.
[    9.017861] systemd[1]: Finished Load Kernel Module fuse.
[  OK  ] Finished Load Kernel Module fuse.
[    9.029307] systemd[1]: Finished Load Kernel Modules.
[  OK  ] Finished Load Kernel Modules.
[    9.051893] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[    9.088371] systemd[1]: Mounting Kernel Configuration File System...
         Mounting Kernel Configuration File System...
[    9.149355] systemd[1]: Started File System Check Daemon to report status.
[  OK  ] Started File System Check Daemon to report status.
[    9.222543] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[    9.306644] systemd[1]: Finished File System Check on Root Device.
[  OK  ] Finished File System Check on Root Device.
[    9.333817] systemd[1]: Mounted FUSE Control File System.
[  OK  ] Mounted FUSE Control File System.
[    9.357881] systemd[1]: Mounted Kernel Configuration File System.
[  OK  ] Mounted Kernel Configuration File System.
[    9.389244] systemd[1]: Finished Apply Kernel Variables.
[  OK  ] Finished Apply Kernel Variables.
[    9.431399] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[    9.572306] EXT4-fs (mmcblk0p4): re-mounted. Opts: errors=remount-ro. Quota mode: none.
[    9.600920] systemd[1]: Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Remount Root and Kernel File Systems.
[    9.624947] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[    9.640486] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[    9.677129] systemd[1]: Starting Load/Save Random Seed...
         Starting Load/Save Random Seed...
[    9.722798] systemd[1]: Starting Create System Users...
         Starting Create System Users...
[    9.741018] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Finished Load/Save Random Seed.
[    9.973418] systemd-journald[185]: Received client request to flush runtime journal.
[  OK  ] Finished Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Rule-based Manage…for Device Events and Files...
[  OK  ] Finished Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
[  OK  ] Started Rule-based Manager for Device Events and Files.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Finished Update UTMP about System Boot/Shutdown.
[  OK  ] Finished Coldplug All udev Devices.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Finished Helper to synchronize boot up for ifupdown.
         Starting Raise network interfaces...
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target System Time Set.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Periodic ext4 Onli…ata Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Reached target Timers.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
         Starting Remove Stale Onli…t4 Metadata Check Snapshots...
         Starting Authorization Manager...
         Starting System Logging Service...
         Starting User Login Management...
         Starting WPA supplicant...
[  OK  ] Started System Logging Service.
[  OK  ] Finished Raise network interfaces.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Authorization Manager.
         Starting Modem Manager...
[  OK  ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
         Starting A high performanc… and a reverse proxy server...
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Started User Login Management.
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started Getty on tty1.
         Starting Hostname Service...
[  OK  ] Started A high performance…er and a reverse proxy server.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started Modem Manager.
[  OK  ] Started Hostname Service.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
[   17.256147] stm32-rproc 10000000.m4: wdg irq registered
[   17.276932] platform 4400b004.audio-controller: Fixing up cyclic dependency with 0-004a
[   17.304256] platform 4400b024.audio-controller: Fixing up cyclic dependency with 0-004a
[   17.306815] remoteproc remoteproc0: m4 is available
[  OK  ] Found device /dev/ttySTM0.
[  OK  ] Started Serial Getty on ttySTM0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Finished Update UTMP about System Runlevel Changes.
[   17.801433] edt_ft5x06 0-0038: supply vcc not found, using dummy regulator
[   17.815650] edt_ft5x06 0-0038: supply iovcc not found, using dummy regulator
[   17.840392] input: EP0110M09 as /devices/platform/soc/40012000.i2c/i2c-0/0-0038/input/input0

Debian GNU/Linux 11 arm ttySTM0

default username:password is [debian:temppwd]

arm login: [   18.997286] st,stm32-i2s 4000b000.audio-controller: No cache defaults, reading back from HW
[   19.191761] stm32-dwmac 5800a000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[   19.205512] stm32-dwmac 5800a000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   19.235630] dwmac4: Master AXI performs any burst length
[   19.239679] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
[   19.436090] input: pmic_onkey as /devices/platform/soc/5c002000.i2c/i2c-1/1-0033/5c002000.i2c:stpmic@33:onkey/input/input1
[   19.495628] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   19.504823] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock
[   19.526401] stm32-dwmac 5800a000.ethernet eth0: configuring for phy/rgmii-id link mode
[   23.662966] stm32-dwmac 5800a000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   23.669896] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   35.819578] vdda: disabling
[   35.821167] vref: disabling

Looks good…

Regards,

Interesting. I wonder what I did wrong. Do you need to change the first stage bootloader that is flashed on the STM32? I’m just using whatever shipped with the dev kit.

Thanks,
Jamie

Hi @jmilliken start with a fresh microSD, the image ST provides in the box, is a random ST snapshot…

Regards,

Yes, I was starting with a totally blank SD card. I was referring to the image in FLASH memory on the STM32MP157F itself. Maybe I misunderstand, but I thought that there needed to be some bootloader code on the device so that it knows to then go to the SD card to continue loading Linux. Am I wrong?

The STM32MP157F has a base Boot ROM, that reads everything from the microSD. With this board design, there is no on-board update-able flash to worry about.

Regards,

Okay, thanks. I run through it all again from scratch, see if I can find my error. I appreciate the support.