Ralink mystery usb mini WiFi adapter

2014-04-19 Thread Alan Corey
I just got a cheap USB WiFi adapter that I thought was a Realtek for
some reason, turned out to be Ralink. I was interested in small
because I want to mount it at the focal point of a TVRO satellite
dish. If I'd known it was Ralink I wouldn't have bought it.

So I plug it into my laptop running OpenBSD 5.2 and it just gets a
ugen in dmesg, nothing in ifconfig at all, no drivers attach to it.
ugen0 at uhub1 port 3 MediaTek 802.11 n WLAN rev 2.01/0.00 addr 2

On a Linux box lsusb says
Bus 001 Device 071: ID 148f:7601 Ralink Technology, Corp.

The page at Rakuten where I got it:
http://www.rakuten.com/prod/usb-mini-wifi-wireless-adapter-network-card-802-11n-150m/236363146.html
There's a UPC code on that page.

Any new Ralink driver since 5.2? I couldn't find anything.  No
paperwork came with it, just a mini-cd with Windows, Mac and
supposedly Linux drivers for kernels 2.4  2.6 (ancient).  It seems to
use just 802 11N as a model number.

Any way to get it working or do I set it aside and wait for a driver
someday?  It was only $7.49 with free shipping. I've got a Realtek
RTL8188 coming from China.

  Alan
-- 
Credit is the root of all evil.  - AB1JX



Re: Routine network config. gone wrong

2014-04-19 Thread Tomas Bodzar
On Fri, Apr 18, 2014 at 4:16 PM, Lubo Diakov lubodia...@gmail.com wrote:

 Tomas,

 I included many of the outputs you mention. Since we're talking about
 a networking configuration, obviously doing something like ssh to copy
 the relevant information is not yet possible, so I looked at the
 screen of the OpenBSD system, and typed (in abbreviated form) the most
 relevant parts like ifconfig, resolv.conf and so on into this message
 (see my first post). I didn't copy the actual IP addresses, but unless
 I typed it in wrong on OpenBSD (possible, but unlikely given how many
 times I entered it), the addresses in question work on another system
 (the one this message is sent from). Nevertheless, I will run the
 commands you mention on OpenBSD and copy it by some other means, like
 a USB flash drive.



Well I can't see stuff like this in your email.

$ ifconfig
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33136
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff00
em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr MAC
priority: 0
groups: egress
media: Ethernet autoselect (1000baseT full-duplex,master)
status: active
inet6 IPv6%em0 prefixlen 64 scopeid 0x1
inet IPv4 netmask 0xff00 broadcast IPv4
enc0: flags=0
priority: 0
groups: enc
status: active
pflog0: flags=141UP,RUNNING,PROMISC mtu 33136
priority: 0
groups: pflog
$

$ ifconfig em0 media
em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr MAC
priority: 0
groups: egress
media: Ethernet autoselect (1000baseT full-duplex,master)
status: active
supported media:
media 10baseT
media 10baseT mediaopt full-duplex
media 100baseTX
media 100baseTX mediaopt full-duplex
media 1000baseT mediaopt full-duplex
media 1000baseT
media autoselect
inet IPv4 netmask 0xff00 broadcast IPv4
$

You pasted just partial parts of those outputs. Which may not be enough
some times. You may have eg. some weir characters left in /etc/resolv.conf
or whatever.



Re: Ralink mystery usb mini WiFi adapter

2014-04-19 Thread Stefan Sperling
On Sat, Apr 19, 2014 at 02:12:23AM -0400, Alan Corey wrote:
 I just got a cheap USB WiFi adapter that I thought was a Realtek for
 some reason, turned out to be Ralink. I was interested in small
 because I want to mount it at the focal point of a TVRO satellite
 dish. If I'd known it was Ralink I wouldn't have bought it.
 
 So I plug it into my laptop running OpenBSD 5.2 and it just gets a
 ugen in dmesg, nothing in ifconfig at all, no drivers attach to it.
 ugen0 at uhub1 port 3 MediaTek 802.11 n WLAN rev 2.01/0.00 addr 2
 
 On a Linux box lsusb says
 Bus 001 Device 071: ID 148f:7601 Ralink Technology, Corp.
 
 The page at Rakuten where I got it:
 http://www.rakuten.com/prod/usb-mini-wifi-wireless-adapter-network-card-802-11n-150m/236363146.html
 There's a UPC code on that page.
 
 Any new Ralink driver since 5.2? I couldn't find anything.  No
 paperwork came with it, just a mini-cd with Windows, Mac and
 supposedly Linux drivers for kernels 2.4  2.6 (ancient).  It seems to
 use just 802 11N as a model number.
 
 Any way to get it working or do I set it aside and wait for a driver
 someday?  It was only $7.49 with free shipping. I've got a Realtek
 RTL8188 coming from China.

