Re: alix install (novice question)

2014-01-12 Thread emigrant
add to /etc/boot.conf

stty com0 38400
set tty com0

and change /etc/ttys

console /usr/libexec/getty std.38400 vt220   on  secure

On 12 Jan 2014, at 05:38, patrick keshishian pkesh...@gmail.com wrote:

 Hi,

 This is my first experience with installing on one of these
 boards. I got today's i386 snapshot (Jan 11, 2014) and installed
 successfully on a CF card.

 After placing the CF in the unit, it seems to boot up fine
 after setting:
 boot stty com0 38400
 boot set tty com0

 However, it stops right before displaying the login prompt:

 switching console to com0
 OpenBSD/i386 BOOT 3.25
 boot
 loadrandom: hd0a:/etc/random.seed
 booting hd0a:/bsd: 9276028+1082796 [72+404624+398274]=0xaa5260
 entry point at 0x200120

 [ using 803384 bytes of bsd ELF symbol table ]
 Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
 Copyright (c) 1995-2014 OpenBSD. All rights reserved.
http://www.OpenBSD.org
 [... full output at eom]
 starting network daemons: sshd sendmail sndiod.
 starting local daemons: cron.
 Sat Jan 11 20:12:23 PST 2014


 it just sits there. Sending it BREAK does nothing.

 Any ideas what I may be doing incorrectly?

 --patrick


 PC Engines ALIX.2 v0.99h
 640 KB Base Memory
 261120 KB Extended Memory

 01F0 Master 848A ULTIMATE CF CARD
 Phys C/H/S 16383/16/63 Log C/H/S 1892/255/63 LBA
 Using drive 0, partition 3.
 Loading.
 probing: pc0 com0 com1 pci mem[640K 255M a20=on]
 disk: hd0+
 OpenBSD/i386 BOOT 3.25
 boot
 loadrandom: hd0a:/etc/random.seed
 booting hd0a:/bsd: 9276028+1082796 [72+404624+398274]=0xaa5260
 entry point at 0x200120
 PC Engines ALIX.2 v0.99h
 640 KB Base Memory
 31744PC Engines ALIX.2 v0.99h
 640 KB Base Memory
 261120 KB Extended Memory

 01F0 Master 848A ULTIMATE CF CARD
 Phys C/H/S 16383/16/63 Log C/H/S 1892/255/63 LBA
 Using drive 0, partition 3.
 Loading.
 probing: pc0 com0 com1 pci mem[640K 255M a20=on]
 disk: hd0+
 OpenBSD/i386 BOOT 3.25
 boot stty com0 38400
 boot set tty com0
 switching console to com0
 OpenBSD/i386 BOOT 3.25
 boot
 loadrandom: hd0a:/etc/random.seed
 booting hd0a:/bsd: 9276028+1082796 [72+404624+398274]=0xaa5260
 entry point at 0x200120

 [ using 803384 bytes of bsd ELF symbol table ]
 Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
 Copyright (c) 1995-2014 OpenBSD. All rights reserved.
http://www.OpenBSD.org

 OpenBSD 5.4-current (GENERIC) #224: Sat Jan 11 00:32:57 MST 2014
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 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,MMXX,3DNOW2,3DNOW
 real mem  = 267943936 (255MB)
 avail mem = 251678720 (240MB)
 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)
 mtrr: K6-family MTRR support (2 registers)
 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:2f:89:e4
 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
 0x004063, model 0x0034
 vr1 at pci0 dev 10 function 0 VIA VT6105M RhineIII rev 0x96: irq 11,
 address 00:0d:b9:2f:89:e5
 ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
 0x004063, model 0x0034
 vr2 at pci0 dev 11 function 0 VIA VT6105M RhineIII rev 0x96: irq 15,
 address 00:0d:b9:2f:89:e6
 ukphy2 at vr2 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
 gpio0 at glxpcib0: 32 pins
 iic0 at glxpcib0
 maxtmp0 at iic0 addr 0x4c: lm86
 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: ULTIMATE CF CARD
 wd0: 1-sector PIO, LBA48, 14847MB, 30408336 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
 

Re: alix install (novice question)

2014-01-12 Thread emigrant
add to /etc/boot.conf

stty com0 38400
set tty com0

and change /etc/ttys

console /usr/libexec/getty std.38400 vt220   on  secure
tty00   /usr/libexec/getty std.9600  unknown off

