Bug 257593 - Restructuring of sys/arm64/conf/GENERIC causes lost of ethernet interface (patch included)
Summary: Restructuring of sys/arm64/conf/GENERIC causes lost of ethernet interface (pa...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: arm64 Any
: --- Affects Some People
Assignee: Emmanuel Vadot
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-03 16:31 UTC by rz-rpi03
Modified: 2021-08-05 16:13 UTC (History)
1 user (show)

See Also:


Attachments
Patch to add the missing devices. (373 bytes, patch)
2021-08-03 16:31 UTC, rz-rpi03
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rz-rpi03 2021-08-03 16:31:13 UTC
Created attachment 226915 [details]
Patch to add the missing devices.

Hi,

at the restructuring of the /sys/arm64/conf directory

https://cgit.freebsd.org/src/commit/sys/arm64/conf/GENERIC?id=0f2c633164a6af70db8a8ecf4f70f61d241e7529

D30474

the GENERIC configuration lost its ability to detect the ethernet interface
on some RPi models at least.

I traced it down to missing devices smsc and dwcotg.

As dwcotg seems not to be build as a kernel module,
kldload if_smsc does not bring the ethernet interface back.

My suggested patch contains the minimal additions for the std.broadcom file
as I found this regression on a RPi.

Regards, Ralf
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-08-05 11:18:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=589951c76a3ff5d3b1105af03d66e676c83dbffc

commit 589951c76a3ff5d3b1105af03d66e676c83dbffc
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2021-08-05 11:16:23 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2021-08-05 11:16:23 +0000

    arm64: conf: std.broadcom: Add dwcotg and smsc

    Add the dwcotg and smsc usb to ethernet driver to std.broadcom.
    Those are used in RPI3

    PR:   257593

 sys/arm64/conf/std.broadcom | 4 ++++
 1 file changed, 4 insertions(+)
Comment 2 rz-rpi03 2021-08-05 16:13:33 UTC
(In reply to commit-hook from comment #1)
Just booted a kernel with the commited patch.
Fixes the regression as well, as expected.
Thank you.

Ralf