Re: USB ethernet for OpenBSD

2013-10-03 Thread MERIGHI Marcus
obsd...@postafiok.hu (obsd, cgi), 2013.10.02 (Wed) 21:50 (CEST):
> Can someone please mention a working USB to Ethernet adapter for OpenBSD
> 5.3? (anybody has a working one and can share the name of it?)
> It doesn't need to be Gbit big... just a 10/100 would be more then enough..

Digitus DN-10050-1 [1]

axe0 at uhub0 port 5 configuration 1 interface 0 "ASIX Electronics
AX88772A" rev 2.00/0.01 addr 2
axe0: AX88772, address 00:22:f7:XX:XX:XX
ukphy0 at axe0 phy 16: Generic IEEE 802.3u media interface, rev. 1: OUI
0x000ec6, model 0x0006

Running 36 days 24/7 without problems. 

[1]
http://www.digitus.info/en/products/network/fast-ethernet-network/network-interface-cards/10100m-network-usb-adapter-dn-10050-1/

> !DSPAM:524c7925178091721711741!



Re: USB ethernet for OpenBSD

2013-10-03 Thread Vijay Sankar

Quoting MERIGHI Marcus :


obsd...@postafiok.hu (obsd, cgi), 2013.10.02 (Wed) 21:50 (CEST):

Can someone please mention a working USB to Ethernet adapter for OpenBSD
5.3? (anybody has a working one and can share the name of it?)
It doesn't need to be Gbit big... just a 10/100 would be more then enough..


Digitus DN-10050-1 [1]

axe0 at uhub0 port 5 configuration 1 interface 0 "ASIX Electronics
AX88772A" rev 2.00/0.01 addr 2
axe0: AX88772, address 00:22:f7:XX:XX:XX
ukphy0 at axe0 phy 16: Generic IEEE 802.3u media interface, rev. 1: OUI
0x000ec6, model 0x0006

Running 36 days 24/7 without problems.

[1]
http://www.digitus.info/en/products/network/fast-ethernet-network/network-interface-cards/10100m-network-usb-adapter-dn-10050-1/


!DSPAM:524c7925178091721711741!





The following works here on an older version of OpenBSD --- it shows  
as 1000baseT but of course, it is not as fast as the em0 interface.


axe0 at uhub0 port 1 configuration 1 interface 0 "ASIX Electronics  
AX88178" rev 2.00/0.01 addr 2

axe0: AX88178, address 00:80:c8:ff:ff:a1
ukphy0 at axe0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI  
0x00a0bc, model 0x0001


ifconfig axe0
axe0: flags=8843 mtu 1500
lladdr 00:80:c8:ef:af:31
priority: 0
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet 192.168.0.5 netmask 0xff00 broadcast 192.168.0.255
inet6 fe80::280:c8ff:feef:af31%axe0 prefixlen 64 scopeid 0x5



Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
vsan...@foretell.ca

-
This message was sent using ForeTell-POST 4.9



Re: suspend/resume regression

2013-10-03 Thread Fred Crowson
I had the same issue - I've just built a kernel from cvs and suspend /
resume is now working again, but I seem to have lost a few cores :~p

dmesg below.

Cheers

Fred

[1] dmesg:
OpenBSD 5.4-current (GENERIC) #0: Thu Oct  3 13:40:24 BST 2013
f...@port.crowsons.com:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 8447131648 (8055MB)
avail mem = 8214212608 (7833MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xaafd (43 entries)
bios0: vendor TOSHIBA version "Version 3.60" date 01/24/2012
bios0: TOSHIBA TOSHIBA
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! TCPA BOOT SLIC SSDT SSDT SSDT
SSDT
acpi0: wakeup devices LANC(S4) HDEF(S3) RP02(S4) PXSX(S4) RP04(S4) PXSX(S4)
USBB(S4) USBC(S4) EHC1(S4) EHC2(S4) PWRB(S4) LID_(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2492.31 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A
ES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 99MHz
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus 2 (RP02)
acpiprt4 at acpi0: bus 4 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 5 (RP05)
acpiprt7 at acpi0: bus 6 (RP06)
acpiprt8 at acpi0: bus 7 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus -1 (PCIB)
acpicpu0 at acpi0: C1, PSS
acpipwrres0 at acpi0: PDOC
acpitz0 at acpi0: critical temperature is 102 degC
acpitoshiba0 at acpi0
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID_
acpibat0 at acpi0: BAT1 model "G71C000E4410" serial 001888 type Li-ION
  oem "0"
acpidock0 at acpi0: DOCK not docked (0)
cpu0: Enhanced SpeedStep 2492 MHz: speeds: 2501, 2500, 2000, 1800, 1600,
1400, 1200, 1000, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09
intagp0 at vga1
agp0 at intagp0: aperture at 0xb000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1366x768
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
puc0 at pci0 dev 22 function 3 "Intel 6 Series KT" rev 0x04: ports: 1 com
com4 at puc0 port 0 apic 2 int 19: ns16550a, 16 byte fifo
com4: probed fifo depth: 0 bytes
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address
e8:e0:b7:02:05:5d
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x04: msi
azalia0: codecs: Realtek ALC269, Intel/0x2805, using Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi
pci1 at ppb0 bus 1
sdhc0 at pci1 dev 0 function 0 "Ricoh 5U823 SD/MMC" rev 0x04: apic 2 int 16
sdmmc0 at sdhc0
ppb1 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb4: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 2 "Intel 6 Series PCIE" rev 0xb4: msi
pci3 at ppb2 bus 4
iwn0 at pci3 dev 0 function 0 "Intel Centrino Advanced-N 6030" rev 0x34:
msi, MIMO 2T2R, MoW, address 00:db:df:1f:24:6c
ppb3 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb4: msi
pci4 at ppb3 bus 5
"NEC xHCI" rev 0x04 at pci4 dev 0 function 0 not configured
ppb4 at pci0 dev 28 function 5 "Intel 6 Series PCIE" rev 0xb4: msi
pci5 at ppb4 bus 6
ppb5 at pci0 dev 28 function 6 "Intel 82801BAM Hub-to-PCI" rev 0xb4: msi
pci6 at ppb5 bus 7
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel QM67 LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi, AHCI
1.3
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct
fixed naa.5000cca6d540
sd0: 305245MB, 512 bytes/sector, 625142448 sectors
cd0 at scsibus0 targ 2 lun 0:  ATAPI
5/cdrom removable
isa0 at pcib0
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
pms0: Synapt

Re: suspend/resume regression

2013-10-03 Thread Otto Moerbeek
On Thu, Oct 03, 2013 at 02:04:14PM +0100, Fred Crowson wrote:

> I had the same issue - I've just built a kernel from cvs and suspend /
> resume is now working again, but I seem to have lost a few cores :~p

You are running GENERIC, not GENERIC.MP

-Otto
> 
> dmesg below.
> 
> Cheers
> 
> Fred
> 
> [1] dmesg:
> OpenBSD 5.4-current (GENERIC) #0: Thu Oct  3 13:40:24 BST 2013
> f...@port.crowsons.com:/usr/src/sys/arch/amd64/compile/GENERIC
> real mem = 8447131648 (8055MB)
> avail mem = 8214212608 (7833MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xaafd (43 entries)
> bios0: vendor TOSHIBA version "Version 3.60" date 01/24/2012
> bios0: TOSHIBA TOSHIBA
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET APIC MCFG ASF! TCPA BOOT SLIC SSDT SSDT SSDT
> SSDT
> acpi0: wakeup devices LANC(S4) HDEF(S3) RP02(S4) PXSX(S4) RP04(S4) PXSX(S4)
> USBB(S4) USBC(S4) EHC1(S4) EHC2(S4) PWRB(S4) LID_(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2492.31 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
> H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> ,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A
> ES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> cpu0: apic clock running at 99MHz
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
> acpimcfg0 at acpi0 addr 0xf800, bus 0-63
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PEGP)
> acpiprt2 at acpi0: bus 1 (RP01)
> acpiprt3 at acpi0: bus 2 (RP02)
> acpiprt4 at acpi0: bus 4 (RP03)
> acpiprt5 at acpi0: bus -1 (RP04)
> acpiprt6 at acpi0: bus 5 (RP05)
> acpiprt7 at acpi0: bus 6 (RP06)
> acpiprt8 at acpi0: bus 7 (RP07)
> acpiprt9 at acpi0: bus -1 (RP08)
> acpiprt10 at acpi0: bus -1 (PCIB)
> acpicpu0 at acpi0: C1, PSS
> acpipwrres0 at acpi0: PDOC
> acpitz0 at acpi0: critical temperature is 102 degC
> acpitoshiba0 at acpi0
> acpiac0 at acpi0: AC unit online
> acpibtn0 at acpi0: PWRB
> acpibtn1 at acpi0: LID_
> acpibat0 at acpi0: BAT1 model "G71C000E4410" serial 001888 type Li-ION
>   oem "0"
> acpidock0 at acpi0: DOCK not docked (0)
> cpu0: Enhanced SpeedStep 2492 MHz: speeds: 2501, 2500, 2000, 1800, 1600,
> 1400, 1200, 1000, 800 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
> vga1 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09
> intagp0 at vga1
> agp0 at intagp0: aperture at 0xb000, size 0x1000
> inteldrm0 at vga1
> drm0 at inteldrm0
> inteldrm0: 1366x768
> wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
> puc0 at pci0 dev 22 function 3 "Intel 6 Series KT" rev 0x04: ports: 1 com
> com4 at puc0 port 0 apic 2 int 19: ns16550a, 16 byte fifo
> com4: probed fifo depth: 0 bytes
> em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address
> e8:e0:b7:02:05:5d
> ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 16
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x04: msi
> azalia0: codecs: Realtek ALC269, Intel/0x2805, using Realtek ALC269
> audio0 at azalia0
> ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi
> pci1 at ppb0 bus 1
> sdhc0 at pci1 dev 0 function 0 "Ricoh 5U823 SD/MMC" rev 0x04: apic 2 int 16
> sdmmc0 at sdhc0
> ppb1 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb4: msi
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 28 function 2 "Intel 6 Series PCIE" rev 0xb4: msi
> pci3 at ppb2 bus 4
> iwn0 at pci3 dev 0 function 0 "Intel Centrino Advanced-N 6030" rev 0x34:
> msi, MIMO 2T2R, MoW, address 00:db:df:1f:24:6c
> ppb3 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb4: msi
> pci4 at ppb3 bus 5
> "NEC xHCI" rev 0x04 at pci4 dev 0 function 0 not configured
> ppb4 at pci0 dev 28 function 5 "Intel 6 Series PCIE" rev 0xb4: msi
> pci5 at ppb4 bus 6
> ppb5 at pci0 dev 28 function 6 "Intel 82801BAM Hub-to-PCI" rev 0xb4: msi
> pci6 at ppb5 bus 7
> ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 23
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> pcib0 at pci0 dev 31 function 0 "Intel QM67 LPC" rev 0x04
> ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi, AHCI
> 1.3
> scsibus0 at ahci0: 32 targets
> sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct
> fixed naa.5000cca6d540
> sd0: 305245MB, 512 bytes/

Re: suspend/resume regression

2013-10-03 Thread Fred Crowson
should have built an mp kernel :~)


On 3 October 2013 14:04, Fred Crowson  wrote:

> I had the same issue - I've just built a kernel from cvs and suspend /
> resume is now working again, but I seem to have lost a few cores :~p
>
> dmesg below.
>
> Cheers
>
> Fred
>
> [1] dmesg:
> OpenBSD 5.4-current (GENERIC) #0: Thu Oct  3 13:40:24 BST 2013
> f...@port.crowsons.com:/usr/src/sys/arch/amd64/compile/GENERIC
> real mem = 8447131648 (8055MB)
> avail mem = 8214212608 (7833MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xaafd (43 entries)
> bios0: vendor TOSHIBA version "Version 3.60" date 01/24/2012
> bios0: TOSHIBA TOSHIBA
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET APIC MCFG ASF! TCPA BOOT SLIC SSDT SSDT SSDT
> SSDT
> acpi0: wakeup devices LANC(S4) HDEF(S3) RP02(S4) PXSX(S4) RP04(S4)
> PXSX(S4) USBB(S4) USBC(S4) EHC1(S4) EHC2(S4) PWRB(S4) LID_(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2492.31 MHz
> cpu0:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A
ES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> cpu0: apic clock running at 99MHz
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
> acpimcfg0 at acpi0 addr 0xf800, bus 0-63
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PEGP)
> acpiprt2 at acpi0: bus 1 (RP01)
> acpiprt3 at acpi0: bus 2 (RP02)
> acpiprt4 at acpi0: bus 4 (RP03)
> acpiprt5 at acpi0: bus -1 (RP04)
> acpiprt6 at acpi0: bus 5 (RP05)
> acpiprt7 at acpi0: bus 6 (RP06)
> acpiprt8 at acpi0: bus 7 (RP07)
> acpiprt9 at acpi0: bus -1 (RP08)
> acpiprt10 at acpi0: bus -1 (PCIB)
> acpicpu0 at acpi0: C1, PSS
> acpipwrres0 at acpi0: PDOC
> acpitz0 at acpi0: critical temperature is 102 degC
> acpitoshiba0 at acpi0
> acpiac0 at acpi0: AC unit online
> acpibtn0 at acpi0: PWRB
> acpibtn1 at acpi0: LID_
> acpibat0 at acpi0: BAT1 model "G71C000E4410" serial 001888 type Li-ION
>   oem "0"
> acpidock0 at acpi0: DOCK not docked (0)
> cpu0: Enhanced SpeedStep 2492 MHz: speeds: 2501, 2500, 2000, 1800, 1600,
> 1400, 1200, 1000, 800 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
> vga1 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09
> intagp0 at vga1
> agp0 at intagp0: aperture at 0xb000, size 0x1000
> inteldrm0 at vga1
> drm0 at inteldrm0
> inteldrm0: 1366x768
> wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
> puc0 at pci0 dev 22 function 3 "Intel 6 Series KT" rev 0x04: ports: 1 com
> com4 at puc0 port 0 apic 2 int 19: ns16550a, 16 byte fifo
> com4: probed fifo depth: 0 bytes
> em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address
> e8:e0:b7:02:05:5d
> ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int
> 16
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x04: msi
> azalia0: codecs: Realtek ALC269, Intel/0x2805, using Realtek ALC269
> audio0 at azalia0
> ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi
> pci1 at ppb0 bus 1
> sdhc0 at pci1 dev 0 function 0 "Ricoh 5U823 SD/MMC" rev 0x04: apic 2 int 16
> sdmmc0 at sdhc0
> ppb1 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb4: msi
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 28 function 2 "Intel 6 Series PCIE" rev 0xb4: msi
> pci3 at ppb2 bus 4
> iwn0 at pci3 dev 0 function 0 "Intel Centrino Advanced-N 6030" rev 0x34:
> msi, MIMO 2T2R, MoW, address 00:db:df:1f:24:6c
> ppb3 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb4: msi
> pci4 at ppb3 bus 5
> "NEC xHCI" rev 0x04 at pci4 dev 0 function 0 not configured
> ppb4 at pci0 dev 28 function 5 "Intel 6 Series PCIE" rev 0xb4: msi
> pci5 at ppb4 bus 6
> ppb5 at pci0 dev 28 function 6 "Intel 82801BAM Hub-to-PCI" rev 0xb4: msi
> pci6 at ppb5 bus 7
> ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int
> 23
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> pcib0 at pci0 dev 31 function 0 "Intel QM67 LPC" rev 0x04
> ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi, AHCI
> 1.3
> scsibus0 at ahci0: 32 targets
> sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct
> fixed naa.5000cca6d540
> sd0: 305245MB, 512 bytes/sector, 625142448 sectors
> cd0 at scsibu

getrlimit(RLIMIT_AS, ...) on OpenBSD

2013-10-03 Thread niXman
Hi,

I'm trying to port some code from Linux to OpenBSD.
In Linux, for getrlimit() there is the RLIMIT_AS parameter, which does
not exist in OpenBSD.

>From manpages:
"RLIMIT_AS: The maximum size of the process's virtual memory (address space) in
bytes. This limit affects calls to brk(2), mmap(2) and mremap(2),
which fail with the error ENOMEM upon exceeding this limit. Also
automatic stack expansion will fail (and generate a SIGSEGV that kills
the process if no alternate stack has been made available via
sigaltstack(2)). Since the value is a long, on machines with a 32-bit
long either this limit is at most 2 GiB, or this resource is
unlimited."

Tell me please, what parameter should I use instead RLIMIT_AS, or how
else can I get the information similar to 'getrlimit(RLIMIT_AS, ...)'?

Thanks.


-- 
Regards,
niXman



Re: getrlimit(RLIMIT_AS, ...) on OpenBSD

2013-10-03 Thread Antoine Jacoutot
On Thu, Oct 03, 2013 at 05:20:46PM +0400, niXman wrote:
> Hi,
> 
> I'm trying to port some code from Linux to OpenBSD.
> In Linux, for getrlimit() there is the RLIMIT_AS parameter, which does
> not exist in OpenBSD.
> 
> From manpages:
> "RLIMIT_AS: The maximum size of the process's virtual memory (address space) 
> in
> bytes. This limit affects calls to brk(2), mmap(2) and mremap(2),
> which fail with the error ENOMEM upon exceeding this limit. Also
> automatic stack expansion will fail (and generate a SIGSEGV that kills
> the process if no alternate stack has been made available via
> sigaltstack(2)). Since the value is a long, on machines with a 32-bit
> long either this limit is at most 2 GiB, or this resource is
> unlimited."
> 
> Tell me please, what parameter should I use instead RLIMIT_AS, or how
> else can I get the information similar to 'getrlimit(RLIMIT_AS, ...)'?

What is usually done in the ports tree depending on the context and the code is:
(from memory)

#if defined (RLIMIT_AS)
   setrlimit (RLIMIT_AS, ...);
#endif

OR

#ifndef (RLIMIT_AS)
#  define RLIMIT_AS RLIMIT_DATA
#endif

-- 
Antoine



Re: suspend/resume regression

2013-10-03 Thread Fred Crowson
On 3 October 2013 14:08, Fred Crowson  wrote:
> should have built an mp kernel :~)
>
>
> On 3 October 2013 14:04, Fred Crowson  wrote:
>>
>> I had the same issue - I've just built a kernel from cvs and suspend /
>> resume is now working again, but I seem to have lost a few cores :~p
>>
>> dmesg below.
>>
>> Cheers
>>
>> Fred
>>
>> [1] dmesg:
>> OpenBSD 5.4-current (GENERIC) #0: Thu Oct  3 13:40:24 BST 2013
>> f...@port.crowsons.com:/usr/src/sys/arch/amd64/compile/GENERIC
>> real mem = 8447131648 (8055MB)
>> avail mem = 8214212608 (7833MB)
>> mainbus0 at root
>> bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xaafd (43 entries)
>> bios0: vendor TOSHIBA version "Version 3.60" date 01/24/2012
>> bios0: TOSHIBA TOSHIBA
>> acpi0 at bios0: rev 0
>> acpi0: sleep states S0 S3 S4 S5
>> acpi0: tables DSDT FACP HPET APIC MCFG ASF! TCPA BOOT SLIC SSDT SSDT SSDT
>> SSDT
>> acpi0: wakeup devices LANC(S4) HDEF(S3) RP02(S4) PXSX(S4) RP04(S4)
>> PXSX(S4) USBB(S4) USBC(S4) EHC1(S4) EHC2(S4) PWRB(S4) LID_(S4)
>> acpitimer0 at acpi0: 3579545 Hz, 24 bits
>> acpihpet0 at acpi0: 14318179 Hz
>> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
>> cpu0 at mainbus0: apid 0 (boot processor)
>> cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2492.31 MHz
>> cpu0:
>> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
>> cpu0: 256KB 64b/line 8-way L2 cache
>> cpu0: smt 0, core 0, package 0
>> cpu0: apic clock running at 99MHz
>> cpu at mainbus0: not configured
>> cpu at mainbus0: not configured
>> cpu at mainbus0: not configured
>> ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
>> acpimcfg0 at acpi0 addr 0xf800, bus 0-63
>> acpiprt0 at acpi0: bus 0 (PCI0)
>> acpiprt1 at acpi0: bus -1 (PEGP)
>> acpiprt2 at acpi0: bus 1 (RP01)
>> acpiprt3 at acpi0: bus 2 (RP02)
>> acpiprt4 at acpi0: bus 4 (RP03)
>> acpiprt5 at acpi0: bus -1 (RP04)
>> acpiprt6 at acpi0: bus 5 (RP05)
>> acpiprt7 at acpi0: bus 6 (RP06)
>> acpiprt8 at acpi0: bus 7 (RP07)
>> acpiprt9 at acpi0: bus -1 (RP08)
>> acpiprt10 at acpi0: bus -1 (PCIB)
>> acpicpu0 at acpi0: C1, PSS
>> acpipwrres0 at acpi0: PDOC
>> acpitz0 at acpi0: critical temperature is 102 degC
>> acpitoshiba0 at acpi0
>> acpiac0 at acpi0: AC unit online
>> acpibtn0 at acpi0: PWRB
>> acpibtn1 at acpi0: LID_
>> acpibat0 at acpi0: BAT1 model "G71C000E4410" serial 001888 type Li-ION
>> oem "0"
>> acpidock0 at acpi0: DOCK not docked (0)
>> cpu0: Enhanced SpeedStep 2492 MHz: speeds: 2501, 2500, 2000, 1800, 1600,
>> 1400, 1200, 1000, 800 MHz
>> pci0 at mainbus0 bus 0
>> pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
>> vga1 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09
>> intagp0 at vga1
>> agp0 at intagp0: aperture at 0xb000, size 0x1000
>> inteldrm0 at vga1
>> drm0 at inteldrm0
>> inteldrm0: 1366x768
>> wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
>> wsdisplay0: screen 1-5 added (std, vt100 emulation)
>> "Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
>> puc0 at pci0 dev 22 function 3 "Intel 6 Series KT" rev 0x04: ports: 1 com
>> com4 at puc0 port 0 apic 2 int 19: ns16550a, 16 byte fifo
>> com4: probed fifo depth: 0 bytes
>> em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address
>> e8:e0:b7:02:05:5d
>> ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int
>> 16
>> usb0 at ehci0: USB revision 2.0
>> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
>> azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x04: msi
>> azalia0: codecs: Realtek ALC269, Intel/0x2805, using Realtek ALC269
>> audio0 at azalia0
>> ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi
>> pci1 at ppb0 bus 1
>> sdhc0 at pci1 dev 0 function 0 "Ricoh 5U823 SD/MMC" rev 0x04: apic 2 int
>> 16
>> sdmmc0 at sdhc0
>> ppb1 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb4: msi
>> pci2 at ppb1 bus 2
>> ppb2 at pci0 dev 28 function 2 "Intel 6 Series PCIE" rev 0xb4: msi
>> pci3 at ppb2 bus 4
>> iwn0 at pci3 dev 0 function 0 "Intel Centrino Advanced-N 6030" rev 0x34:
>> msi, MIMO 2T2R, MoW, address 00:db:df:1f:24:6c
>> ppb3 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb4: msi
>> pci4 at ppb3 bus 5
>> "NEC xHCI" rev 0x04 at pci4 dev 0 function 0 not configured
>> ppb4 at pci0 dev 28 function 5 "Intel 6 Series PCIE" rev 0xb4: msi
>> pci5 at ppb4 bus 6
>> ppb5 at pci0 dev 28 function 6 "Intel 82801BAM Hub-to-PCI" rev 0xb4: msi
>> pci6 at ppb5 bus 7
>> ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int
>> 23
>> usb1 at ehci1: USB revision 2.0
>> uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
>> pcib0 at pci0 dev 31 function 0 "Intel QM67 LPC" rev 0x04
>> ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi, AHCI
>> 1.3
>> scsibus0 at a

BeagleBone Black cereal

2013-10-03 Thread Jan Stary
Dear BBB users,

I just bought me a BeagleBone Black board,
and want to install the latest snapshot.


Firstly, OpenBSD/beagle is dead,
replaced by OpenBSD/armv7, right?


Secondly, I need a serial cable to connect to the board.
http://circuitco.com/support/index.php?title=BeagleBone_Black_Serial
mentions 6pin cables that do not quite look like the serial cable
I have always used. (The serial cables linked from that page
are about $20 each - which is about half the price of the board.
Am I missing something?)

Should the other end of the serial cable
be the traditional RS-232 connector,
or do serial/USB cables also work?
Specifically, have you succesfully used any
of the following with the BeagleBone Black?

http://www.digikey.com/product-detail/en/TTL-232R-3V3/768-1015-ND/1836393
http://www.newark.com/jsp/search/productdetail.jsp?SKU=34M8872
https://www.sparkfun.com/products/9717
http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm
https://www.adafruit.com/products/70
http://www.adafruit.com/products/954
http://www.logicsupply.com/products/ss_ttl3vt
http://dx.com/p/arduino-pl2303hx-to-usb-ttl-upload-download-wire-black-100cm-199553
http://dx.com/p/ft232-to-usb-ttl-wire-integrated-terminal-cable-for-programmer-black-95cm-203717


Lastly, does the amrv7 platform have its own mailing list?
As the beagle support is a work very much in progress,
what is the discussion I should follow?

Jan



Re: Interrupts cause uaudio stuttering with mpd

2013-10-03 Thread Alex Holst
Quoting Alexandre Ratchov (a...@caoua.org):
> Is this the graphic-mode console or bare 80x25 text-mode console?

This is bare 80x25 text-mode console. Yes, yes. I know. I'm a freak.

aucat -i foo.wav has the same stuttering when the console is used and
the same random stuttering when i/o occurs. 

Is there a particular thing I can try now?


-- 
I prefer the dark of the night, after midnight and before four-thirty,
when it's more bare, more hollow.http://a.mongers.org 



[patch] src/sys/dev/usb/if_urlreg.h

2013-10-03 Thread Paul A. Patience
Hello,

I found a bug and a typo in url(4)'s if_urlreg.h.
The spec and the freebsd driver both say
IFG0 should be 1<<3. Here's the patch:

--- if_urlreg.h.originalThu Oct  3 02:49:58 2013
+++ if_urlreg.h Thu Oct  3 02:51:47 2013
@@ -80,7 +80,7 @@
 #define URL_TCR_TXRR1  (1<<7) /* TX Retry Count */
 #define URL_TCR_TXRR0  (1<<6) /* TX Retry Count */
 #define URL_TCR_IFG1   (1<<4) /* Interframe Gap Time */
-#define URL_TCR_IFG0   (1<<4) /* Interframe Gap Time */
+#define URL_TCR_IFG0   (1<<3) /* Interframe Gap Time */
 #define URL_TCR_NOCRC  (1<<0) /* no CRC Append */
 
 #defineURL_RCR 0x0130 /* Receive Configuration 
Register */
@@ -118,7 +118,7 @@
 #defineURL_ANLP0x146 /* Auto-negotiation link partner 
ability register */
 
 
-typedefuWord url_rxhdr_t;  /* Recive Header */
+typedefuWord url_rxhdr_t;  /* Receive Header */
 #defineURL_RXHDR_BYTEC_MASK(0x0fff) /* RX bytes count */
 #defineURL_RXHDR_VALID_MASK(0x1000) /* Valid packet */
 #defineURL_RXHDR_RUNTPKT_MASK  (0x2000) /* Runt packet */

--
pap



Re: BeagleBone Black cereal

2013-10-03 Thread Nick Holland

On 10/03/2013 10:18 AM, Jan Stary wrote:

Dear BBB users,

I just bought me a BeagleBone Black board,
and want to install the latest snapshot.


Firstly, OpenBSD/beagle is dead,
replaced by OpenBSD/armv7, right


yep.



Secondly, I need a serial cable to connect to the board.
http://circuitco.com/support/index.php?title=BeagleBone_Black_Serial
mentions 6pin cables that do not quite look like the serial cable
I have always used. (The serial cables linked from that page
are about $20 each - which is about half the price of the board.
Am I missing something?)


yeah.  $20. :)

keep in mind, for the intended use, you aren't supposed to need the 
serial i/o. OpenBSD isn't the intended use.


The good news is that one serial device will support as many boards as 
you wish to use.  One at a time, of course.



Should the other end of the serial cable
be the traditional RS-232 connector,


not without an level changing electronics.


or do serial/USB cables also work?
Specifically, have you succesfully used any
of the following with the BeagleBone Black?

http://www.digikey.com/product-detail/en/TTL-232R-3V3/768-1015-ND/1836393
http://www.newark.com/jsp/search/productdetail.jsp?SKU=34M8872
https://www.sparkfun.com/products/9717
http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm
https://www.adafruit.com/products/70
http://www.adafruit.com/products/954
http://www.logicsupply.com/products/ss_ttl3vt
http://dx.com/p/arduino-pl2303hx-to-usb-ttl-upload-download-wire-black-100cm-199553
http://dx.com/p/ft232-to-usb-ttl-wire-integrated-terminal-cable-for-programmer-black-95cm-203717


Those should all work.

The signals are standard RS232 with a huge exception: they are NOT the 
normal +/- voltage swing of an RS232 chip, instead they are 0-3.3v, and 
much more than that will break things.


SO...you either need RS232 line drivers and receivers going to 3.3v 
(which will require a power supply), or use one of the USB->3.3v serial 
do-hickies out there that use the USB power supply.  That's easier, 
really.  So these devices have a USB -> serial chip (usually made by 
FTDI) and no other line drivers, leaving the voltage level at the 0-3.3v 
needed for the BBB.


The good news is probably all those devices will work. Apparently, FTDI 
has managed to make a de-facto standard six pin serial interface.  IIRC, 
the Beaglebone Black only uses three pins anyway (ground, td, rd).


Curiously, it is enough of a de-facto standard that I had difficulty 
verifying the pinout on the BBB.


I have managed to buy a couple devices that are little boards with a six 
pin connector on one side and a mini-USB on the other.  They look cute, 
and the board provides a crude keying so you can't put the board in one 
way as easily as the other way.  Problem is, in the boards I have, the 
way it plugs in easily is the WRONG way (bending the pins can permit it 
to be directly plugged in, but it's ugly).  So stick with the types of 
cables you have listed above -- USB on one side, six pin on the other.



Lastly, does the amrv7 platform have its own mailing list?
As the beagle support is a work very much in progress,
what is the discussion I should follow?


arm@ would work.

For what it is worth, I have two BBB's attached to a 2x12x12 block of 
wood (that's US wood inches, which translates to around the size of a 
hardbound book), with a five port switch and a seven port USB hub and a 
power strip screwed to it  The BBB's get their power from the USB hub 
and the serial device plugs in there (I've mounted the serial device to 
the board and added wires to the BBS's).  Kinda silly to be bolting tiny 
things to a big block like that, 'cept it keeps them and their wires 
under control...


Nick.



Re: USB ethernet for OpenBSD

2013-10-03 Thread Andrew Klettke
Just wanted to throw my 2 cents in and state that Apple's USB ethernet 
adapter also works fine:

http://www.ebay.co.uk/itm/Apple-USB-Ethernet-Adapter-NEW-MC704ZM-A-/290983700399?pt=UK_Computing_USB_Cables&hash=item43bffae7af

Thanks,

Andrew Klettke
Systems Admin
Optic Fusion

On 10/02/2013 12:50 PM, obsd, cgi wrote:
> Hi!
>
> Can someone please mention a working USB to Ethernet adapter for OpenBSD
> 5.3? (anybody has a working one and can share the name of it?)
>
> It doesn't need to be Gbit big... just a 10/100 would be more then enough..
>
> +1 if it could be buyed from:
>
> http://www.ebay.co.uk/
>
> Many Thanks, have a nice day!



Re: Interrupts cause uaudio stuttering with mpd

2013-10-03 Thread Eric Johnson
On Thu, 3 Oct 2013, Alex Holst wrote:

> This is bare 80x25 text-mode console. Yes, yes. I know. I'm a freak.

Freak?

I do my best work on an inexpensive VT-100 compatible I bought on eBay for 
$60 a few years ago.  It was brand new out of the box, but put in the box 
something like ten years prior to that.  It's a whole lot less distracting 
than a regular monitor -- keeps me from being distracted by web site 
ydiscussions.

Eric



Re: PHP 5.3.1 on OpenBSD 4.2

2013-10-03 Thread Kevin Chadwick
> Hi Otto,
> 
> yeah thats planned with new hardware but this is a kinda urgent 
> situation so if its possible I need to do the upgrade on this OpenBSd 
> version

Personally I'd still advocate getting a disk ready on 5.4/3 testing and
swapping the disk as it is not much different and will be quicker than
imaging, building rather than installing packages and testing on another
machine and then swapping the disk.

Lots of other less simple choices if you don't mind taking risks of
unplanned downtime of course.

You could even deploy carp and have next to no downtime if required.

-- 
___

'Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface'

(Doug McIlroy)

In Other Words - Don't design like polkit or systemd
___



Re: PHP 5.3.1 on OpenBSD 4.2

2013-10-03 Thread Markus Rosjat

On 03.10.2013 18:38, Kevin Chadwick wrote:

Hi Otto,

yeah thats planned with new hardware but this is a kinda urgent
situation so if its possible I need to do the upgrade on this OpenBSd
version

Personally I'd still advocate getting a disk ready on 5.4/3 testing and
swapping the disk as it is not much different and will be quicker than
imaging, building rather than installing packages and testing on another
machine and then swapping the disk.

Lots of other less simple choices if you don't mind taking risks of
unplanned downtime of course.

You could even deploy carp and have next to no downtime if required.

I have a image for a esxi so I will do the test on that and if I'm 
successful I just do it step by step on the server. This is maybe the 
easiest way to go here.


--
Markus Rosjatfon: +49 351 8107223mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann, Kögler
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before you 
print it, think about your responsibility and commitment to the ENVIRONMENT



Re: USB ethernet for OpenBSD

2013-10-03 Thread Joseph A Borg
I got a couple of trendnet dongles and they work fine. They're a bit old now so 
cannot confirm if latest have compatible chipsets.

On 02 Oct 2013, at 21:50, "obsd, cgi"  wrote:

> Hi!
> 
> Can someone please mention a working USB to Ethernet adapter for OpenBSD
> 5.3? (anybody has a working one and can share the name of it?)
> 
> It doesn't need to be Gbit big... just a 10/100 would be more then enough..
> 
> +1 if it could be buyed from:
> 
> http://www.ebay.co.uk/
> 
> Many Thanks, have a nice day!



open bsd router

2013-10-03 Thread alexey.kurin...@gmail.com
Hi. I want to buy some single board (arm cpu) computer for installing 
open bsd and run services NAT, vpn, webserver,

etc... Primary experiments for work and fun.
Hours of googling and reading. I found many deviceses, many of it's 
listed there 
http://www.element14.com/community/community/knode/single-board_computers/blog?start=0
Exist good industrial boards, but low price start for it when buying 
>=1k boards


My favorite:
http://www.pcengines.ch/product.htm
http://en.wikipedia.org/wiki/Raspberry_Pi

Question is - what boards succesfully used by members of 
misc@openbsd.org list? I glad to read members IMHO about used boards.


Sorry for ugly english.



Re: USB ethernet for OpenBSD

2013-10-03 Thread alexey.kurin...@gmail.com
I want to buy D-Link DUB-E100, in man AXE(4) they listed, but not tested 
myself. I can reply when got it.


On 10/04/13 00:27, Joseph A Borg wrote:

Hi!


Can someone please mention a working USB to Ethernet adapter for OpenBSD
5.3? (anybody has a working one and can share the name of it?)

It doesn't need to be Gbit big... just a 10/100 would be more then enough..

+1 if it could be buyed from:

http://www.ebay.co.uk/

Many Thanks, have a nice day!




Re: BeagleBone Black cereal

2013-10-03 Thread Juan Francisco Cantero Hurtado
On Thu, Oct 03, 2013 at 11:40:05AM -0400, Nick Holland wrote:
> On 10/03/2013 10:18 AM, Jan Stary wrote:
> >Dear BBB users,
> >
> >I just bought me a BeagleBone Black board,
> >and want to install the latest snapshot.
> >
> >
> >Firstly, OpenBSD/beagle is dead,
> >replaced by OpenBSD/armv7, right
> 
> yep.
> 
> >
> >Secondly, I need a serial cable to connect to the board.
> >http://circuitco.com/support/index.php?title=BeagleBone_Black_Serial
> >mentions 6pin cables that do not quite look like the serial cable
> >I have always used. (The serial cables linked from that page
> >are about $20 each - which is about half the price of the board.
> >Am I missing something?)
> 
> yeah.  $20. :)
> 
> keep in mind, for the intended use, you aren't supposed to need the
> serial i/o. OpenBSD isn't the intended use.
> 
> The good news is that one serial device will support as many boards
> as you wish to use.  One at a time, of course.
> 
> >Should the other end of the serial cable
> >be the traditional RS-232 connector,
> 
> not without an level changing electronics.
> 
> >or do serial/USB cables also work?
> >Specifically, have you succesfully used any
> >of the following with the BeagleBone Black?
> >
> >http://www.digikey.com/product-detail/en/TTL-232R-3V3/768-1015-ND/1836393
> >http://www.newark.com/jsp/search/productdetail.jsp?SKU=34M8872
> >https://www.sparkfun.com/products/9717
> >http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm
> >https://www.adafruit.com/products/70
> >http://www.adafruit.com/products/954
> >http://www.logicsupply.com/products/ss_ttl3vt
> >http://dx.com/p/arduino-pl2303hx-to-usb-ttl-upload-download-wire-black-100cm-199553
> >http://dx.com/p/ft232-to-usb-ttl-wire-integrated-terminal-cable-for-programmer-black-95cm-203717
> 
> Those should all work.
> 
> The signals are standard RS232 with a huge exception: they are NOT
> the normal +/- voltage swing of an RS232 chip, instead they are
> 0-3.3v, and much more than that will break things.
> 
> SO...you either need RS232 line drivers and receivers going to 3.3v
> (which will require a power supply), or use one of the USB->3.3v
> serial do-hickies out there that use the USB power supply.  That's
> easier, really.  So these devices have a USB -> serial chip (usually
> made by FTDI) and no other line drivers, leaving the voltage level
> at the 0-3.3v needed for the BBB.
> 
> The good news is probably all those devices will work. Apparently,
> FTDI has managed to make a de-facto standard six pin serial
> interface.  IIRC, the Beaglebone Black only uses three pins anyway
> (ground, td, rd).
> 
> Curiously, it is enough of a de-facto standard that I had difficulty
> verifying the pinout on the BBB.
> 
> I have managed to buy a couple devices that are little boards with a
> six pin connector on one side and a mini-USB on the other.  They
> look cute, and the board provides a crude keying so you can't put
> the board in one way as easily as the other way.  Problem is, in the
> boards I have, the way it plugs in easily is the WRONG way (bending
> the pins can permit it to be directly plugged in, but it's ugly).
> So stick with the types of cables you have listed above -- USB on
> one side, six pin on the other.
> 
> >Lastly, does the amrv7 platform have its own mailing list?
> >As the beagle support is a work very much in progress,
> >what is the discussion I should follow?
> 
> arm@ would work.
> 
> For what it is worth, I have two BBB's attached to a 2x12x12 block
> of wood (that's US wood inches, which translates to around the size
> of a hardbound book), with a five port switch and a seven port USB
> hub and a power strip screwed to it  The BBB's get their power from
> the USB hub

Don't use the USB connector to power the board, you will have problems
in the future. The BBB runs at 550mhz by default. Some drivers of u-boot
(not available yet in the official source code) will check if your board
is connected to the USB port or the real power connector. The driver
won't increase the cpu speed to 1ghz if you're using the USB connector.

Even if our ARM crew implements an OpenBSD driver to select the cpu
speed, the OpenBSD driver can't increase the speed beyond of the limit
imposed by u-boot.

> and the serial device plugs in there (I've mounted the
> serial device to the board and added wires to the BBS's).  Kinda
> silly to be bolting tiny things to a big block like that, 'cept it
> keeps them and their wires under control...
> 
> Nick.
> 

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



Re: open bsd router

2013-10-03 Thread Chris Cappuccio
alexey.kurin...@gmail.com [alexey.kurin...@gmail.com] wrote:
> Hi. I want to buy some single board (arm cpu) computer for
> installing open bsd and run services NAT, vpn, webserver,
> etc... Primary experiments for work and fun.
> Hours of googling and reading. I found many deviceses, many of it's
> listed there 
> http://www.element14.com/community/community/knode/single-board_computers/blog?start=0
> Exist good industrial boards, but low price start for it when buying
> >=1k boards
> 
> My favorite:
> http://www.pcengines.ch/product.htm
> http://en.wikipedia.org/wiki/Raspberry_Pi
> 

PC Engines works fine with OpenBSD

Raspberry Pi, not at all



Re: open bsd router

2013-10-03 Thread Paolo Aglialoro
It's not arm but... within 100W there are several sparc64 machines with
much more power and possibilities.

For instance a sun fire 120 1U blade will manage up to 100Mbit/s link
without trouble :))) only problem could be noise if ur project is at home
Il 03/ott/2013 23:38 "alexey.kurin...@gmail.com" 
ha scritto:

> Hi. I want to buy some single board (arm cpu) computer for installing open
> bsd and run services NAT, vpn, webserver,
> etc... Primary experiments for work and fun.
> Hours of googling and reading. I found many deviceses, many of it's listed
> there http://www.element14.com/**community/community/knode/**
> single-board_computers/blog?**start=0
> Exist good industrial boards, but low price start for it when buying >=1k
> boards
>
> My favorite:
> http://www.pcengines.ch/**product.htm
> http://en.wikipedia.org/wiki/**Raspberry_Pi
>
> Question is - what boards succesfully used by members of 
> misc@openbsd.orglist? I glad to read members IMHO about used boards.
>
> Sorry for ugly english.



Re: BeagleBone Black cereal

2013-10-03 Thread Barry Grumbine
> Should the other end of the serial cable
> be the traditional RS-232 connector,
> or do serial/USB cables also work?
> Specifically, have you succesfully used any
> of the following with the BeagleBone Black?
>
> http://www.adafruit.com/products/954

I am successfully using this cable for my BBB.
black -> pin 1
green -> pin 4
white -> pin 5
just like in the picture ,)