On 12 Jan 2014, at 05:38, patrick keshishian pkesh...@gmail.com wrote:

 Hi,

 This is my first experience with installing on one of these
 boards. I got today's i386 snapshot (Jan 11, 2014) and installed
 successfully on a CF card.

 After placing the CF in the unit, it seems to boot up fine
 after setting:
 boot stty com0 38400
 boot set tty com0

 However, it stops right before displaying the login prompt:

 switching console to com0
 OpenBSD/i386 BOOT 3.25
 boot
 loadrandom: hd0a:/etc/random.seed
 booting hd0a:/bsd: 9276028+1082796 [72+404624+398274]=0xaa5260
 entry point at 0x200120

 [ using 803384 bytes of bsd ELF symbol table ]
 Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
 Copyright (c) 1995-2014 OpenBSD. All rights reserved.
http://www.OpenBSD.org
 [... full output at eom]
 starting network daemons: sshd sendmail sndiod.
 starting local daemons: cron.
 Sat Jan 11 20:12:23 PST 2014


 it just sits there. Sending it BREAK does nothing.

 Any ideas what I may be doing incorrectly?

 --patrick


 PC Engines ALIX.2 v0.99h
 640 KB Base Memory
 261120 KB Extended Memory

 01F0 Master 848A ULTIMATE CF CARD
 Phys C/H/S 16383/16/63 Log C/H/S 1892/255/63 LBA
 Using drive 0, partition 3.
 Loading.
 probing: pc0 com0 com1 pci mem[640K 255M a20=on]
 disk: hd0+
 OpenBSD/i386 BOOT 3.25
 boot
 loadrandom: hd0a:/etc/random.seed
 booting hd0a:/bsd: 9276028+1082796 [72+404624+398274]=0xaa5260
 entry point at 0x200120
 PC Engines ALIX.2 v0.99h
 640 KB Base Memory
 31744PC Engines ALIX.2 v0.99h
 640 KB Base Memory
 261120 KB Extended Memory

 01F0 Master 848A ULTIMATE CF CARD
 Phys C/H/S 16383/16/63 Log C/H/S 1892/255/63 LBA
 Using drive 0, partition 3.
 Loading.
 probing: pc0 com0 com1 pci mem[640K 255M a20=on]
 disk: hd0+
 OpenBSD/i386 BOOT 3.25
 boot stty com0 38400
 boot set tty com0
 switching console to com0
 OpenBSD/i386 BOOT 3.25
 boot
 loadrandom: hd0a:/etc/random.seed
 booting hd0a:/bsd: 9276028+1082796 [72+404624+398274]=0xaa5260
 entry point at 0x200120

 [ using 803384 bytes of bsd ELF symbol table ]
 Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
 Copyright (c) 1995-2014 OpenBSD. All rights reserved.
http://www.OpenBSD.org

 OpenBSD 5.4-current (GENERIC) #224: Sat Jan 11 00:32:57 MST 2014
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 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,MMXX,3DNOW2,3DNOW
 real mem  = 267943936 (255MB)
 avail mem = 251678720 (240MB)
 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)
 mtrr: K6-family MTRR support (2 registers)
 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:2f:89:e4
 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
 0x004063, model 0x0034
 vr1 at pci0 dev 10 function 0 VIA VT6105M RhineIII rev 0x96: irq 11,
 address 00:0d:b9:2f:89:e5
 ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
 0x004063, model 0x0034
 vr2 at pci0 dev 11 function 0 VIA VT6105M RhineIII rev 0x96: irq 15,
 address 00:0d:b9:2f:89:e6
 ukphy2 at vr2 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
 gpio0 at glxpcib0: 32 pins
 iic0 at glxpcib0
 maxtmp0 at iic0 addr 0x4c: lm86
 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: ULTIMATE CF CARD
 wd0: 1-sector PIO, LBA48, 14847MB, 30408336 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 

Re: relayd filter rewrite?

2014-01-12 Thread Steven M. Caesare
 -Original Message-
 From: Reyk Floeter [mailto:reyk.floe...@googlemail.com] On Behalf Of
Reyk Floeter
 Sent: Saturday, January 11, 2014 10:41 AM
 To: Steven M. Caesare
 Cc: OpenBSD general usage list
 Subject: Re: relayd filter rewrite?
 
 Hi!
 
 On 10.01.2014, at 21:58, Steven M. Caesare scaes...@caesare.com