There is a GPL'd linux driver for it from Ralink.
http://www.mediatek.com/en/downloads/mt7601u-usb/
So it's possible that OpenBSD will support it at some point.
Just keep it and wait.



Fatal: building ports requires correctly installed X11

2014-04-19 Thread carlos
Hi All,

Hope you are all having a wonderful day and are full of coffee.

The whole error message:
Fatal: building ports requires correctly installed X11 (in security/scrypt)
*** Error 1 in /usr/ports/security/scrypt
(/usr/ports/infrastructure/mk/bsd.port.mk:3470 '.BEGIN': @exit 1)

I got the tree via

# cd /usr
# cvs -qd anon...@anoncvs3.usa.openbsd.org:/cvs get -P src xenocara ports

I did try a few different ports (bash, ncdu, scrypt), all with the
same error. I installed the system using the latest install55.fs
snapshot and made sure to leave the defaults alone, other than using
RAID and softraid0 for FDE on a secondary mSata drive.

Running 'startx' boots into fvwm and it is fully usable, so I guess
that rules out not having X11 installed?

P.S - Somewhat unrelated - I tried reinstalling, first deleted all 
partitions with gparted. When I got to the bioctl command, I only 
had to type the encryption password once. I guess I did not clean 
the partition correctly?

# bioctl -c C -l /dev/sd1a softraid0 (command used)

Full dmesg below:

$ dmesg
OpenBSD 5.5-current (GENERIC.MP) #72: Tue Apr 15 10:51:03 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3959615488 (3776MB)
avail mem = 3845447680 (3667MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdae9c000 (69 entries)
bios0: vendor LENOVO version G2ETA0WW (2.60 ) date 03/05/2013
bios0: LENOVO 2306CTO
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC TCPA SSDT SSDT SSDT HPET APIC MCFG ECDT FPDT ASF!
UEFI UEFI POAT SSDT SSDT UEFI DBG2
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP3(S4) XHCI(S3) EHC1(S3)
EHC2(S3) HDEF(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-3210M CPU @ 2.50GHz, 2494.78 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz, 2494.35 MHz
cpu1:
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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz, 2494.34 MHz
cpu2:
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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz, 2494.35 MHz
cpu3:
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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus 4 (EXP3)
acpicpu0 at acpi0: C2, C1, PSS
acpicpu1 at acpi0: C2, C1, PSS
acpicpu2 at acpi0: C2, C1, PSS
acpicpu3 at acpi0: C2, C1, PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1, EHC2
acpitz0 at acpi0: critical temperature is 103 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 45N1025 serial 24862 type LION oem LGC
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2494 MHz: speeds: 2501, 2500, 2400, 2300, 2200, 2100,
2000, 1900, 1800, 1700, 1600, 1500, 1400, 1300, 1200 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Core 3G Host rev 0x09
vga1 at pci0 dev 2 function 0 Intel HD Graphics 4000 rev 0x09
intagp0 at vga1
agp0 at intagp0: 

Re: Fatal: building ports requires correctly installed X11

2014-04-19 Thread Stuart Henderson
On 2014-04-19, car...@cgarcia.org car...@cgarcia.org wrote:
 Hi All,

 Hope you are all having a wonderful day and are full of coffee.

 The whole error message:
 Fatal: building ports requires correctly installed X11 (in security/scrypt)
 *** Error 1 in /usr/ports/security/scrypt
 (/usr/ports/infrastructure/mk/bsd.port.mk:3470 '.BEGIN': @exit 1)

Do you have the file /usr/X11R6/man/whatis.db ?

 P.S - Somewhat unrelated - I tried reinstalling, first deleted all 
 partitions with gparted. When I got to the bioctl command, I only 
 had to type the encryption password once. I guess I did not clean 
 the partition correctly?

Please don't post unrelated problems in the same mail, but you probably need
to wipe the softraid metadata as well, for example by scribbling over the start
of the disk with dd if=/dev/zero of=/dev/rwd0c bs=1m count=1.



Re: ghostscript 9.06 in OpenBSD AGPL or GNU GPL version?

2014-04-19 Thread Stuart Henderson
On 2014-04-17, Bob Eby eby...@gmail.com wrote:
 Hi,

 I've spent some time building the GNU 9.06.0 version of
 ghostscript from the GNU site.

 I notice in the 5.4 ports Makefie:
 VERSION= 9.06
 DISTNAME= ghostscript-${VERSION}
 ...
 MASTER_SITES= http://downloads.ghostscript.com/public/

 This seems to indicate you're using the AGPL version 9.06
 ghostscript from the Artifex site?  Is that correct?
 Is AGPL compatible with OpenBSD ports?

 I just wonder why not use the AGPL version 9.07 or 9.10?
 Seems odd you stick to the version GNU (non-A)GPL uses: 9.06.0
 if there isn't any connection.

 Thanks for any info,
 Bob



9.06 is GPL not AGPL.

-current uses 9.07 which is AGPL, this should be updated sometime,
but it's a fairly nasty port to update, so it isn't unusual if it lags
a bit.



Re: Fatal: building ports requires correctly installed X11

2014-04-19 Thread Antoine Jacoutot
On Sat, Apr 19, 2014 at 03:06:48PM +, Stuart Henderson wrote:
 On 2014-04-19, car...@cgarcia.org car...@cgarcia.org wrote:
  Hi All,
 
  Hope you are all having a wonderful day and are full of coffee.
 
  The whole error message:
  Fatal: building ports requires correctly installed X11 (in security/scrypt)
  *** Error 1 in /usr/ports/security/scrypt
  (/usr/ports/infrastructure/mk/bsd.port.mk:3470 '.BEGIN': @exit 1)
 
 Do you have the file /usr/X11R6/man/whatis.db ?

Actually it is:
/usr/X11R6/man/mandoc.db

Since the recent makewhatis changes.

-- 
Antoine



Re: Fatal: building ports requires correctly installed X11

2014-04-19 Thread Stuart Henderson
On 2014/04/19 17:11, Antoine Jacoutot wrote:
 On Sat, Apr 19, 2014 at 03:06:48PM +, Stuart Henderson wrote:
  On 2014-04-19, car...@cgarcia.org car...@cgarcia.org wrote:
   Hi All,
  
   Hope you are all having a wonderful day and are full of coffee.
  
   The whole error message:
   Fatal: building ports requires correctly installed X11 (in 
   security/scrypt)
   *** Error 1 in /usr/ports/security/scrypt
   (/usr/ports/infrastructure/mk/bsd.port.mk:3470 '.BEGIN': @exit 1)
  
  Do you have the file /usr/X11R6/man/whatis.db ?
 
 Actually it is:
 /usr/X11R6/man/mandoc.db
 
 Since the recent makewhatis changes.
 
 -- 
 Antoine

Oh right - I see what the problem is, ports/infrastructure/mk/bsd.port.mk
has been updated to track this change, but new snapshots are not available yet.

Carlos, just touch /usr/X11R6/man/mandoc.db for now.



Re: Slow IO on SSD disk

2014-04-19 Thread Sélène

Le 2014-04-18 18:59, Paco Esteban a écrit :

On Fri, 18 Apr 2014, sin wrote:


On Fri, Apr 18, 2014 at 12:39:16PM +0200, Paco Esteban wrote:
 Hi all,

 I've installed 5.4. Everything is working great (sound, webcam, etc) but
 disk. I get ~40MB/s writing and reding to and from disk. This very same
 disk reported 250MB/s reading and 190MB/s writing on debian7.

I get ~220MB/s reading and ~170MB/s writing using the same exact disk 
on

an x200 running -current.

If interested, I will get to post a dmesg later when I have access to
the machine.

I used dd as well with if=/dev/zero and bs=1M.


Hi,

just upgraded to -current.
After that with no ther modifications I get ~190MB/s reading and 
110MB/s

writing, which is ok for me.

dmesg is attached just in case is useful.

Cheers,



Hello,

Is your OpenBSD partition aligned to 4k ? This makes an huge difference.


Regards
Sélène



Re: Fatal: building ports requires correctly installed X11

2014-04-19 Thread Carlos Garcia
  Do you have the file /usr/X11R6/man/whatis.db ?

 Actually it is:
 /usr/X11R6/man/mandoc.db

 Since the recent makewhatis changes.

 --
 Antoine

Oh right - I see what the problem is, ports/infrastructure/mk/bsd.port.mk
has been updated to track this change, but new snapshots are not available yet.

Carlos, just touch /usr/X11R6/man/mandoc.db for now.

That fixed it, thank you very much.

PS - I think I may have just broken the thread, was not subscribed to
misc@ - Sorry



High Fan Speed in Current 5.5

2014-04-19 Thread Kaya Saman

Hi,

I hope someone can help me with this...


For some reason my fans are spinning up at 3000RPM and making a lot of  
noise. I have a similar chassis m/b combo running FreeBSD 10 which runs  
almost silent.


The processor usage on this machine isn't very high at all and is even  
being throttled.



Here is what I've done so far:

Enable APMD with the -C option; taken from the man page -

 -C  Start apmd in cool running performance adjustment mode.  In this
 mode, when CPU idle time falls below 10%, apmd raises  
hw.setperf
 as much as necessary.  Otherwise when CPU idle time is above  
30%,
 apmd lowers hw.setperf as much as possible to reduce heat,  
noise,

 and power consumption.

and also enable SENSORSD

sysctl output:

hw.sensors.cpu0.temp0=51.00 degC
hw.sensors.cpu1.temp0=51.00 degC
hw.sensors.cpu2.temp0=51.00 degC
hw.sensors.cpu3.temp0=51.00 degC
hw.sensors.lm1.temp0=34.00 degC
hw.sensors.lm1.temp1=57.00 degC
hw.sensors.lm1.temp2=33.50 degC
hw.sensors.lm1.volt0=1.08 VDC (VCore)
hw.sensors.lm1.volt1=12.04 VDC (+12V)
hw.sensors.lm1.volt2=3.36 VDC (+3.3V)
hw.sensors.lm1.volt3=3.36 VDC (+3.3V)
hw.sensors.lm1.volt4=-10.92 VDC (-12V)
hw.sensors.lm1.volt5=1.26 VDC
hw.sensors.lm1.volt6=1.06 VDC
hw.sensors.lm1.volt7=3.33 VDC (3.3VSB)
hw.sensors.lm1.volt8=1.60 VDC (VBAT)
hw.sensors.lm2.temp0=34.00 degC
hw.sensors.lm2.temp1=57.00 degC
hw.sensors.lm2.temp2=33.50 degC
hw.sensors.lm2.fan0=1622 RPM
hw.sensors.lm2.fan1=164 RPM
hw.sensors.lm2.fan2=3013 RPM
hw.sensors.lm2.fan3=2986 RPM
hw.sensors.lm2.fan4=164 RPM
hw.sensors.lm2.volt0=1.08 VDC (VCore)
hw.sensors.lm2.volt1=12.04 VDC (+12V)
hw.sensors.lm2.volt2=3.36 VDC (+3.3V)
hw.sensors.lm2.volt3=3.36 VDC (+3.3V)
hw.sensors.lm2.volt4=-10.92 VDC (-12V)
hw.sensors.lm2.volt5=1.26 VDC
hw.sensors.lm2.volt6=1.06 VDC
hw.sensors.lm2.volt7=3.33 VDC (3.3VSB)
hw.sensors.lm2.volt8=1.60 VDC (VBAT)
hw.cpuspeed=1200
hw.setperf=0
hw.vendor=Supermicro
hw.product=X9SRE/X9SRE-3F/X9SRi/X9SRi-3F


The CPU is a Xeon E5 which the above output tells me it's been downclocked  
to 1.2GHz (is rated at 3.7GHz) hooked up to a SuperMicro system board and  
4U chassis with 80mm?? fans.



More output:

# apropos fan | grep 4
adl (4) - Andigilog aSC7621 temperature, voltage, and fan sensor
adt (4) - Analog Devices ADT7460 temperature, voltage, and fan sensor
adtfsm (4) - Analog Devices ADT7462 temperature, voltage, and fan sensor
aibs (4) - ASUSTeK AI Booster ACPI ATK0110 temperature, voltage, and fan  
sensor

andl (4) - Andigilog aSC7611 temperature, voltage, and fan sensor
fcu (4/macppc) - Apple Fan Control Unit sensor device
glenv (4) - Genesys Logic GL518SM temperature, voltage, and fan sensor
it (4) - ITE IT87xxF and SiS SiS950 temperature, voltage, and fan sensor  
with watchdog timer
lm (4) - National Semiconductor LM78/79/81 temperature, voltage, and fan  
sensor
lmenv (4) - National Semiconductor LM87 temperature, voltage, and fan  
sensor

lmn (4) - National Semiconductor LM93 temperature, voltage, and fan sensor
nvt (4) - Nuvoton W83795G/ADG temperature, voltage, and fan sensor
tda (4/sparc64) - Philips TDA8444 fan controller
uguru (4) - ABIT temperature, voltage and fan sensors
wbenv (4) - Winbond W83L784R/W83L785R/W83L785TS-L temperature, voltage,  
and fan sensor

wbng (4) - Winbond W83793G temperature, voltage, and fan sensor



DMESG:


OpenBSD 5.5-current (GENERIC.MP) #50: Thu Apr  3 12:37:31 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8537219072 (8141MB)
avail mem = 8301203456 (7916MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec640 (117 entries)
bios0: vendor American Megatrends Inc. version 3.0 date 07/05/2013
bios0: Supermicro X9SRE/X9SRE-3F/X9SRi/X9SRi-3F
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC FPDT HPET PRAD SSDT SPCR EINJ ERST HEST BERT  
DMAR MCFG
acpi0: wakeup devices PS2K(S4) PS2M(S4) P0P9(S1) EUSB(S4) USBE(S4)  
PEX0(S4) PEX1(S4) PEX2(S4) PEX3(S4) PEX4(S4) PEX5(S4) PEX6(S4) NPE2(S4)  
NPE4(S4) NPE5(S4) PXHA(S4) [...]

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 3600.43 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,DCA,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
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 3599.99 MHz
cpu1:  

Re: Routine network config. gone wrong

2014-04-19 Thread Giancarlo Razzolini
Em 18-04-2014 15:04, Lubo Diakov escreveu:
 Routing tables

 Internet:
 DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
 default188.126.4.1UGS1 7188 - 8 rl1
 127/8  127.0.0.1  UGRS   00 33192 8 lo0
 127.0.0.1  127.0.0.1  UH 10 33192 4 lo0
 188.126.4/24   link#3 UC 20 - 4 rl1
 188.126.4.100:30:48:b8:c5:83  UHLc   1   72 - 4 rl1
 188.126.4.24   4c:00:10:3c:23:5c  UHLc   06 - 4 lo0
 192.168.6/24   link#1 UC 30 - 4 rl0
 192.168.6.600:40:f4:44:07:56  UHLc   06 - 4 lo0
 192.168.6.800:80:ad:00:7c:ca  UHLc   1   44 - 4 rl0
 192.168.6.900:80:ad:00:7c:ca  UHLc   0   70 - 4 rl0
 224/4  127.0.0.1  URS00 33192 8 lo0

 Internet6:
 DestinationGateway
 Flags   Refs  Use   Mtu  Prio Iface
 ::/104 ::1UGRS
   00 - 8 lo0
 ::/96  ::1UGRS
   00 - 8 lo0
 ::1::1UH
  140 33192 4 lo0
 ::127.0.0.0/104::1UGRS
   00 - 8 lo0
 ::224.0.0.0/100::1UGRS
   00 - 8 lo0
 ::255.0.0.0/104::1UGRS
   00 - 8 lo0
 :::0.0.0.0/96  ::1UGRS
   00 - 8 lo0
 2002::/24  ::1UGRS
   00 - 8 lo0
 2002:7f00::/24 ::1UGRS
   00 - 8 lo0
 2002:e000::/20 ::1UGRS
   00 - 8 lo0
 2002:ff00::/24 ::1UGRS
   00 - 8 lo0
 fe80::/10  ::1UGRS
   00 - 8 lo0
 fe80::%rl0/64  link#1 UC
   00 - 4 rl0
 fe80::240:f4ff:fe44:756%rl000:40:f4:44:07:56  HL
   00 - 4 lo0
 fe80::%rl1/64  link#3 UC
   00 - 4 rl1
 fe80::4e00:10ff:fe3c:235c%rl1  4c:00:10:3c:23:5c  HL
   00 - 4 lo0
 fe80::%lo0/64  fe80::1%lo0U
   00 - 4 lo0
 fe80::1%lo0link#5 UHL
   00 - 4 lo0
 fec0::/10  ::1UGRS
   00 - 8 lo0
 ff01::/16  ::1UGRS
   00 - 8 lo0
 ff01::%rl0/32  link#1 UC
   00 - 4 rl0
 ff01::%rl1/32  link#3 UC
   00 - 4 rl1
 ff01::%lo0/32  fe80::1%lo0UC
   00 - 4 lo0
 ff02::/16  ::1UGRS
   00 - 8 lo0
 ff02::%rl0/32  link#1 UC
   00 - 4 rl0
 ff02::%rl1/32  link#3 UC
   00 - 4 rl1
 ff02::%lo0/32  fe80::1%lo0UC
   00 - 4 lo0

 Is /etc/mygate the correct way to route on a system with two or more
 NICs (IP addresses) or is it better to put route add commands in each
 hostname file for the appropriate NIC? (i.e route traffic for the
 internet via rl1, and traffic for 192.168.whatever via rl0)

 Something else I had not noticed before, the ISP has BGPd running
 accrding to nmap under Ubuntu, which it occurred to me might explain a
 lot of this, though again, it isn't logical why it works on Ubuntu but
 not OpenBSD, but if I need for example a BGP client installed and
 configured that might sort it out. No such client or server installed
 under Ubuntu though, so that seems unlikely.

We still need dmesg, ifconfig and such. But I can tell you right know
that I had the same issue some years ago. A linux worked while an
OpenBSD didn't. Turned out, the ISP modem had it's own configuration
wrong, where it should be a /29 it was a /30 if I'm not mistaken. On
linux it worked because their networking stack is lazy. On OpenBSD it
didn't, because if the netmask isn't right it will 

Re: Slow IO on SSD disk

2014-04-19 Thread Paco Esteban
On Sat, 19 Apr 2014, Sélène wrote:

 Le 2014-04-18 18:59, Paco Esteban a écrit :
 On Fri, 18 Apr 2014, sin wrote:
 
 On Fri, Apr 18, 2014 at 12:39:16PM +0200, Paco Esteban wrote:
  Hi all,
 
  I've installed 5.4. Everything is working great (sound, webcam, etc)
but
  disk. I get ~40MB/s writing and reding to and from disk. This very same
  disk reported 250MB/s reading and 190MB/s writing on debian7.
 
 I get ~220MB/s reading and ~170MB/s writing using the same exact disk on
 an x200 running -current.
 
 If interested, I will get to post a dmesg later when I have access to
 the machine.
 
 I used dd as well with if=/dev/zero and bs=1M.
 
 Hi,
 
 just upgraded to -current.
 After that with no ther modifications I get ~190MB/s reading and 110MB/s
 writing, which is ok for me.
 
 dmesg is attached just in case is useful.
 
 Cheers,


 Hello,

 Is your OpenBSD partition aligned to 4k ? This makes an huge difference.

I don't know, I've to check. Just accepted the proposed partition schema
during install, seemed ok to me.

Cheers,

--
Paco Esteban.
GnuPG key: 0x0E1192A4

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: pdksh vi-like bindings

2014-04-19 Thread joasia et damien
- Wiadomość oryginalna -

 On Fri, Apr 18, 2014 at 08:54:06AM +0200, joasia et damien wrote:
  Hello,
  
  Is there any way to change vi-bindings in pdksh? According to the
  manual, there isn't, but maybe you know some workarounds? 
  I am using a french bépo layout: instead of h,j,k,l I have c,t,r,s,
  
  Since I make an intensive use of vi-movements on terminals 
 (especially when using sqlite from the shell), any hint would be 
 welcome. 
  
  Btw, thanks for the great openBSD man pages. Nice and short.
 
 I don't think so, but note that you can fairly easily run some other
 shell on OpenBSD (pkg_add -i bash; ensure bash is in /etc/shells; 
 chsh.)
   Joachim
 

Hello,


Thanks for your answer. I am currently using zsh but I am quite tired 
with searching its long man pages. I consider pdksh much easier, that's 
why I was considering switching to pdksh

Regards,


Damien



Re: Ralink mystery usb mini WiFi adapter

2014-04-19 Thread Alan Corey
On 4/19/14, Stefan Sperling s...@openbsd.org wrote:
 On Sat, Apr 19, 2014 at 02:12:23AM -0400, Alan Corey wrote:
 I just got a cheap USB WiFi adapter that I thought was a Realtek for
 some reason, turned out to be Ralink. I was interested in small
 because I want to mount it at the focal point of a TVRO satellite
 dish. If I'd known it was Ralink I wouldn't have bought it.

 So I plug it into my laptop running OpenBSD 5.2 and it just gets a
 ugen in dmesg, nothing in ifconfig at all, no drivers attach to it.
 ugen0 at uhub1 port 3 MediaTek 802.11 n WLAN rev 2.01/0.00 addr 2

 On a Linux box lsusb says
 Bus 001 Device 071: ID 148f:7601 Ralink Technology, Corp.

 The page at Rakuten where I got it:
 http://www.rakuten.com/prod/usb-mini-wifi-wireless-adapter-network-card-802-11n-150m/236363146.html
 There's a UPC code on that page.

 Any new Ralink driver since 5.2? I couldn't find anything.  No
 paperwork came with it, just a mini-cd with Windows, Mac and
 supposedly Linux drivers for kernels 2.4  2.6 (ancient).  It seems to
 use just 802 11N as a model number.

 Any way to get it working or do I set it aside and wait for a driver
 someday?  It was only $7.49 with free shipping. I've got a Realtek
 RTL8188 coming from China.

 There is a GPL'd linux driver for it from Ralink.
 http://www.mediatek.com/en/downloads/mt7601u-usb/
 So it's possible that OpenBSD will support it at some point.
 Just keep it and wait.


So it does need a different driver, it's not just a matter of tweaking
a device ID somewhere?  Looks like it's not being recognized at the
USB layer, I've had to fudge device ids of scanners for SANE.

And yes, this is a generic kernel.  The standard 4 Ralink drivers are
present but ignore it.


-- 
Credit is the root of all evil.  - AB1JX



PI-like board for OpenBSD?

2014-04-19 Thread Martin Braun
Hi

I know that there isn't going to be any support for the Rasberry-PI,
but I have been looking for something similar that runs OpenBSD
without any problems.

I am mainly interested because of the low power consumption and
because I want to have this box running 24/7 with OpenBSD.

I mainly need it for OpenSMTPD and Nginx stuff, so graphics isn't
important, but I also don't want to fiddle around with special cables
and stuff, ie. it should be relatively easy to install OpenBSD.

I already have a couple of R-PI's running XBMC and I have a Cubox
running Debian.

Any recommendations for a mini box that runs OpenBSD without problems?

Kind regards.



Re: PI-like board for OpenBSD?

2014-04-19 Thread Guy Hunter
On Sun, Apr 20, 2014 at 03:02:05AM +0200, Martin Braun wrote:
 Any recommendations for a mini box that runs OpenBSD without problems?
 
http://www.openbsd.org/armv7.html



Re: PI-like board for OpenBSD?

2014-04-19 Thread Nick Holland
On 04/19/14 21:01, Martin Braun wrote:
 Hi
 
 I know that there isn't going to be any support for the Rasberry-PI,
 but I have been looking for something similar that runs OpenBSD
 without any problems.
 
 I am mainly interested because of the low power consumption and
 because I want to have this box running 24/7 with OpenBSD.
 
 I mainly need it for OpenSMTPD and Nginx stuff, so graphics isn't
 important, but I also don't want to fiddle around with special cables
 and stuff, ie. it should be relatively easy to install OpenBSD.
 
 I already have a couple of R-PI's running XBMC and I have a Cubox
 running Debian.
 
 Any recommendations for a mini box that runs OpenBSD without problems?
 
 Kind regards.

http://www.openbsd.org/armv7.html

I'm kinda fond of the BeagleBone Black boards.  similar size to the
Raspberry Pi boards.  No USB support at this point.

A bunch of people will yell Soekris!.  But then, they yell that for
every question.  ;)

There is also Alix boards, which I've seen people sing the praises of.

On the other hand, I recently built a three-port firewall system using
an old P3-ish 700MHz Celeron desktop and a CF-IDE adapter -- measured
power draw: 27W when idle.  Yeah, a lot more power than a Beaglebone,
but it was basically free, and a heck of a lot more powerful than any of
the ARM systems we support.  free is a big head-start when it comes to
saving money on electricity.

I've found a fair number of used appliance devices and network
terminals which are basically just special purpose PCs.  Again, not as
low power as the ARM systems, but again, starting price of near free
is hard to beat.

Nick.