HiFive Unmatched: __wrpll_calc_filter_range: post-divider reference freq out of range: 4294967295

Bug #2054091 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
u-boot (Debian)
Fix Released
Unknown
u-boot (Ubuntu)
Fix Released
Undecided
Dave Jones

Bug Description

Booting the HiFive Unmatched board with U-Boot 2024.01+dfsg-1ubuntu1 (Feb 01 2024 - 13:52:26 +0000) fails:

U-Boot SPL 2024.01+dfsg-1ubuntu1 (Feb 01 2024 - 13:52:26 +0000)
Trying to boot from MMC1

U-Boot 2024.01+dfsg-1ubuntu1 (Feb 01 2024 - 13:52:26 +0000)

CPU: rv64imafdc
Model: SiFive HiFive Unmatched A00
DRAM: 16 GiB
__wrpll_calc_filter_range: post-divider reference freq out of range: 4294967295__wrpll_calc_filter_range: post-divider reference freq out of range: 4294967295__wrpll_calc_filter_range: post-divider reference freq out of range: 4294967295__wrpll_calc_filter_range: post-divider reference freq out of range: 4294967295initcall failed at call 00000000fff5432e (err=-34)
### ERROR ### Please RESET the board ###

Changed in u-boot (Debian):
status: Unknown → Confirmed
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

When SPL loads u-boot.itb it places the device-tree directly behind the image. This results in the BSS section overlapping with the device-tree.

While on RISC-V for SPL the bss section is zeroed out, this is not done in main U-Boot.

When the debug-uart is initialized a static variable is written, which results in corrupting the device-tree.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "u-boot-2024.01+dfsg-1ubuntu1..2024.01+dfsg-1ubuntu2.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Heinrich Schuchardt (xypron) wrote (last edit ):

u-boot - 2024.01+dfsg-1ubuntu2 is available in ppa:xypron/merge-from-debian

Changed in u-boot (Ubuntu):
assignee: Heinrich Schuchardt (xypron) → nobody
Revision history for this message
Dave Jones (waveform) wrote :

I'll take a look at this after the ubuntu meeting

Changed in u-boot (Ubuntu):
assignee: nobody → Dave Jones (waveform)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package u-boot - 2024.01+dfsg-1ubuntu2

---------------
u-boot (2024.01+dfsg-1ubuntu2) noble; urgency=medium

  * Fix device-tree corruption on RISC-V boards (LP: #2054091)
    + d/p/dbcn_serial_use_data_section.patch

 -- Heinrich Schuchardt <email address hidden> Wed, 21 Feb 2024 01:58:55 +0100

Changed in u-boot (Ubuntu):
status: New → Fix Released
Revision history for this message
Heinrich Schuchardt (xypron) wrote :
Changed in u-boot (Debian):
status: Confirmed → Fix Committed
Changed in u-boot (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.