sio => uart: one port is gone

Andriy Gapon avg at icyb.net.ua
Mon Sep 15 21:10:27 UTC 2008


on 15/09/2008 22:22 John Baldwin said the following:
> The problem is that right now we ship with acpi.ko as a module by default and 
> have the loader auto-load acpi.ko IFF the machine supports ACPI.  Considering 
> how cheap a bus attachment is, I find this argument rather rediculous.  If 
> you are building uart into the kernel on i386, just always include the acpi 
> attachment.  Other drivers give a more sane user experience.  GENERIC should 
> DTRT out-of-the-box, for example.

John,

thank you for the idea, the following trivial patch did it for me.

--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1080,7 +1080,7 @@ dev/twe/twe.c			optional twe
  dev/twe/twe_freebsd.c		optional twe
  dev/tx/if_tx.c			optional tx
  dev/txp/if_txp.c		optional txp
-dev/uart/uart_bus_acpi.c	optional	uart acpi
+dev/uart/uart_bus_acpi.c	optional	uart
  #dev/uart/uart_bus_cbus.c	optional	uart cbus
  dev/uart/uart_bus_ebus.c	optional	uart ebus
  dev/uart/uart_bus_isa.c		optional	uart isa

dmesg:
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
uart1: <16550 or compatible> port 0x2e8-0x2ef irq 3 on acpi0
uart1: [FILTER]

-- 
Andriy Gapon


More information about the freebsd-current mailing list