kbumsik / balena-st-stm32mp

balenaOS support for STM32MP1 boards
Apache License 2.0
1 stars 3 forks source link

Can not get this booting on STM32MP157C-DK2 Discovery Board #2

Closed srednak closed 3 years ago

srednak commented 3 years ago

Here is the console output. Then it is stuck. The led flash 2 times with 1 sec delays.

What to do?

NOTICE:  CPU: STM32MP157CAC Rev.B
NOTICE:  Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
NOTICE:  Board: MB1272 Var2 Rev.C-01
INFO:    Reset reason (0x14):
INFO:      Pad Reset from NRST
INFO:    Using SDMMC
INFO:      Instance 1
INFO:    Boot used partition fsbl1
NOTICE:  BL2: v2.0-r1.5(debug):ba2bc41-dirty
NOTICE:  BL2: Built : 12:42:35, Aug 27 2020
INFO:    BL2: Doing platform setup
INFO:    PMIC version = 0x10
INFO:    RAM: DDR3-1066/888 bin G 1x4Gb 533MHz v1.45
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 : 811266
WARNING: Skip signature check (header option)
INFO:    Image id=5 loaded: 0xc0100000 - 0xc01c6102
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-r1.5(debug):ba2bc41-dirty
NOTICE:  SP_MIN: Built : 12:42:36, Aug 27 2020
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-r3 (Aug 27 2020 - 12:46:15 +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
DRAM:  512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
NAND:  0 MiB
MMC:   STM32 SDMMC2: 0, STM32 SDMMC2: 1
Loading Environment from EXT4...
** Unable to use mmc 0:auto for loading the env **
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@5800a000
Hit any key to stop autoboot:  0
Scanning mmc devices 0 1 2
** Unable to read file resin-image-flasher **
24 bytes read in 1 ms (23.4 KiB/s)
Card did not respond to voltage select!
Found resin image on mmc 0
Loading resinOS_uEnv.txt from mmc device 0 partition 4
** Unable to read file resinOS_uEnv.txt **
Loading bootcount.env from mmc device 0 partition 4
** Unable to read file bootcount.env **
No bootcount.env file. Setting bootcount=0 in environment
69823 bytes read in 6 ms (11.1 MiB/s)
11199040 bytes read in 489 ms (21.8 MiB/s)
## Booting kernel from Legacy Image at c2000000 ...
   Image Name:   Linux-4.19.49
   Created:      2020-08-27  13:38:43 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    11198976 Bytes = 10.7 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 c40140be

Starting kernel ...
srednak commented 3 years ago

After running the barys script with --development-image it worked.