Current-Users archive

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

Re: How to get into ddb after system is booted?



On Wed, 1 Feb 2012, Manuel Bouyer wrote:

Unfortunately the kernel being booted has wskbd so Ctrl-Alt-ESC does
not work.

I can't see why it doesn't work. I have wskbd too:
wskbd0 at pckbd0: console keyboard
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0

and can enter ddb with Ctrl-Alt-ESC

Hmmm, very odd. When a brand-new 5.99.63 kernel boots, it seems that cnmagic is zero-length.

        # sysctl -x hw.cnmagic
        hw.cnmagic = 00
        #

This is from the single-user shell, right after boot, so I don't know why it doesn't get the same value as from my 5.99.59 system:

        # sysctl -x hw.cnmagic
        hw.cnmagic = 270200
        #

(I don't think there is anything in the config file that would cause this, but I have attached the config just in case.)



-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------
### START CONFIG FILE "TEST"
include "arch/amd64/conf/WHOOPPEE"

# Temporary
options         REALLY_DIRECT
### END CONFIG FILE "TEST"
### (included from "arch/amd64/conf/WHOOPPEE")
###> include    "arch/amd64/conf/std.amd64"
###> 
###> #ident     "GENERIC-$Revision: 1.348 $"
###> ident      "WHOOPPEE (shared) 2012-02-01 14:39:33"
###> 
###> options    INCLUDE_CONFIG_FILE     # embed config file in kernel binary
###> 
###> config             netbsd root on ? type ffs
###> 
###> maxusers   64              # estimated number of users
###> 
###> options    INSECURE        # disable kernel security levels - X needs this
###> options    RTC_OFFSET=0    # hardware clock is this many mins. west of GMT
###> options    NTP             # NTP phase/frequency locked loop
###> options    KTRACE          # system call tracing via ktrace(1)
###> #options   SYSTRACE        # system call vetting via systrace(1)
###> 
###> # Note: SysV IPC parameters could be changed dynamically, see sysctl(8).
###> options    SYSVMSG         # System V-like message queues
###> options    SYSVSEM         # System V-like semaphores
###> options    SYSVSHM         # System V-like memory sharing
###> 
###> options    MODULAR         # new style module(7) framework
###> options    QUOTA           # legacy UFS quotas
###> options    QUOTA2          # new, in-filesystem UFS quotas
###> options    VGA_POST        # in-kernel support for VGA POST
###> options    BUFQ_PRIOCSCAN
###> 
###> options    USERCONF        # userconf(4) support
###> options    SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
###> options    CPU_UCODE       # cpu ucode loading support
###> 
###> # These are provided by modules
###> no options         EXEC_ELF64
###> no options         EXEC_SCRIPT
###> no options         COREDUMP
###> no options         AIO
###> no options         MQUEUE
###> 
###> # Kernel compat options - these need to be built-in for dnetc to work
###> options    COMPAT_40
###> options    COMPAT_50
###> options    COMPAT_BSDPTY
###> 
###> #
###> # Debugging options
###> #
###> 
###> #options   DIAGNOSTIC      # expensive kernel consistency checks
###> #options   DEBUG           # expensive debugging checks/support
###> #options   LOCKDEBUG       # expensive locking checks/support
###> #options   KMEMSTATS       # kernel memory statistics (vmstat -m)
###> 
###> # Because gcc omits the frame pointer for any -O level, the line below
###> # is needed to make backtraces in DDB work.
###> 
###> makeoptions        COPTS="-O2 -fno-omit-frame-pointer"
###> makeoptions        DEBUG="-g"      # compile full symbol table
###> 
###> options    DDB             # in-kernel debugger
###> options    DDB_ONPANIC=2   # see also sysctl(8): `ddb.onpanic'
###> options    DDB_HISTORY_SIZE=512    # enable history editing in DDB
###> options    DDB_COMMANDONENTER="call ddb_vgapost; bt"
###> 
###> #options   KGDB            # remote debugger
###> #options   KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
###> 
###> #
###> # Networking options
###> #
###> pseudo-device      loop                    # network loopback
###> #pseudo-device     ipfilter                # IP filter (firewall) and NAT
###> 
###> options    GATEWAY         # packet forwarding
###> options    INET            # IP + ICMP + TCP + UDP
###> 
###> #
###> # wscons options
###> #
###> pseudo-device      wsmux                   # mouse & keyboard multiplexor
###> pseudo-device      wsfont
###> 
###> options    WSEMUL_VT100            # VT100 / VT220 emulation
###> options    WS_KERNEL_FG=WSCOL_GREEN
###> options    WSDISPLAY_COMPAT_PCVT           # emulate some ioctls
###> options    WSDISPLAY_COMPAT_SYSCONS        # emulate some ioctls
###> options    WSDISPLAY_COMPAT_USL            # VT handling
###> options    WSDISPLAY_COMPAT_RAWKBD         # can get raw scancodes
###> options    PCDISPLAY_SOFTCURSOR
###> options    WSDISPLAY_SCROLLSUPPORT
###> 
###> #
###> # Miscellaneous options
###> #
###> options    PAX_MPROTECT=0          # PaX mprotect(2) restrictions
###> options    PAX_ASLR=0              # PaX Address Space Layout Randomization
###> 
###> options    DKWEDGE_AUTODISCOVER    # Automatically add dk(4) instances
###> options    DKWEDGE_METHOD_GPT      # Supports GPT partitions as wedges
###> 
###> options    ACPI_SCANPCI            # find PCI roots using ACPI
###> 
###> options    WAPBL           # File system journaling support
###> 
###> #
###> # Pseudo-Devices
###> #
###> 
###> # crypto pseudo-devices
###> pseudo-device      crypto                  # /dev/crypto device
###> pseudo-device      swcrypto                # software crypto implementation
###> 
###> # disk/mass storage pseudo-devices
###> pseudo-device      cgd             4       # cryptographic disk devices
###> 
###> # miscellaneous pseudo-devices
###> pseudo-device      pty                     # pseudo-terminals
###> pseudo-device      sequencer       1       # MIDI sequencer
###> pseudo-device      clockctl                # user control of clock 
subsystem
###> pseudo-device      ksyms                   # /dev/ksyms
###> pseudo-device      lockstat                # lock profiling
###> pseudo-device      drvctl                  # userland interface to 
drivers, incl.
###>                                    # autoconf and properties retrieval
###> pseudo-device      swwdog                  # software watchdog timer
###> 
###> #
###> # Common mainbus configuration
###> #
###> mainbus0   at root
###> cpu*               at mainbus?
###> ioapic*            at mainbus?
###> acpi*              at mainbus?
###> pci0               at mainbus? bus 0
###> 
###> # ACPI devices - provided via modules
###> #acpicpu*  at cpu?
###> #acpibut*  at acpi?
###> #acpifan*  at acpi?
###> #acpipmtr* at acpi?                # ACPI Power Meter (experimental)
###> #acpiwdrt* at acpi?                # ACPI Watchdog Resource Table
###> #acpitz*   at acpi?
###> #acpiwmi*  at acpi?
###> #asus*             at acpi?
###> #aibs*             at acpi?
###> #hpet*             at acpi?
###> 
###> # ACPI devices
###> attimer*   at acpi?
###> acpiec*            at acpi?
###> pckbc*             at acpi?
###> com*               at acpi?
###> lpt*               at acpi?
###> pcppi*             at acpi?
###> midi*              at pcppi?
###> sysbeep*   at pcppi?
###> 
###> # USB devices
###> 
###> uhci*              at pci? dev ? function ?
###> ehci*              at pci? dev ? function ?
###> ohci*              at pci? dev ? function ?
###> usb*               at uhci?
###> usb*               at ehci?
###> usb*               at ohci?
###> uhub*              at usb?
###> 
###> uhub*              at uhub? port ?
###> ugen*              at uhub? port ? 
###> uaudio*            at uhub? port ? configuration ?
###> uaudio*            at usbifif?
###> ulpt*              at uhub? port ? configuration ? interface ?
###> umass*             at uhub? port ? configuration ? interface ?
###> uhidev*            at uhub? port ? configuration ? interface ?
###> uhid*              at uhidev? reportid ?
###> ukbd*              at uhidev? reportid ?
###> wskbd*             at ukbd? console ? mux 1
###> ums*               at uhidev? reportid ? 
###> wsmouse*   at ums? mux 0
###> 
###> # Common PCI Configuration
###> 
###> ppb*               at pci? dev ? function ?
###> pci*               at ppb?
###> pchb*              at pci? dev ? function ?
###> pcib*              at pci? dev ? function ?
###> 
###> # Network devices
###> re*                at pci? dev ? function ?        # QUICKY, SPEEDY, 
LIGHTNING, &
###>                                            # ZIPPY
###> wm*                at pci? dev ? function ?        # SCREAMER
###> 
###> # Video
###> vga*               at pci? dev ? function ?
###> 
###> # PS/2 keyboard and mouse
###> # (need this to get sysbeep!)
###> 
###> isa*               at pcib?
###> pckbc*             at isa?
###> pckbd*             at pckbc?
###> wskbd*             at pckbd? mux 1
###> pms*               at pckbc?
###> wsmouse*   at pms? mux 0
###> 
###> wsdisplay0 at vga0 kbdmux 1
###> wsdisplay* at wsemuldisplaydev?
###> 
###> # i2c/SMBus devices
###> 
###> piixpm*            at pci? dev ? function ?
###> iic*               at i2cbus?              # piixpm doesn't support 
rescan, so
###>                                    # modular iic(4) doesn't do anything
###> 
###> ####
###> # The following i2c devices have proper "probe" routines
###> # and won't match unless the right device is at the right
###> # address.
###> #
###> # These have been modularized:
###> #  sdtemp* at addr 0x18 thru 0x1f
###> #  spdmem* at addr 0x50 thru 0x57
###> #
###> # Unknown or unidentified i2c devices
###> #
###> # Addresses 0x30 through 0x33 seem to be related to
###> # DDR3 DIMMs' spdmem Software Write-Protect.
###> #
###> #  xxx     at iic0 addr 0x20       # Lightning and Screamer
###> #  xxx     at iic0 addr 0x21       # Screamer
###> #  xxx     at iic0 addr 0x38       # Lightning and Screamer
###> #  xxx     at iic0 addr 0x69       # Quicky, Speedy, Lightning, and Zippy
###> #
###> ####
###> 
###> # Firewire
###> 
###> fwohci*            at pci? dev ? function ?
###> ieee1394if*        at fwohci?
###> fwip*              at ieee1394if?
###> 
###> # Miscellaneous
###> 
###> audio*             at audiobus?
###> 
###> brgphy*            at mii?
###> igphy*             at mii?
###> makphy*            at mii?
###> rgephy*            at mii?
###> ukphy*             at mii?
###> atapibus*  at atabus?
###> atapibus*  at umass?
###> scsibus*   at umass?
###> wd*                at umass?
###> wd*                at atabus? drive ?
###> cd*                at atapibus? drive ?
###> cd*                at scsibus? target ? lun ?
###> st*                at atapibus? drive ?
###> st*                at scsibus? target ? lun ?
###> sd*                at atapibus? drive ?
###> sd*                at scsibus? target ? lun ?
###> 
###> 
###> # Now provided by modules.
###> #amdtemp*  at pchb?        # XXX
###> #itesio*   at isa? port 0x2e
###> 
###> ipmi*              at mainbus?
###> 
###> #
###> # Machine-specific disk device configuration
###> # We hard-wire all of these to make sure that devices match what is in
###> # /etc/fstab
###> #
###> 
###> # All machines have ahcisata
###> ahcisata0  at pci0 dev 17 function 0
###> 
###> atabus0            at ahcisata0 channel 0
###> atabus1            at ahcisata0 channel 1
###> atabus2            at ahcisata0 channel 2
###> atabus3            at ahcisata0 channel 3
###> atabus4            at ahcisata0 channel 4
###> atabus5            at ahcisata0 channel 5
###> 
###> # SCREAMER and LIGHTNING also have ixpide
###> ixpide0            at pci0 dev 20 function 1
###> atabus6            at ixpide0 channel 0
###> atabus7            at ixpide0 channel 1
###> 
###> # QUICKY, SPEEDY, and ZIPPY also have pciide
###> pciide0            at pci2 dev 0 function ?
###> atabus6            at pciide0 channel 0
###> atabus7            at pciide0 channel 1
###> 
###> # SCREAMER also has jmide
###> jmide0             at pci4 dev 0 function 0
###> ahcisata1  at jmide0
###> atabus8            at ahcisata1 channel 0
###> atabus9            at ahcisata1 channel 1
###> 
###> atabus10   at jmide0 channel 1
###> 
###> wd0                at atabus0  drive 0
###> wd1                at atabus1  drive 0
###> wd2                at atabus2  drive 0
###> wd3                at atabus3  drive 0
###> wd4                at atabus4  drive 0
###> wd5                at atabus5  drive 0
###> wd6                at atabus6  drive 0
###> wd7                at atabus7  drive 0
###> wd8                at atabus8  drive 0
###> wd9                at atabus9  drive 0
###> wd10               at atabus10 drive 0
###> 
###> # SCREAMER runs RAID-1
###> pseudo-device      raid 4
###> options            RAID_AUTOCONFIG
###> 
###> # All systems have radeon video boards, so enable radeondrm (needs agp, 
too)
###> 
###> agp*               at pchb?
###> radeondrm* at drm?
### (end include "arch/amd64/conf/WHOOPPEE")
### (included from "arch/amd64/conf/std.amd64")
###> # $NetBSD: std.amd64,v 1.7 2008/12/11 05:42:18 alc Exp $
###> #
###> # standard, required NetBSD/amd64 'options'
###> 
###> machine amd64 x86
###> include            "conf/std"      # MI standard options
###> 
###> options    CPU_IN_CKSUM
###> options    EXEC_ELF64      # exec ELF binaries
###> options    EXEC_SCRIPT     # exec #! scripts
###> options    MTRR
###> options            MULTIPROCESSOR
###> 
###> mainbus0 at root
###> cpu* at mainbus?
###> ioapic* at mainbus? apid ?
###> 
###> # Atheros HAL options
###> include "external/isc/atheros_hal/conf/std.ath_hal"
### (end include "arch/amd64/conf/std.amd64")
### (included from "conf/std")
###> # $NetBSD: std,v 1.14 2011/11/22 21:25:42 tls Exp $
###> #
###> # standard MI 'options'
###> #
###> # this file is for options which can't be off-by-default for some reasons.
###> # "it's commonly used" is NOT a good reason to enable options here.
###> 
###> # the following options are on-by-default to keep
###> # kernel config file compatibility.
###> options    VMSWAP          # Swap device/file support
###> options    BUFQ_FCFS       # First-come First-serve strategy
###> options    BUFQ_DISKSORT   # Traditional min seek sort strategy
###> options    RFC2292         # Previous version of Adv. Sockets API for IPv6 
###> options    PTRACE          # Include ptrace(2)
###> options    COREDUMP        # allow processes to coredump.
###> options    AIO             # POSIX asynchronous I/O
###> options    MQUEUE          # POSIX message queues
###> 
###> #
###> # Security model.
###> #
###> options    secmodel_bsd44  # Traditional 4.4BSD security model
###> 
###> #
###> # Scheduling algorithm
###> #
###> options    SCHED_4BSD
###> 
###> pseudo-device      cpuctl
###> 
###> #
###> # Kernel entropy pool and random-number generator pseudodevice.
###> # The pseudodevice might stop being "std" when the two are torn
###> # apart some day but the entropy pool itself never will (they are
###> # presently implemented in the same source file)
###> #
###> pseudo-device      rnd
### (end include "conf/std")
### (included from "external/isc/atheros_hal/conf/std.ath_hal")
###> #options ATHHAL_ASSERT
###> #options ATHHAL_DEBUG
###> #options ATHHAL_DEBUG_ALQ
###> 
###> # Atheros HAL Chipset Support
###> #
###> options ATHHAL_AR5210
###> options ATHHAL_AR5211
###> options ATHHAL_AR5212
###> options ATHHAL_AR5311
###> #options ATHHAL_AR5312
###> #options ATHHAL_AR2316
###> #options ATHHAL_AR2317
###> options ATHHAL_AR5416
###> options ATHHAL_AR9280
###> options ATHHAL_AR9285
###> 
###> # Atheros AR5212/AR5312 RF Support
###> #
###> options ATHHAL_RF2316
###> options ATHHAL_RF2317
###> options ATHHAL_RF2413
###> options ATHHAL_RF2425
###> options ATHHAL_RF5111
###> options ATHHAL_RF5112
###> options ATHHAL_RF5413
### (end include "external/isc/atheros_hal/conf/std.ath_hal")


Home | Main Index | Thread Index | Old Index