the
__wrpll_calc_filter_range: post-divider reference freq out of range
issue is caused by corruption of the in memory device-tree.

The appended patch solves the issue.

Best regards

Heinrich
Subject: move sbi_dbcn_available to .data section
From: Heinrich Schuchardt <heinrich.schucha...@canonical.com>

When U-Boot SPL loads the device-tree it does not consider the BSS section.
The RISC-V SBI Debug UART is enable before relocations. With
sbi_dbcn_available in the .bss section the device-tree is corrupted.
Move the variable to the .data section.

For a final solution the handling of the BSS section will have to be
improved in upstream U-Boot.

Forwarded: no
Last-Update: 2024-02-21
--- a/drivers/serial/serial_sbi.c
+++ b/drivers/serial/serial_sbi.c
@@ -17,7 +17,7 @@
 
 #else
 
-static int sbi_dbcn_available;
+static int sbi_dbcn_available __section(".data");
 
 static inline void _debug_uart_init(void)
 {

Reply via email to