[SRU] drivers/usb/cdns3 module path missing

Bug #2140344 reported by Heinrich Schuchardt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Status tracked in Resolute
Noble
Fix Released
Undecided
Heinrich Schuchardt
Questing
Invalid
Undecided
Unassigned
Resolute
Invalid
Undecided
Unassigned

Bug Description

[ Impact ]

The RISC-V StarFive JH7110 SoC uses the drivers in drivers/usb/cdns3 for booting from USB. Some JH7110 have no SD-card (e.g. Milk-V Mars CM eMMC). We need USB support for installation.

[ Test Plan ]

Check that on riscv64 the following modules are included into the initrd when running update-initramfs:

* cdns3_starfive
* cdns_usb_common
* cdns3

Check that booting from USB on a JH7110 board is possible with the initrd.

[ Where problems could occur ]

If there were a syntax error, creation of initrds might fail.
The addition of further drivers increases the initrd size.
Module dependencies for the cdns3 driver might be missing in the initrd.

[ Other Info ]

n/a

Related branches

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Dracut already has this line:

modules.d/70kernel-modules/module-setup.sh:96:
                "=drivers/usb/cdns3" \

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

drivers/usb/cdns3 is only missing in noble. It is already available in questing and resolute.

Changed in initramfs-tools (Ubuntu Noble):
assignee: nobody → Heinrich Schuchardt (xypron)
Changed in initramfs-tools (Ubuntu Questing):
assignee: nobody → Heinrich Schuchardt (xypron)
Changed in initramfs-tools (Ubuntu Resolute):
assignee: nobody → Heinrich Schuchardt (xypron)
Changed in initramfs-tools (Ubuntu Questing):
status: New → Fix Released
status: Fix Released → Invalid
Changed in initramfs-tools (Ubuntu Resolute):
status: New → Invalid
Changed in initramfs-tools (Ubuntu Noble):
milestone: none → ubuntu-24.04.4
Changed in initramfs-tools (Ubuntu Noble):
status: New → In Progress
description: updated
Changed in initramfs-tools (Ubuntu Resolute):
assignee: Heinrich Schuchardt (xypron) → nobody
Changed in initramfs-tools (Ubuntu Questing):
assignee: Heinrich Schuchardt (xypron) → nobody
Changed in initramfs-tools (Ubuntu Noble):
assignee: Heinrich Schuchardt (xypron) → nobody
Dave Jones (waveform)
summary: - drivers/usb/cdns3 module path missing
+ [SRU] drivers/usb/cdns3 module path missing
Revision history for this message
Dave Jones (waveform) wrote :

Looks good, sponsoring for noble:

Uploading initramfs-tools_0.142ubuntu25.8.dsc
Uploading initramfs-tools_0.142ubuntu25.8.tar.xz
Uploading initramfs-tools_0.142ubuntu25.8_source.buildinfo
Uploading initramfs-tools_0.142ubuntu25.8_source.changes

Unfortunately I had to rebase on noble-updates (because the current version in noble-proposed branch was rejected during SRU validation), and double-bump the version number as another rejected SRU had already taken 25.7 too. This means the corresponding merge proposal will probably *not* be marked merged, but the proposed changes have nonetheless been sponsored.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Note that these drivers will also be added for other arches:

                        case "$DPKG_ARCH" in
                        arm64|armel|armhf|riscv64)
...
+ modules="$modules =drivers/usb/cdns3"

Can we have something in the test plan to cover arm64 and armhf, looking for regressions?

Changed in initramfs-tools (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Please test proposed package

Hello Heinrich, or anyone else affected,

Accepted initramfs-tools into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.142ubuntu25.8 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Benjamin Drung (bdrung) wrote :

We should check the autopkgtest results to be green.

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (initramfs-tools/0.142ubuntu25.8)

All autopkgtests for the newly accepted initramfs-tools (0.142ubuntu25.8) for noble have finished running.
The following regressions have been reported in tests triggered by the package:

initramfs-tools/0.142ubuntu25.8 (ppc64el)
kdump-tools/1:1.10.3ubuntu2 (amd64, arm64)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/noble/update_excuses.html#initramfs-tools

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Skia (skia)
Changed in initramfs-tools (Ubuntu Noble):
assignee: nobody → Heinrich Schuchardt (xypron)
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

With initramfs-tools (0.142ubuntu25.8) the following files are included in the initrd on riscv64:

./usr/lib/modules/6.17.0-14-generic/kernel/drivers/usb/cdns3
./usr/lib/modules/6.17.0-14-generic/kernel/drivers/usb/cdns3/cdns3-pci-wrap.ko.zst
./usr/lib/modules/6.17.0-14-generic/kernel/drivers/usb/cdns3/cdns3-starfive.ko.zst
./usr/lib/modules/6.17.0-14-generic/kernel/drivers/usb/cdns3/cdns-usb-common.ko.zst
./usr/lib/modules/6.17.0-14-generic/kernel/drivers/usb/cdns3/cdnsp-udc-pci.ko.zst
./usr/lib/modules/6.17.0-14-generic/kernel/drivers/usb/cdns3/cdns3.ko.zst

The Milk-V Mars CM Lite is able to boot from USB.

tags: added: verification-done verification-done-noble
removed: verification-needed verification-needed-noble
Revision history for this message
Julian Andres Klode (juliank) wrote : Update Released

The verification of the Stable Release Update for initramfs-tools has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.142ubuntu25.8

---------------
initramfs-tools (0.142ubuntu25.8) noble; urgency=medium

  * Add missing USB drivers for StarFive JH7110 SoC (LP: #2140344)

 -- Heinrich Schuchardt <email address hidden> Wed, 04 Feb 2026 18:01:59 +0100

Changed in initramfs-tools (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote :
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.