Jump to content

[Armbian build PR] - sunxi-6.1: Reverse commit 75317a0, fix real reason inability to load kernel


Recommended Posts

Posted

Description

Reverse commit 75317a0 since this is a special case.

Eliminate the real reason for the inability to boot the kernel. Linux kernel hangs in early boot on 32-bit ARM platform, when ftrace 4-byte "mcount" function call location for "_raw_spin_unlock_irqrestore" function straddles icache lines.

The problem is present for (cross-compiler) GCC 10, 11, 12. It does not happen when the kernel is compiled with GCC 9, even when condition (1) is satisfied.

Detailed description: https://forum.armbian.com/topic/41339-linux-image-legacy-sunxi2451-kernel-6192-is-broken-stuck-at-starting-kernel/?do=findComment&comment=196528

How Has This Been Tested?

  • [x] Test build for sunxi
  • [x] Test work on board BPI-m3

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines