cancel
Showing results for 
Search instead for 
Did you mean: 

Kernel panic after flashing

enienws
Associate

Hello, 

I built an image with the following configuration by using the ST wiki pages:

  • STM32MP157D-DK1 Evaluation Board
  • Yocto Kirkstone
  • STM32MP1-Ecosystem-v4.1.0
  • meta-java layer (branch kirkstone)

I have used the following command to create an image:

./create_sdcard_from_flashlayout.sh ../flashlayout_st-image-weston/extensible/FlashLayout_sdcard_stm32mp157d-dk1-extensible.tsv

I burnt the image to SD card (came with the board itself) with dd, using the following command:

sudo dd if=../flashlayout_st-image-weston/extensible/../../FlashLayout_sdcard_stm32mp157d-dk1-extensible.raw of=/dev/sdb bs=8M conv=fdatasync status=progress

When I boot the board kernel panics. Please see the following kernel output:

bootfs: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

bootfs: ***** FILE SYSTEM WAS MODIFIED *****
bootfs: 54/16384 files (3.7% non-contiguous), 23792/65536 blocks
resize2fs 1.46.5 (30-Dec-2021)
The filesystem is already 65536 (1k) blocks long. Nothing to do!

RESIZE VENDORFS [/dev/mmcblk0p9]
e2fsck 1.46.5 (30-Dec-2021)

Checking for bad blocks (read-only test): 0.00% done, 0:00 elapsed. (0/0/0 errors)
done
vendorfs: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

vendorfs: ***** FILE SYSTEM WAS MODIFIED *****
vendorfs: 31/4096 files (0.0% non-contiguous), 8427/16384 blocks
resize2fs 1.46.5 (30-Dec-2021)
The filesystem is already 16384 (1k) blocks long. Nothing to do!

RESIZE ROOTFS [/dev/mmcblk0p10]
resize2fs 1.46.5 (30-Dec-2021)
The filesystem is already 1481180 (1k) blocks long. Nothing to do!

switch_root: can'[ 9.699272] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[ 9.706874] CPU: 1 PID: 1 Comm: switch_root Not tainted 5.15.67 #1
[ 9.713042] Hardware name: STM32 (Device Tree Support)
[ 9.718104] [<c0110bac>] (unwind_backtrace) from [<c010c50c>] (show_stack+0x10/0x14)
[ 9.725909] [<c010c50c>] (show_stack) from [<c0c5a9f4>] (dump_stack_lvl+0x40/0x4c)
[ 9.733499] [<c0c5a9f4>] (dump_stack_lvl) from [<c0c54c4c>] (panic+0xe4/0x2e0)
[ 9.740688] [<c0c54c4c>] (panic) from [<c012bfc4>] (do_exit+0x58c/0x5d8)
[ 9.747369] [<c012bfc4>] (do_exit) from [<c012c078>] (do_group_exit+0x3c/0xb4)
[ 9.754650] [<c012c078>] (do_group_exit) from [<c012c100>] (__wake_up_parent+0x0/0x18)
[ 9.762547] CPU0: stopping
[ 9.765195] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.67 #1
[ 9.771261] Hardware name: STM32 (Device Tree Support)
[ 9.776316] [<c0110bac>] (unwind_backtrace) from [<c010c50c>] (show_stack+0x10/0x14)
[ 9.784109] [<c010c50c>] (show_stack) from [<c0c5a9f4>] (dump_stack_lvl+0x40/0x4c)
[ 9.791697] [<c0c5a9f4>] (dump_stack_lvl) from [<c010ef5c>] (do_handle_IPI+0x378/0x3a4)
[ 9.799689] [<c010ef5c>] (do_handle_IPI) from [<c010efa0>] (ipi_handler+0x18/0x20)
[ 9.807276] [<c010efa0>] (ipi_handler) from [<c018a7b0>] (handle_percpu_devid_irq+0xa4/0x278)
[ 9.815773] [<c018a7b0>] (handle_percpu_devid_irq) from [<c01842dc>] (handle_domain_irq+0x7c/0xb0)
[ 9.824774] [<c01842dc>] (handle_domain_irq) from [<c06556c4>] (gic_handle_irq+0x7c/0x90)
[ 9.832971] [<c06556c4>] (gic_handle_irq) from [<c0100b7c>] (__irq_svc+0x5c/0x90)
[ 9.840457] Exception stack(0xc1201f00 to 0xc1201f48)
[ 9.845419] 1f00: 00004972 c0f0fee4 00000000 c011a1c0 c130a1e0 00000000 ffffe000 ffffe000
[ 9.853601] 1f20: c0ef6cc0 00000000 10c5387d 00000000 c1200000 c1201f50 c0108ecc c0108ed0
[ 9.861778] 1f40: 60060013 ffffffff
[ 9.865319] [<c0100b7c>] (__irq_svc) from [<c0108ed0>] (arch_cpu_idle+0x38/0x3c)
[ 9.872707] [<c0108ed0>] (arch_cpu_idle) from [<c0c6ec74>] (default_idle_call+0x44/0x160)
[ 9.880904] [<c0c6ec74>] (default_idle_call) from [<c0160650>] (cpuidle_idle_call+0x1b4/0x220)
[ 9.889503] [<c0160650>] (cpuidle_idle_call) from [<c0160764>] (do_idle+0xa8/0xdc)
[ 9.897088] [<c0160764>] (do_idle) from [<c0160afc>] (cpu_startup_entry+0x18/0x1c)
[ 9.904672] [<c0160afc>] (cpu_startup_entry) from [<c11011b0>] (start_kernel+0x5f0/0x630)
[ 9.912879] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]---

What is the problem? Any help will be appreciated. 

Thanks in advance.

0 REPLIES 0