Re: open bsd router

2013-10-03 Thread Patrick Wildt
Hey,

The PC Engines Alix boards are working quite well.

If you're looking for ARM machines, you'd rather have a look at 
http://cubox-i.com or http://utilite-computer.com .
Note that the second Gigabit Ethernet in the Utilite is connected via PCI-e and 
will need to be worked on.

\Patrick

Am 03.10.2013 um 23:37 schrieb alexey.kurin...@gmail.com:

> Hi. I want to buy some single board (arm cpu) computer for installing open 
> bsd and run services NAT, vpn, webserver,
> etc... Primary experiments for work and fun.
> Hours of googling and reading. I found many deviceses, many of it's listed 
> there 
> http://www.element14.com/community/community/knode/single-board_computers/blog?start=0
> Exist good industrial boards, but low price start for it when buying >=1k 
> boards
> 
> My favorite:
> http://www.pcengines.ch/product.htm
> http://en.wikipedia.org/wiki/Raspberry_Pi
> 
> Question is - what boards succesfully used by members of misc@openbsd.org 
> list? I glad to read members IMHO about used boards.
> 
> Sorry for ugly english.



Re: open bsd router

2013-10-03 Thread Bruno Flueckiger

On 03.10.2013 23:37, alexey.kurin...@gmail.com wrote:


My favorite:
http://www.pcengines.ch/product.htm
http://en.wikipedia.org/wiki/Raspberry_Pi

Question is - what boards succesfully used by members of
misc@openbsd.org list? I glad to read members IMHO about used boards.



I'm using different boards from PC Engines for my servers at home. E. g. 
my firewall is a WRAP board from PC Engines. This is the predecessor of 
their ALIX board. It's almost seven years old and still working 24/7. 
Once in that time I had to replace the CF card because it showed some 
write errors. Else the only maintenance I've done on the board is to 
upgrade to the latest release of OpenBSD every six months.


No, I'm not working for PC Engines. But I'm a huge fan of their products 
:-)


Regards,
Bruno



Re: USB ethernet for OpenBSD

2013-10-03 Thread Janne Johansson
I bought two blue $2 usb-eth from china, they did not work on obsd, but
similar stuff (UNKNOWN4 in usbdevs) is available, so if anyone wants one,
we can try to whip up a working driver together.
The closest thing seems to be axe(4), except the current supported chip is
named 96xx-something and mine is marked 9700.

I still think I got what I paid for though. 8^D



2013/10/3 alexey.kurin...@gmail.com 

> I want to buy D-Link DUB-E100, in man AXE(4) they listed, but not tested
> myself. I can reply when got it.
>
>
> On 10/04/13 00:27, Joseph A Borg wrote:
>
>> Hi!
>>
>>>
>>> Can someone please mention a working USB to Ethernet adapter for OpenBSD
>>> 5.3? (anybody has a working one and can share the name of it?)
>>>
>>> It doesn't need to be Gbit big... just a 10/100 would be more then
>>> enough..
>>>
>>> +1 if it could be buyed from:
>>>
>>> http://www.ebay.co.uk/
>>>
>>> Many Thanks, have a nice day!
>>>
>>
>


-- 
May the most significant bit of your life be positive.



Re: getrlimit(RLIMIT_AS, ...) on OpenBSD

2013-10-03 Thread niXman
2013/10/3 Antoine Jacoutot:

> What is usually done in the ports tree depending on the context and the code 
> is:
> (from memory)
>
> #if defined (RLIMIT_AS)
>setrlimit (RLIMIT_AS, ...);
> #endif
>
> OR
>
> #ifndef (RLIMIT_AS)
> #  define RLIMIT_AS RLIMIT_DATA
> #endif

Thanks!

-- 
Regards,
niXman