wrote:
 
  I've just rebuilt my FW as a 5.4 box, and was investigating using
  relayd (rather than squid) to transparently proxy for a couple of
web
  host servers.
 
 
 
  It appears that this would be made possible by the filter rewrite
  mentioned at asiabsdcon 2013:
 
 
 
  http://www.openbsd.org/papers/relayd-slides-asiabsdcon2013.pdf
 
 
 
  http://www.openbsd.org/papers/relayd-asiabsdcon2013.pdf
 
 
 
 
 
  It looks like this was targeted for v5.4. However, I don't see the
new
  filter syntax referenced in the 5.4 man pages, nor in current. Did
the
  filter rewrite happen yet? And relayd chokes if I try using that
syntax.
 
 
 Sorry, the filter rewrite hasn't been finished yet.
 
 I simply didn't have enough time to finish it yet. At AsiaBSDCon in
March 2013, I didn't know about another project that
 took some of my spare time in 2013, but our second kid was
successfully released in December 2013. Now I'm slowly
 having more time to work on the relayd filter rewrite again.
 

Excellent, congratulations! The biological products can indeed be time
consuming. 

 
 
  If not, am I overlooking a method to proxy (or redirect) based on
  incoming http host header request to multiple back end web servers,
or
  would I likely be better off sticking to squid for the time being?
 
 
 Unfortunately, the filter rewrite is the way to go, the current code
is not capable of doing this.
 
 Reyk
 

Thanks for the response, and the excellent work on relayd... much
appreciated.

-sc



Make CPU use the C2 state

2014-01-12 Thread John Rogers
Hi.

I have installed OpenBSD 5.4 on a laptop. So far everything runs fine
but I have the problem that it runs fairly hot even in idle.

I used to run FreeBSD on it before and it behaved very similar then,
until I read [1]. Setting performance_cx_lowest=C2 and
economy_cx_lowest=C2 did wonder to this machine and effectively
lowered the temperature and fan speed to acceptable levels. My
understanding is that this uses ACPI to make the processor run in at
least C2 state which makes it wake up somewhat slower but in general
decreases power usage.

My question is if I can do something similar with OpenBSD. I've read
through the source code to acpicpu(4) [2] and it mentions c-states
here and there, but I'm not used to the OpenBSD kernel source code and
is unable to tell how I can utilize it.

John


[1] https://wiki.freebsd.org/TuningPowerConsumption
[2] http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/acpi/acpicpu.c?rev=HEAD



libbind - server list

2014-01-12 Thread Riccardo Mottola

Hi,

I am having essentially the same problem as here:
http://openbsd.7691.n7.nabble.com/res-init-and-0-0-0-0-td234246.html

Specifically it is GNUMail and Pantomime which do not resolve correctly.

I reduced myself to almost the same test program:
main()
{
  int i;

  if (res_init() == -1)
return;

  if ((_res.options  RES_INIT) == 0)
return;

  printf(Successfully inited, we have %d servers\n, _res.nscount);

  for (i = 0; i  _res.nscount; i++)
{
  printf(%d-th server is in int: %d\n, i, 
_res.nsaddr_list[i].sin_addr.s_addr);

}
}


I get this output:
Successfully inited, we have 1 servers
0-th server is in int: 0

Thus... I get something empty back.

As the thread suggests, I installed libbind and linked against it.
gcc restest.o  -lbind  -Wl,-L/usr/local/lib/libbind 
-Wl,-R/usr/local/lib/libbind



ldd confirms linking was successful:
StartEnd  Type Open Ref GrpRef Name
1c00 3c004000 exe  10   0  a.out
0b4c8000 2b4d rlib 01   0 
/usr/local/lib/libbind/libbind.so.3.0

06881000 268b1000 rlib 01   0  /usr/lib/libc.so.69.0
051b6000 051b6000 rtld 01   0  /usr/libexec/ld.so

However, I still get an empty server back.


Further suggestions?

Riccardo



WD My Book Pro Edition II as RAID1

2014-01-12 Thread Nikola Gyurov
Hi,

I have a WD My Book Pro Edition II external enclosure (2 drives
inside) and I'm trying to put it in RAID1 mode on OBSD 5.4.

This is the enclosure:
http://support.wd.com/product/install.asp?groupid=104lang=en

It supports RAID0 and RAID1.
On Windows it is possible to switch between those with WD's software.
No matter what you select though, OBSD always detects it as a RAID0:

