Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ACPI issue with old Shuttle system



On Sat, Jun 27, 2009 at 12:29PM -0500, Jason White wrote:
>Greetings,
>  I've been trying off and on since 3.0 to run NetBSD on a Shuttle FS40(SS40)
>(Socket A, Athlon XP 2500, SIS 740/961 chipset), and recently tried 5.0.
>With ACPI enabled I get this:
>
>booting hd0a:netbsd
>9810988+423844+615984 [505728+489276]=0xb4e124
>Loading ffs
>Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
>    2006, 2007, 2008
>    The NetBSD Foundation, Inc.  All rights reserved.
>Copyright (c) 1982, 1986, 1989, 1991, 1993
>    The Regents of the University of California.  All rights reserved.
>
>NetBSD 5.0 (GENERIC) #0: Sun Apr 26 18:50:08 UTC 2009
>       
>builds%b6.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-RELEASE/i386/200904260229Z-
>obj/home/builds/ab/netbsd-5-0-RELEASE/src/sys/arch/i386/compile/GENERIC
>total memory = 1019 MB
>avail memory = 990 MB
>    ( )
>mainbus0 (root)
>cpu0 at mainbus0: AMD 686-class, 1833MHz, id 0x6a0
>acpi0 at mainbus0: Intel ACPICA 20080321
>panic: pci_make_tag: mode not configured
>fatal breakpoint trap in supervisor mode
>trap type 1 code 0 eip c053d16c cs 8 eflags 246 cr2 0 ilevel 8
>Stopped in pid 0.1 (system) at  netbsd:breakpoint+0x4:  popl    %ebp

Checking the the value of 'pci_mode' confirmed that something was broken with 
my system's ACPI implementation.

  db{0}> x pci_mode
  netbsd:pci_mode:      0

I tried setting this value to '2' (same panic), then '1'.  To do this, you 
need to boot into the debugger to avoid the kernel panic:

  >boot -d
  [...]
  db{0}> w pci_mode 1
  netbsd:pci_mode               0xffffffff = 0x1
  db{0}> c

After determining that pci_mode=1 worked for my system, I built a custom 
GENERIC kernel and defined PCI_CONF_MODE as '1' using the following kernel 
config file:

  # GENERIC machine description file for Shuttle FS40(SS40).

  include       "arch/i386/conf/GENERIC"

  options       PCI_CONF_MODE=1          # 1 or 2

Using this custom kernel, NetBSD now detects the on-board USB and NIC, plus 
the USB controller and NIC in the PCI slots -- everything works.

Special thanks to Joerg Sonnenberger for his assistance with this issue.

-Jason

-- 
Jason White <jdwhite%menelos.com@localhost>       Jabber: jdwhite(jabber.org)
http://jdwhite.menelos.com/                     jason.d.white(gmail.com)
PGP KeyID: 0x8FCDEB23


Home | Main Index | Thread Index | Old Index