acpiasus(4) not attached with EeePC 1000H on OpenBSD-current

2016-07-29 Thread Dominique Goncalves
Hi,

My EeePC runs OpenBSD-current and works good. Since I updated the bios
to the latest version, some hotkeys are not working as before.
wireless and brightness hotkeys are working. standby and volume are
not working.

Any help is appreciated, let me know if you need more information.

Regards

$ dmesg
OpenBSD 6.0 (GENERIC.MP) #1992: Tue Jul 26 12:52:55 MDT 2016
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N270 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR
real mem  = 1064452096 (1015MB)
avail mem = 1031368704 (983MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 10/21/09, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev.
2.5 @ 0xf0720 (30 entries)
bios0: vendor American Megatrends Inc. version "2204" date 10/21/2009
bios0: ASUSTeK Computer INC. 1000H
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT
acpi0: wakeup devices P0P2(S4) P0P1(S4) HDAC(S4) P0P4(S4) P0P8(S4)
P0P5(S4) P0P7(S4) P0P9(S4) P0P6(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 132MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N270 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P5)
acpiprt2 at acpi0: bus 1 (P0P7)
acpiprt3 at acpi0: bus -1 (P0P6)
acpiec0 at acpi0
acpicpu0 at acpi0: !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpitz0 at acpi0: critical temperature is 85 degC
"PNP0303" at acpi0 not configured
"SYN0A04" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "1000H" serial   type LION oem "ASUS"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: PWRB
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: LCDD
bios0: ROM list: 0xc/0xec00!
cpu0: Enhanced SpeedStep 1596 MHz: speeds: 1600, 1333, 1067, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0: apic 2 int 16
error: [drm:pid0:drm_edid_block_valid] *ERROR* EDID checksum is
invalid, remainder is 253
Raw EDID:

00 ff ff ff ff ff ff 00  22 64 e9 03 f2 0a 01 00
12 12 01 03 80 16 0d 78  0a 80 36 9a 5e 5d 91 28
20 4f 54 00 00 00 01 01  01 01 01 01 01 01 01 01
01 01 01 01 01 01 94 11  00 b0 40 58 19 20 35 23
45 00 dc 81 00 00 00 19  00 00 00 fd 00 37 41 22
29 05 00 0a 20 20 20 20  20 20 00 00 00 fc 00 48
53 44 31 30 30 49 46 57  31 0a 20 20 00 00 00 10
00 0a 20 20 20 20 20 20  20 20 20 20 20 20 00 81
error: [drm:pid0:drm_edid_block_valid] *ERROR* EDID checksum is
invalid, remainder is 253
Raw EDID:

00 ff ff ff ff ff ff 00  22 64 e9 03 f2 0a 01 00
12 12 01 03 80 16 0d 78  0a 80 36 9a 5e 5d 91 28
20 4f 54 00 00 00 01 01  01 01 01 01 01 01 01 01
01 01 01 01 01 01 94 11  00 b0 40 58 19 20 35 23
45 00 dc 81 00 00 00 19  00 00 00 fd 00 37 41 22
29 05 00 0a 20 20 20 20  20 20 00 00 00 fc 00 48
53 44 31 30 30 49 46 57  31 0a 20 20 00 00 00 10
00 0a 20 20 20 20 20 20  20 20 20 20 20 20 00 81
error: [drm:pid0:drm_edid_block_valid] *ERROR* EDID checksum is
invalid, remainder is 253
Raw EDID:

00 ff ff ff ff ff ff 00  22 64 e9 03 f2 0a 01 00
12 12 01 03 80 16 0d 78  0a 80 36 9a 5e 5d 91 28
20 4f 54 00 00 00 01 01  01 01 01 01 01 01 01 01
01 01 01 01 01 01 94 11  00 b0 40 58 19 20 35 23
45 00 dc 81 00 00 00 19  00 00 00 fd 00 37 41 22
29 05 00 0a 20 20 20 20  20 20 00 00 00 fc 00 48
53 44 31 30 30 49 46 57  31 0a 20 20 00 00 00 10
00 0a 20 20 20 20 20 20  20 20 20 20 20 20 00 81
error: [drm:pid0:drm_edid_block_valid] *ERROR* EDID checksum is
invalid, remainder is 253
Raw EDID:

00 ff ff ff ff ff ff 00  22 64 e9 03 f2 0a 01 00
12 12 01 03 80 16 0d 78  0a 80 36 9a 5e 5d 91 28
20 4f 54 00 00 00 01 01  01 01 01 01 01 01 01 01
01 01 01 01 01 01 94 11  00 b0 40 58 19 20 35 23
45 00 dc 81 00 00 00 19  00 00 00 fd 00 37 41 22
29 05 00 0a 20 20 20 20  20 20 00 00 00 fc 00 48
53 44 31 30 30 49 46 57  31 0a 20 20 00 00 00 10
00 0a 20 20 

dhcpd and synchronisation

2010-02-15 Thread Dominique Goncalves
Hello,

I've installed two OpenBSD 4.6 servers with dhcpd and synchronisation
option (server1  server2). So far everything works, leases are sync
between servers.

If I shutdown server1, server2 will give address to new computers but
when server1 will be up it will not have these new leases. If this
happens, It may be duplicate IP addresses.

Is there a way to keep in sync leases when a server is down then up?


server1:
# cat /etc/hostname.vr0
inet 192.168.42.251 255.255.255.0 192.168.42.255
# grep dhcpd /etc/rc.conf.local
dhcpd_flags= -y 192.168.42.251 -Y 192.168.42.252 vr0 

server2:
# cat /etc/hostname.vr0
inet 192.168.42.252 255.255.255.0 192.168.42.255
# grep dhcpd /etc/rc.conf.local
dhcpd_flags= -y 192.168.42.252 -Y 192.168.42.251 vr0 

dhcpd.conf is the same in server1 and server2

TIA,
Regards.

-- 
There's this old saying: Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life.



Re: panic in netboot for soekris 4801

2007-05-05 Thread Dominique Goncalves

Hi,

On 5/5/07, Peter Hessler [EMAIL PROTECTED] wrote:

I have a soekris 4801 that I am trying to reinstall.  It boots an older
-current just fine, but I need to replace the drive as well.  When I
pxeboot 4.1-release, or the latest snapshot, I get the same error.
Dmesg (via script) included.


POST: 0123456789bcefghipajklnoq,,,tvwxy
comBIOS ver. 1.24  20040312  Copyright (C) 2000-2004 Soekris
Engineering.

net4801

 CPU Geode 266 Mhz   Mbyte
Memory 0128

Pri Mas  GS-Magicstor 1022C  LBA Xlt 520-128-63  2097 Mbyte

PXE-M00: BootManage UNDI, PXE-2.0 (build 082)

Slot   Vend Dev  ClassRev Cmd  Stat CL LT HT  Base1Base2   Int
---
0:00:0 1078 0001 0600 0107 0280 00 00 00   00
0:06:0 100B 0020 0200 0107 0290 00 3F 00 E101 A000 10
0:07:0 100B 0020 0200 0107 0290 00 3F 00 E201 A0001000 10
0:08:0 100B 0020 0200 0107 0290 00 3F 00 E301 A0002000 10
0:18:2 100B 0502 01018001 0005 0280 00 00 00   00
0:19:0 0E11 A0F8 0C031008 0117 0280 08 38 00 A0003000  11


comBIOS Monitor.   Press ? for help.

 boot F0

BootManage UNDI, PXE-2.0 (build 082)
BootManage PXE-2.0 PROM 1.0, NATSEC 1.0, SDK 3.0/082 (OEM52)
Copyright (C) 1989,2000 bootix Technology GmbH, D-41466 Neuss.
PXE Software Copyright (C) 1997, 1998, 1999, 2000 Intel Corporation.
Licensed to National Semiconductor

CLIENT MAC ADDR: 00 00 24 C2 4A 24.
DHCP. CLIENT IP: 209.204.157.106  MASK: 255.255.255.240  DHCP IP:
209.204.157.98
GATEWAY IP: 209.204.157.98
TFTP.
TFTP.|probing: pc0 com0 com1 pci pxe![2.1] mem[639K 127M a20=on]
 disk: hd0+
 net: mac 00:00:24:c2:4a:24, ip 209.204.157.106, server 209.204.157.98
  OpenBSD/i386 PXEBOOT 1.12
 switching console to com0
  OpenBSD/i386 PXEBOOT 1.12

 com0: 9600 baud
 booting tftp:bsd.rd: | 4704852+742904 [52+173344+158814]=0x583374
 entry point at 0x200120J
 Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
 Copyright (c) 1995-2007 OpenBSD. All rights reserved.
http://www.OpenBSD.org

 OpenBSD 4.1-current (RAMDISK_CD) #314: Fri May  4 02:51:50 MDT 2007
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
 cpu0: Geode(TM) Integrated Processor by National Semi (Geode by NSC
586-class) 267 MHz
 cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
 cpu0: TSC disabled
 real mem  = 133787648 (130652K)
 avail mem = 115912704 (113196K)
 using 1663 buffers containing 6811648 bytes (6652K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 20/40/12, BIOS32 rev. 0 @ 0xf7840
 pcibios0 at bios0: rev 2.0 @ 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: 0xc8000/0xa000
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 0 function 0 Cyrix GXm PCI rev 0x00
 sis0 at pci0 dev 6 function 0 NS DP83815 10/100 rev 0x00, DP83816A:
irq 10, address 00:00:24:c2:4a:24
 nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
 sis1 at pci0 dev 7 function 0 NS DP83815 10/100 rev 0x00, DP83816A:
irq 10, address 00:00:24:c2:4a:25
 nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
 sis2 at pci0 dev 8 function 0 NS DP83815 10/100 rev 0x00, DP83816A:
irq 10, address 00:00:24:c2:4a:26
 nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
 gscpcib0 at pci0 dev 18 function 0 NS SC1100 ISA rev 0x00
 NS SC1100 SMI rev 0x00 at pci0 dev 18 function 1 not configured
 pciide0 at pci0 dev 18 function 2 NS SCx200 IDE rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
 wd0 at pciide0 channel 0 drive 0: GS-Magicstor 1022C 23080803
 wd0: 16-sector PIO, LBA, 2047MB, 4194126 sectors
 wd0(pciide0:0:0): using PIO mode 3
 geodesc0 at pci0 dev 18 function 5 NS SC1100 X-Bus rev 0x00: iid 6
revision 3 wdstatus 0
 ohci0 at pci0 dev 19 function 0 Compaq USB OpenHost rev 0x08: irq 11,
version 1.0, legacy support
 isa0 at gscpcib0
 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
 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 pccom0: console
 pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Compaq OHCI root hub, rev 1.00/1.00, addr 1
 uhub0: 3 ports with 3 removable, self powered
 biomask fbe5 netmask ffe5 ttymask ffe7
 rd0: fixed, 3800 blocks
 dkcsum: wd0 matches BIOS drive 0x80
 PXE boot MAC address 00:00:24:c2:4a:24, interface sis0
 uvm_fault(0xd0697240, 0x0, 0, 1) - e
 fatal page fault (6) in supervisor mode
 trap type 6 code 0 eip d02b2321 cs d02f0008 eflags 10246 cr2 30 cpl 0
 panic: trap type 6, code=0, pc=d02b2321
 syncing disks... done
 rebooting...




I can netboot OpenBSD 4.1 

Failover with carp and pfsync issue

2006-11-17 Thread Dominique Goncalves

Hi folks !

I actually trying to set up a failover firewall using carp and pfsync
and I have some troubles to make it work.


Both fw use OpenBSD 4.0/i386

+| WAN/Internet |+
| |  |
|  switch100Mb/s|
| |  |
  fxp0| carp0   |fxp0
 +-+   +-+
 | fw1 |-vr1--vr1-| fw2 |
 +-+   +-+
vr0| carp1   |vr0
| |  |
|  switch100Mb/s|
| |  |
 --+---Shared LAN--+---

ISSUE:

To test the failover between both fw I tried to shutdown iface carp0
then iface carp1 on the master during a download from LAN using FTP:

-step 1: ifconfig carp0 down on fw1, fw2.carp0 become master and
download still goes on.

-step 2: ifconfig carp1 down on fw1, fw2.carp1 become master but download abort.

As both carp interfaces are configured exactly the same way i dont
understand why the test works in one case and not in the other.


CONFIG:

fw1:
pf.conf:
scrub in all
nat on fxp0 from !(fxp0) to any - (fxp0)
pass quick on vr0 proto pfsync
pass quick on { fxp0 , vr1 } proto carp
pass all keep state

hostname.fxp0:
inet 172.17.200.1 255.255.0.0 172.17.255.255

hostname.vr0:
inet 10.0.0.1 255.0.0.0 10.255.255.255

hostname.vr1:
inet 172.16.0.1 255.255.0.0 172.16.255.255

hostname.carp0:
inet 172.17.200.3 255.255.0.0 172.17.255.255 vhid 1 pass root carpdev fxp0

hostname.carp1:
inet 10.0.0.3 255.0.0.0 10.255.255.255 vhid 2 pass toor carpdev vr0

hostname.pfsync0:
syncdev vr1 syncpeer 172.16.0.2 up

ifconfig:
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
inet 127.0.0.1 netmask 0xff00
fxp0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500
lladdr 00:08:c7:0f:5a:19
groups: egress
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::208:c7ff:fe0f:5a19%fxp0 prefixlen 64 scopeid 0x1
inet 172.17.200.1 netmask 0x broadcast 172.17.255.255
vr0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500
lladdr 00:05:5d:5f:f1:64
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::205:5dff:fe5f:f164%vr0 prefixlen 64 scopeid 0x2
inet 10.0.0.1 netmask 0xff00 broadcast 10.255.255.255
vr1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:05:5d:5f:ef:a2
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::205:5dff:fe5f:efa2%vr1 prefixlen 64 scopeid 0x3
inet 172.16.0.1 netmask 0x broadcast 172.16.255.255
pflog0: flags=141UP,RUNNING,PROMISC mtu 33224
pfsync0: flags=41UP,RUNNING mtu 1460
pfsync: syncdev: vr1 syncpeer: 172.16.0.2 maxupd: 128
groups: carp
enc0: flags=0 mtu 1536
carp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:5e:00:01:01
carp: MASTER carpdev fxp0 vhid 1 advbase 1 advskew 0
groups: carp
inet6 fe80::200:5eff:fe00:101%carp0 prefixlen 64 scopeid 0x8
inet 172.17.200.3 netmask 0x broadcast 172.17.255.255
carp1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:5e:00:01:02
carp: MASTER carpdev vr0 vhid 2 advbase 1 advskew 0
groups: carp
inet6 fe80::200:5eff:fe00:102%carp1 prefixlen 64 scopeid 0x9
inet 10.0.0.3 netmask 0xff00 broadcast 10.255.255.255




fw2:
pf.conf:
(same as fw1)

hostname.fxp0:
inet 172.17.200.2 255.255.0.0 172.17.255.255

hostname.vr0:
inet 10.0.0.2 255.0.0.0 10.255.255.255

hostname.vr1:
inet 172.16.0.2 255.255.0.0 172.16.255.255

hostname.carp0:
inet 172.20.200.3 255.255.0.0 172.20.255.255 vhid 1 pass root carpdev
fxp0 advskew 100

hostname.carp1:
inet 10.0.0.3 255.0.0.0 10.255.255.255 vhid 2 pass toor carpdev vr0 advskew 150

hostname.pfsync0:
syncdev vr1 syncpeer 172.16.0.1 up

ifconfig:
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
inet 127.0.0.1 netmask 0xff00
fxp0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500
lladdr 00:50:8b:90:4c:70
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::250:8bff:fe90:4c70%fxp0 prefixlen 64 scopeid 0x1
inet 172.17.200.2 netmask 0x broadcast 172.17.255.255
vr0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500
lladdr 00:05:5d:5f:f1:31
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::205:5dff:fe5f:f131%vr0 

Re: Failover with carp and pfsync issue

2006-11-17 Thread Dominique Goncalves

Hi

On 11/17/06, Camiel Dobbelaar [EMAIL PROTECTED] wrote:


I see one possible flaw in your setup:

On Fri, 17 Nov 2006, Dominique Goncalves wrote:
 fw1:
 pf.conf:
 scrub in all
 nat on fxp0 from !(fxp0) to any - (fxp0)
 pass quick on vr0 proto pfsync

Your pfsync interface is vr1, not vr0.  I tend to use set skip for the
pfsync interface.

Yes you are correct it was my mystake

I made these changes:
set skip on vr1
#pass quick on vr1 proto pfsync
pass quick on { fxp0, vr0 } proto carp
pass all keep state

on both firewall, but it still don't keep state when carp1 on the
master is down


 pass quick on { fxp0 , vr1 } proto carp

So here vr1 should be vr0.

 pass all keep state


By the way, a ping from my laptop from LAN don't stop or time out when
carp1 on fw1 is down.


But you pass everything anyway, so I'm not sure it will fix your problem.


I appreciate your help



--
Cam



Regards.

--
There's this old saying: Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life.



Re: Failover with carp and pfsync issue

2006-11-17 Thread Dominique Goncalves

On 11/17/06, Nelson Murilo [EMAIL PROTECTED] wrote:

Hi,

There are IP on Pfsync interface?


There is no IP address on my pfsync0 interface.


What do you see with tcpdump -i pfsync0 ?


I will try to provide tcpdump on pfsync0 on both firewall.

Thanks.




./nelson -murilo

On Fri, Nov 17, 2006 at 01:23:56PM +0100, Dominique Goncalves wrote:

 I made these changes:
 set skip on vr1
 #pass quick on vr1 proto pfsync
 pass quick on { fxp0, vr0 } proto carp
 pass all keep state

 on both firewall, but it still don't keep state when carp1 on the
 master is down





--
There's this old saying: Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life.