umass0 at uhub0 port 1 configuration 1 interface 0 Western Digital My
Book rev 2.00/1.08 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
ses0 at scsibus1 targ 1 lun 0: WD, My Book Device, 108a SCSI2
13/enclosure services fixed
ses0: unable to read enclosure configuration
sd2 at scsibus1 targ 1 lun 1: WD, My Book, 108a SCSI2 0/direct fixed
sd2: 476936MB, 512 bytes/sector, 976764928 sectors
Western Digital My Book rev 2.00/1.08 addr 2 at uhub0 port 1
configuration 1 not configured

/ # disklabel sd2
# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: My Book
duid: 52fa8b8b688d81e0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 60800
total sectors: 976764928
boundstart: 64
boundend: 976752000
drivedata: 0

Is it possible to use it as RAID1 and if so - how?

Best regards,
Nikola Gyurov



ack! (not ack)

2014-01-12 Thread Chris Smith
hope they come looking for me next...

http://www.dailykos.com/story/2014/01/09/1267958/-Cartoon-Pufferfish-madness-in-Chagrin-nbsp-Falls?detail=hide



Re: Make CPU use the C2 state

2014-01-12 Thread Juan Francisco Cantero Hurtado
On Sun, Jan 12, 2014 at 05:29:02PM +0100, John Rogers wrote:
 Hi.
 
 I have installed OpenBSD 5.4 on a laptop. So far everything runs fine
 but I have the problem that it runs fairly hot even in idle.
 
 I used to run FreeBSD on it before and it behaved very similar then,
 until I read [1]. Setting performance_cx_lowest=C2 and
 economy_cx_lowest=C2 did wonder to this machine and effectively
 lowered the temperature and fan speed to acceptable levels. My
 understanding is that this uses ACPI to make the processor run in at
 least C2 state which makes it wake up somewhat slower but in general
 decreases power usage.
 
 My question is if I can do something similar with OpenBSD. I've read
 through the source code to acpicpu(4) [2] and it mentions c-states
 here and there, but I'm not used to the OpenBSD kernel source code and
 is unable to tell how I can utilize it.
 
 John
 
 
 [1] https://wiki.freebsd.org/TuningPowerConsumption
 [2] http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/acpi/acpicpu.c?rev=HEAD
 

Try apmd(8).

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: popa3d removed from base - what do people recommend?

2014-01-12 Thread John Smith
 I think pop3 is dead but recently there was a mail in tech@
 stating Sunil Nimmagadda develops pop3 daemon closed to
 OpenBSD standards.

That's a good point. I don't like leaving mails on the server for more than a
day or so, but I don't see why I can't emulate this behavior on IMAP. I had
originally chosen POP3 because OpenBSD came with it batteries-included.

There's still some research I need to do on my own, but it does look like
dovecot fits the OpenBSD mentality of security first in development.

Thanks everyone!



Re: Make CPU use the C2 state

2014-01-12 Thread John Rogers
On Mon, Jan 13, 2014 at 4:10 AM, Juan Francisco Cantero Hurtado
i...@juanfra.info wrote:
 On Sun, Jan 12, 2014 at 05:29:02PM +0100, John Rogers wrote:
 Hi.

 I have installed OpenBSD 5.4 on a laptop. So far everything runs fine
 but I have the problem that it runs fairly hot even in idle.

 I used to run FreeBSD on it before and it behaved very similar then,
 until I read [1]. Setting performance_cx_lowest=C2 and
 economy_cx_lowest=C2 did wonder to this machine and effectively
 lowered the temperature and fan speed to acceptable levels. My
 understanding is that this uses ACPI to make the processor run in at
 least C2 state which makes it wake up somewhat slower but in general
 decreases power usage.

 My question is if I can do something similar with OpenBSD. I've read
 through the source code to acpicpu(4) [2] and it mentions c-states
 here and there, but I'm not used to the OpenBSD kernel source code and
 is unable to tell how I can utilize it.

 John


 [1] https://wiki.freebsd.org/TuningPowerConsumption
 [2] http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/acpi/acpicpu.c?rev=HEAD


 Try apmd(8).

Thanks for the suggestion. I have added apmd_flags=-C to
/etc/rc.conf.local. It looks like it has some effect on the machine
but it is still running at much higher temperature in idle compared to
what is normal for it.

I'm not an expert on this but my theory is that the problem is not
that the CPU is running too fast but rather that it is running in a
high power state, presumably C0. Do you know if apmd adjusts the
c-state?

John