Bug 233861 - [patch] Amazon EC2: Disable floppy fdc0, fd0 and ppc0 devices in loader.conf
Summary: [patch] Amazon EC2: Disable floppy fdc0, fd0 and ppc0 devices in loader.conf
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Some People
Assignee: Colin Percival
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-08 04:52 UTC by James Wright
Modified: 2024-10-13 05:45 UTC (History)
1 user (show)

See Also:


Attachments
ec2.conf patch (840 bytes, patch)
2018-12-08 04:52 UTC, James Wright
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Wright 2018-12-08 04:52:19 UTC
Created attachment 199946 [details]
ec2.conf patch

Disable the floppy devices (fdc0, fd0) and parallel port device (ppc0) on Amazon EC2 instances. They are not present on these machines and output an error on boot (see below);

# dmesg | grep fdc
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: does not respond
device_attach: fdc0 attach returned 6
fdc0: No FDOUT register!

# dmesg | grep ppc
ppc0: cannot reserve I/O port range
Comment 1 James Wright 2018-12-08 11:31:20 UTC
Phabricator Differential;
https://reviews.freebsd.org/D18482
Comment 2 James Wright 2020-11-07 15:08:33 UTC
Reopened (after closing prematurely) as patch was ready to land.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2024-10-13 04:40:11 UTC
^Triage: clean up and fix assignment.
Comment 4 Colin Percival freebsd_committer freebsd_triage 2024-10-13 05:44:11 UTC
Oops, I totally forgot about this.  Thanks Mark for pointing it at me!
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-10-13 05:45:38 UTC
A commit in branch main references this bug:

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

commit a0018c65a7590f10f9552b05a422d4888d0aedc4
Author:     James Wright <james.wright@digital-chaos.com>
AuthorDate: 2024-10-13 05:40:47 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-10-13 05:43:33 +0000

    EC2: Disable floppy and parallel port devices

    PR:     233861
    Reviewed by:    lwhsu, imp
    Differential Revision:  https://reviews.freebsd.org/D18482

 release/tools/ec2.conf | 7 +++++++
 1 file changed, 7 insertions(+)