Scrolling the terminal is slow on -current
channel 1 ignored (disabled) usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 wsmouse1 at pms0 mux 0 pms0: Synaptics touchpad, firmware 6.2 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uhidev0 at uhub1 port 1 configuration 1 interface 0 "vendor 0x04fc USB Multi-Smart Mouse" rev 2.00/16.11 addr 2 uhidev0: iclass 3/1, 3 report ids ums0 at uhidev0 reportid 1: 5 buttons, Z dir wsmouse2 at ums0 mux 0 uhid0 at uhidev0 reportid 3: input=2, output=0, feature=0 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets root on wd0a (a1b91d15922da01d.a) swap on wd0b dump on wd0b -- Michal Mazurek
"Abort trap" when pledge()d and compiled with -pg
When compiling a program that calls pledge(2) with "-pg" the resulting binary will execute seemingly fine, but at the very end die with: Abort trap (core dumped) I think the problem lies in a call to profil(2). Is this a bug or a feature? -- Michal Mazurek
Absurdly high temperature reading - system shutdown
After moving my old laptop around I got home, booted it and got a very distressing message: messages.2.gz:Jun 14 22:40:09 hopek /bsd: acpitz2: Critical temperature 4938C (52112K), shutting down Perhaps some dust moved around, or a cable disconnected. Unfortunately, the system shut down before it booted. I booted bsd.rd, read some manpages and booted with -c 'disable acpitz' - everything worked fine. I attach a diff to only shutdown if the temperature is below 2000C. If it's above then it's too late to shut down anyway :) BTW, for no apparent reason my laptop started working fine again. Index: acpitz.c === RCS file: /cvs/src/sys/dev/acpi/acpitz.c,v retrieving revision 1.43 diff -u -r1.43 acpitz.c --- acpitz.c15 Jun 2011 00:15:54 - 1.43 +++ acpitz.c16 Jun 2011 15:09:14 - @@ -326,11 +326,17 @@ } /* critical trip points */ if (sc->sc_crt != -1 && sc->sc_crt <= sc->sc_tmp) { - /* do critical shutdown */ - printf("%s: critical temperature exceeded %dC (%dK), shutting " - "down\n", - DEVNAME(sc), KTOC(sc->sc_tmp), sc->sc_tmp); - psignal(initproc, SIGUSR2); + if (KTOC(sc->sc_tmp) > 2000) { + printf("%s: absurdly high temperature %dC (%dK), " + "doing nothing\n", + DEVNAME(sc), KTOC(sc->sc_tmp), sc->sc_tmp); + } else { + /* do critical shutdown */ + printf("%s: critical temperature exceeded %dC (%dK), " + "shutting down\n", + DEVNAME(sc), KTOC(sc->sc_tmp), sc->sc_tmp); + psignal(initproc, SIGUSR2); + } } if (sc->sc_hot != -1 && sc->sc_hot <= sc->sc_tmp) { printf("%s: _HOT temperature\n", DEVNAME(sc)); -- Michal Mazurek
Re: Absurdly high temperature reading - system shutdown
It was pointed out to me to attach acpidump and dmesg. Kernel is custom built to include bce. -- Michal Mazurek [demime 1.01d removed an attachment of type application/octet-stream] [demime 1.01d removed an attachment of type application/octet-stream] [demime 1.01d removed an attachment of type application/octet-stream] [demime 1.01d removed an attachment of type application/octet-stream] [demime 1.01d removed an attachment of type application/octet-stream] RSD PTR: Checksum=172, OEMID=HP, RsdtAddress=0x1f7efc84 RSDT: Length=48, Revision=1, Checksum=85, OEMID=HP, OEM Table ID=099C, OEM Revision=0x21110520, Creator ID=HP, Creator Revision=0x1 Entries={ 0x1f7efc00, 0x1f7efcb4, 0x1f7efd10 } DSDT=0x1f7efd4c INT_MODEL=PIC SCI_INT=9 SMI_CMD=0xb2, ACPI_ENABLE=0xf1, ACPI_DISABLE=0xf0, S4BIOS_REQ=0xf2 PM1a_EVT_BLK=0x1000-0x1003 PM1a_CNT_BLK=0x1004-0x1005 PM2_CNT_BLK=0x1020-0x1020 PM2_TMR_BLK=0x1008-0x100b PM2_GPE0_BLK=0x1028-0x102f P_LVL2_LAT=2ms, P_LVL3_LAT=38ms FLUSH_SIZE=0, FLUSH_STRIDE=0 DUTY_OFFSET=1, DUTY_WIDTH=3 DAY_ALRM=13, MON_ALRM=0, CENTURY=50 Flags={WBINVD,PROC_C1,SLP_BUTTON,RTC_S4} DSDT: Length=32088, Revision=1, Checksum=211, OEMID=HP, OEM Table ID=DAU00, OEM Revision=0x1, Creator ID=MSFT, Creator Revision=0x10e APIC: Length=90, Revision=1, Checksum=66, OEMID=HP, OEM Table ID=099C, OEM Revision=0x1, Creator ID=HP, Creator Revision=0x1 MCFG: Length=60, Revision=1, Checksum=112, OEMID=HP, OEM Table ID=099C, OEM Revision=0x1, Creator ID=HP, Creator Revision=0x1 OpenBSD 4.9-stable (HOPEK) #0: Sun May 1 19:13:58 CEST 2011 r...@hopek.jasminek.net:/usr/src/sys/arch/i386/compile/HOPEK cpu0: Intel(R) Celeron(R) M processor 1.40GHz ("GenuineIntel" 686-class) 1.40 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF real mem = 527855616 (503MB) avail mem = 509075456 (485MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/21/05, BIOS32 rev. 0 @ 0xf, SMBIOS rev. 2.3 @ 0xfc68f (23 entries) bios0: vendor Hewlett-Packard version "68DTD Ver. F.0C" date 11/21/2005 bios0: Hewlett-Packard HP Compaq nx6110 (PY536ES#AKD) acpi0 at bios0: rev 0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG acpi0: wakeup devices C068(S5) C0BB(S3) C0C2(S3) C0C3(S3) C0C4(S3) C0C5(S3) C0CC(S5) C1CD(S5) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfec01000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 99MHz ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 1 acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpiprt0 at acpi0: bus 2 (C068) acpiprt1 at acpi0: bus 0 (C002) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1 acpipwrres0 at acpi0: C1A6 acpipwrres1 at acpi0: C1AE acpipwrres2 at acpi0: C1B5 acpipwrres3 at acpi0: C1C5 acpipwrres4 at acpi0: C244 acpipwrres5 at acpi0: C245 acpipwrres6 at acpi0: C246 acpipwrres7 at acpi0: C247 acpitz0 at acpi0: critical temperature 102 degC acpitz1 at acpi0: critical temperature 103 degC acpitz2 at acpi0: critical temperature 102 degC acpitz3 at acpi0: critical temperature 110 degC acpibat0 at acpi0: C174 model "Primary" serial 03121 2005/12/21 type LIon oem "Hewlett-Packard" acpibat1 at acpi0: C173 not present acpiac0 at acpi0: AC unit online acpibtn0 at acpi0: C1E8 acpibtn1 at acpi0: C1E9 acpivideo0 at acpi0: C055 acpivout0 at acpivideo0: C103 acpivout1 at acpivideo0: C104 acpivout2 at acpivideo0: C105 acpivout3 at acpivideo0: C106 bios0: ROM list: 0xc/0x1! pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82915GM Host" rev 0x03 vga1 at pci0 dev 2 function 0 "Intel 82915GM Video" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xc000, size 0x1000 inteldrm0 at vga1: apic 1 int 16 (irq 11) drm0 at inteldrm0 "Intel 82915GM Video" rev 0x03 at pci0 dev 2 function 1 not configured uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: apic 1 int 23 (irq 11) uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: apic 1 int 17 (irq 10) uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: apic 1 int 18 (irq 10) uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: apic 1 int 19 (irq 10) ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: apic 1 int 23 (irq 11) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb0 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd3 pci1 at ppb0 bus
Re: man page sources?
On Sun, Oct 23, 2011 at 02:14:02PM +0200, Ingo Schwarze wrote: > I committed build system changes to install source manuals > and no longer install formatted manuals from 5.0 onwards. This is nice, now I can do something like this in /etc/man.conf: < _build.[1-9n] /usr/bin/mandoc %s > _build.[1-9n] /usr/bin/mandoc -Owidth=`stty size | > awk '{print $2 - 2}'` %s to have the manpage fit my display. Especially usefull if I have split screen in a tiling window manager, and the terminals are smaller than 80 columns. -- Michal Mazurek
alix2d2 LM86, no hw.sensors
I have an alix2d2 running OpenBSD 5.0. There are no hw.sensors. The producer says there is an LM86 on board, which is supported by the maxtmp driver. It appears the driver is present in generic. I tried starting sensorsd but got: daemon:Feb 17 13:12:04 T1 sensorsd[10445]: startup, system has 0 sensors How can I read the temperature of my alix2d2 running OpenBSD 5.0? [15:59:ttyp1][root@T3:~:1]$ sysctl hw hw.machine=i386 hw.model=Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) hw.ncpu=1 hw.byteorder=1234 hw.pagesize=4096 hw.disknames=wd0:c8fc559b0e991404 hw.diskcount=1 hw.cpuspeed=499 hw.physmem=267976704 hw.usermem=267964416 hw.ncpufound=1 hw.allowpowerdown=1 [15:59:ttyp1][root@T3:~:2]$ uname -a OpenBSD T3.nmi 5.0 GENERIC.MP#59 i386 dmesg: OpenBSD 5.0 (GENERIC.MP) #59: Wed Aug 17 10:19:44 MDT 2011 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 MHz cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX real mem = 267976704 (255MB) avail mem = 253521920 (241MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/05/08, BIOS32 rev. 0 @ 0xfd088 pcibios0 at bios0: rev 2.1 @ 0xf/0x1 pcibios0: pcibios_get_intr_routing - function not supported pcibios0: PCI IRQ Routing information unavailable. pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xe/0xa800 cpu0 at mainbus0: (uniprocessor) pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33 glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10, address 00:0d:b9:25:8f:ec ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr1 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 15, address 00:0d:b9:25:8f:ed ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit 3579545Hz timer, watchdog, gpio gpio0 at glxpcib0: 32 pins pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: wd0: 1-sector PIO, LBA48, 3815MB, 7813120 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 12, version 1.0, legacy support ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 12 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1 isa0 at glxpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1 mtrr: K6-family MTRR support (2 registers) nvram: invalid checksum vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (c8fc559b0e991404.a) swap on wd0b dump on wd0b -- Michal Mazurek
Re: alix2d2 LM86, no hw.sensors
On Sun, Feb 19, 2012 at 01:12:13PM +0100, Mike Belopuhov wrote: > and i forgot to mention that kernel config has to be patched too. > thanks to shadchin@ for reminding. It didn't work, here is the dmesg: [15:19:ttyp0][root@T3:~:5]$ sysctl hw hw.machine=i386 hw.model=Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) hw.ncpu=1 hw.byteorder=1234 hw.pagesize=4096 hw.disknames=wd0:c8fc559b0e991404 hw.diskcount=1 hw.cpuspeed=499 hw.physmem=267976704 hw.usermem=267964416 hw.ncpufound=1 hw.allowpowerdown=1 OpenBSD 5.0 (GENERIC.MP) #0: Mon Feb 20 09:41:29 CET 2012 r...@t3.nmi:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 MHz cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX real mem = 267976704 (255MB) avail mem = 253517824 (241MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/05/08, BIOS32 rev. 0 @ 0xfd088 pcibios0 at bios0: rev 2.1 @ 0xf/0x1 pcibios0: pcibios_get_intr_routing - function not supported pcibios0: PCI IRQ Routing information unavailable. pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xe/0xa800 cpu0 at mainbus0: (uniprocessor) pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33 glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10, address 00:0d:b9:25:8f:ec ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr1 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 15, address 00:0d:b9:25:8f:ed ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit 3579545Hz timer, watchdog, gpio, i2c freq=0x7f gpio0 at glxpcib0: 32 pins iic0 at glxpcib0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 glxpcib0: negative ack, flags=0 pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: wd0: 1-sector PIO, LBA48, 3815MB, 7813120 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 12, version 1.0, legacy support ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 12 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1 isa0 at glxpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1 mtrr: K6-family MTRR support (2 registers) nvram: invalid checksum vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (c8fc559b0e991404.a) swap on wd0b dump on wd0b clock: unknown CMOS layout -- Michal Mazurek
Installing OpenBSD on a TS-412 Turbo NAS
Has anybody successfully installed OpenBSD on a QNAP TS-412 Turbo NAS? I'm looking for a NAS that I can keep in my room, and would like to run OpenBSD. -- Michal Mazurek