cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP135F-DK Cross-compile Linux kernel problem

alpka
Associate II

Hello all,

I already booted my image by following this link:

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP135x-DK/Let%27s_start/Populate_the_target_and_boot_the_image

Thus, I'm using kernel v24.06.26

My main goal is to modify Linux kernel and device trees, that's why I'm following below link:

https://wiki.st.com/stm32mpu/index.php?title=STM32MPU_Developer_Package

And above link directed me to below one:

https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Developer_Package#Modifying_the_Linux_kernel_configuration

From this link, I came until this step:

alpka_0-1721286020666.png

And in the link that i pointed, which is:

https://wiki.st.com/stm32mpu/wiki/Menuconfig_or_how_to_configure_kernel#Menuconfig_and_Developer_Package

I followed the instructions, copied uImage and rebooted board like below:

alpka_1-1721286171798.png

However, my Linux kernel does not start, ST Logo appears and goes, and it continues like this.

Here is my logs:

 

 

 

E/TC:0 Panic 'Watchdog' at ?:0 NOTICE: CPU: STM32MP135F Rev.Y NOTICE: Model: STMicroelectronics STM32MP135F-DK Discovery Board NOTICE: Board: MB1635 Var1.0 Rev.E-02 INFO: PMIC version = 0x21 INFO: Reset reason (0x134): INFO: IWDG1 Reset (rst_iwdg1) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000 INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using SDMMC INFO: Instance 1 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.8-stm32mp1-r1.0(debug):lts-v2.8.6-dirty(ff0bd5f9) NOTICE: BL2: Built : 17:57:15, Apr 21 2023 INFO: BL2: Doing platform setup INFO: RAM: DDR3-1066 bin F 1x4Gb 533MHz v1.53 INFO: Memory size = 0x20000000 (512 MB) INFO: BL2: Loading image id 1 INFO: Loading image id=1 at address 0x30006000 INFO: Image id=1 loaded: 0x30006000 - 0x30006236 INFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x30006000 INFO: FCONF: Reading firmware configuration information for: mce_config 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 0xde000000 INFO: Image id=4 loaded: 0xde000000 - 0xde00001c INFO: OPTEE ep=0xde000000 INFO: OPTEE header info: INFO: magic=0x4554504f INFO: version=0x2 INFO: arch=0x0 INFO: flags=0x0 INFO: nb_images=0x1 INFO: BL2: Loading image id 8 INFO: Loading image id=8 at address 0xde000000 INFO: Image id=8 loaded: 0xde000000 - 0xde06a3a8 INFO: BL2: Loading image id 2 INFO: Loading image id=2 at address 0xc0400000 INFO: Image id=2 loaded: 0xc0400000 - 0xc040f8f0 INFO: BL2: Skip loading image id 16 INFO: BL2: Loading image id 5 INFO: Loading image id=5 at address 0xc0000000 INFO: Image id=5 loaded: 0xc0000000 - 0xc00e866c NOTICE: BL2: Booting BL32 INFO: Entry point address = 0xde000000 INFO: SPSR = 0x1d3 I/TC: Early console on UART#4 I/TC: I/TC: Embedded DTB found I/TC: OP-TEE version: 3.19.0-dev (gcc version 12.2.0 (GCC)) #1 Fri Oct 14 19:00:05 UTC 2022 arm I/TC: WARNING: This OP-TEE configuration might be insecure! I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html I/TC: Primary CPU initializing | NOR | Minicom 2.8 | VT102 | Offline | ttyACM0 I/TC: Platform stm32mp1: flavor PLATFORM_FLAVOR - DT stm32mp135f-dk.dts I/TC: DTB enables console (non-secure) I/TC: Primary CPU switching to normal world boot optee optee: OP-TEE: revision 3.19 (afacf356) U-Boot 2022.10-stm32mp-r1 (Oct 03 2022 - 19:25:32 +0000) CPU: STM32MP135F Rev.Y Model: STMicroelectronics STM32MP135F-DK Discovery Board Board: stm32mp1 in trusted mode (st,stm32mp135f-dk) Board: MB1635 Var1.0 Rev.E-02 DRAM: 512 MiB optee optee: OP-TEE: revision 3.19 (afacf356) Clocks: - MPU : 1000 MHz - AXI : 266.500 MHz - PER : 24 MHz - DDR : 533 MHz Core: 260 devices, 40 uclasses, devicetree: board WDT: Started watchdog 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: eth1@5800a000, eth1: eth2@5800e000 Hit any key to stop autoboot: 0 Boot over mmc0! switch to partitions #0, OK mmc0 is current device Scanning mmc 0:8... Found /mmc0_extlinux/stm32mp135f-dk_extlinux.conf Retrieving file: /mmc0_extlinux/stm32mp135f-dk_extlinux.conf Retrieving file: /splash_landscape.bmp Select the boot mode 1: OpenSTLinux 2: stm32mp135f-dk-a7-examples Enter choice: 1: OpenSTLinux Retrieving file: /uImage Retrieving file: /st-image-resize-initrd append: root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw console=ttySTM0,115200 Retrieving file: /stm32mp135f-dk.dtb ## Booting kernel from Legacy Image at c2000000 ... Image Name: Linux-6.1.82 Created: 2024-07-17 11:25:13 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 10596864 Bytes = 10.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 cfa0c000, end cffffcd7 ... OK Loading Device Tree to cf9f9000, end cfa0b885 ... OK Starting kernel ... E/TC:0 Panic 'Watchdog' at ?:0 NOTICE: CPU: STM32MP135F Rev.Y NOTICE: Model: STMicroelectronics STM32MP135F-DK Discovery Board NOTICE: Board: MB1635 Var1.0 Rev.E-02 INFO: PMIC version = 0x21 INFO: Reset reason (0x134): INFO: IWDG1 Reset (rst_iwdg1) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000 INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using SDMMC INFO: Instance 1 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.8-stm32mp1-r1.0(debug):lts-v2.8.6-dirty(ff0bd5f9) NOTICE: BL2: Built : 17:57:15, Apr 21 2023 INFO: BL2: Doing platform setup INFO: RAM: DDR3-1066 bin F 1x4Gb 533MHz v1.53 INFO: Memory size = 0x20000000 (512 MB) INFO: BL2: Loading image id 1 INFO: Loading image id=1 at address 0x30006000 INFO: Image id=1 loaded: 0x30006000 - 0x30006236 INFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x30006000 INFO: FCONF: Reading firmware configuration information for: mce_config 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 0xde000000 INFO: Image id=4 loaded: 0xde000000 - 0xde00001c INFO: OPTEE ep=0xde000000 INFO: OPTEE header info: INFO: magic=0x4554504f INFO: version=0x2 INFO: arch=0x0 INFO: flags=0x0 INFO: nb_images=0x1 INFO: BL2: Loading image id 8 INFO: Loading image id=8 at address 0xde000000 INFO: Image id=8 loaded: 0xde000000 - 0xde06a3a8 INFO: BL2: Loading image id 2 INFO: Loading image id=2 at address 0xc0400000 INFO: Image id=2 loaded: 0xc0400000 - 0xc040f8f0 INFO: BL2: Skip loading image id 16 INFO: BL2: Loading image id 5 INFO: Loading image id=5 at address 0xc0000000 INFO: Image id=5 loaded: 0xc0000000 - 0xc00e866c NOTICE: BL2: Booting BL32 INFO: Entry point address = 0xde000000 INFO: SPSR = 0x1d3 I/TC: Early console on UART#4 I/TC: I/TC: Embedded DTB found I/TC: OP-TEE version: 3.19.0-dev (gcc version 12.2.0 (GCC)) #1 Fri Oct 14 19:00:05 UTC 2022 arm I/TC: WARNING: This OP-TEE configuration might be insecure! I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html I/TC: Primary CPU initializing I/TC: Platform stm32mp1: flavor PLATFORM_FLAVOR - DT stm32mp135f-dk.dts I/TC: DTB enables console (non-secure) I/TC: Primary CPU switching to normal world boot optee optee: OP-TEE: revision 3.19 (afacf356) U-Boot 2022.10-stm32mp-r1 (Oct 03 2022 - 19:25:32 +0000) CPU: STM32MP135F Rev.Y Model: STMicroelectronics STM32MP135F-DK Discovery Board Board: stm32mp1 in trusted mode (st,stm32mp135f-dk) Board: MB1635 Var1.0 Rev.E-02 DRAM: 512 MiB optee optee: OP-TEE: revision 3.19 (afacf356) Clocks: - MPU : 1000 MHz - AXI : 266.500 MHz - PER : 24 MHz - DDR : 533 MHz Core: 260 devices, 40 uclasses, devicetree: board WDT: Started watchdog 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: eth1@5800a000, eth1: eth2@5800e000 Hit any key to stop autoboot: 0 Boot over mmc0! switch to partitions #0, OK mmc0 is current device Scanning mmc 0:8... Found /mmc0_extlinux/stm32mp135f-dk_extlinux.conf Retrieving file: /mmc0_extlinux/stm32mp135f-dk_extlinux.conf Retrieving file: /splash_landscape.bmp Select the boot mode 1: OpenSTLinux 2: stm32mp135f-dk-a7-examples Enter choice: 1: OpenSTLinux Retrieving file: /uImage Retrieving file: /st-image-resize-initrd append: root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw console=ttySTM0,115200 Retrieving file: /stm32mp135f-dk.dtb ## Booting kernel from Legacy Image at c2000000 ... Image Name: Linux-6.1.82 Created: 2024-07-17 11:25:13 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 10596864 Bytes = 10.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 cfa0c000, end cffffcd7 ... OK Loading Device Tree to cf9f9000, end cfa0b885 ... OK Starting kernel ...
View more

 

 

 

Can you help me?

 

Thanks

 

 

1 REPLY 1
Jacob WOODRUFF
ST Employee

Hi All,

 

This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

 

Regards,
Jake

ST Support