Upgrading Kernel for EV Charging System: Seeking Guidance on Debugging Kernel Boot
Hello everyone,
We are currently using the v5.15-stm32mp-r2 kernel for our EV charging system and have decided to upgrade to v6.1-stm32mp-r2 for its long-term support. I successfully compiled the v6.1-stm32mp-r2 kernel using Buildroot by replacing the kernel tarball. During the process, I fixed issues in the device tree source (DTS) file, including sram and clock references. After resolving these, I was able to compile the final image.
However, when I flash the image onto the STM32MP157C, the boot process halts at the message "Starting kernel..." with no further logs. This suggests the kernel is crashing early in the boot process.
I suspect the changes I made shouldn’t cause such a critical failure, but debugging is difficult without any output. I am trying to enable early printk for more insight into the kernel’s initialization, but I am struggling to get it working. I am considering adding log traces to the start_kernel function as a next step.
For now, I have not replaced U-Boot or made other major changes. My plan is to modify one component at a time to isolate issues before completing the full upgrade.
Does this approach make sense? If anyone can provide guidance on enabling early printk or suggest other ways to debug early-stage kernel crashes, I would greatly appreciate your input. Let me know if there’s anything I might be missing.
Thank you for your help!
