Re: I want to contribute to OpenBSD. Where should I begin?

2024-09-08 Thread Daniel Gracia
Hi!

I believe the default guideline would be something like:

1. use the code.
2. miss something/find any misbehaviour? then
3. read the code.
4. try fixing the code.
5. when your brain catches fire, ask the community (always include your use
case/share your experience/your misses).
7. enjoy!

IMHO nobody but you should find your own *ptr to the code; so good luck!

Regards,



El dom, 8 sept 2024 a las 20:40, Neel chakraborty (<
neelroboinfo...@gmail.com>) escribió:

> Hello everyone,
>
> I have recently begun using OpenBSD regularly and am impressed with the
> user experience thus far. I am keen to contribute to the project and would
> appreciate your guidance on how to get started.
>
> I have some experience with C and shell scripting. Would you recommend
> starting by reading the source code directly? If so, could you suggest
> where I should begin?
>
> I have learned C from the Kernighan and Ritchie book. Is this level of
> knowledge sufficient for contributing to OpenBSD development? If not, could
> you please recommend additional resources or materials to enhance my skills?
>
> Thank you for your time and assistance.
> Best regards,
> Neel
>
>
>


Re: ubnt edgerouter 8

2024-04-29 Thread Daniel Gracia
I replaced my 8 Pro fans with Noctua units and I'm pretty happy with them;
they came with several adapters that allow you to choose the speed of the
fans.

Converting to passive cooling, if you have enough room on the cabinet and
are a proficient user of drills, I'd try to (i) remove the heatsink of the
CPU, (ii) drill a hole on the top case, (iii) put a little wire to measure
the distance from the case to the surface of the CPU, (iv) go to the
hardware store to get some aluminium profiles, (v) cut and pile then up the
distance between cover and CPU and there you go. With a little luck the
case top will go HOT, and the CPU will chump happily. No guarantees implied
(take into account I live in a quite cold place xDDD).

Regards!

El lun, 29 abr 2024 a las 15:41, Peter J. Philipp ()
escribió:

> Hi,
>
> What sort of things can I do to keep an edgerouter 8 cool that doesn't have
> fans?  I'm ready to pull the fans out of it because they have a certain
> harmonic that makes me physically ill.  But I like the octeon!
>
> So short of throwing it out I'm thinking of pulling the plug (on the fans).
> Would running it with 1 core instead of multicpu keep it cooler?  Would it
> be enough?  Should I glue some rasperry pi heatsinks to the CPU?  I have a
> few extra.
>
> These are the 2nd fans on this thing they were supposed to be quieter but
> they still annoy me.  I understand I'm a very sensitive person to noise and
> vibration (ever since I was a baby).
>
> Other than running off one core only to keep thermals low, is there any
> other stuff one can do like step the processor cycles down?
>
> Any help is much appreciated.  The ER-8 right now idles a lot anyhow and
> I plan on using it for the 8 RJ45 ports.
>
> Best Regards,
> -pjp
>
> --
> my associated domains:  callpeter.tel|centroid.eu|dtschland.eu|
> mainrechner.de
>
>


Re: Identifying a network

2022-03-23 Thread Daniel Gracia
El mié, 23 mar 2022 a las 15:12, Zé Loff () escribió:
>
>
> Hi all
>
> I have a laptop in which I use ifstated to determine whether it is "at
> home" or whether it is "roaming", and bring up the VPN -- used to be
> iked, now its wg -- for unwind and some NFS shares, if it is.
>
> My question is: how would you detect if the machine it's "at home"?
>
> My present setup is a combination of checking the BSSID of the AP if it
> is connected to one, and some MAC addresses of other machines on the
> network.  I can think of a couple other ways (SSH host keys, external IP
> -- though it might change --, DHCP-assigned domain, etc).  Is there an
> easier way I'm not thinking of?  How would you do it?

The DHCP solution (i.e. option 15) seems to be a sane way of solving
your problem from the client side. To solve the situation the other
way around (getting to know from which AP your client is connecting at
the DHCP server) I would get some APs that cope with option 82. Then
you would know from where you are connecting, on both sides of the
wire.

>
> Note that this doesn't have 100% fail proof nor am I worried about
> covering absolutely all corner cases, or paranoid about someone spoofing
> my network's BSSID, MAC addresses, etc, etc, just to prevent me from
> setting up a VPN.  This is just for convenience.
>
> Cheers and TIA
> Zé
>
> --
>
>

Regards!



Re: Installer fails to boot on Raspberry Pi 400

2022-02-28 Thread Daniel Gracia
El lun, 28 feb 2022 a las 18:12,  escribió:
>
> I followed the documented procedure (https://www.openbsd.org/arm64.html
> and https://ftp.openbsd.org/pub/OpenBSD/7.0/arm64/INSTALL.arm64) for
> installing on Raspberry Pi 400 systems:
>
> - put install70.img on a USB stick
> - boot from UEFI firmware v1.21 on a microSD card
> - `set tty fb0`
> - boot installer
>
> The installer boots, but only halfway. The usual blue text scrolls past
> but then it reboots midway through. This happens too quickly for me to
> see the error message immediately preceeding the reboot.
>
> Any suggestions for troubleshooting? I am working on getting a serial
> adapter so I can log the boot messages.
>

Just for the sake of curiosity:

With a cellphone at hand, you could get a cue recording the full boot
sequence and playing it frame by frame a couple of times.



Re: Install latest package without prompts on OpenBSD 7.0

2022-01-10 Thread Daniel Gracia
El lun, 10 ene 2022 a las 4:10, Jeffrey Walton ()
escribió:

> Hi Everyone,
>
> I am working on OpenBSD 7.0, x86_64. I'm trying to script an install
> of developer tools I use, like GCC and Git. When I attempt to install
> GCC I am prompted:
>
> $ sudo pkg_add gcc g++
> quirks-4.54 signed on 2022-01-09T19:08:35Z
> Ambiguous: choose package for gcc
> a0: 
> 1: gcc-8.4.0p9
> 2: gcc-11.2.0p0
>
> I've looked over the man page at https://man.openbsd.org/pkg_add, but
> I don't see an option to tell pkg_add to install the latest version of
> the package.
>
> How do I tell pkg_add to install the latest version without prompting me?
>

By the way, talking about packages, it should be noted that stating
'latest version' here is an abuse of notation, as those are two different
ports, and each one already represents its latest package version.

Regards!


> Thanks in advance.
>
>


Re: Install latest package without prompts on OpenBSD 7.0

2022-01-10 Thread Daniel Gracia
El lun, 10 ene 2022 a las 4:10, Jeffrey Walton ()
escribió:
>
> Hi Everyone,
>
> I am working on OpenBSD 7.0, x86_64. I'm trying to script an install
> of developer tools I use, like GCC and Git. When I attempt to install
> GCC I am prompted:
>
> $ sudo pkg_add gcc g++
> quirks-4.54 signed on 2022-01-09T19:08:35Z
> Ambiguous: choose package for gcc
> a0: 
> 1: gcc-8.4.0p9
> 2: gcc-11.2.0p0
>
> I've looked over the man page at https://man.openbsd.org/pkg_add, but
> I don't see an option to tell pkg_add to install the latest version of
> the package.
>
> How do I tell pkg_add to install the latest version without prompting me?
>

Not being ambiguous, i.e. with 'sudo pkg_add gcc-12.2.0p0'.

If you're looking forward to finding a one-liner able to install the
latest version on packages, I'm not aware of any standard way. Taking
output from 'pkg_info', filtering and feeding into 'pkg_add' should do the
trick.

Regards!

> Thanks in advance.
>


Re: Companies using openbsd

2019-10-20 Thread Daniel Gracia
Our company has developed several devices that run OpenBSD under the hood,
including a milk expending machine and a multichannel RoIP device.
Curiosly, network features have no relevance for us: stability and a solid
and consistent audio interface make OpenBSD a winner for us.

Regards!

El dom., 20 oct. 2019 a las 23:18, Christopher Turkel (<
turkel.christop...@gmail.com>) escribió:

> The company I work for uses OpenBSD for development.
>
> On Sun, Oct 20, 2019 at 5:12 PM List  wrote:
>
> > Hi,
> >
> > are there companies known to you who use openbsd for their products ?
> >
> > For building let's say their own OS based upon OpenBSD ?
> >
> > Thanks for your time.
> >
> > Regards,
> >
> > Stephan
> >
> >
>


Re: Mount SMB share with usmb on startup

2019-06-19 Thread Daniel Gracia
Most probably PATH. Dirty solution may be appending the full path to the
binary.

Logged as root:

# which usmb

should get you the full path name for your command. Something like
'/usr/local/bin/usmb'. Use this full path instead of 'usmb0', i.e.

/usr/local/bin/usmb -c /root/.usmb.conf boxx &> /dev/null

Regards!


El mié., 19 jun. 2019 a las 9:53, slackwaree ()
escribió:

> Hello guys,
>
> I know everyone hates windoz :( but here is something I would like to
> solve:
>
> I have a working share with usmb. I have writteng an rc script to mount
> this at boots:
>
> #!/bin/sh
> sleep 60
>
> usmb -c /root/.usmb.conf boxx &> /dev/null
>
> Adding sleep didnt help.
> I have put this script into /etc/rc.local but unfortunately it does not
> mount anything. Maybe some enviromental variable is not loaded in correctly?
>
> As root manually this works and mounts the share.
>


Re: IPsec bandwidth perf on APU4C4

2019-06-12 Thread Daniel Gracia
Those look like reasonable numbers for the given scenario. Improving
your IPsec bandwidth would take more horsepower than an APU box.
Improving site-to-site encrypted VPN speed, asuming two APU boxes,
would require switching from IPsec to something like a WireGuard VPN,
available on -current as a package, but I'm not quite sure how much
performance would be attainable on OpenBSD. Heard >500Mbps on
APU3/Debian combo[1], but once again, don't believe everything you
read on Internet.

Regards and good luck!

[1] https://teklager.se/en/knowledge-base/apu2-vpn-performance/

El mar., 11 jun. 2019 a las 18:10, mabi () escribió:
>
> ‐‐‐ Original Message ‐‐‐
> On Tuesday, June 11, 2019 1:04 PM, Christian Weisgerber  
> wrote:
>
> > > childsa enc aes-128-gcm
> >
> > Correct.
>
> For reference I now changed the childsa encryption cipher to aes-128-gcm and 
> get 93 Mbit/s throughput instead of the 80 Mbit/s I saw with aes-256.
>
> Better than nothing but still not quite optimal so I was wondering if anyone 
> had already achieved better IPsec site-to-site bandwidth throughput with a PC 
> Engines APU4 box?
>
> I have a very simple site-2-site IPsec connection which basically is just the 
> following config in my iked.conf file:
>
> ikev2 active esp from $local_ip to $remote_ip local $local_ip peer $remote_ip 
> childsa enc aes-128-gcm srcid $local_ip dstid $remote_ip
> ikev2 active esp from $local_network to $remote_network local $local_ip peer 
> $remote_ip childsa enc aes-128-gcm srcid $local_ip dstid $remote_ip
>
> Cheers,
> Mabi
>



Re: RS-232 serial to ethernet

2019-04-08 Thread Daniel Gracia
I have a somewhat similar device and works without issues. However, it
has a serious backdraw: it provides no way of securing the comms
channel: any TCP/UDP is open text. Should you need to use such a
device in the wild, take that into account.

Regards!

El lun., 8 abr. 2019 a las 18:07, LÉVAI Dániel () escribió:
>
> Hi misc@!
>
> I was wondering if I could use some budget solution to access my OpenBSD
> machine via its serial console over the network, and I stumbled upon
> this piece of hardware: [1] [2] [3] (the same device "USR-TCP232-302",
> I'm just not sure which one will be up at the time someone looks at
> them)
>
> It basically should be able convert the serial port to TCP/IP
> networking. Is this something anyone else has used before -- or if you
> know something similar, I'm really interested!
>
>
> Thanks,
> Dani
>
> [1] - 
> https://www.aliexpress.com/item/Q18041-USR-TCP232-302-Tiny-Size-Serial-RS232-to-Ethernet-TCP-IP-Server-Module-Ethernet-Converter/32683105763.html
> [2] - 
> https://www.aliexpress.com/item/USR-TCP232-302-Tiny-Size-Serial-RS232-to-Ethernet-TCP-IP-Server-Module-Ethernet-Converter-Support/32899179930.html
> [3] - 
> https://www.aliexpress.com/item/Q18041-USR-TCP232-302-Tiny-Size-Serial-RS232-to-Ethernet-TCP-IP-Server-Module-Ethernet-Converter/32685599659.html
>
> --
> LÉVAI Dániel
> PGP key ID = 0x83B63A8F
> Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F
>



Re: Django + httpd + relayd

2019-03-30 Thread Daniel Gracia
El sáb., 30 mar. 2019 a las 20:40, Flipchan () escribió:
>
> Reyk if your reading this reverseproxy is a feature request for httpd.
>

Have you tried relayd(8)?

Regards!

>
> Just set up a bunch off ur django stuff and have relayd redirect to the hosts 
> in a way you seem fit, like create a relay for http in the conf and write a 
> table with the host n ports and forward it to the table, check out hugo's 
> project hiawatha it comes with alot of nice features and it will get rid of 
> the ugly reverse proxy hack cuz it has a native build in reverse proxy, i can 
> send you how i solved the fastcgi reverse proxy its basicly httpd listens on 
> a fastcgi socket that is a reverseproxy, i tried just creating a reverse unix 
> socket but httpd will not work with that so fastcgi socket only it seems like.
>
> Good luck
>
>
>
> On March 30, 2019 4:29:46 PM GMT+01:00, Michael Joy  
> wrote:
> >Sounds perfect. Any tips on how to get started with configuration and
> >such?
> >
> >On Sat, 30 Mar 2019 at 15:19, Flipchan  wrote:
> >
> >> You cant do a reverse proxy with httpd however you can do it ugly
> >with a
> >> fastcgi reverse proxy , httpd fastcgi reverseproxy to relayd and load
> >> balance to mulitple python listeners i have it working like a charm
> >:)
> >>
> >> On March 30, 2019 3:22:47 PM GMT+01:00, Michael Joy
> >
> >> wrote:
> >>>
> >>> Apologies in advance for the noobish question.
> >>> Does anyone have a tutorial or example of a working configuration
> >for a
> >>> Django app being served with httpd and relayd? Beating my head off
> >the wall
> >>> with it at this point.
> >>>
> >>>
> >> --
> >> Sent from my Android device with K-9 Mail. Please excuse my brevity.
> >>
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: python3 script not running as root

2018-11-15 Thread Daniel Gracia
AFAIK cron won't spawn a login shell, so there are no 'env' variables
to start with. You could import a user's profile from the crontab and
get done with that (0 5 * * * . $HOME/.profile;
/path/to/command/to/run) but IMO best practice would require you to
set any variables in your cron script.

Regards!
El jue., 15 nov. 2018 a las 8:44, Markus Rosjat () escribió:
>
> Hi all,
>
> I have a python script to get some traffic stats from my machines and it
> is running without problems except for a new installed OpenBSD 6.4
> machine. There I get following error:
>
> env: python3: No such file or directory
>
> This only happens when the cronjob is running when I run it from
> terminal with doas it works. That is kinda odd sice both root and my
> user have python3 and env in there $PATH at least the path to the
> executable.
>
> some hints would be appreciated.
>
> regards
>
> --
> Markus Rosjatfon: +49 351 8107224mail: ros...@ghweb.de
>
> G+H Webservice GbR Gorzolla, Herrmann
> 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: Dual boot OpenBSD with DragonFly BSD

2018-10-08 Thread Daniel Gracia
I'm currently running rEFInd to dual boot Win10/OBSD on a Lenovo
T460s. Just resized the Win10 partition, booted OBSD ramdisk,
installed it on the spare space, and then installed fEFInd over the NT
boot manager. To my surprise, it was a pretty painless procedure. And
solid: just once in the last couple years a Win update mangled the
boot manager and kidnapped the SSD, but reinstalling rEFInd over was
just a two minutes fix.

Good luck!

El lun., 8 oct. 2018 a las 16:07, Henrik Engmark () escribió:
>
> This will be yet another non-answer to your question, I am fully aware,
> but maybe it will be applicable to your situation.
>
> I always found dual booting with OpenBSD a little bit cumbersome
> compared to other OSes.
> Whenever I want to "dual boot" my OpenBSD client computers I
> install the second OS to its own usb drive with its own mbr, leaving
> the internal drive untouched.
> When I want to boot the secondary OS I just interrupt the normal
> boot process with whatever F-key and choose to boot from the stick.
> Has served me well for many years, and makes it very easy to try out
> different secondary OSes, as long as I consider OpenBSD my main.
>
> Regards,
> Henrik
>
> -Original message-
> > From: Dr. Martin Ivanov [mailto:martin.iva...@greenpocket.de]
> > Sent: den 7 oktober 2018 16:23
> > To: misc@openbsd.org
> > Subject: Dual boot OpenBSD with DragonFly BSD
> >
> > Hello, I am a Linux (Slackware) fan who is keen to try the BSD flavour as 
> > well. I am planning to buy a new laptop, on which to install OpenBSD and 
> > DragonFly BSD in a dual boot set up. I know this is a challenging task, so 
> > I will proceed step by step.
> >
> >
> > My first question is, which operating system has to be installed first, 
> > DragonFly of OpenBSD? Assuming that it is DragonFly,  I am planning to:
> >
> >
> >   1.  Load DragonFly using a USB boot disk and login as root
> >
> >   2. Slice the hard drive in two GPT slices using gpt (e.g., das0 and
> > das1)
> >
> >   3. Create a, b, and d disklabel partitions on the Dragonfly slice
> > (das0)
> >
> >   4. Install DragonFly on das0
> >
> >   5. Create a, b, d, e, and probably some more disklabel partitions on
> > the OpenBSD slice (das1)
> >
> >   6. Install OpenBSD on das1
> >
> > Please correct me on any of the above steps. I will be happy to read your 
> > suggestions. I would be very thankful if you provide the corresponding 
> > commands in your answers.
> > Thank you very much in advance!
>



Disabling hyperthreading on Lenovo T460s now possible

2018-09-25 Thread Daniel Gracia
To whom it may concern, I just updated the BIOS of my T460s to 1.39
and it now allows to disable hyperthreading (there are a bunch of
other new config options). Find dmesg ahead.

Regards!

OpenBSD 6.4-beta (GENERIC.MP) #295: Fri Sep 14 09:02:03 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8304644096 (7919MB)
avail mem = 8043687936 (7671MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xaf054000 (65 entries)
bios0: vendor LENOVO version "N1CET71W (1.39 )" date 09/04/2018
bios0: LENOVO 20F9005CMS
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SSDT SSDT TPM2 UEFI SSDT SSDT ECDT HPET
APIC MCFG SSDT DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT
UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2195.80 MHz, 06-4e-03
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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
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 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2194.90 MHz, 06-4e-03
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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (EXP1)
acpiprt5 at acpi0: bus -1 (EXP2)
acpiprt6 at acpi0: bus 4 (EXP3)
acpiprt7 at acpi0: bus -1 (EXP5)
acpiprt8 at acpi0: bus -1 (RP09)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151
mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151
mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI
acpipwrres1 at acpi0: PG00, resource for PEG0
acpipwrres2 at acpi0: PG01, resource for PEG1
acpipwrres3 at acpi0: PG02, resource for PEG2
acpipwrres4 at acpi0: WRST
acpipwrres5 at acpi0: WRST
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpicmos0 at acpi0
acpibat0 at acpi0: BAT0 model "00HW022" serial  3753 type LiP oem "SANYO"
acpibat1 at acpi0: BAT1 model "01AV405" serial  5654 type LION oem "SANYO"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"INT0E0C" at acpi0 not configured
"MSFT0101" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout at acpivideo0 not configured
cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2301, 2300, 2200, 2100,
2000, 1800, 1700, 1500, 1400, 1300, 1100, 1000, 800, 700, 500, 400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x08
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 520" rev 0x07
drm0 at inteldrm0
inteldrm0: msi
error: [drm:pid0:i915_firmware_load_error_print] *ERROR* failed to
load firmware i915/skl_dmc_ver1.bin (-22)
error: [drm:pid0:i915_gem_init_hw] *ERROR* Failed to initialize GuC,
error -8 (ignored)
inteldrm0: 1920x1080, 32bpp
error: [drm:pid0:intel_dp_link_training_clock_recovery] *ERROR* too
many full retries, give up
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel Core GMM" rev 0x00 at pci0 dev 8 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21
"Intel 1

Re: Running your own mail server

2018-09-18 Thread Daniel Gracia
Take a look other here:

https://www.cvedetails.com/vulnerability-list/vendor_id-8871/Clamav.html


El mar., 18 sept. 2018 a las 11:02, Marko Cupać ()
escribió:

> On Tue, 18 Sep 2018 10:32:25 +0100
> Kevin Chadwick  wrote:
>
> > I see clamav and other scanning stuff as an insecurity personally.
>
> Can you elaborate, please?
> --
> Before enlightenment - chop wood, draw water.
> After  enlightenment - chop wood, draw water.
>
> Marko Cupać
> https://www.mimar.rs/
>
>


Re: New laptop recommendations

2018-06-19 Thread Daniel Gracia
I would opt for a Thinkpad. Actually working with a T460s; runs like a
charm. If you are looking for mobility, a T series should fit. If you need
more horsepower take a look at P series.

Of course those are my preferences, YMMV!

Regards.

El mar., 19 jun. 2018 a las 12:41, Rupert Gallagher ()
escribió:

> I'm done with my 10 years old 1200EUR MacBookPro. It served me well, every
> day, but is now falling apart, finally.
>
> I would buy a new one if only Steve Jobs would be alive and keeping Apple
> inspired. The new models are meticulously designed to make you suffer:
> expensive, slow cpu, soldered ram, soldered disk, small disk, bad keyboard
> keys, wifi only, must pay extra for standard connectors.
>
> I have 1500EUR for a new laptop. What would you buy with it?
>


Re: "Halted" firewall - is it a good idea as feature? or just a fun story

2018-06-07 Thread Daniel Gracia
I'm not loving it. For silly firewalls, I'd rather prefer a FPGA with a
PHY. But then, you have managed switches with L3 routing...

2018-06-07 20:48 GMT+02:00 Jacqueline Jolicoeur :

> > Because this method does ensure that no user will ever gain controlling
> access to the firewall itself, there is definitely a huge security benefit.
>
> I do not believe this is true.
>
> > a degree in Philosophy.
>
> This firewall setup reminds me of the minimalism art movement.
>
>


Re: door opening sensor HW for OpenBSD?

2018-03-25 Thread Daniel Gracia
Hack an Amazon Dash: just register the thing, don't attach it to any
product, wire it anywhere and listen to the ARP probes thatwill pop
everytime the thing is pushed and connects to your WiFi network. It's a
nice, clean, small, wireless, silly battery-powered no-nonsense
overengineered solution.

2018-03-24 22:32 GMT+01:00 Hess THR :

> Hello,
>
> I have an OpenBSD amd64 notebook running 24h next to a door, ~50cm.
>
> Can you please recommend any hardware, that I could plug in to the
> notebook and though I could send a warning mail when the door was moved
> (open/closed).
>
> I can do the scripting part, but I just don't know where to start for
> hardwares that sense that the door was moved.
>
> Many, many thanks.
>
>


Re: Bandwidth Queuing on Asymmetrical Connections?

2018-02-18 Thread Daniel Gracia
 As said, shaping figures are to be applied to outbound interfaces. So,
i.e., should you need to limit the inbound/outbound BW of the internal host
w.x.y.z, being your egress iface 'xl0' and your local iface 'em0', you
would limit to 100Mbps traffic going to w.x.y.z through 'em0', and limit to
10Mbps traffic comming from w.x.y.z through 'xl0' (always outgoing flows).

Regards!


Re: FYI: logitech mouse LED color tool

2018-01-12 Thread Daniel Gracia
Nice to hack a script and warn whenever mail is coming and screen is blank.
Thanks!

2018-01-12 13:08 GMT+01:00 flipchan :

> Nice
>
> On January 12, 2018 2:42:06 AM GMT+01:00, Jan Klemkow <
> j.klem...@wemelug.de> wrote:
> >Hi,
> >
> >I implemented a utility to set the LED color of Logitech mouse devices
> >on OpenBSD.  Some people might also use this mouse and would like to
> >change the LED color.
> >
> >If you are interested just try it: https://github.com/younix/g403led
> >
> >I just tested it with the "G403 Prodigy Gaming Mouse" model.  If it
> >also
> >work for other models, let me know.
> >
> >Any feedback is welcome.
> >
> >bye,
> >Jan
>
> --
> Take Care Sincerely flipchan layerprox dev


Re: 4G modems for OpenBSD?

2018-01-10 Thread Daniel Gracia
This scenario is trivial, as far as the Sierra Wireless Airlink supports
UDP client/server links. I.e., a properly configurated gateway (easily done
through their web interface) should be able to accept UDP packets on any
defined port and accept messages in the form
'<<>>',
so just using netcat to send the line

<<<16046556677,ASCII,14,5448495320495320412054455354>>>

(being the message formatted in hex ASCII, in this case 'THIS IS A TEST')
will do the trick. You should receive another UDP packet to a port of your
choice ACKing the message. And that's all.

Regards!


2018-01-09 18:03 GMT+01:00 Israel Brewster :

> On Jan 9, 2018, at 12:07 AM, Daniel Gracia  wrote:
>
>
> Maybe this is not exactly the solution you're looking for, but have you
> considered using a 4G gateway? In the past I've had great success with
> Sierra Wireles AirLink family. It's pretty easy to send SMS commands
> through IP with them, so a local Ethernet connection to the gateway should
> do the trick. Neat devices!
>
>
> Sounds worth checking out. I can always connect it directly via a second
> ethernet port or the like, so being IP should be fine.
>
> The main concern is that the machine in question be able to get a message
> out, even if the switch it is connected to dies. So a little creative
> networking, and a solution like this should be fine, as long as the SMS
> commands can be sent from the command line.
>
> Thanks!
>
> ---
> Israel Brewster
> Systems Analyst II
> Ravn Alaska
> 5245 Airport Industrial Rd
> <https://maps.google.com/?q=5245+Airport+Industrial+RdFairbanks,+AK+99709+(907&entry=gmail&source=g>
> Fairbanks, AK 99709
> <https://maps.google.com/?q=5245+Airport+Industrial+RdFairbanks,+AK+99709+(907&entry=gmail&source=g>
> (907
> <https://maps.google.com/?q=5245+Airport+Industrial+RdFairbanks,+AK+99709+(907&entry=gmail&source=g>)
> 450-7293
> ---
>
>
> Regards,
>
>
> 2018-01-09 1:35 GMT+01:00 Israel Brewster :
>
> Could anyone suggest a USB 4G cell modem model that will work well with
> OpenBSD, specifically SMSTools? I've looked over most of the list in "man
> umsm", but those all appear to be 3G. That said, I haven't checked every
> model on the list, so there could be one or more 4G models that I missed.
> I've also seen this thread: http://openbsd-archive.7691.
> n7.nabble.com/4g-LTE-modem-td106310.html <http://openbsd-archive.7691.
> n7.nabble.com/4g-LTE-modem-td106310.html>, but that is over 5 years old.
> There is also this thread: http://openbsd-archive.7691.
> n7.nabble.com/Anyone-experienced-with-4G-LTE-modems-td281872.html <
> http://openbsd-archive.7691.n7.nabble.com/Anyone-experienced-with-4G-LTE-
> modems-td281872.html>, but that doesn't appear to offer any suggestions
> of USB cell modems - just suggestions of using external cellular routers.
>
> I do need a direct USB connection for the purposes of sending SMS messages
> directly from the system, i.e. I need to be able to send a SMS even if the
> internet is down, so online cloud services or the like that can convert
> e-mail to SMS aren't an option. Thanks.
>
> ---
> Israel Brewster
> Systems Analyst II
> Ravn Alaska
> 5245 Airport Industrial Rd
> <https://maps.google.com/?q=5245+Airport+Industrial+Rd+Fairbanks,+AK+99709+(907&entry=gmail&source=g>
> Fairbanks, AK 99709
> <https://maps.google.com/?q=5245+Airport+Industrial+Rd+Fairbanks,+AK+99709+(907&entry=gmail&source=g>
> (907
> <https://maps.google.com/?q=5245+Airport+Industrial+Rd+Fairbanks,+AK+99709+(907&entry=gmail&source=g>)
> 450-7293
> ---
>
>
>
>
>
>
>


Re: 4G modems for OpenBSD?

2018-01-09 Thread Daniel Gracia
Maybe this is not exactly the solution you're looking for, but have you
considered using a 4G gateway? In the past I've had great success with
Sierra Wireles AirLink family. It's pretty easy to send SMS commands
through IP with them, so a local Ethernet connection to the gateway should
do the trick. Neat devices!

Regards,


2018-01-09 1:35 GMT+01:00 Israel Brewster :

> Could anyone suggest a USB 4G cell modem model that will work well with
> OpenBSD, specifically SMSTools? I've looked over most of the list in "man
> umsm", but those all appear to be 3G. That said, I haven't checked every
> model on the list, so there could be one or more 4G models that I missed.
> I've also seen this thread: http://openbsd-archive.7691.
> n7.nabble.com/4g-LTE-modem-td106310.html  n7.nabble.com/4g-LTE-modem-td106310.html>, but that is over 5 years old.
> There is also this thread: http://openbsd-archive.7691.
> n7.nabble.com/Anyone-experienced-with-4G-LTE-modems-td281872.html <
> http://openbsd-archive.7691.n7.nabble.com/Anyone-experienced-with-4G-LTE-
> modems-td281872.html>, but that doesn't appear to offer any suggestions
> of USB cell modems - just suggestions of using external cellular routers.
>
> I do need a direct USB connection for the purposes of sending SMS messages
> directly from the system, i.e. I need to be able to send a SMS even if the
> internet is down, so online cloud services or the like that can convert
> e-mail to SMS aren't an option. Thanks.
>
> ---
> Israel Brewster
> Systems Analyst II
> Ravn Alaska
> 5245 Airport Industrial Rd
> Fairbanks, AK 99709
> (907) 450-7293
> ---
>
>
>
>
>


Re: Suppessing logging of arp movement messages

2017-11-09 Thread Daniel Gracia
AFAIK there is no way to turn off those messages in the default kernel. You
could try to write a patch if you care: take a look at
src/sys/netinet/if_ether.c, line #625.

Regards!


2017-11-09 9:14 GMT+01:00 OpenBSD :

> Torsten,
>
> Thanks for responding to my question.
> I know about this specific sysctl on FreeBSD. Used this one on pfSense as
> well. The issue is that this one, or functional similar seems not available
> on OpenBSD.
>
> Maybe someone else has run into this before and found a way?
>
> Marco PC
>
> > Op 8 nov. 2017, om 16:44 heeft torsten  het
> volgende geschreven:
> >
> >
> >> -Original Message-
> >> From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf
> >> Of OpenBSD
> >> Sent: 08 November 2017 15:44
> >> To: misc@openbsd.org
> >> Subject: Suppessing logging of arp movement messages
> >>
> >> hello all,
> >>
> >> I have finally build an internet gateway with OpenBSD 6.2 (AMD64),
> >> including pf and IPSec. Great stuff.
> >> Now I am seeing a lot of arp movement, that I know are caused by
> >> Apple's Bonjour Sleep Proxy.
> >>
> >> Nov  8 00:00:27 gatekeeper /bsd: arp info overwritten for 192.168.20.99
> >> by 00:46:ab:ba:19:87 on vmx0 Nov  8 00:00:58 gatekeeper /bsd: arp info
> >> overwritten for 192.168.20.99 by 9c:ab:3b:ca:fe:99 on vmx0 Nov  8
> >> 00:01:57 gatekeeper /bsd: arp info overwritten for 192.168.20.99 by
> >> 00:46:ab:ba:19:87 on vmx0 Nov  8 00:02:04 gatekeeper /bsd: arp info
> >> overwritten for 192.168.20.99 by 9c:ab:3b:ca:fe:99 on vmx0 Nov  8
> >> 00:02:35 gatekeeper /bsd: arp info overwritten for 192.168.20.99 by
> >> 00:46:ab:ba:19:87 on vmx0 Nov  8 00:03:28 gatekeeper /bsd: arp info
> >> overwritten for 192.168.20.99 by 9c:ab:3b:ca:fe:99 on vmx0 Nov  8
> >> 00:03:42 gatekeeper /bsd: arp info overwritten for 192.168.20.99 by
> >> 00:46:ab:ba:19:87 on vmx0 Nov  8 00:04:27 gatekeeper /bsd: arp info
> >> overwritten for 192.168.20.99 by 9c:ab:3b:ca:fe:99 on vmx0
> >>
> >> These messages are repeating every 15-30 seconds for Apple devices like
> >> laptops that are in standby (sleep mode).
> >>
> >> On pfSense and FreeBSD you have a sysctl:
> >> net.link.ether.inet.log_arp_movements
> >> when set to zero it will no longer log the messages.
> >>
> >> Discussions can be found on internet dating back to 2010, but no
> >> solution has been provided for what I could find.
> >> I have not yet found any sysctl in OpenBSD to do the same. Did I miss
> >> something or does OpenBSD have any trick to not log these messages.
> >> Currently these messages are filling up the logs /var/run/dmesg.boot
> >> and /var/log/messages.
> >>
> >> Marco PC
> >
> > Mi Marco
> > In freebsd is is usually done with
> > sysctl net.link.ether.inet.log_arp_movements=0
> >
> > and I guess this applies to openbsd too.
> > T
> >
>
>


Re: stickers

2017-10-02 Thread Daniel Gracia
Secondary sticker sources (like Red Bubble et al) are very low quality
compared to the original art and make no money for the project; I wouldn't
waste my time on that.

I have supplies for my next two laptops, so I suppose we have a year to
persuade you on how good would be making stickers again.

Regards,


2017-10-02 5:21 GMT+02:00 Theo de Raadt :

> > Now that there are no CDs, are stickers also gone?
>
> I guess many people didn't think through what happened when CD
> production stopped.
>
> Stickers, posters, etc. were subsidized by the sales of CDs.
>
> With CDs gone, of course there isn't an efficient way to sell
> stickers, and make even a few pennies in return for producing art.
>
> Some shops now print our older stickers or newer (minimal) release
> art, and there's nothing we can do about it.  We can complain but it
> solves nothing.  The project and I don't get a single penny.
>
> Sure those of you who want the stickers benefit, but that's selfish
> isn't it.
>
> The OpenBSD Foundation never participated in making artwork.  It was
> always done by me, out of CD income.  It was a tremendous amount of
> effort twice a year, coming up with the ideas and completing them.
> When CDs stopped returning at least some income, that process had to
> stop for everything.
>
>


Re: touchpad input driver: testing needed

2017-08-05 Thread Daniel Gracia
Hi there!

A ThinkPad T460s over here working like a charm; some verbose output below.

Regards,

$
$ doas wsconsctl | grep mouse
wsconsctl: Use explicit arg to view keyboard.map.
mouse.type=synaptics
mouse.rawmode=0
mouse.scale=1472,5676,1408,4762,0,45,69
mouse.tp.tapping=1
mouse.tp.scaling=0.171
mouse.tp.swapsides=0
mouse.tp.disable=0
mouse1.type=ps2
$
$ dmesg
OpenBSD 6.1-current (GENERIC.MP) #44: Thu Aug  3 12:12:07 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8304578560 (7919MB)
avail mem = 8046538752 (7673MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xcf054000 (65 entries)
bios0: vendor LENOVO version "N1CET58W (1.26 )" date 06/30/2017
bios0: LENOVO 20F9005CMS
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SSDT SSDT TPM2 UEFI SSDT SSDT ECDT HPET APIC
MCFG SSDT DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 24 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 23MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 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,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (EXP1)
acpiprt5 at acpi0: bus -1 (EXP2)
acpiprt6 at acpi0: bus 4 (EXP3)
acpiprt7 at acpi0: bus -1 (EXP5)
acpiprt8 at acpi0: bus -1 (RP09)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI
acpipwrres1 at acpi0: PG00, resource for PEG0
acpipwrres2 at acpi0: PG01, resource for PEG1
acpipwrres3 at acpi0: PG02, resource for PEG2
acpipwrres4 at acpi0: WRST
acpipwrres5 at acpi0: WRST
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"LEN0071" at acpi0 not configured
"LEN004B" at acpi0 not configured
"INT3F0D" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "00H

Re: octeon port, ubiquity edgerouter

2017-07-24 Thread Daniel Gracia
I have and spare ERPRO-8 (almost the same dual-core MIPS, 1GHz vs 800MHz,
two SFP ports) that could be included on this tests.

Regards,


2017-07-24 19:21 GMT+02:00 Peter J. Philipp :

> On Mon, Jul 24, 2017 at 07:11:32PM +0200, Doggie wrote:
> > W dniu 2017-07-24 o 14:18, Sean Murphy pisze:
> > > Whoops, you're right.  I did mention that it was an ERL in my original
> > > email, but I didn't follow the original link.  Sorry for the noise.
> >
> > All I can say is that I share the same good experience with ERL :)
> >
> > Now it would be very interesting to see dmesg coming from 8-port ER.
> >
> > --
> > Cheers,
> > Pawel Waga
>
> Hi,
>
> According to DHL the ER-8 will be delivered here tomorrow.  I'm going to
> try
> to get a dmesg on list if it's requested.  Thanks to all that made this
> hardware possible.  The guy that sent this to me has not included a console
> cable so I have only 1 Lanner FW rollover cable here, hoping it will work
> for
> this task.  The Lanner rollover cable is cisco compatible it said on their
> support website, so it should work.  Otherwise we'll have to wait about a
> day
> until I get the rollover cable that I purchased on Amazon yesterday.
>
> Cheers,
> -peter
>
>


Re: Robust ThinkPad suggestions for running OpenBSD.

2017-07-12 Thread Daniel Gracia
Should you need any horsepower I would go for a i7 X220/IPS/SSD combo; mint
examples are available with sensible prices and as far as my experience can
tell, they can get quite abuse taking only minor scratches. They are not
low-voltage machines so can get warm; fan is louder and batteries drain
fast, but its CPU is still faster than my T460s i5. I don't like X230 and
newer because feel a little like underpowered pigs.

For those price-conscious people a X200 machine is a very capable machine
(if you don't mind loosing the touchpad). I've dropped it dozens of times,
and runs smooth!

Regards!


2017-07-12 12:18 GMT+02:00 J. Misc. :

> Hello, everyone.
>
> I'm here to ask for input on a hardware purchase that I believe seasoned
> OpenBSD users could provide some valuable insight into.
>
> I am looking to purchase a ThinkPad to exclusively run OpenBSD on. The
> intent here is to have a dedicated machine to explore and play with
> OpenBSD, and eventually promote it as my primary day-to-day workstation.
>
> A little background: I own a T460s, and it's an excellent machine, but I
> feel it to be too fragile to use in harsh environments, like outdoors or
> hackerspaces with a lot of rough objects around.
>
> The factors for choosing a ThinkPad to begin with is that I own one
> already, I've heard good words about OpenBSDs support for them (apparently,
> stemming from the fact that developers use them themselves) and really, my
> inexperience with a lot of the fancy new things from other vendors.
>
> So, the characteristics I would like the machine to posses, first and
> foremost, are a strong outer shell, so it can sustain a fair beating
> (unintentional). Weight and size small enough that it doesn't become a
> burden (I also have a Dell Precision 3510, and it's so heavy/big that I
> would never purchase it myself on these factors alone).
>
> It doesn't need to come with the best and latest 7th gen Intel i7 - I
> don't plan to do extremely heavy loads on it - I have other machines for
> that. Nor does it have to have things like a fingerprint scanner and all
> the other bells and whistles. I don't care about a touch screen either. A
> decently sized ssd or spindle would be preferred. A reasonably low power
> consumption rate, or support for an extended battery, would be very
> preferential, as I travel and don't like to become stationary for charging.
> I don't abuse my equipment, so I would like it to not suffer from
> continuous hardware failures due to poor physical characteristics, like bad
> air circulation.
>
> I understand that the above description is vague and leaves a lot to the
> imagination, but that is intentional. I don't mind looking into other OEM
> products either. If anyone has personal experience to share, or point into
> the direction where I could get informed, I'm all ears.
>
> --
> J. Misc.
>
>



Re: OpenBSD IPSec setup

2017-06-29 Thread Daniel Gracia
My two-cents:

* IPsec hardware crypto is supported for a lot more platforms than OpenVPN
out of the box, so IPsec uses to be noticeably faster. i.e, and UBNT
Edgerouter Lite will give me about 20Mbps over OpenVPN vs almost 1Gbps
(line rate) over IPsec.
* IPsec code in OpenBSD is audited, OpenVPN is a port.

Regards!


2017-06-29 12:32 GMT+02:00 Luescher Claude :

> Why are you using ipsec in the 21th century:
>
> https://serverfault.com/questions/202917/openvpn-vs-ipsec-
> pros-and-cons-what-to-use
>
> I see no pros here just cons unless you need to setup a vpn with some
> crappy old device which should be just switched out with an obsd box anyway
> :)
>
>
> On 2017-06-29 11:29, Liviu Daia wrote:
>
>> On 29 June 2017, Liviu Daia  wrote:
>> [...]
>>
>>> On the server:
>>>
>>> # iked -d
>>> ikev2_recv: IKE_SA_INIT request from initiator 89.136.163.27:500 to
>>> x.y.z.t:500 policy 'sb1' id 0, 510 bytes
>>> ikev2_msg_send: IKE_SA_INIT response from x.y.z.t:500 to
>>> 89.136.163.27:500 msgid 0, 471 bytes
>>> ikev2_recv: IKE_AUTH request from initiator 89.136.163.27:500 to
>>> x.y.z.t:500 policy 'sb1' id 1, 1520 bytes
>>> ikev2_msg_send: IKE_AUTH response from x.y.z.t:500 to 89.136.163.27:500
>>> msgid 1, 1440 bytes
>>> sa_state: VALID -> ESTABLISHED from 89.136.163.27:500 to x.y.z.t:500
>>> policy 'sb1'
>>> ikev2_recv: IKE_AUTH request from initiator 89.136.163.27:500 to
>>> x.y.z.t:500 policy 'sb1' id 2, 1520 bytes
>>> ikev2_recv: IKE_AUTH request from initiator 89.136.163.27:500 to
>>> x.y.z.t:500 policy 'sb1' id 2, 1520 bytes
>>> ikev2_recv: IKE_AUTH request from initiator 89.136.163.27:500 to
>>> x.y.z.t:500 policy 'sb1' id 2, 1520 bytes
>>> ikev2_recv: IKE_AUTH request from initiator 89.136.163.27:500 to
>>> x.y.z.t:500 policy 'sb1' id 2, 1520 bytes
>>>
>>> On the home router:
>>>
>>> # iked -d
>>> set_policy: could not find pubkey for /etc/iked/pubkeys/ipv4/x.y.z.t
>>> ikev2_msg_send: IKE_SA_INIT request from 89.136.163.27:500 to
>>> x.y.z.t:500 msgid 0, 510 bytes
>>> ikev2_recv: IKE_SA_INIT response from responder x.y.z.t:500 to
>>> 89.136.163.27:500 policy 'home' id 0, 471 bytes
>>> ikev2_msg_send: IKE_AUTH request from 89.136.163.27:500 to x.y.z.t:500
>>> msgid 1, 1520 bytes
>>> ikev2_recv: IKE_AUTH response from responder x.y.z.t:500 to
>>> 89.136.163.27:500 policy 'home' id 1, 1440 bytes
>>> ikev2_ike_auth_recv: unexpected auth method RSA_SIG, was expecting SIG
>>> ikev2_msg_send: IKE_AUTH request from 89.136.163.27:500 to x.y.z.t:500
>>> msgid 2, 1520 bytes
>>>
>>> The warning about pubkey doesn't go away if I copy the server's
>>> certificate to /etc/iked/pubkeys/ipv4/x.y.z.t, nor if I install it in
>>> /etc/iked/certs.  And then there's this, which doesn't look normal:
>>>
>>> ikev2_ike_auth_recv: unexpected auth method RSA_SIG, was expecting SIG
>>>
>> [...]
>>
>> Ok this post sent me on the right course:
>>
>> http://www.going-flying.com/blog/mikrotik-openbsd-ikev2.html
>>
>> Here's what I did:
>>
>> cd /etc/ssl/vpn/private
>> openssl rsa -in x.y.z.t.key -pubout -out ~/x.y.z.t
>> ... copy ~/x.y.z.t to /etc/iked/pubkeys/ipv4 on the home router.
>>
>> After that the VPN works, I can send packets from a machine at home
>> and I'm seeing them on enc0 on the remote server:
>>
>> # tcpdump -n -i enc0
>>
>> tcpdump: listening on enc0, link-type ENC
>> 05:14:04.103254 (authentic,confidential): SPI 0xd51e3910: 192.168.7.2
>> > 10.0.0.102: icmp: echo request (encap)
>> 05:14:05.134106 (authentic,confidential): SPI 0xd51e3910: 192.168.7.2
>> > 10.0.0.102: icmp: echo request (encap)
>> 05:14:06.137831 (authentic,confidential): SPI 0xd51e3910: 192.168.7.2
>> > 10.0.0.102: icmp: echo request (encap)
>> ...
>>
>> However, I'm now running into what seems to be a firewall problem,
>> an I'm getting no answer.  I do have "pass quick inet proto esp" on both
>> VPN ends.  Any idea where / how to fix this?
>>
>> Also, IPs aren't assigned automatically to the VPN ends.  I can
>> add them to hostname.enc0, but is this the right thing to do?  I tried
>> adding a line
>>
>> config address 10.0.0.102
>>
>> to /etc/iked.conf, but that's rejected as a syntax error.  A clue stick
>> again please?
>>
>> Regards,
>>
>> Liviu Daia
>>
>
>


Re: OpenBSD/octeon on EdgeRouter PoE - my experience

2017-04-30 Thread Daniel Gracia
I'd bet there are quite more important issues related to the Octean
platform than the switch issue, so I won't expect any progress soon.

About the Lite, you'd get your three working ports.

Regards!


2017-04-29 23:34 GMT+02:00 Doggie :

> W dniu 2017-04-25 o 18:47, Daniel Gracia pisze:
>
>> EdgeRouter PoE octeon has 3 Ethernet hardware ports (it is the very same
>> platform for PoE and Lite). In the case of the PoE unit:
>>
>> * Two first ports are connected to a PHY device (so you can connect an
>> actual UTP/FTP cable).
>> * Third port is connected to an embedded hardware switch rather than a PHY
>> (so you get no cable for your cnmac2).
>>
>> So the OpenBSD kernel output seems reasonable as long as you suppose that
>> nobody has taken the job of writting the driver to enable the embedded
>> switch. Managing PoE is closely related (as this kind of hardware level
>> configuration should require its very own driver).
>>
>> Regards!
>>
>
> Sorry for delayed response and thanks for yours.
>
> In this case, can someone please let me know if there are any plans for
> making this switch supported in OpenBSD in the nearest future?
>
> I'm pretty excited about these little devices so now I'm thinking about
> buying EdgeRouter Lite where, as I understand, all 3 ports would be
> available. And 3 ports is the minimum amount required for my own purposes.
>
> --
> Cheers,
> Pawel Waga
>


Re: OpenBSD/octeon on EdgeRouter PoE - my experience

2017-04-25 Thread Daniel Gracia
EdgeRouter PoE octeon has 3 Ethernet hardware ports (it is the very same
platform for PoE and Lite). In the case of the PoE unit:

* Two first ports are connected to a PHY device (so you can connect an
actual UTP/FTP cable).
* Third port is connected to an embedded hardware switch rather than a PHY
(so you get no cable for your cnmac2).

So the OpenBSD kernel output seems reasonable as long as you suppose that
nobody has taken the job of writting the driver to enable the embedded
switch. Managing PoE is closely related (as this kind of hardware level
configuration should require its very own driver).

Regards!

2017-04-25 3:14 GMT+02:00 Doggie :

> Hello,
>
> OpenBSD has been my system of choice for router / firewall / access point
> purposes since 2003 (v3.3). And naturally it's been doing great :) Up until
> this year though, I would always use rather old i386 hardware (15-20 years
> old PC's are still in operation), equipped with a bunch of slow NIC's,
> while still dreaming about something neat, efficient, small, silent and
> low-energy. Then, all of a sudden, a few months ago I discovered Ubiquiti
> Networks' EdgeRouter PoE, followed by OpenBSD/octeon port. Didn't need much
> time to decide to buy it, remove its original USB flashdrive, deploy
> OpenBSD to a new one and finally give it a try. 6.0 Release is now
> installed, patched and configured with all the needed packages. Below I
> include dmesg outputs ("sysctl hw.sensors" produces no information):
>
> Copyright (c) 1982, 1986, 1989, 1991, 1993
> The Regents of the University of California.  All rights reserved.
> Copyright (c) 1995-2016 OpenBSD. All rights reserved.
> http://www.OpenBSD.org
> OpenBSD 6.0 (GENERIC) #10: Fri Jul 29 04:45:17 UTC 2016
> visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC
> real mem = 536870912 (512MB)
> avail mem = 524386304 (500MB)
> warning: no entropy supplied by boot loader
> mainbus0 at root
> cpu0 at mainbus0: Cavium OCTEON CPU rev 0.1 500 MHz, Software FP emulation
> cpu0: cache L1-I 32KB 4 way D 8KB 64 way, L2 128KB 8 way
> clock0 at mainbus0: int 5
> iobus0 at mainbus0
> dwctwo0 at iobus0 base 0x118006800 irq 56
> usb0 at dwctwo0: USB revision 2.0
> uhub0 at usb0 "Octeon DWC2 root hub" rev 2.00/1.00 addr 1
> octrng0 at iobus0 base 0x14000 irq 0
> cn30xxgmx0 at iobus0 base 0x118000800
> cnmac0 at cn30xxgmx0: RGMII, address **:**:**:**:**:**
> atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2
> cnmac1 at cn30xxgmx0: RGMII, address **:**:**:**:**:**
> atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2
> cnmac2 at cn30xxgmx0: RGMII, address **:**:**:**:**:**
> uartbus0 at mainbus0
> com0 at uartbus0 base 0x118000800 irq 34: ns16550a, 64 byte fifo
> com0: console
> com1 at uartbus0 base 0x118000c00 irq 35: ns16550a, 64 byte fifo
> /dev/ksyms: Symbol table not valid.
> umass0 at uhub0 port 1 configuration 1 interface 0 "JetFlash Mass Storage
> Device" rev 2.10/11.00 addr 2
> umass0: using SCSI over Bulk-Only
> scsibus0 at umass0: 2 targets, initiator 0
> sd0 at scsibus0 targ 1 lun 0:  SCSI4
> 0/direct removable serial.
> sd0: 30128MB, 512 bytes/sector, 61702144 sectors
> vscsi0 at root
> scsibus1 at vscsi0: 256 targets
> softraid0 at root
> scsibus2 at softraid0: 256 targets
> boot device: sd0
> root on sd0a (.a) swap on sd0b dump on sd0b
> WARNING: No TOD clock, believing file system.
> WARNING: CHECK AND RESET THE DATE!
>
> Copyright (c) 1982, 1986, 1989, 1991, 1993
> The Regents of the University of California.  All rights reserved.
> Copyright (c) 1995-2016 OpenBSD. All rights reserved.
> http://www.OpenBSD.org
> OpenBSD 6.0 (GENERIC.MP) #0: Thu Apr  6 00:45:05 CEST 2017
>
> root@:/usr/src/sys/arch/octeon/compile/GENERIC.MP
> real mem = 536870912 (512MB)
> avail mem = 524353536 (500MB)
> warning: no entropy supplied by boot loader
> mainbus0 at root
> cpu0 at mainbus0: Cavium OCTEON CPU rev 0.1 500 MHz, Software FP emulation
> cpu0: cache L1-I 32KB 4 way D 8KB 64 way, L2 128KB 8 way
> cpu1 at mainbus0: Cavium OCTEON CPU rev 0.1 500 MHz, Software FP emulation
> cpu1: cache L1-I 32KB 4 way D 8KB 64 way, L2 128KB 8 way
> clock0 at mainbus0: int 5
> iobus0 at mainbus0
> dwctwo0 at iobus0 base 0x118006800 irq 56
> usb0 at dwctwo0: USB revision 2.0
> uhub0 at usb0 "Octeon DWC2 root hub" rev 2.00/1.00 addr 1
> octrng0 at iobus0 base 0x14000 irq 0
> cn30xxgmx0 at iobus0 base 0x118000800
> cnmac0 at cn30xxgmx0: RGMII, address **:**:**:**:**:**
> atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2
> cnmac1 at cn30xxgmx0: RGMII, address **:**:**:**:**:**
> atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2
> cnmac2 at cn30xxgmx0: RGMII, address **:**:**:**:**:**
> uartbus0 at mainbus0
> com0 at uartbus0 base 0x118000800 irq 34: ns16550a, 64 byte fifo
> com0: console
> com1 at uartbus0 base 0x118000c00 irq 35: ns16550a, 64 byte fifo
> /dev/ksyms: Symbol table not valid.
> umass0

Re: Thinkpad T460s on lastest -snapshot, no Xorg

2017-04-16 Thread Daniel Gracia
Got it! CSM setting must be enable in BIOS setup to correctly boot on fb
console. Now I have wsfb running.

Thanks for the kind help!

2017-04-16 17:34 GMT+02:00 Daniel Gracia :

> I tried the solution. OpenBSD gets to boot, and I can see the resolution
> change to fb console for an instant, then the panel goes black. Too quick
> to be able to see anything; I'll try recording the screen with my
> smartphone xD
>
> This laptop doesn't have HDD lights, so I'm not sure if the computer is
> totally stalled or is just a messed display.
>
> Will keep trying!
>
>
> 2017-04-16 16:26 GMT+02:00 Daniel Gracia :
>
>> Thanks for the tip; I was installing a Win side-to-side and using legacy
>> BIOS mode.
>>
>> Cheers!
>>
>> 2017-04-16 1:21 GMT+02:00 Gregor Best :
>>
>>> Hi Daniel,
>>>
>>> I have a laptop with a similar chipset. The issue is that the
>>> inteldrm(4) driver does not support Skylake devices at the moment.
>>>
>>> If you boot the machine EFI mode, efifb(4) should attach to the EFI
>>> frame buffer. This in turn allows you to use Xorg's wsfb driver with an
>>> /etc/X11/xorg.conf which looks like this:
>>>
>>> Section "Device"
>>> Identifier "default device"
>>> Driver "wsfb"
>>> EndSection
>>>
>>> Apart from missing suspend/resume and 3D-acceleration, such a setup
>>> seems to work nicely for me. Chrome/Firefox need to be taught not to use
>>> graphics acceleration, and for mpv you need to use the commandline
>>> parameter `-vo x11` to tell it to use oldschool X11 rendering.
>>> Brightness control can be done with
>>>
>>> https://github.com/jcs/intel_backlight_fbsd
>>>
>>> if you set `machdep.allowaperture` to 3. Don't mind the `fbsd` in the
>>> name, it works on OpenBSD as well.
>>>
>>> --
>>> Gregor



Re: Thinkpad T460s on lastest -snapshot, no Xorg

2017-04-16 Thread Daniel Gracia
I tried the solution. OpenBSD gets to boot, and I can see the resolution
change to fb console for an instant, then the panel goes black. Too quick
to be able to see anything; I'll try recording the screen with my
smartphone xD

This laptop doesn't have HDD lights, so I'm not sure if the computer is
totally stalled or is just a messed display.

Will keep trying!


2017-04-16 16:26 GMT+02:00 Daniel Gracia :

> Thanks for the tip; I was installing a Win side-to-side and using legacy
> BIOS mode.
>
> Cheers!
>
> 2017-04-16 1:21 GMT+02:00 Gregor Best :
>
>> Hi Daniel,
>>
>> I have a laptop with a similar chipset. The issue is that the
>> inteldrm(4) driver does not support Skylake devices at the moment.
>>
>> If you boot the machine EFI mode, efifb(4) should attach to the EFI
>> frame buffer. This in turn allows you to use Xorg's wsfb driver with an
>> /etc/X11/xorg.conf which looks like this:
>>
>> Section "Device"
>> Identifier "default device"
>> Driver "wsfb"
>> EndSection
>>
>> Apart from missing suspend/resume and 3D-acceleration, such a setup
>> seems to work nicely for me. Chrome/Firefox need to be taught not to use
>> graphics acceleration, and for mpv you need to use the commandline
>> parameter `-vo x11` to tell it to use oldschool X11 rendering.
>> Brightness control can be done with
>>
>> https://github.com/jcs/intel_backlight_fbsd
>>
>> if you set `machdep.allowaperture` to 3. Don't mind the `fbsd` in the
>> name, it works on OpenBSD as well.
>>
>> --
>> Gregor



Re: Thinkpad T460s on lastest -snapshot, no Xorg

2017-04-16 Thread Daniel Gracia
Thanks for the tip; I was installing a Win side-to-side and using legacy
BIOS mode.

Cheers!

2017-04-16 1:21 GMT+02:00 Gregor Best :

> Hi Daniel,
>
> I have a laptop with a similar chipset. The issue is that the
> inteldrm(4) driver does not support Skylake devices at the moment.
>
> If you boot the machine EFI mode, efifb(4) should attach to the EFI
> frame buffer. This in turn allows you to use Xorg's wsfb driver with an
> /etc/X11/xorg.conf which looks like this:
>
> Section "Device"
> Identifier "default device"
> Driver "wsfb"
> EndSection
>
> Apart from missing suspend/resume and 3D-acceleration, such a setup
> seems to work nicely for me. Chrome/Firefox need to be taught not to use
> graphics acceleration, and for mpv you need to use the commandline
> parameter `-vo x11` to tell it to use oldschool X11 rendering.
> Brightness control can be done with
>
> https://github.com/jcs/intel_backlight_fbsd
>
> if you set `machdep.allowaperture` to 3. Don't mind the `fbsd` in the
> name, it works on OpenBSD as well.
>
> --
> Gregor



Thinkpad T460s on lastest -snapshot, no Xorg

2017-04-15 Thread Daniel Gracia
Hi there!

Running a Thinkpad T460s on lastest -snapshot X environment won't start.
Tried both, with no xorg.conf and a simple:

Section "Device"
Identifier"Vesa"
Driver"vesa"
EndSection

to no avail.

machdep.allowaperture=2 is set on sysctl.conf. Some advice to start hacking
on this?

Regards!

==> dmesg:
OpenBSD 6.1-current (GENERIC.MP) #55: Fri Apr 14 13:54:33 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 7826608128 (7464MB)
avail mem = 7584727040 (7233MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xcf054000 (65 entries)
bios0: vendor LENOVO version "N1CET54W (1.22 )" date 02/10/2017
bios0: LENOVO 20F9005CMS
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SSDT SSDT TPM2 UEFI SSDT SSDT ECDT HPET APIC
MCFG SSDT DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 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
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCN
T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,
PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,C
LFLUSHOPT,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 24 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 MHz
cpu1:
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
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCN
T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,
PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,C
LFLUSHOPT,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 MHz
cpu2:
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
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCN
T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,
PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,C
LFLUSHOPT,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400.00 MHz
cpu3:
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
,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCN
T,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,
PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,C
LFLUSHOPT,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (EXP1)
acpiprt5 at acpi0: bus -1 (EXP2)
acpiprt6 at acpi0: bus 4 (EXP3)
acpiprt7 at acpi0: bus -1 (EXP5)
acpiprt8 at acpi0: bus -1 (RP09)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI
acpipwrres1 at acpi0: PG00, resource for PEG0
acpipwrres2 at acpi0: PG01, resource for PEG1
acpipwrres3 at acpi0: PG02, resource for PEG2
acpipwrres4 at acpi0: WRST
acpipwrres5 at acpi0: WRST
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"LEN0071" at acpi0 not configured
"LEN004B" at acpi0 not configured
"INT3F0D" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "00HW022" serial  37

Re: Developing software on OpenBSD

2011-12-02 Thread Daniel Gracia
Just reading the man pages for every lib function you use should give 
good practice advices when applicable.


On the other side, regarding the sound layer, OpenBSD is OSS compatible, 
but I think you would be pleased reading sndio(7). Native OpenBSD sound 
layer is unique, powerful and very developer-friendly.


El 02/12/2011 12:15, Neoklis Kyriazis escribis:

Hi

I hesitate somewhat to post this, being aware of the recommendations to
look for answers in the extensive documentation of OpenBSD, but I just
don't
seem to find the information I need.

I have been using Linux for a number of
years and have written a few
applications for that platform, mainly for my Ham
Radio hobby (they
are available on my website below). I have recently
installed OpenBSD
on my second SSD and I would like to edit the source code to
make it
compatible with OpenBSD's coding standards (I have managed to
compile
a couple of my simplest apps and I already have warnings of
bad practices like
using strcpy and strcat... ;-)

Is there a guide for developers regarding
OpenBSD programming standards
and practices, including specific API functions
like strlcpy etc? Some of
the apps I have written use the ALSA sound API,
which I understand is not
available on OpenBSD (and I think on all *BSDs).  Is
OpenBSD using the
standard OSS API?

My thanks in advance!



Regards
Neoklis - Ham Radio Call 5B4AZ
QTH Locator KM64KR
Website:
http://www.qsl.net/5b4az/




Re: usb device causes system crash (ucomstart: null oxfer)

2011-11-30 Thread Daniel Gracia
3  0  0  0  3  0x40100200idle0
  2  0  0  0  30x100200  kmalloc   kmthread
  1  0  1  0  3  0x4080  wait  init
  0 -1  0  0  3 0x80200  scheduler swapper




On Monday, November 28, 2011 10:43 AM, "Kevin Chadwick"
  wrote:

On Mon, 28 Nov 2011 10:02:41 +0100
Daniel Gracia wrote:


When I unplug the device the system hangs or if

I run usbdevs the system hangs, once hung the watchdog kicks in and
reboots the machine.


Completely unsubstantiated and untested theory but out of interest does
it still hang if you whip out the usb quickly rather than casually?




Is this a joke?

   Byron Klippert
   byronklipp...@ml1.net
   (867) 332-4184




Re: usb device causes system crash (ucomstart: null oxfer)

2011-11-28 Thread Daniel Gracia
I've nothing but trouble trying to work with _every_ USB/Serial adapter 
on OpenBSD. Hacking on drivers didn't helped, so I tend to think our USB 
stack is quite poor.


But I don't blame; USB is a toy, and USB devices are toys. Getting 
real(tm) hardware you should solve your problems.


PS: This is my opinion, based on my experience. Your mileage may vary.

El 28/11/2011 7:17, Byron Klippert escribis:

I wrote a C program to talk to a I2C usb master device. On the surface
this program seems to work consistently. It wasn't until I wrapped the C
program in shell code and looped it, when a problem was exposed
ultimately crashing the system. I do not know whether my program is
causing the crash or if it's something related to ucom(4).

The shell script runs for days at a time and then it fails with
"ucomstart: null oxfer". When I unplug the device the system hangs or if
I run usbdevs the system hangs, once hung the watchdog kicks in and
reboots the machine. The device is directly connected (no usb hub) and
is the only external usb device on the bus.

I'm very new to C so any criticisms are welcome.

dmesg:
OpenBSD 4.9 (GENERIC) #671: Wed Mar  2 07:09:00 MST 2011
 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
real mem  = 268009472 (255MB)
avail mem = 253493248 (241MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/05/08, BIOS32 rev. 0 @ 0xfd088
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe/0xa800
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
address 00:0d:b9:1c:c9:48
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3,
32-bit 3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0:
wd0: 1-sector PIO, LBA, 3831MB, 7847280 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 12,
version 1.0, legacy support
ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 12
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
biomask fbe7 netmask ffe7 ttymask 
mtrr: K6-family MTRR support (2 registers)
nvram: invalid checksum
uftdi0 at uhub1 port 2 "FTDI FT232R USB UART" rev 2.00/6.00 addr 2
ucom0 at uftdi0 portno 1
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
clock: unknown CMOS layout

---

usbdevs -v:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
AMD(0x1022), rev 1.00
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, OHCI root hub(0x),
AMD(0x1022), rev 1.00
  port 1 powered
  port 2 addr 2: full speed, power 90 mA, config 1, FT232R USB
  UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A700etwC
  port 3 powered
  port 4 powered

---

I2C device info:
http://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm

---

C program "i2c.c":

#include
#include
#include
#include
#include
#include
#include
#include
#include

int open_port(void);
void clearBuf(unsigned char bufType[], int nbytes);
void writeBuf(int fd, unsigned char command[], int nbytes);
void readBuf(int fd, int nbytes);

struct termios options;

int v = 0;  /* turn off verbose output */

int i, n, p, fd;
char *input, *string;

unsigned char wrBuf[4];
unsigned char rdBuf[64];

unsigned char blank[4]  = {0x5a, 0x00, 0x00, 0x00};
unsigned char version[4]= {0x5a, 0x01, 0x00, 0x00};
unsigned char led_on[4] = {0x5a, 0x10, 0x01, 0x00};
unsigned char led_off[4]= {0x5a, 0x10, 0x00, 0x00};
unsigned char set_pins_h[4] = {0x5a, 0x10, 0x0f, 0x00}; /* 3rd byte
= [ (3=I/O3) (2=I/O2) (1=Input1) (0=RedLED) ] */
unsigned char set_pins_l[4] = {0x5a, 0x10, 0x00, 0x00}; /* 3rd byte
= [ (3=I/O3) (2=I/O

Re: My thoughts on OpenBSD - is advocacy working ?

2011-09-01 Thread Daniel Gracia
Lambo, Ferrari, Maserati, Aprilia... As you are an owner, you should 
know their historic -let's call it- 'temperamental' behaviour ;-)


VirtualBox can make some testings comfy, sure; that not solves any real 
problem in a real world, but you mileage may vary, of course. Just my 
opinion from my hairy world :-D


El 01/09/2011 13:07, Wayne Oliver escribis:

On 01 Sep 2011, at 12:37 PM, Daniel Gracia wrote:


You guys aren't serious, are you?

Lambos are shiny and fast crap that gets on fire easily -almost the same for

any italian car/bike out on the market; maybe not Fiat-. And that's just the
opposite OpenBSD seeks.


VirtualBox solving a problem? Not in my world.



8<

I love my Alfa, let's not get personal ;-)

Virtualbox = nice testing/POC tool.




Re: My thoughts on OpenBSD - is advocacy working ?

2011-09-01 Thread Daniel Gracia

You guys aren't serious, are you?

Lambos are shiny and fast crap that gets on fire easily -almost the same 
for any italian car/bike out on the market; maybe not Fiat-. And that's 
just the opposite OpenBSD seeks.


VirtualBox solving a problem? Not in my world.

El 01/09/2011 11:55, Tobias Crefeld escribiC3:

Am Wed, 31 Aug 2011 14:48:56 -0400
schrieb Daniel Villarreal:


I was posting to advoc...@openbsd.org, but only SPAM seems to
function on that list?


Well, for whatever reason it ended at b...@openbsd.org ...

Beside the question what kind of "encryption" your MUA is using...


http://youcanlinux.wordpress.com/my-thoughts-on-openbsd/

[..]

through, Although one canbt convert a Ford car to a Lamborghini
motorcar, you can transform your computer to a high-performance
machine.

[..]

...your comparison works in another way as well: A Lamborghini is a car
like Jaguar, etc. that you never would use as your primary
transportation tool as every repair will take a unpredictable amount of
time at specialised garages that are 300 miles away.

Your primary vehicle will be something that is reliable, commonly used
and well supported. Especially if you need it to make money with it. I
believe that one of the major disadvantages of OpenBSD is the lack of
installation support / guarantee by hardware suppliers. This could
smash your whole roll-out timetable, so our "multi purpose trucks"
will always run an Enterprise Linux.

But no doubt: Some applications like packet filtering / manipulation,
ALG or routing run pretty smart on OpenBSD. Meanwhile we circumvent
the problems caused by the lack of hardware supplier's support by
abstracting hardware dependencies with the help of virtualizing
platforms like VirtualBox (offering some OpenBSD-templates) or ProxMox
(KVM / "Other").


Regards,
  Tobias.




Re: Thanks a lot to all devs of OpenBSD

2011-08-29 Thread Daniel Gracia
Yep. And all of this speech is political nonsense for my, as only 
politic I'm concerned is about licenses.


Worried about your take over the world plans? Who cares...

I do this for fun, earn some pennies when possible, and keep going! You 
all can go mess with whatever you're up to. I alone would take over OpenBSD.


About the dead of OpenBSD, it's like a fat boy laughing a skinner one. 
Ok, I may not look like kind of durable to you, but now, that doesn't 
make you more committed nor smarter in any way.


El 29/08/2011 11:22, Marc Espie escribis:

On Mon, Aug 29, 2011 at 01:13:14PM +0400, Vadim Zhukov wrote:

On Sunday 28 August 2011 19:50:51 Marc Espie wrote:

On Sun, Aug 28, 2011 at 05:00:46PM +0200, Tomas Bodzar wrote:

(and main link which caused that
http://lists.freebsd.org/pipermail/freebsd-arch/2011-August/011412.h
tml)


This link makes me a little sad. I don't quite get why that guy
mentions that FreeBSD ports has problems, but then mentions only the
netbsd work, and blatantly ignores our tools, even though they solve
most of the problems he has...


This man thinks that OpenBSD will die sooner or later. I've already had
many talks with him... He is an expirienced man, though.


This kind of thinking gets more and more irrational as time passes and
we're still not dead. ;-)




Re: Expected throughput in an OpenBSD virtual server

2011-08-22 Thread Daniel Gracia
AFAIK, OpenBSD kernel is not designed accounting for any form of 
virtualization toy, so don't even try figuring performance numbers out 
of it. These will be plain wrong.


As http://www.openbsd.org/faq/faq6.html states, there's little you can 
tweak to improve your numbers; just get a nice-clocked, good cache-sized 
CPU and give it some loving.


If OBSD doesn't satisfies you as is, recode it or stay appart, as you like.

Good luck!

El 22/08/2011 2:03, Per-Olov Sjvholm escribis:

Hi "Misc"

# Background #

I have done som fun laborations with a virtual fully patched OpenBSD 4.9
firewall on top of SuSE Enterprise Linux 11 SP1 running KVM. The Virtual
OpenBSD got 512MB RAM and one core from a system with two quadcore Xeon 5504
(2Ghz) sitting in a Dell T410 Tower Server. I have given the OpenBSD FW 2
dedicated "Intel PRO/1000 MT (82574L)" physical nic:s via PCI passthorugh. So
OpenBSD sees and uses the real nic:s (they are then unusable to Linux as they
are unbound).

I have not measured packets per second which of course is more relevant. But
as I try to tweak the speed I don't care if I measure packets or Mbits as long
as my tweaks give a higher value during the next test. Going in on one
physcial nic and out on the other with my small ruleset that uses keep state
everywhere give me about 400 Mbit. AFP, SMB, SCP or NFS give similar results
(I copy large files, a few Gig each). I started with a lower value and after a
few tweaks in sysctl.conf  ended up with this speed of 400 Mbit. At this speed
I can see that the interrupts in the firewall simply eat all resources. Have
no "ip.ifq.drops" or any other drops that I am aware of...


# Question #

I now simply wonder if I can increase this speed I did one test and
replaced these two physical desktop Intel Nics with a dual port server adapter
(also Intel, 82546GB). I was interested to see if a dual port, more expensive,
server adapter could lower my interrupt load. However... OpenBSD yelled
something about "unable to reset PCI device". So I went back to these two
desktop adapters. These low price dektop adapters however in a intel i7
desktop workstation download over SMB from my server at 119 Mbyte/s and fill
up the Gig pipe. So they cannot be to bad...


As PF cannot use SMP, is the only way to bump up the firewall throughput (in
this scenario) to increase the speed of the processor core (i.e change
server)? Or are there any other interesting configs to try ?


Regards

/Per-Olov
--
GPG keyID: 5231C0C4
GPG fingerprint: B232 3E1A F5AB 5E10 7561 6739 766E D29D 5231 C0C4
GPG key:
http://wwwkeys.eu.pgp.net/pks/lookup?op=get&search=0x766ED29D5231C0C4




Re: fat32 interoperatibility issue

2011-08-01 Thread Daniel Gracia
Yep! That's it, and I totally agree with the discusion there but, as far 
as msdosfs is in OpenBSD for the very reason of portability -and now I'm 
supposing-, I wonder if this would be an any welcomed patch.


Anyway, I'm not dying for it... It's working as is for me :D

El 01/08/2011 14:08, Tomas Bodzar escribiC3:

Seems similar to this (very old) explanation

http://heirloom.sourceforge.net/mailx_aux_c.html

On Mon, Aug 1, 2011 at 1:09 PM, Daniel Gracia
  wrote:

Hit an interoperatibility issue today:

fat32 stack on OBSD would allow to create illegal file entries for Micro$oft
machines, like:

CON
PRN
AUX
CLOCK$
NUL
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COM8
COM9
LPT1
LPT2
LPT3
LPT4
LPT5
LPT6
LPT7
LPT8
LPT9

and with illegal chars like '?'.

Is this on purpose, or do you feel like applying a patch to throw an error
on these cases?

This is naive so I don't care much, but someone else may get bitten in the
future. Would hack on it if desired.

Beers!




Re: awkward usb-to-serial adapter problem -more data!-

2011-08-01 Thread Daniel Gracia

Known facts:

* uticom is awful unstable.
* uftdi is unstable.

New facts:

I have got from friday an uplcom quad-port adapter that looks quite 
stable; as today, I haven't got a single freeze (still testing).


Curiously, running systat on both uticom and uftdi drivers throw some 
400-ish interrupts on ehci, where the uplcom driver shows 1000-ish 
(software being exactly the same).


With uticom and uftdi changing from a polling time from 100ms to 10ms to 
0ms on every port doesn't changed the interrupts counter; I suppose here 
some aggregation/timed poll on the device is working. On the other hand, 
uplcom interrupt counter scales linearly with the amount of polls/seconds.


So, for searchers glory: working with USB-to-serial adapters (stick to 
PCI if you can!) with heavy load/fast poll times OpenBSD seems to like 
Prolific adapters over the rest.


El 27/07/2011 13:53, Daniel Gracia escribis:

Recompiling kernel with UFTDI_DEBUG, USB_DEBUG, UHCI_DEBUG and
UHUB_DEBUG flags the device keeps failing stealthly... No error message
appears on console.

Any advice will be welcomed :)

Beers!

El 27/07/2011 10:45, Daniel Gracia escribis:

Without dettaching the device after failure, trying to reconnect to any
of the dead serial ports makes console sput:

uticom0: uticom_param: STALLED
uticom0: uticom_dtr: STALLED
uticom0: uticom_rts: STALLED
uticom0: uticom_close: STALLED

El 27/07/2011 10:34, Daniel Gracia escribis:

Similar problems founds on a uticom usb to 4-port serial adapter.

Everything works for several hours, then stops working. This time
workload seems to be less involved; just at idle -some keepalive style
packets- the soft stops working.

No error messages at the console, and dettacching/reattaching the device
doesn't work.

Plugging device on another usb port brings it new life and, only then,
dettaching and reattaching in the original usb port makes it work again
without rebooting.

I wonder in what kind of mess I'm digging... Oh, my; I _knew_ USB is
_not_ serious xDDD

El 26/07/2011 16:54, Daniel Gracia escribis:

Here we go again with more info. The facts:

-uftdi USB to 4 port serial.
-Adaptor attaches fine, works for a while.
-After an amount of time, when serial load increases, the driver may
fail.
-After the failure error is unrecoverable; detaching/reattaching device
doesn't work. Must reboot the computer to get working again.
-After failure usbdevs seems different! -No messages in console
indicate
any device change whatsoever-.

Driver seems to work just fine under light load, and has a stealth fail
-no errors on message log-:

8<---

uftdi_read: sc=0xd1e78c00, port=1 count=5 data[0]=0x30
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0a
uftdi_write: sc=0xd1e78f00, port=1 count=20 data[0]=0x31
uftdi_read: sc=0xd1e78f00, port=1 count=2
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
uftdi_write: sc=0xd1e78c00, port=1 count=6 data[0]=0x23
uftdi_read: sc=0xd1e78c00, port=1 count=2
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78c00, port=1 count=5 data[0]=0x23
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
-stopped here. Failed! 20lines/second. Three last lines delayed between
them about half a second-.

8<---

Before failure, usbdevs reads

8<---

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 powered
port 6 addr 2: high speed, power 500 mA, config 1, USB Storage(0x0727),
Generic(0x05e3), rev 2.06, iSerialNumber 0206
port 7 powered
port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: low speed, power 100 mA, config 1, USB Keyboard(0x0408),
Chicony(0x04f2), rev 1.65
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: full speed, self powered, config 1, HRS PRINTER(0x0013),
APS(0x1ad4), rev 1.00
port 2 addr 3: full speed, power 100 mA, config 1, GL650 Hub(0x0604),
Genesys Logic(0x05e3), rev 3.05
port 1 addr 4: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tmz
port 2 addr 5: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tr2
port 3 addr 6: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001T4y
port 4 addr 7: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tlt
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x808

fat32 interoperatibility issue

2011-08-01 Thread Daniel Gracia

Hit an interoperatibility issue today:

fat32 stack on OBSD would allow to create illegal file entries for 
Micro$oft machines, like:


CON
PRN
AUX
CLOCK$
NUL
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COM8
COM9
LPT1
LPT2
LPT3
LPT4
LPT5
LPT6
LPT7
LPT8
LPT9

and with illegal chars like '?'.

Is this on purpose, or do you feel like applying a patch to throw an 
error on these cases?


This is naive so I don't care much, but someone else may get bitten in 
the future. Would hack on it if desired.


Beers!



Re: awkward usb-to-serial adapter problem -more data!-

2011-07-27 Thread Daniel Gracia
Recompiling kernel with UFTDI_DEBUG, USB_DEBUG, UHCI_DEBUG and 
UHUB_DEBUG flags the device keeps failing stealthly... No error message 
appears on console.


Any advice will be welcomed :)

Beers!

El 27/07/2011 10:45, Daniel Gracia escribis:

Without dettaching the device after failure, trying to reconnect to any
of the dead serial ports makes console sput:

uticom0: uticom_param: STALLED
uticom0: uticom_dtr: STALLED
uticom0: uticom_rts: STALLED
uticom0: uticom_close: STALLED

El 27/07/2011 10:34, Daniel Gracia escribis:

Similar problems founds on a uticom usb to 4-port serial adapter.

Everything works for several hours, then stops working. This time
workload seems to be less involved; just at idle -some keepalive style
packets- the soft stops working.

No error messages at the console, and dettacching/reattaching the device
doesn't work.

Plugging device on another usb port brings it new life and, only then,
dettaching and reattaching in the original usb port makes it work again
without rebooting.

I wonder in what kind of mess I'm digging... Oh, my; I _knew_ USB is
_not_ serious xDDD

El 26/07/2011 16:54, Daniel Gracia escribis:

Here we go again with more info. The facts:

-uftdi USB to 4 port serial.
-Adaptor attaches fine, works for a while.
-After an amount of time, when serial load increases, the driver may
fail.
-After the failure error is unrecoverable; detaching/reattaching device
doesn't work. Must reboot the computer to get working again.
-After failure usbdevs seems different! -No messages in console indicate
any device change whatsoever-.

Driver seems to work just fine under light load, and has a stealth fail
-no errors on message log-:

8<---

uftdi_read: sc=0xd1e78c00, port=1 count=5 data[0]=0x30
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0a
uftdi_write: sc=0xd1e78f00, port=1 count=20 data[0]=0x31
uftdi_read: sc=0xd1e78f00, port=1 count=2
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
uftdi_write: sc=0xd1e78c00, port=1 count=6 data[0]=0x23
uftdi_read: sc=0xd1e78c00, port=1 count=2
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78c00, port=1 count=5 data[0]=0x23
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
-stopped here. Failed! 20lines/second. Three last lines delayed between
them about half a second-.

8<---

Before failure, usbdevs reads

8<---

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 powered
port 6 addr 2: high speed, power 500 mA, config 1, USB Storage(0x0727),
Generic(0x05e3), rev 2.06, iSerialNumber 0206
port 7 powered
port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: low speed, power 100 mA, config 1, USB Keyboard(0x0408),
Chicony(0x04f2), rev 1.65
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: full speed, self powered, config 1, HRS PRINTER(0x0013),
APS(0x1ad4), rev 1.00
port 2 addr 3: full speed, power 100 mA, config 1, GL650 Hub(0x0604),
Genesys Logic(0x05e3), rev 3.05
port 1 addr 4: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tmz
port 2 addr 5: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tr2
port 3 addr 6: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001T4y
port 4 addr 7: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tlt
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
$

8<---

After failure, usbdevs reads different!:

8<---

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 powered
port 6 addr 2: high speed, power 500 mA, config 1, USB Storage(0x0727),
Generic(0x05e3), rev 2.06,

iSerialNumber 0206
port 7 powered
port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: low speed, power 100 mA, config 1, USB Keyboard(0x0408),
Chicony(0x04f2), rev 1.65
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self po

Re: awkward usb-to-serial adapter problem -more data!-

2011-07-27 Thread Daniel Gracia
Without dettaching the device after failure, trying to reconnect to any 
of the dead serial ports makes console sput:


uticom0: uticom_param: STALLED
uticom0: uticom_dtr: STALLED
uticom0: uticom_rts: STALLED
uticom0: uticom_close: STALLED

El 27/07/2011 10:34, Daniel Gracia escribis:

Similar problems founds on a uticom usb to 4-port serial adapter.

Everything works for several hours, then stops working. This time
workload seems to be less involved; just at idle -some keepalive style
packets- the soft stops working.

No error messages at the console, and dettacching/reattaching the device
doesn't work.

Plugging device on another usb port brings it new life and, only then,
dettaching and reattaching in the original usb port makes it work again
without rebooting.

I wonder in what kind of mess I'm digging... Oh, my; I _knew_ USB is
_not_ serious xDDD

El 26/07/2011 16:54, Daniel Gracia escribis:

Here we go again with more info. The facts:

-uftdi USB to 4 port serial.
-Adaptor attaches fine, works for a while.
-After an amount of time, when serial load increases, the driver may
fail.
-After the failure error is unrecoverable; detaching/reattaching device
doesn't work. Must reboot the computer to get working again.
-After failure usbdevs seems different! -No messages in console indicate
any device change whatsoever-.

Driver seems to work just fine under light load, and has a stealth fail
-no errors on message log-:

8<---

uftdi_read: sc=0xd1e78c00, port=1 count=5 data[0]=0x30
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0a
uftdi_write: sc=0xd1e78f00, port=1 count=20 data[0]=0x31
uftdi_read: sc=0xd1e78f00, port=1 count=2
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
uftdi_write: sc=0xd1e78c00, port=1 count=6 data[0]=0x23
uftdi_read: sc=0xd1e78c00, port=1 count=2
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78c00, port=1 count=5 data[0]=0x23
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
-stopped here. Failed! 20lines/second. Three last lines delayed between
them about half a second-.

8<---

Before failure, usbdevs reads

8<---

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 powered
port 6 addr 2: high speed, power 500 mA, config 1, USB Storage(0x0727),
Generic(0x05e3), rev 2.06, iSerialNumber 0206
port 7 powered
port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: low speed, power 100 mA, config 1, USB Keyboard(0x0408),
Chicony(0x04f2), rev 1.65
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: full speed, self powered, config 1, HRS PRINTER(0x0013),
APS(0x1ad4), rev 1.00
port 2 addr 3: full speed, power 100 mA, config 1, GL650 Hub(0x0604),
Genesys Logic(0x05e3), rev 3.05
port 1 addr 4: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tmz
port 2 addr 5: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tr2
port 3 addr 6: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001T4y
port 4 addr 7: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tlt
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
$

8<---

After failure, usbdevs reads different!:

8<---

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 powered
port 6 addr 2: high speed, power 500 mA, config 1, USB Storage(0x0727),
Generic(0x05e3), rev 2.06,

iSerialNumber 0206
port 7 powered
port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: low speed, power 100 mA, config 1, USB Keyboard(0x0408),
Chicony(0x04f2), rev 1.65
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: full speed, self powered, config 1, HRS PRINTER(0x0013),
APS(0x1ad4), rev 1.00
port 2 addr 3: full speed, power 100 mA, config 1, GL650 Hub(0x0604),
Genesys Logic(0x

Re: awkward usb-to-serial adapter problem -more data!-

2011-07-27 Thread Daniel Gracia

Similar problems founds on a uticom usb to 4-port serial adapter.

Everything works for several hours, then stops working. This time 
workload seems to be less involved; just at idle -some keepalive style 
packets- the soft stops working.


No error messages at the console, and dettacching/reattaching the device 
doesn't work.


Plugging device on another usb port brings it new life and, only then, 
dettaching and reattaching in the original usb port makes it work again 
without rebooting.


I wonder in what kind of mess I'm digging... Oh, my; I _knew_ USB is 
_not_ serious xDDD


El 26/07/2011 16:54, Daniel Gracia escribis:

Here we go again with more info. The facts:

-uftdi USB to 4 port serial.
-Adaptor attaches fine, works for a while.
-After an amount of time, when serial load increases, the driver may fail.
-After the failure error is unrecoverable; detaching/reattaching device
doesn't work. Must reboot the computer to get working again.
-After failure usbdevs seems different! -No messages in console indicate
any device change whatsoever-.

Driver seems to work just fine under light load, and has a stealth fail
-no errors on message log-:

8<---

uftdi_read: sc=0xd1e78c00, port=1 count=5 data[0]=0x30
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0a
uftdi_write: sc=0xd1e78f00, port=1 count=20 data[0]=0x31
uftdi_read: sc=0xd1e78f00, port=1 count=2
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
uftdi_write: sc=0xd1e78c00, port=1 count=6 data[0]=0x23
uftdi_read: sc=0xd1e78c00, port=1 count=2
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78c00, port=1 count=5 data[0]=0x23
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
-stopped here. Failed! 20lines/second. Three last lines delayed between
them about half a second-.

8<---

Before failure, usbdevs reads

8<---

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 powered
port 6 addr 2: high speed, power 500 mA, config 1, USB Storage(0x0727),
Generic(0x05e3), rev 2.06, iSerialNumber 0206
port 7 powered
port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: low speed, power 100 mA, config 1, USB Keyboard(0x0408),
Chicony(0x04f2), rev 1.65
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: full speed, self powered, config 1, HRS PRINTER(0x0013),
APS(0x1ad4), rev 1.00
port 2 addr 3: full speed, power 100 mA, config 1, GL650 Hub(0x0604),
Genesys Logic(0x05e3), rev 3.05
port 1 addr 4: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tmz
port 2 addr 5: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tr2
port 3 addr 6: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001T4y
port 4 addr 7: full speed, power 90 mA, config 1, FT232R USB
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tlt
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
$

8<---

After failure, usbdevs reads different!:

8<---

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 powered
port 6 addr 2: high speed, power 500 mA, config 1, USB Storage(0x0727),
Generic(0x05e3), rev 2.06,

iSerialNumber 0206
port 7 powered
port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: low speed, power 100 mA, config 1, USB Keyboard(0x0408),
Chicony(0x04f2), rev 1.65
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
port 1 addr 2: full speed, self powered, config 1, HRS PRINTER(0x0013),
APS(0x1ad4), rev 1.00
port 2 addr 3: full speed, power 100 mA, config 1, GL650 Hub(0x0604),
Genesys Logic(0x05e3), rev

3.05
port 1 addr 4: full speed, power 90 mA, config 1, 8U232AM
Serial(0x6001), Future Technology

Devices(0x0403), rev 6.00
port 2 addr 5: full speed, power 90 mA, config 1, 8U232AM
Serial(0x6001), Future Technology

Devices(0x0403), rev 6.00
port 3 addr 6: ful

awkward usb-to-serial adapter problem -more data!-

2011-07-26 Thread Daniel Gracia

Here we go again with more info. The facts:

-uftdi USB to 4 port serial.
-Adaptor attaches fine, works for a while.
-After an amount of time, when serial load increases, the driver may fail.
-After the failure error is unrecoverable; detaching/reattaching device 
doesn't work. Must reboot the computer to get working again.
-After failure usbdevs seems different! -No messages in console indicate 
any device change whatsoever-.


Driver seems to work just fine under light load, and has a stealth fail 
-no errors on message log-:


8<---

uftdi_read: sc=0xd1e78c00, port=1 count=5 data[0]=0x30
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0a
uftdi_write: sc=0xd1e78f00, port=1 count=20 data[0]=0x31
uftdi_read: sc=0xd1e78f00, port=1 count=2
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
uftdi_write: sc=0xd1e78c00, port=1 count=6 data[0]=0x23
uftdi_read: sc=0xd1e78c00, port=1 count=2
uftdi_read: sc=0xd1e78a80, port=1 count=2
uftdi_write: sc=0xd1e78f00, port=1 count=1 data[0]=0x0b
uftdi_write: sc=0xd1e78c00, port=1 count=5 data[0]=0x23
uftdi_write: sc=0xd1e78a80, port=1 count=3 data[0]=0x02
-stopped here. Failed! 20lines/second. Three last lines delayed between 
them about half a second-.


8<---

Before failure, usbdevs reads

8<---

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00

 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 addr 2: high speed, power 500 mA, config 1, USB 
Storage(0x0727), Generic(0x05e3), rev 2.06, iSerialNumber 0206

 port 7 powered
 port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 addr 2: low speed, power 100 mA, config 1, USB 
Keyboard(0x0408), Chicony(0x04f2), rev 1.65

 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 addr 2: full speed, self powered, config 1, HRS 
PRINTER(0x0013), APS(0x1ad4), rev 1.00
 port 2 addr 3: full speed, power 100 mA, config 1, GL650 Hub(0x0604), 
Genesys Logic(0x05e3), rev 3.05
  port 1 addr 4: full speed, power 90 mA, config 1, FT232R USB 
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tmz
  port 2 addr 5: full speed, power 90 mA, config 1, FT232R USB 
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tr2
  port 3 addr 6: full speed, power 90 mA, config 1, FT232R USB 
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001T4y
  port 4 addr 7: full speed, power 90 mA, config 1, FT232R USB 
UART(0x6001), FTDI(0x0403), rev 6.00, iSerialNumber A4001Tlt

Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00

 port 1 powered
 port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00

 port 1 powered
 port 2 powered
$

8<---

After failure, usbdevs reads different!:

8<---

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00

 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 addr 2: high speed, power 500 mA, config 1, USB 
Storage(0x0727), Generic(0x05e3), rev 2.06,


iSerialNumber 0206
 port 7 powered
 port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 addr 2: low speed, power 100 mA, config 1, USB 
Keyboard(0x0408), Chicony(0x04f2), rev 1.65

 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 addr 2: full speed, self powered, config 1, HRS 
PRINTER(0x0013), APS(0x1ad4), rev 1.00
 port 2 addr 3: full speed, power 100 mA, config 1, GL650 Hub(0x0604), 
Genesys Logic(0x05e3), rev


3.05
  port 1 addr 4: full speed, power 90 mA, config 1, 8U232AM 
Serial(0x6001), Future Technology


Devices(0x0403), rev 6.00
  port 2 addr 5: full speed, power 90 mA, config 1, 8U232AM 
Serial(0x6001), Future Technology


Devices(0x0403), rev 6.00
  port 3 addr 6: full speed, power 90 mA, config 1, 8U232AM 
Serial(0x6001), Future Technology


Devices(0x0403), rev 6.00
  port 4 addr 7: full speed, power 90 mA, config 1, 8U232AM 
Serial(0x6001), Future Technology


Devices(0x0403), rev 6.00
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00

 port 1 powered
 port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00

 port 1 powered
 port 2 powered
$

8<---

Then you dettach device, console sh

Funny uhci bus?

2011-07-19 Thread Daniel Gracia

Hi there!

I'm running on some issues related to USB reliability.

Scenario: A 4-port serial to USB interface and a USB printer attached to 
uhci.


Workload: Printer uses to be idle. Serial port is being polled quite 
frequently, but has almost no traffic -a few chars go in/out the ports 
every 10ms or so-.


Problem: Every now and then, maybe 2h, maybe 48h, USB stops working. All 
comms falls at once, and printer doesn't work.


Suspicion: When lpr runs the printer, chances to hit a USB lock seem to 
be scaled by a x100 factor.


Ridiculous hypothesis: May I have been experiencing some misinterrupt 
issues?


I'll try to get a nice, charming and repeatable error to get up to this.

Regards!

Dani

dmesg goes below:
8<---

OpenBSD 4.9 (GENERIC.MP) #794: Wed Mar  2 07:19:02 MST 2011
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU D410 @ 1.66GHz ("GenuineIntel" 686-class) 
1.67 GHz
cpu0: 
FPU,V86,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,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE

real mem  = 1063481344 (1014MB)
avail mem = 1035927552 (987MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/27/10, BIOS32 rev. 0 @ 0xf0010, 
SMBIOS rev. 2.6 @ 0xf0720 (46 entries)

bios0: vendor American Megatrends Inc. version "0601" date 10/27/2010
bios0: ASUSTeK Computer INC. EB1007
acpi at bios0 function 0x0 not configured
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
mpbios0: bus 0 is type PCI
mpbios0: bus 1 is type PCI
mpbios0: bus 2 is type PCI
mpbios0: bus 3 is type PCI
mpbios0: bus 4 is type PCI
mpbios0: bus 5 is type ISA
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
pcibios0 at bios0: rev 3.0 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7590/160 (8 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x8086 product 0x27bc
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0xda00! 0xce000/0x1000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x00
vga1 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 5)
drm0 at inteldrm0
"Intel Pineview Video" rev 0x00 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: 
apic 1 int 20 (irq 4)

azalia0: codecs: Realtek ALC662
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 1 int 
16 (irq 5)

pci1 at ppb0 bus 4
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 1 int 
17 (irq 11)

pci2 at ppb1 bus 3
jme0 at pci2 dev 0 function 0 "JMicron JMC250" rev 0x03: apic 1 int 17 
(irq 11), address f4:6d:04:04:34:af

jmphy0 at jme0 phy 1: JMP211 10/100/1000 PHY, rev. 1
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 1 int 
18 (irq 10)

pci3 at ppb2 bus 2
athn0 at pci3 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 1 int 18 
(irq 10)

athn0: AR9285 rev 2 (1T1R), ROM rev 13, address e0:b9:a5:00:f8:46
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 
23 (irq 14)
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 
21 (irq 7)
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 
18 (irq 10)
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 
22 (irq 3)
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 
23 (irq 14)

usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci4 at ppb3 bus 1
pcib0 at pci0 dev 31 function 0 "Intel Tigerpoint LPC" rev 0x02
ahci0 at pci0 dev 31 function 2 "Intel 82801GR AHCI" rev 0x02: apic 1 
int 19 (irq 15), AHCI 1.1

scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3 
0/direct fixed

sd0: 238475MB, 512 bytes/sec, 488397168 sec total
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 
int 19 (irq 15)

iic0 at ichiic0
spdmem0 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-6400CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 f

Re: ARM or SPARC ?

2011-05-30 Thread Daniel Gracia
Kinda naive question: either could be more than enough; depends on your 
hard/soft/bandwith combination.


Stick to i386/amd64; usually the best buck for performance ratio.

Good luck!

El 30/05/2011 11:32, hvom .org escribis:

Hi all

I need best performance processor, I used firewall and
rountig/load-balancing. I look models ARM and SPARC, ARM it's the best
SPARC. The machin turned OpenBSD 4.9.

Tank you for help

Cordialy




Re: Remotely installing OpenBSD on dedicated server

2011-04-27 Thread Daniel Gracia
Here in Europe I found 1and1 to be an easy going plaform to install 
OpenBSD painlessly, as they offer full online reset and serial console 
service.


The trickiest part is getting along with their exotic network routes... 
but there's a nice get-along guide Googling around.


I would do it again :)

El 27/04/2011 9:20, Nigel Horne escribis:

Hello the list.

  My company manages a few servers in behalf of client companies that don't 
want to do it themselves.

  We have specific appliances that run on OpenBSD and it is our intention to 
keep it that way because of the reliability of the platform.

  However, we want to move some of the services to remote dedicated servers (as 
can be hired at several places on internet).
  I have been making a quick survey and it appears that OpenBSD is not widely 
offered as an operating system by such services.
  Actually, I haven't found a single dedicated host provider that offers 
OpenBSD as a possible choice by default, event if a few mails
  directed to support "suggest" that it might be possible to get a custom 
install (but no definitive answer on the matter...) .

  Has any of you ever tried to hire a dedicated server with OpenBSD installed 
on it?
  If so, where did you hire your OpenBSD box?
  If not, has any of you found a good way to install OpenBSD over a 
preinstalled OS remotely reliably (meaning that I don't have
  to get the server reinstalled 10 times before getting OpenBSD up and running)?

  I hope I am posting to the right list.

  Thank you for the help to come.
  Nigel.




Re: new upper limit with BIGMEM

2011-04-06 Thread Daniel Gracia

Tell the Voyager 1; it's about trespassing even that limit xDDD

El 05/04/2011 23:02, James A. Peltier escribiC3:

- Original Message -
|>  >  real mem = 137428045824 (131061MB)
|>  >  avail mem = 133755703296 (127559MB)
|>  >
|>  >  seems to work ok...
|>
|>  But have you hit the limit?
|>
| The sky is the limit, but his is not a flying machine.
|
| Miod


Umm, we conquered the skies a while ago.  Really the solar system is the limit 
currently.




Re: ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread Daniel Gracia

Oh my, now _that's_ a typo: it's a MF110 :)

El 29/03/2011 18:44, Daniel Gracia escribis:

My Device (ZTE MG110 HSUPA USB modem, and it's not a typo) works after
adding the single-liner definitions at .c and .h files -sorry, don't
have access to the machine now-.

I can remember it's a little funky toy; first attachs with a ID PRDCT of
0x0083 and then, when ejecting the first virtual cd device, it comes as
0x0124 (?), where the massive umsm's comms appear.

El 29/03/2011 13:04, David Coppa escribis:

On Tue, Mar 29, 2011 at 12:35 PM, MERIGHI Marcus
wrote:

lists.d...@electronicagracia.com (Daniel Gracia), 2011.03.29 (Tue)
09:42 (CEST):

Yep, that sounds totally right. The same over here with a ZTE
MF110UP; just updated the pertinent usb files and got it working.


let us all have it, diff -u to tech@, prego.


Boys, this particular device (ZTE MF190 HSUPA USB modem) should
already work: read src/sys/dev/usbdevs and src/sys/dev/usb/umsm.c
carefully. If it doesn't, the problem is not missing entries in the
usb files...

ciao,
david




Re: ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread Daniel Gracia
My Device (ZTE MG110 HSUPA USB modem, and it's not a typo) works after 
adding the single-liner definitions at .c and .h files -sorry, don't 
have access to the machine now-.


I can remember it's a little funky toy; first attachs with a ID PRDCT of 
0x0083 and then, when ejecting the first virtual cd device, it comes as 
0x0124 (?), where the massive umsm's comms appear.


El 29/03/2011 13:04, David Coppa escribis:

On Tue, Mar 29, 2011 at 12:35 PM, MERIGHI Marcus  wrote:

lists.d...@electronicagracia.com (Daniel Gracia), 2011.03.29 (Tue) 09:42 (CEST):

Yep, that sounds totally right. The same over here with a ZTE
MF110UP; just updated the pertinent usb files and got it working.


let us all have it, diff -u to tech@, prego.


Boys, this particular device (ZTE MF190 HSUPA USB modem) should
already work: read src/sys/dev/usbdevs and src/sys/dev/usb/umsm.c
carefully. If it doesn't, the problem is not missing entries in the
usb files...

ciao,
david




Re: ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread Daniel Gracia
Yep, that sounds totally right. The same over here with a ZTE MF110UP; 
just updated the pertinent usb files and got it working.


ZTE seems to have a very broad range of product (numbers) over there.

El 29/03/2011 9:27, MERIGHI Marcus escribis:

sounds similar to

http://marc.info/?l=openbsd-misc&m=129104388909427
http://marc.info/?l=openbsd-tech&m=129104820617203

see follow-ups, too.

als...@gmail.com (Ahmad Zulkarnain), 2011.03.29 (Tue) 07:17 (CEST):

Hi,

I just bought a new ZTE MF190 HSUPA USB modem for my 4.8 machine. I
saw a few supported ZTE USB modem and I tried using this modem without
success. Using "cu -l cuaU(0-2)" just display "connected" and hangs
there. I would be glad if there's a pointer on how to get the modem
working in 4.8. Here's the dmesg:

umsm0 at uhub0 port 3 configuration 1 interface 0 "ZTE,Incorporated
ZTE WCDMA Technologies MSM" rev 2.00/0.00 addr 5
umsm0 detached
umsm0 at uhub0 port 3 configuration 1 interface 0 "ZTE,Incorporated
ZTE WCDMA Technologies MSM" rev 2.00/0.00 addr 5
ucom0 at umsm0
umsm1 at uhub0 port 3 configuration 1 interface 1 "ZTE,Incorporated
ZTE WCDMA Technologies MSM" rev 2.00/0.00 addr 5
ucom1 at umsm1
umass1 at uhub0 port 3 configuration 1 interface 2 "ZTE,Incorporated
ZTE WCDMA Technologies MSM" rev 2.00/0.00 addr 5
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, initiator 0
cd1 at scsibus1 targ 1 lun 0:  SCSI2
5/cdrom removable
umsm2 at uhub0 port 3 configuration 1 interface 3 "ZTE,Incorporated
ZTE WCDMA Technologies MSM" rev 2.00/0.00 addr 5
ucom2 at umsm2


And here's the usbdevs -v output:

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered
  port 3 addr 5: high speed, power 500 mA, config 1, ZTE WCDMA
Technologies MSM(0x0031), ZTE,Incorporated(0x19d2), rev 0.00,
iSerialNumber P671A1CELD01
  port 4 powered
  port 5 addr 2: high speed, self powered, config 1, USB2 Hub(0x6560),
Cypress Semiconductor(0x04b4), rev 0.0b
   port 1 addr 3: high speed, self powered, config 1, USB Multibay IDE
2.466(0x031d), Hewlett Packard(0x03f0), rev 2.46, iSerialNumber
HH63MC0BLTC1
   port 2 powered
   port 3 powered
   port 4 addr 4: low speed, power 98 mA, config 1, USB-PS/2 Optical
Mouse(0xc03d), Logitech(0x046d), rev 20.00
  port 6 powered
  port 7 powered
  port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  port 1 powered
  port 2 poweredController /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered

In XP, the USB modem will have some sort of virtual CDRom which act as
the provider's (Celcom) software installer. Here's a bit of info about
the modem on ZTE's web:

 *  UMTS/HSDPA/WCDMA 2100MHz
 * GSM/GPRS/EDGE 850/900/1800/1900MHz
 * Support HSDPA up to 7.2Mbps, HSUPA up to 2Mbps
 * Dimensions: 76mm * 26mm * 11mm(without cap)
   90mm * 26mm * 11mm(with cap)"
 * Weight :21g
 * Operating Temperature:-10 to 60B0 C
 * Storage Temperature:-40 to 80B0 C
 * Approvals&Certification:CE,GCF,FC,ROHS,WHQL.
 * Storage Capacity: Up to 4G Micro-SD card
 * Solution:Chipset supplier:Qualcomm
   Chipset:MSM6290
 * USB VersionUSB 2.0 HIGH SPEED
 * Maximum power consumption 2.5W
 * Power supply:5v

Thanks in advance.

--
Ahmad Zulkarnain




Re: Nmap and pf

2011-03-07 Thread Daniel Gracia

El 07/03/2011 10:54, Henrik Engmark escribiC3:

Is there a way, good or bad, to relax pf enough to let nmap do its OS
detection?
I am on 4.8.



Way too vague question; you should at least describe the scenario.



Re: Dell R310 - H200 Raid performance problem

2011-03-02 Thread Daniel Gracia

I like it large this time.

Different politics for different disks seems too complex for a very 
little semantic meaning, at least for me!


El 02/03/2011 13:34, Marco Peereboom escribis:

I really think this heuristic belongs in the kernel.  I think there is a
desire to make the policy a knob (the old, "I prefer slow and safe over
fast and dangerous; well use a ups! they don't!" debate).

So instead of bioctl I think we need a sysctl, for example hw.diskcache,
that by default is enabled which is the drive manufacturers suggested
setting.  Then if so desired one can turn it off.

Or do people think this would be too large a hammer and would like to
have a more granular control?

On Wed, Mar 02, 2011 at 05:54:23AM -0500, Okan Demirmen wrote:

On Sun 2011.02.20 at 10:30 -0500, Okan Demirmen wrote:

On Sun 2011.02.20 at 13:28 +0100, Mark Kettenis wrote:

Date: Sun, 20 Feb 2011 07:03:25 -0500
From: Kenneth R Westerback

On Sun, Feb 20, 2011 at 12:39:06PM +0100, Mark Kettenis wrote:

Date: Sun, 20 Feb 2011 19:54:21 +1000
From: David Gwynne


how to manipulate write cache policy?


the lsi firmwares dont implement handling of the mod page changes
unfortunately. you could call the ioctl this implements yourself
though from userland.


David, while I think that implementing the cache manipulation ioctls
for mpii(4) is a good idea, there is a problem here.  We don't have a
tool in base that actually issues those ioctls.  And unless I'm
misreading the diff, this still leaves the cache disabled on the
stupid Dell.


DIOCSCACHE is called in sdattach() to enable write cache for all
disks that DIOCGCACHE reports as having write cache disabled. Or are
you concerned that we have no way to manipulate it from userland
if/when the default needs to be modified?


Ah, that's the bit I was missing.  A userland tool to display and
manipulate the cache settings would still be good though.
Functionality should probably be added to bioctl(8).  A bit
unfortunate that both the -c and -C options are already taken.


Ah, I had a diff for bioctl (enable/disable WCE/RCD) based on dlg's
sample, but I think marco wanted more of a policy of when to do WCE/RCD
rather than a switch - I'll send it along when I get home later this
week.


I'm not certain this is wanted, but I said I would forward along this
very simplisitc patch, so here it is.  If something like this is wanted,
it can be re-worked to take multiple args to -e and such, but again,
only if this is deemed necessary in a userland tool outside of scsi(8).

Index: bioctl.8
===
RCS file: /cvs/src/sbin/bioctl/bioctl.8,v
retrieving revision 1.84
diff -u -p -r1.84 bioctl.8
--- bioctl.822 Dec 2010 16:25:32 -  1.84
+++ bioctl.82 Mar 2011 10:44:23 -
@@ -35,6 +35,7 @@
  .Op Fl hiqv
  .Op Fl a Ar alarm-function
  .Op Fl b Ar channel:target[.lun]
+.Op Fl e Ar flag
  .Op Fl H Ar channel:target[.lun]
  .Op Fl R Ar device \*(Ba channel:target[.lun]
  .Op Fl u Ar channel:target[.lun]
@@ -128,6 +129,24 @@ digits to four or less.
  .It Fl i
  Enumerate the selected RAID devices.
  This is the default if no other option is given.
+.It Fl e Ar flag
+Pass
+.Ar flag
+to
+.Nm .
+May be one of:
+.Bl -tag -width disable -compact
+.It Ar q
+Query the read/write cache status.
+.It Ar R
+Enable the read cache.
+.It Ar r
+Disable the read cache.
+.It Ar W
+Enable the write cache.
+.It Ar w
+Disable the write cache.
+.El
  .It Fl q
  Show vendor, product, revision, and serial number for the given disk.
  .It Fl R Ar device \*(Ba channel:target[.lun]
Index: bioctl.c
===
RCS file: /cvs/src/sbin/bioctl/bioctl.c,v
retrieving revision 1.98
diff -u -p -r1.98 bioctl.c
--- bioctl.c1 Dec 2010 19:40:18 -   1.98
+++ bioctl.c2 Mar 2011 10:44:23 -
@@ -77,6 +77,7 @@ void  bio_changepass(char *);
  u_int32_t bio_createflags(char *);
  char  *bio_vis(char *);
  void  bio_diskinq(char *);
+void   bio_cache(char *, char *);

  int   devh = -1;
  int   human;
@@ -97,17 +98,17 @@ main(int argc, char *argv[])
char*devicename = NULL;
char*realname = NULL, *al_arg = NULL;
char*bl_arg = NULL, *dev_list = NULL;
-   char*key_disk = NULL;
+   char*key_disk = NULL, *ca_arg = NULL;
const char  *errstr;
int ch, rv, blink = 0, changepass = 0, diskinq = 0;
-   int ss_func = 0;
+   int ss_func = 0, diskcache = 0;
u_int16_t   cr_level = 0;
int biodev = 0;

if (argc<  2)
usage();

-   while ((ch = getopt(argc, argv, "a:b:C:c:dH:hik:l:Pp:qr:R:svu:")) !=
+   while ((ch = ge

Re: make "keep state (no-sync)" the default?

2011-02-04 Thread Daniel Gracia

El 04/02/2011 18:56, Henning Brauer escribis:

* Harald Dunkel  [2011-02-04 14:31]:

Is there some other way to avoid a lot of "keep state (no-sync)"
statements?


is there some other way to make people READ the fucking mnapages we
put so much effort in?



You're talking nonsense; of course no!

PD: Some of us don't forget that udp mode, non-forking, non-blocking 
mods for tcpbench... I must stop slacking! xDDD




Re: nat static-port option

2011-02-04 Thread Daniel Gracia

El 04/02/2011 16:15, Martin Schrvder escribis:

2011/2/4 Bret Lambert:

The US has been "offering" "freedom" to the world for a while now.
It's only the largest republic in the world :-)


No, that's India (people). Or Russia (size).

Best
Martin



Still US (money). Take your pick.



Re: [PATCH] uticom driver fix

2010-12-15 Thread Daniel Gracia

Yep! That's enough for my adapters.

El 14/12/2010 21:54, Jonathan Gray escribis:


such things should be seperate diffs, and these should go to tech.

is the following enough to make it work?

Index: uticom.c
===
RCS file: /cvs/src/sys/dev/usb/uticom.c,v
retrieving revision 1.7
diff -u -p -r1.7 uticom.c
--- uticom.c3 Dec 2010 17:02:29 -   1.7
+++ uticom.c14 Dec 2010 20:52:23 -
@@ -209,7 +209,6 @@ uticom_attach(struct device *parent, str
struct uticom_softc *sc = (struct uticom_softc *)self;
struct usb_attach_arg *uaa = aux;
usbd_device_handle dev = uaa->device;
-   usbd_interface_handle iface;
usb_config_descriptor_t *cdesc;
usb_interface_descriptor_t *id;
usb_endpoint_descriptor_t *ed;
@@ -381,7 +380,7 @@ fwload_done:
sc->sc_iface_number = id->bInterfaceNumber;

for (i = 0; i<  id->bNumEndpoints; i++) {
-   ed = usbd_interface2endpoint_descriptor(iface, i);
+   ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i);
if (ed == NULL) {
printf("%s: no endpoint descriptor for %d\n",
sc->sc_dev.dv_xname, i);
@@ -419,7 +418,7 @@ fwload_done:
uca.obufsize = UTICOM_OBUFSZ;
uca.ibufsizepad = UTICOM_IBUFSZ;
uca.device = dev;
-   uca.iface = iface;
+   uca.iface = sc->sc_iface;
uca.opkthdrlen = 0;
uca.methods =&uticom_methods;
uca.arg = sc;




Re: [PATCH] uticom driver fix

2010-12-14 Thread Daniel Gracia

El 12/12/2010 0:13, Jonathan Gray escribis:

On Tue, Dec 07, 2010 at 10:06:59AM +0100, Daniel Gracia wrote:

Hi there!

Being in need of uticom driver noticed that it didn't worked out of
the box. Compiled, but opening the serial port twice panics the
kernel.

With the attached fix applyed to sys/dev/usb/uticom.c it's working
for me now with single port devices.


The iface part looks right, but why change the bufsize handling?
Dmitry Komissaroff's original code seems to have it the way it
currently is.


Sure original numbers worked ok; just trying to remove some black magic.



[PATCH] uticom driver fix

2010-12-10 Thread Daniel Gracia

Hi there!

Being in need of uticom driver noticed that it didn't worked out of the 
box. Compiled, but opening the serial port twice panics the kernel.


With the attached fix applyed to sys/dev/usb/uticom.c it's working for 
me now with single port devices.


Regards,

Dani

Patch
==
--- uticom.cSat Nov 20 20:11:19 2010
+++ uticom.cWed Dec  1 10:55:47 2010
@@ -209,7 +209,6 @@
 struct uticom_softc *sc = (struct uticom_softc *)self;
 struct usb_attach_arg *uaa = aux;
 usbd_device_handle dev = uaa->device;
-usbd_interface_handle iface;
 usb_config_descriptor_t *cdesc;
 usb_interface_descriptor_t *id;
 usb_endpoint_descriptor_t *ed;
@@ -381,7 +380,7 @@
 sc->sc_iface_number = id->bInterfaceNumber;

 for (i = 0; i < id->bNumEndpoints; i++) {
-ed = usbd_interface2endpoint_descriptor(iface, i);
+ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i);
 if (ed == NULL) {
 printf("%s: no endpoint descriptor for %d\n",
 sc->sc_dev.dv_xname, i);
@@ -392,9 +391,12 @@
 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
 uca.bulkin = ed->bEndpointAddress;
+uca.ibufsize = UGETW(ed->wMaxPacketSize);
+uca.ibufsizepad = UGETW(ed->wMaxPacketSize);
 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT &&
 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) {
 uca.bulkout = ed->bEndpointAddress;
+uca.obufsize = UGETW(ed->wMaxPacketSize);
 }
 }

@@ -415,11 +417,8 @@
 sc->sc_dtr = sc->sc_rts = -1;

 uca.portno = UCOM_UNK_PORTNO;
-uca.ibufsize = UTICOM_IBUFSZ;
-uca.obufsize = UTICOM_OBUFSZ;
-uca.ibufsizepad = UTICOM_IBUFSZ;
 uca.device = dev;
-uca.iface = iface;
+uca.iface = sc->sc_iface;
 uca.opkthdrlen = 0;
 uca.methods = &uticom_methods;
 uca.arg = sc;



uticom driver broken

2010-12-04 Thread Daniel Gracia
For googles sake, a typo prevents uticom attaching to the sytem so it 
doesn't work at all.


--- uticom.c   Mon Nov 29 19:11:44 2010
+++ uticom.c   Mon Nov 29 19:10:35 2010
@@ -381,7 +381,7 @@
sc->sc_iface_number = id->bInterfaceNumber;

for (i = 0; i < id->bNumEndpoints; i++) {
-   ed = usbd_interface2endpoint_descriptor(iface, i);
+   ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i);
if (ed == NULL) {
printf("%s: no endpoint descriptor for %d\n",
sc->sc_dev.dv_xname, i);

After applying this patch device attachs fine, but fails at opening the 
port.


Trying a second time panics the kernel. Will try to fix it.



Re: 1gbit LAN/NIC performance, queue speed bug?

2010-11-19 Thread Daniel Gracia

dmesg missing!

Your computer horsepower will definitely affect the maximum bandwith pf 
will be able to manage.


El 16/11/2010 12:52, Robert Lewandowski escribiC3:

Hello,

PROBLEM: transfer speed is ONLY HALF if queue is defined in pf.conf
although queue is 950Mbit (1000Mbit-5%)
pf disabled: 768 Mbits/sec
pf enabled, queue 950Mbit: 337 Mbits/sec

ANALYSIS:

- OpenBSD 4.8 default intallation.
- Test made between OpenBSD 4.8 and Debian Linux.
(between two Debian systems speed is more than 900Mbit/s)

*
LAN interface: Intel PRO/1000 PT Desktop Adapter (PCIe, model:
EXPI9300PTBLK)
DMESG: em0 at pci1 dev 0 function 0 "Intel PRO/1000 PT (82572EI)" rev
0x06: apic 1 int 16 (irq 5), address 00:1b:21:05:1f:39
*
Default settings of TCP window size:
net.inet.tcp.recvspace=16384
net.inet.tcp.sendspace=16384
*

1a) pf disabled

r...@router-test (/root)# iperf -i 1 -t 3 -c 10.0.0.6

Client connecting to 10.0.0.6, TCP port 5001
TCP window size: 16.0 KByte (default)

[ 3] local 10.0.0.8 port 27600 connected with 10.0.0.6 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 54.7 MBytes 459 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 1.0- 2.0 sec 54.7 MBytes 458 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 2.0- 3.0 sec 54.7 MBytes 459 Mbits/sec

1b) pf enabled, no queue

r...@router-test (/root)# iperf -i 1 -t 3 -c 10.0.0.6

Client connecting to 10.0.0.6, TCP port 5001
TCP window size: 16.0 KByte (default)

[ 3] local 10.0.0.8 port 46912 connected with 10.0.0.6 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 53.9 MBytes 452 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 1.0- 2.0 sec 52.6 MBytes 441 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 2.0- 3.0 sec 54.1 MBytes 454 Mbits/sec

1c) pf enabled, added queue to default pf.conf:

altq on em0 cbq bandwidth 1Gb queue { q_lan }
queue q_lan bandwidth 950Mb cbq (default)

r...@router-test (/root)# iperf -i 1 -t 3 -c 10.0.0.6

Client connecting to 10.0.0.6, TCP port 5001
TCP window size: 16.0 KByte (default)

[ 3] local 10.0.0.8 port 38266 connected with 10.0.0.6 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 33.9 MBytes 284 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 1.0- 2.0 sec 35.0 MBytes 294 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 2.0- 3.0 sec 35.8 MBytes 300 Mbits/sec


*
TCP window size changed to 131072.
net.inet.tcp.recvspace: 16384 -> 131072
net.inet.tcp.sendspace: 16384 -> 131072
*

1a) pf disabled

r...@router-test (/root)# iperf -i 1 -t 3 -c 10.0.0.6

Client connecting to 10.0.0.6, TCP port 5001
TCP window size: 128 KByte (default)

[ 3] local 10.0.0.8 port 32680 connected with 10.0.0.6 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 91.5 MBytes 768 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 1.0- 2.0 sec 92.1 MBytes 773 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 2.0- 3.0 sec 91.2 MBytes 765 Mbits/sec

1b) pf enabled, no queue

r...@router-test (/root)# iperf -i 1 -t 3 -c 10.0.0.6

Client connecting to 10.0.0.6, TCP port 5001
TCP window size: 128 KByte (default)

[ 3] local 10.0.0.8 port 41092 connected with 10.0.0.6 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 80.5 MBytes 675 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 1.0- 2.0 sec 80.1 MBytes 672 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 2.0- 3.0 sec 80.2 MBytes 673 Mbits/sec

1c) pf enabled, added queue to default pf.conf:

altq on em0 cbq bandwidth 1Gb queue { q_lan }
queue q_lan bandwidth 950Mb cbq (default)

r...@router-test (/root)# iperf -i 1 -t 3 -c 10.0.0.6

Client connecting to 10.0.0.6, TCP port 5001
TCP window size: 128 KByte (default)

[ 3] local 10.0.0.8 port 12499 connected with 10.0.0.6 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 40.1 MBytes 337 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 1.0- 2.0 sec 40.1 MBytes 336 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 2.0- 3.0 sec 40.0 MBytes 335 Mbits/sec

*

any ideas, su

Re: How to use /dev/srandom

2010-10-04 Thread Daniel Gracia
I do love all this considerations. Just wondering by on earth entropy 
doesn't get much attention in a world where people seems so worried 
about security and privacy.


Have you ever used any specific method to measure the randomness quality 
of the numbers generated by the kernel when randomness pool goes low? By 
means of the NIST Statistical Test Suite or anything like that.


Maybe it could be possible to maintain a 'randomness quality factor' 
variable updated in the kernel to be able to estimate, in a given time, 
the randomness available. Just thinking loud! I'd take a look to that.


El 29/09/2010 19:16, Theo de Raadt escribis:

On Wed, Sep 29, 2010 at 12:49 PM, Kevin Chadwick  wrote:

And isn't srandom sometimes (very rarely!) appropriate? E.g. for
generating encryption keys?


If arandom is somehow not appropriate for generating keys, it should
be fixed.  I'd be interested to hear more.


For those who don't want to go read the code, the algorith on the very back
end is roughly this:

 (a) collect entropy until there is a big enough buffer
 (b) fold it into the srandom buffer, eventually

That is just like the past.

But the front end is different.  From the kernel side:

 (1) grab a srandom buffer and start a arc4 stream cipher on it
(discarding the first bit, of course)
 (2) now the kernel starts taking data from this on every packet
it sends, to modulate this, to modulate that, who knows.
 (3) lots of other subsystems get small chunks of random from the
stream; deeply unpredictable when
 (4) on very interrupt, based on quality, the kernel injects something
into (a)
 (5) re-seed the buffer as stated in (1) when needed

Simultaneously, userland programs need random data:

 (i) libc does a sysctl to get a chunk from the rc4 buffer
 (ii) starts a arc4 buffer of it's own, in that program
 (iii) feeds data to the program, and re-seeds the buffer when needed

The arc4 stream ciphers get new entropy when they need. But the really
neat architecture here is that a single stream cipher is *unpredictably*
having entropy taken out of it, by hundreds of consumers.  In regular
unix operating systems, there are only a few entropy consumers.  In OpenBSD
there are hundreds and hundreds.  The entire system is full of random number
readers, at every level.  That is why this works so well.


I notice arandom doesn't pause. Is arandom always better or only when
there's enough entropy?


It is more efficient.  There is almost always enough entropy for
arandom, and if there isn't, you would have a hard time detecting
that.


There is always enough.  The generator will keep moving, until it has fetched
too much, or too much time has gone by.  Then it reseeds; though I think
it fundamentally does not care if the srandom buffer it feeds from is full
or not.




Re: MD5 checksum

2010-07-02 Thread Daniel Gracia
Are you mixing different memory modules on the same machine? If that's 
the case, extract one and try the computer with one module at a time, 
just to discard RAM problems.


Regards and good luck,

Dani

El 01/07/2010 12:15, Claudiu Pruna escribiC3:

On Thu, 2010-07-01 at 10:32 +0300, Thanasis wrote:

I had such a problem with under-volted RAM. The RAM (DDR2) needed to be
manually set to 2.0 or 2.1 Volts (in BIOS).

on 06/30/2010 11:58 PM Claudiu Pruna wrote the following:

Hi there,

I have a question if I have one box running OpenBSD 4.7 and everytime I
do md5 on one file I get different results, who is more succeptible to
be broken ? cpu ? ram ? or mb. ?

Thanks for your thoughts.







the computer is an PIII/450MHz:

hw.machine=i386
hw.model=Intel Pentium III ("GenuineIntel" 686-class, 512KB L2 cache)
hw.ncpu=1
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=wd0,cd0
hw.diskcount=2
hw.cpuspeed=448
hw.vendor=Compaq
hw.product=Deskpro EP/SB Series
hw.physmem=268005376
hw.usermem=267993088

could it still be a ram voltage problem ? as it has sdram ?




Re: audio recording levels

2010-06-17 Thread Daniel Gracia
I have worked with audio before, and can confirm internal audio codecs 
are very good for... trash them.


If quality is of any concern for you, just try another adapter, i.e. an 
inexpensive Behringer UCA 202 USB audio interface.


I've tried it with great results on OpenBSD, and you can buy it in 
Europe for as low as 27eur in Thomann.


Regards, and good luck.

I've a PMR/O

El 16/06/2010 15:05, Paul M escribis:

On 16/06/2010, at 6:45 PM, Alexandre Ratchov wrote:


On Wed, Jun 16, 2010 at 12:06:40AM +1200, Paul M wrote:

On 15/06/2010, at 11:18 PM, Paul M wrote:


On 15/06/2010, at 8:25 PM, Alexandre Ratchov wrote:


On Mon, Jun 14, 2010 at 08:20:57AM -0600, Ted Roby wrote:


Sound cards just get too much noise off the motherboard.


well, it depends on the sound card; properly engineered
cards don't get noise, including pci ones.


It seems the best I can get with the built-in sound on this computer
is about 36dB S/N. If the various input gain stages are not set quite


Sorry, that's a typo - should be -46 dB



that's not very good; 8-bit samples correspond to 48dB; I
mean with 48dB S/N, only 8 higher bits are significant.

Such a low S/N ratio makes me wonder if your cables, power
supply or whatever are ok.

BTW, how did you measure the S/N ratio?


No, it's not.

I measured by writing samples to a file then examining the file.
For a source, I used a 440 Hz sine wave.
With all the input gains set to minimum, the noise was negligible
(< -60 db, which is the smallest I could measure). This is pretty much
just the noise of the chip itself.

I then tweaked the various input levels (preamp, input stage, adc) till
the output of the preamp was just below clipping of the first input
stage, and the samples in the file were also just below clipping.
This gave me my signal level.
Then I disconnected the input and repeated, this gave me my noise -
shorting the input may give better results.

I repeated this over and over to find the best balance between input
stage gain and adc gain. I found the best result was to set the input
stage as low as possible, and adjust the adc gain to give full output.
(dont forget the input signal is as high as it can be without clipping)

Update: Today I reduced the input gain stage to 0 (I didnt try this
yesterday) and got about another 6-8 dB, so now I'm < 50 dB.
Jacob mentioned in and earlier mail that '0' for the input stages on
this codec is 0dB gain. FWIW the adc gain is set to 96 (+12dB).

Since my moise is measured with no input connected, this rules out
any external problems such as cables.
The power supply in the computer may be moisy, but I would guess
that crappy circuit layout is more likely. (though I will try another
power supply some time and see if it helps)


paulm




Re: time based rules on pf

2010-05-18 Thread Daniel Gracia Garallar
As you already know, that feature doesn't exist. cron should help this 
time -if you have any faith at all in its granularity!-.


You'd better write some kind of daemon to help updating those pf tables 
on the fly...


May the code be with you.

El 17/05/2010 16:03, Leonardo Carneiro - Veltrac escribis:

There is a way to do time-based rules on pf? Something like "this packet
will /pass/ from 10h to 13h" or "this packet will /pass/ until 22h, 13
june". I mean, there is a built-in mechanic to do this in pf or i'll
need to write a script in cron to add and remove rules?

Tks in advance




Re: OpenBSD culture?

2010-04-16 Thread Daniel Gracia Garallar

That attitude is shelfish, and I will try to state why:

Linux want to conolize the world; OpenBSD exists for its own sake, that 
is the same as saying for the sake of both developer and curious users.


You are expecting OpenBSD community should embrace you because Linux 
would like it: "A new adept!". But this is not the case.


If you have a little hacker inside you, understand some basic principles 
and are willing to learn, OpenBSD community will show you how incredible 
knowledgeable and helpful can be.


If you are just knocking doors hoping a welcome pie, well... Just look 
for another door.


We are not looking for friends, but hacker friends! :)

Regards!

Dani

El 14/04/2010 11:11, Zachary Uram escribiC3:

As a long time Linux user I will soon try out OpenBSD, I have been
reading the list emails and contacted 1 OpenBSD top person who was
very rude. There is some of the "RTFM" or "get lost" attitude in
Linux, but if a questioner seems sincere there is usually a certain
level of friendliness in Linux community towards them. Just what I
have briefly observed the OpenBSD community is more abrupt and less
interested in helping newbies, they prefer one find the answer solely
on their own if possible. I must say I detect a certain attitude that
smacks of superiority and even condescension at times. Is this a fair
assessment of 6the OpenBSD culture?

Zach

<><  http://www.fidei.org><>




Re: How to make FTP work from the firewall system?

2010-03-17 Thread Daniel Gracia Garallar

From the FAQ, read:

http://www.openbsd.org/faq/pf/ftp.html

Regards,

Dani

El 16/03/2010 4:49, Dave Anderson escribis:

I'm configuring a notebook which will use PF to protect itself from the
environments in which I use it, and would like to have FTP 'just work'
on it -- whether it's from an explicit FTP command, from a browser, or
embedded in some other program or script.  Unfortunatly there doesn't
seem to be any really good way to do this when a system is its own
firewall; the best tool I've found so far is 'ftpsesame', which
acknowledges a couple of significant problems (there's no guarantee that
the PF rules changes it makes will happen in time, and inspecting
packets 'on the fly' without a full TCP stack is errorprone).

I'd expect this to be a rather common desire; is there a good solution
that I've missed?  Suggestions are very welcome.

I do notice that 4.7 has a new divert-to-userland ability that looks
like it could be used to solve this problem properly, by intercepting
outbound and inbound control-connection packets on the egress interface.
If I read the documentation correctly, ftp-proxy has not (yet) been
updated to work this way; is anyone known to be planning to do this?

Thanks,

Dave




Re: Joomla - MySQL Problem: "Could not connect to MySQL"

2010-03-13 Thread Daniel Gracia Garallar
Not quite a solution, I think. What about if /var/www mounts in a 
different filesystem than /var?


Hardlinks from chrooted environments don't seem to be a wise solution 
anyway... Just IMHO.


Regards,

Dani

El 12/03/2010 12:16, Sunnz escribiC3:

2010/3/11 Jan:

I didn't notice, that httpd was still running.

kill -TERM ID_of_httpd
httpd -u

solved the problem. Thank you! Everything works fine!




Now that it works we know that it was a problem with chroot. It might
be a good practice now to hardlink the mysql.sock in the chroot
directory so that you can run apache chrooted... I think you do
something like:

# mkdir -p /var/www/var/run/mysql
# ln -f /var/run/mysql/mysql.sock /var/www/var/run/mysql/mysql.sock

Then if you shut down httpd and start it again,  you shouldn't need
"-u" any more.




Re: AMD power reduction

2010-02-08 Thread Daniel Gracia Garallar
If absolute raw power is not mandatory, you may have a look at 
Atom-based servers -like 
http://www.supermicro.es/?opcion=contenido&plt=notas&id=137 for example-.


This servers consumption should make a difference when working on 
renovable energy sources.


Regards!

Jean-Francois escribis:

Le lundi 08 fivrier 2010 04:10:22, Nick Holland a icrit :

With all this talk about power reduction...I'm going to toss out one
small suggestion:

Get a Wattmeter, and measure...  Don't waste your time speculating.


Hello,

I did. It's consuming some 90 Watts at idle.
Actually, it's an Athlon but the latest Sempron has an even reduced TDP.
My next server will be based on it.
Actually even 70 Watts is a little bit high for my next server given the fact
it will be in an autonomous environment (small wind/solar generators).

Regards




Re: USB voltmeter or DAQ module, small, inexpensive, with OpenBSD support

2010-02-01 Thread Daniel Gracia Garallar
With a proto board and some skills, you could build a serial system with 
a total cost around US$30, small enough to not even need a rail support.


You could also try to hang on the I2C iface of your mainboard and add 
you own devices, but if you're not so much into electronics... Go the 
Arduino way; readily available, cheap as chips and infinite expansion 
boards.


Ralph Becker-Szendy escribis:
For one of my OpenBSD machines, I need to be able to measure a few 
analog voltages, and act on them in a control process.  The requirements 
 are quite simple compared to typical data acquisition: I absolutely 
need two voltage inputs, either 0-20V or 0-100mV; doesn't have to be 
differential, acquisition can be slow (1s is fine), and resolution can 
be as small as 10-12 bits (1% accuracy is more than good enough).  A few 
extra input channels, more accuracy/resolution, and a few digital IOs 
wouldn't hurt, but are not necessary.  DIN rail mounting and connection 
breakout would be nice, but can be improvised.


On the software side, there will be OpenBSD, with ad-hoc monitoring and 
control scripts.  With a little programming and script-writing, I can 
adapt anything that the OS can reasonably access.


Now come the issues: I can't use PCI cards, only external units, most 
likely connected via USB (as Ethernet and serial are expensive or rare). 
 And it needs to have some software support under OpenBSD - a Windows- 
or Linux-only solution doesn't work.  And this application is not worth 
spending thousands of $$$.  For Windows and LabView, solutions are easy 
to find (for example EMant300, DAQPodMX, a variety of Omega products). 
Does anyone now of a solution that would work with OpenBSD?




Re: SMP

2009-12-09 Thread Daniel Gracia Garallar

It is true, and AFAIK, todays it's a topper nice task... almost 20.

Regards,

Dani

Donald Allen escribis:

My understanding is that OpenBSD still employs the Giant Lock approach
to SMP, serializing access to kernel services. Is this still true? If
it is, do Theo and the other kernel developers consider it a priority
to improve this?

(I am NOT complaining. I completely understand that OpenBSD is a labor
of love and that development resources are limited and that doing SMP
right isn't easy. I'm simply trying to get an idea of whether this is
likely to be addressed in the near future or not.)

/Don Allen




Re: Connect to wireless Access Point according to MAC address

2009-11-26 Thread Daniel Gracia Garallar
'man ifconfig' states you can use bssid parameter to specify your 
desired bssid -automatic is the default mode-.


So you may try 'ifconfig iwn0 nwid Open bssid 00:0b:0e:33:ed:00'.

Regards,

Dani

Milin escribiC3:

Hi all,

I'd like to connect to the wireless AP according to its MAC address.
For example there are two wireless AP

nwid Open chan 6 bssid 00:0b:0e:29:06:40 189dB 54M short_preamble,short_slottime
nwid Open chan 6 bssid 00:0b:0e:33:ed:00 172dB 54M short_preamble,short_slottime

and I'd like to connect to the second one (00:0b:0e:33:ed:00). With
ifconfig iwn0 nwid Open up it connects to the first one.

I have googled, but haven't found anything useful.
I'm using OpenBSD 4.6 and wireless NIC is iwn0.

Thanks a lot,

Milan




Re: Does Atom dual-core work with SMP?

2009-11-23 Thread Daniel Gracia Garallar
As a rule of dumb, and as far as the big lock is present -OpenBSD has 
not the best performance-wise SMP solution out there-, if your dealing 
with high I/O rates -all computing at kernel space-, a dual core system 
isn't going to scale very well... So you will get similar performance on 
both platforms.


If all your computing needs stay in user space, or money is not a 
concern, or you are looking to help improving SMP for OBSD, then go for 
the 330 :)


Douglas Maus escribis:

Does anyone have experience whether dual core actually
gets better OpenBSD SMP performance between the Intel
Atom 230 (single core) and Atom 330 (dual core)?

(such as between the Supermicro SYS-5015A-L and
Supermicro SYS-5015A-H)

Is the Atom 330 worth the extra bucks?

Thanks for any insight.




Re: Spanish language resources for OpenBSD

2009-11-21 Thread Daniel Gracia Garallar
Searching my favourites I've found these two sites to be up and running 
with fresh info and active comunities:


http://openbsdcolombia.org/
http://www.openbsderos.org/

Good luck with the project!

Dani

Chris Bennett escribis:



Abel Abraham Camarillo Ojeda wrote:

I also don't like too much translating... but can help whenever
possible (native spanish speaker).

It's just that all the people that I know that can use (thoroughly)
OpenBSD in my city can also read english very well (at least)...

On Tue, Nov 17, 2009 at 08:24:54AM +0100, Daniel Gracia Garallar wrote:
 
I'm not aware of many spanish resources... AFAIK, the only big 
resource  centre was the Mexican community, but now it seems to be 
gone with all  their translated and own documents.


I'd never been a big advocate of translating efforts, but as a 
native  spanish speaker, I should help whenever possible :)




The group of people I am working with don't speak English.
They also have more limited needs for a computer.

OpenBSD offers an excellent price (free), for basic computing needs:
web browsing, sending email, word processing, editing photos, etc.

Their main cost will be just buying a computer, even older equipment 
works very well with OpenBSD.


Oh, yeah. I think it would be appropriate if I sent in a donation with 
each install I do like this.


There is that website that records older websites, waybackmachine or 
something like that.

Maybe the Mexican site has been recorded there? I will try and look for it.

Chris Bennett




Re: Please use this to convert people to OpenBSD

2009-11-20 Thread Daniel Gracia Garallar

Ey, nice project!

And appears just on time... I was missing an alternative to Wordpress 
for my not-caring-about-never-used-features fellows. Will give it a try :)


Jason Dixon escribis:

On Tue, Nov 17, 2009 at 05:46:00PM +0530, Girish Venkatachalam wrote:

Dear friends,


Please stop spamming the list about your project.  I'm happy to see it
exists, but I think it's inappropriate (and annoying) to email misc@ on
a daily basis (4 days now).  A more appropriate venue would be the
OpenBSD Journal.  Why don't you submit a story?

P.S. Today's promotion of liveusb-openbsd is bordering on zealotry.
Zealotry is stupid and attracts users we don't want in the first place.

P.P.S. I think I need to go blog about this now.

http://blogsum.obfuscurity.com/


;)




Re: OpenBSD blog software

2009-11-18 Thread Daniel Gracia Garallar

[...]
P.S. And this will be the last you hear about it from me.  ;)



I hope this doesn't come to mean the project falls dead. I've been 
reading the source and seems surprisingly simple, but those damned 
regulars... hehehe.


My treat!



Re: Spanish language resources for OpenBSD

2009-11-17 Thread Daniel Gracia Garallar
I'm not aware of many spanish resources... AFAIK, the only big resource 
centre was the Mexican community, but now it seems to be gone with all 
their translated and own documents.


I'd never been a big advocate of translating efforts, but as a native 
spanish speaker, I should help whenever possible :)


Regards,

Dani

Chris Bennett escribis:
I am now going to be setting up occasionally but regularly OpenBSD 
machines for people who only speak Spanish.


I have already found the language packs for kde, openoffice, firefox and 
thunderbird.


I just accidentally figured out that that www.openbsd.org has a couple a 
pages in Spanish, but no links to them from site that I could find.


Is there anyone actively maintaining Spanish translations? Most of what 
I found was several releases old or even older.


Is there a particular site that has "got it all?"


I also saw a while back on ports that scrotwm was adding man pages in 
some additional languages, but I don't see any signs of that. Was that 
just for non-OpenBSD versions?


Thanks,
Chris Bennett




OpenBSD platform of choice?

2009-11-11 Thread Daniel Gracia Garallar

Hi there!

Now that I have to change my little server farm and I'm able to choose a 
new platform, I would like to choose wisely.


It's a matter of fact that Intel x86 is bogus-prone, and after 
experimenting a lot with OpenBSD and listening about the different archs 
since several years ago, I tend to think that most of the delevopers 
have a taste for Sparc derived machines as being more... predictable. 
But of course, no machine is bug free.


So thinking about security and stability, what would be your OpenBSD 
platform of choice?


Keep in mind that in this question price is not a factor. I'm just 
curious about preferences based on CPU features and their implementation 
on OpenBSD.


Regards!

Dani



Re: 200g harddisk after newfs = Available 174g?

2009-10-29 Thread Daniel Gracia Garallar
Manufactures use the 'giga' prefix in the International System meaning. 
That said, 1Gb would be 10^9 = 1,000,000,000 bytes.


Computer programmers, OS and all around computer chit-chat use the 
prefix 'giga' to refer 2^30 = 1,073,741,824 bytes.


IEC recommends calling this GiB, but it's uncommon.

Today, you could assume safely only manufacturers write Gb in the 
International System meaning; everybody else is refering to GiBs when 
talking about Gb.


Sum this fact with filesystem overhead, and you may get all your space!

Jennifer Ma escribis:

hi all, lately, i obtained a seagate 200g(wd1) harddisk from my elder
brother, after i disklabel, newfs and mount the disk.  only 174g is
shown as available, in windows(through samba), said 9.16g already been
used.  is there any way i can claim those space back?  much thanks!

# disklabel wd1
# /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: ST3200826A
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 390721968
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:390721905   63  4.2BSD   2048 163841
  c:3907219680  unused


# df -h
# Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/wd0a  1.8G1.4G313M82%/
/dev/wd1a  183G2.0K174G 0%/www01




Re: Trouble with a uaudio(4) device

2009-10-24 Thread Daniel Gracia Garallar
Probably you'll have to create the /dev/audio1 device. Just go to /etc 
and make a 'sudo MAKEDEV audio1'. This script will create all the 
required devs to operate your audio card.


Regards!

Dani


Jona Joachim escribis:

Here's the dmesg output when I plug in the device:

uaudio0 at uhub3 port 2 configuration 1 interface 0 "Ten X Technology,
Inc. USB  AUDIO" rev 1.10/2.04 addr 2
uaudio0: ignored input endpoint of type adaptive
uaudio0: audio rev 1.00, 4 mixer controls
audio1 at uaudio0
uhidev1 at uhub3 port 2 configuration 1 interface 3 "Ten X Technology,
Inc. USB  AUDIO" rev 1.10/2.04 addr 2
uhidev1: iclass 3/1
uhid0 at uhidev1: input=8, output=8, feature=0
uhidev2 at uhub3 port 2 configuration 1 interface 4 "Ten X Technology,
Inc. USB  AUDIO" rev 1.10/2.04 addr 2
uhidev2: iclass 3/1, 3 report ids
uhid1 at uhidev2 reportid 3: input=1, output=0, feature=0

When I try to use it I get the following errors:

han% audioctl -f /dev/audio1
audioctl: /dev/audio1: Device not configured
han% aucat -f /dev/audio1 -l
aucat: /dev/audio1: can't open device

I don't really know how to debug this any further. This is on i386
-current.

Here's some more info about the hardware:

 port 2 addr 2: full speed, power 500 mA, config 1, USB  AUDIO(0xf211),
Ten X Technology, Inc.(0x1130), rev 2.04

n% usbhidctl -f /dev/uhid0
No_Event=1 [0]
No_Event=1 [1]
No_Event=1 [2]
No_Event=1 [3]
No_Event=1 [4]
No_Event=1 [5]
No_Event=1 [6]
No_Event=1 [7]
Undefined.Num_Lock=0
Undefined.Caps_Lock=0
Undefined.Scroll_Lock=0
Undefined.Compose=0
Undefined.Kana=0
Undefined.Power=0
Undefined.Shift=0
Undefined.Do_Not_Disturb=0
Undefined.Mute=0
Undefined.Tone_Enable=0
Undefined.High_Cut_Filter=0
Undefined.Low_Cut_Filter=0
Undefined.Equalizer_Enable=0
Undefined.Sound_Field_On=0
Undefined.Surround_Field_On=0
Undefined.Repeat=0
Undefined.Stereo=0
Undefined.Sampling_Rate_Detect=0
Undefined.Spinning=0
Undefined.CAV=0
Undefined.CLV=0
Undefined.Recording_Format_Detect=0
Undefined.Off-Hook=0
Undefined.Ring=0
Undefined.Message_Waiting=0
Undefined.Data_Mode=0
Undefined.Battery_Operation=0
Undefined.Battery_OK=0
Undefined.Battery_Low=0
Undefined.Speaker=0
Undefined.Head_Set=0
Undefined.Hold=0
Undefined.Microphone=0
Undefined.Coverage=0
Undefined.Night_Mode=0
Undefined.Send_Calls=0
Undefined.Call_Pickup=0
Undefined.Conference=0
Undefined.Stand-by=0
Undefined.Camera_On=0
Undefined.Camera_Off=0
Undefined.On-Line=0
Undefined.Off-Line=0
Undefined.Busy=0
Undefined.Ready=0
Undefined.Paper-Out=0
Undefined.Paper-Jam=0
Undefined.Remote=0
Undefined.Forward=0
Undefined.Reverse=0
Undefined.Stop=0
Undefined.Rewind=0
Undefined.Fast_Forward=0
Undefined.Play=0
Undefined.Pause=0
Undefined.Record=0
Undefined.Error=0
Undefined.Usage_Selected_Indicator=0
Undefined.Usage_In_Use_Indicator=0
Undefined.Usage_Multi_Mode_Indicator=0
Undefined.Indicator_On=0
Undefined.Indicator_Flash=0
Undefined.Indicator_Slow_Blink=0
Undefined.Indicator_Fast_Blink=0

han% usbhidctl -f /dev/uhid1
Consumer_Control.Volume_Up=0
Consumer_Control.Volume_Down=0
Consumer_Control.Mute=0
Consumer_Control.Scan_Next_Track=0
Consumer_Control.Scan_Previous_Track=0
Consumer_Control.Pause/Play=0




Re: calendar typo?

2009-08-26 Thread Daniel Gracia Garallar
It all depends, as Paraguay has two native languages: spanish and 
guaranm. In spanish, the country name is written as 'Paraguay', and 
'Paraguai' in guaranm.


I barely, if ever, have read 'Paraguai' in any text, maybe because I'm a 
native spanish speaker. So 'Paraguay' goes for me.


Igor Sobrado escribis:

On Tue, Aug 25, 2009 at 11:16 AM, frantisek holop wrote:

hi there,

Aug 25  Constitution Day in Paragual

shouldn't that be Paraguai?


Indeed, it is a typo.  However, is it not a much more usual spelling
"Paraguay"?




Re: Bind ntpd on certain interface?

2009-08-16 Thread Daniel Gracia Garallar
The problem here is not the list attitude, but your silly "That's right, 
I've already done it, I know, I know" when somebody corrects you. That 
makes developers angry.


Obviously something was wrong with your configs, and you think you know 
what, but don't. And that's worse than knowing you don't know. Then you 
did, what? Compete with developers for your truth? Lame.


Nobody can force you, but I'll encorauge you stop whining because people 
are harsh at you: They know what they're talking about, so listen them 
before listening yourself.


Regards,

Dani

Nice Daemon escribis:

Can you please leave?


Can you please force me?


Honestly are you really that stupid to not understand when your welcome?



No, I'm certainly not stupid. I'm just *re*acting (to remind you; in case
you are actually able to *read*, you should already know it). People
(Henning, Theo) started to bark at me when I asked for help. They didn't
provide any help, they just needed someone to throw their words at. Seems
like they have a severe need for psycho analysis (but hey, this is
well-known throughout the net for Theo!).

I don't think that this is normal behaviour, and I don't think that people
appreciate it being treated like this.

It seems (for years and years) that this is your (OpenBSD's
developers/communities/whatever) attitude, so be it.

But don't think that people being insulted will actually give donations to
you or pay money to buy a CD/DVD set. They will (at max) use your software
and never return anything back to you (the project) because they know, out
of their own memories, because they read the list or because they read about
this on other places, that you will insult them.

You are the kids that nobody wants to play with. That nobody wants to fall
in love with, that will die alone. Unloved. But it would be so easy to
change: Just say 'hi!' instead of 'what do you motherfucking prick want?!'.
:)



Do you think anybody likes to help a prick like you?



The OpenBSD mailing list is the only place I don't seem to be welcome. And
guess what: I can live with it. Proudly.

Joe



--
:wq Claudio




Re: Is Radeon HD 4870 okay?

2009-08-12 Thread Daniel Gracia Garallar
Shall you be dual booting your computer, you may consider using a 
virtual machine to exec OpenBSD, or even getting some 'el-cheapo' CPU to 
install OpenBSD and use it through SSH/Xming from you current system, to 
make full use of your terminal full resolution.


Regards,

Dani

Sviatoslav Chagaev escribis:

Hello,

I want to buy a new video card, and I'm considering ATI Radeon HD 4870.

On UNIX (OpenBSD that is), I need the card to:
* be capable of 1920x1...@60hz resolution on DVI-D
* have 2D acceleration (including X-Video)
3D acceleration would be nice but is not required.

I dual-boot for games, so buying something older won't do, I need
fairly modern and powerful hardware.

My motherboard (ASUS M3N78-EM) has a GeForce 8300 chipset (not
supported by "open source"/magic-number nv driver, and I couldn't force
vesa driver to 1920x1080), I'm intending to run OpenBSD/amd64.

So, will 4870 work okay in OBSD? If not, could you please suggest
something that would meet the two above-mentioned criteria and be
powerful enough for gaming?

Thanks!




Re: FTP public

2009-08-04 Thread Daniel Gracia Garallar

Always read the FAQ first.

To support an active FTP server, you should allow traffic for ftp, 
ftp-data port and also all between net.inet.ip.porthifirst and 
net.inet.ip.porthilast ports, as configured by sysctl(8).


Regards!

Dani

Yamidt Henao escribis:

Hi,

I cant publish a ftp server using the pf, my ftp server used autenticacion,I
have in pf:

#1:
rdr on $ext_if proto tcp from any to ($ext_if) port { ftp-data } ->
 port ftp-data
#2:
rdr on $ext_if proto tcp from any to ($ext_if) port { ftp } -> 
port ftp

but I cant connect ftp sesions.


Any idea.

Y.H




Re: English and Spanish keyboard at same time?

2009-07-25 Thread Daniel Gracia Garallar

Are you working with X, or shell only?

Dani

Chris Bennett escribis:

I do most of my work in English, but I also do a small amount in Spanish.
I have a Spanish keyboard, but when I tried hooking it up, didn't get 
what was on keys.


Is there any way to change this dynamically so that I can switch back 
and forth easily?


Chris Bennett




Re: System load stays high for no reason

2009-07-22 Thread Daniel Gracia Garallar
Maybe these figures annoy you because you don't understand system load 
for OBSD. Take a look at


http://www.undeadly.org/cgi?action=article&sid=20090715034920

Regards,

Dani

Jan-Erik Skata escribis:

I have done a fresh install of 4.5, as a basic firewall (ethernet-ethernet)
and web server with Apache, PHP and MySQL.
This is a dual CPU machine (Celeron 466) and I am using the SMP kernel.
For some reason the system load has a tendency to stick at around 0.6-0.7,
even if I shut down all services and pull the extranet cable. After a reboot
it was OK (0.05-0.08) for a while.

I have not seen this with an earlier release. Anybody else having
experienced this?




Re: pf problem / maybe bug in parser

2009-07-17 Thread Daniel Gracia Garallar

Holger, we should adhere to KISS principle.

So, pf rulesets are fine like they are if they are working as expected, 
and this is our case. If you're missing some warning feature maybe you 
would try to write an aux app -` la lint for C- that could parse a 
pf.conf and look for suspect behaviour.


But keep in mind, these needs are not usual between heavy users of pf, 
so it's unlikely it would be implemented anytime soon -never is more 
like it-.


Regards!

Dani

Paul de Weerd escribis:

On Fri, Jul 17, 2009 at 11:11:22AM +0200, Holger Glaess wrote:
| you are right but i think it is really helpful if pfctl give an
| warning if he found those kind of line that you can decide if this
| rule to want or a miss typo that have to be correct.

And the next guy wants a warning when you block ssh access. Then the
next guy has yet other things he thinks his firewall should never
allow and wants to get warned when his rules do not match that. Yet
another guy wants warnings for whatever it is he doesn't want his
firewall to do.

What I think you want is `pfctl -vf /etc/pf.conf`. The -v will tell
you what rules are loaded. Should be enough warning for you. If you
can't verify your ruleset after loading it, I really think you have
bigger problems than what can be solved with a warning.

Paul 'WEiRD' de Weerd




Re: spamd nixspam.gz not found

2009-06-27 Thread Daniel Gracia Garallar
Talking about wget... Wouldn't be more convenient calling 'ftp 
http://www.blahblah.net/myitem.gz'?


I use to recover files that way; works like a charm and allows getting 
files from http servers without installing any ports/packages.


Regards,

Dani

patrick keshishian escribiC3:

On Wed, Jun 24, 2009 at 4:33 AM, Rod Whitworth wrote:

On Wed, 24 Jun 2009 07:57:16 -0300, Jose Fragoso wrote:


Hi,

Actually, it is still there. But the format has changed
and spamd is not being able to handle it because the IP
address is now in the second column, like in:

2009-06-24T12:28+0200 117.199.144.132

So, for the time being, the best thing to do is to use
wrapper script.

Regards,


Yep.
Some time ago I ran into probs using the okean lists and I recently was
bitten by this one.

My solution was/is to set up spamd.conf to find those data by using the
'file method'.
I do this because a failed fetch leaves the relevant filter without
data.

So I have cronjobs to fetch the data and format it if necessary, as in:
26 B  B  B 14 B  B  B * B  B  B  * B  B  B  * B  B  B  /root/bin/okean
that only needs to be updated once a day as it is slow to change.
and:
31 B  B  B * B  B  B  * B  B  B  * B  B  B  * B  B  B  /root/bin/nixpix
so that:
37 B  B  B * B  B  B  * B  B  B  * B  B  B  * B  B  B 

/usr/libexec/spamd-setup

works properly.

okean:
#!/bin/sh
ftp -o /var/db/china.txt http://www.okean.com/chinacidr.txt
ftp -o /var/db/korea.txt http://www.okean.com/koreacidr.txt

nixpix:
#!/bin/sh
cd /root/data
rm -f nixspam
/usr/local/bin/wget -q www.openbsd.org/spamd/nixspam.gz
if [ $? -eq 0 ] ; then
B  B  B  B gunzip nixspam.gz
B  B  B  B cut -d " " -f 2 nixspam >/var/db/nixspam
fi
exit

spamd.conf points at the outputs of those scripts.

If any of those fetches fails, the previous data is still in place to
maintain spamd when it runs each hour.


Umm... you are explicitly doing and 'rm -f nixspam' in your script before
wget.

--patrick




Re: random crashes on a firewall with OpenBSD 4.5-stable

2009-06-26 Thread Daniel Gracia Garallar
Can't read that? Custom compiled kernel and cac error speaks by 
themselves; dirty solution, try other disk controller. Best solution, 
discard you don't have bad hardware and, if everything is ok, make 
contact with developers and help searching for a code patch to improve 
the RAID adapter driver.


Regards!

Dani

ComC(te escribiC3:

Hi,

we are using the last OpenBSD 4.5-stable release on an old Compaq 
Proliant ML350 as a firewall with spamd. But we encounter randomly some 
system crashes (once a week or two weeks). The system always displays 
the same message:


uvm_fault (0xd080d9e00x0,0,1) -> e

kernel: page fault trap, code=0

Stopped at cac_pci_l0_intr_pending+0xb
push 0x34 (%eax)

What do you think it could be ? I thought about maybe a hardware problem 
but where exactly...


I join my dmesg below

Thanks for your advice !

OpenBSD 4.5-stable (GENERIC) #9: Sun May 17 22:59:17 CEST 2009
r...@arwen.saintlo.fr:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) III CPU family 1266MHz ("GenuineIntel" 
686-class) 1.27 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE 


real mem  = 267988992 (255MB)
avail mem = 250839040 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf, 
SMBIOS rev. 2.3 @ 0xec000 (31 entries)

bios0: vendor Compaq version "D11" date 01/29/2002
bios0: Compaq ProLiant ML350 G2
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC SPCR
acpi0: wakeup devices PBTN(S5)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 3 (boot processor)
cpu0: apic clock running at 132MHz
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 11, 16 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
ioapic1 at mainbus0: apid 2 pa 0xfec01000, version 11, 16 pins
ioapic1: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PCI1)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature 31 degC
acpibtn0 at acpi0: PBTN
bios0: ROM list: 0xc/0x8000 0xc8000/0x1800 0xc9800/0x1800 
0xcb000/0x1800 0xcc800/0x4000! 0xd0800/0x1800 0xee000/0x2000!

pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x06
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x06
pci1 at pchb1 bus 2
em0 at pci1 dev 1 function 0 "Intel PRO/1000T (82544GC)" rev 0x02: apic 
2 int 0 (irq 5), address 00:02:b3:b9:0d:a4
em1 at pci1 dev 2 function 0 "Intel PRO/1000T (82544GC)" rev 0x02: apic 
2 int 2 (irq 15), address 00:02:b3:b9:0d:7d
re0 at pci1 dev 3 function 0 "D-Link Systems DGE-528T" rev 0x10: 
RTL8169/8110SB (0x1000), apic 2 int 4 (irq 15), address 00:1c:f0:6f:38:7e

rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 3
cac0 at pci1 dev 4 function 0 "DEC Compaq SMART RAID 42xx" rev 0x01: 
apic 2 int 6 (irq 11), Smart Array 431

scsibus0 at cac0: 1 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI2 0/direct 
fixed

sd0: 34727MB, 512 bytes/sec, 71122560 sec total
re1 at pci1 dev 5 function 0 "D-Link Systems DGE-528T" rev 0x10: 
RTL8169/8110SB (0x1000), apic 2 int 8 (irq 15), address 00:1c:f0:62:eb:12

rgephy1 at re1 phy 7: RTL8169S/8110S PHY, rev. 3
fxp0 at pci0 dev 1 function 0 "Intel 8255x" rev 0x08, i82559: apic 2 int 
10 (irq 5), address 00:02:a5:44:33:f7

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
ahc0 at pci0 dev 2 function 0 "Adaptec AHA-3960D U160" rev 0x01: apic 2 
int 11 (irq 11)

scsibus1 at ahc0: 16 targets, initiator 7
ahc1 at pci0 dev 2 function 1 "Adaptec AHA-3960D U160" rev 0x01: apic 2 
int 11 (irq 11)

scsibus2 at ahc1: 16 targets, initiator 7
st0 at scsibus2 targ 6 lun 0:  SCSI2 
1/sequential removable
fxp1 at pci0 dev 4 function 0 "Intel 8255x" rev 0x08, i82559: apic 2 int 
13 (irq 10), address 00:08:02:45:29:64

inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 5 function 0 "ATI Rage XL" rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Compaq Netelligent ASMC" rev 0x00 at pci0 dev 6 function 0 not configured
piixpm0 at pci0 dev 15 function 0 "ServerWorks CSB5" rev 0x92: polling
iic0 at piixpm0
iic0: addr 0x28 00=a0 01=10 02=03 03=01 04=7f 05=04 06=03 07=00 08=00 
09=00 0b=00 0c=03 0d=41 0e=02 0f=00 10=00 11=05 18=3a 19=10 20=ff 21=ff 
28=00 29=00 2a=04 2b=00 2c=00 2d=00 2e=00 30=00 31=00 32=00 38=00 39=00 
3a=00 3b=00 3c=00 3d=00 3e=00 40=08 41=08 42=80 48=03 49=03 4a=03 50=00 
51=80 58=00 59=00 60=f0 61=f0 68=af 69=af 70=ff 71=00 78=ff 79=ff 80=2b 
81=37 82=ff 88=f0 89=f0 8a=f0 90=3c 91=46 92=ff 98=37 99=41 9a=ff a0=22 
a1=2d a2=80 a8=ff a9=ff b0=00 b1=00 b8=06 b9=00 words 00=a0a0 01=1010 
02=0303 03=0101 04=7f7f 05=0404 06=0303 07=

spdmem0 at iic0 addr 0x50: 256MB SDRAM registered ECC PC133CL2
pciide0 at pci0 dev 15 function 1 "ServerWorks CSB5 IDE" rev 0x92: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus3 at atapiscsi0: 2 targets
cd0 a

Re: random crashes on a firewall with OpenBSD 4.5-stable

2009-06-25 Thread Daniel Gracia Garallar
Oh and maybe bad RAM; I've hit some nasty errors with these faulty 
DIMMs... :/


ComC(te escribiC3:

Hi,

we are using the last OpenBSD 4.5-stable release on an old Compaq 
Proliant ML350 as a firewall with spamd. But we encounter randomly some 
system crashes (once a week or two weeks). The system always displays 
the same message:


uvm_fault (0xd080d9e00x0,0,1) -> e

kernel: page fault trap, code=0

Stopped at cac_pci_l0_intr_pending+0xb
push 0x34 (%eax)

What do you think it could be ? I thought about maybe a hardware problem 
but where exactly...


I join my dmesg below

Thanks for your advice !

OpenBSD 4.5-stable (GENERIC) #9: Sun May 17 22:59:17 CEST 2009
r...@arwen.saintlo.fr:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) III CPU family 1266MHz ("GenuineIntel" 
686-class) 1.27 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE 


real mem  = 267988992 (255MB)
avail mem = 250839040 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf, 
SMBIOS rev. 2.3 @ 0xec000 (31 entries)

bios0: vendor Compaq version "D11" date 01/29/2002
bios0: Compaq ProLiant ML350 G2
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC SPCR
acpi0: wakeup devices PBTN(S5)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 3 (boot processor)
cpu0: apic clock running at 132MHz
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 11, 16 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
ioapic1 at mainbus0: apid 2 pa 0xfec01000, version 11, 16 pins
ioapic1: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PCI1)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature 31 degC
acpibtn0 at acpi0: PBTN
bios0: ROM list: 0xc/0x8000 0xc8000/0x1800 0xc9800/0x1800 
0xcb000/0x1800 0xcc800/0x4000! 0xd0800/0x1800 0xee000/0x2000!

pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x06
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x06
pci1 at pchb1 bus 2
em0 at pci1 dev 1 function 0 "Intel PRO/1000T (82544GC)" rev 0x02: apic 
2 int 0 (irq 5), address 00:02:b3:b9:0d:a4
em1 at pci1 dev 2 function 0 "Intel PRO/1000T (82544GC)" rev 0x02: apic 
2 int 2 (irq 15), address 00:02:b3:b9:0d:7d
re0 at pci1 dev 3 function 0 "D-Link Systems DGE-528T" rev 0x10: 
RTL8169/8110SB (0x1000), apic 2 int 4 (irq 15), address 00:1c:f0:6f:38:7e

rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 3
cac0 at pci1 dev 4 function 0 "DEC Compaq SMART RAID 42xx" rev 0x01: 
apic 2 int 6 (irq 11), Smart Array 431

scsibus0 at cac0: 1 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI2 0/direct 
fixed

sd0: 34727MB, 512 bytes/sec, 71122560 sec total
re1 at pci1 dev 5 function 0 "D-Link Systems DGE-528T" rev 0x10: 
RTL8169/8110SB (0x1000), apic 2 int 8 (irq 15), address 00:1c:f0:62:eb:12

rgephy1 at re1 phy 7: RTL8169S/8110S PHY, rev. 3
fxp0 at pci0 dev 1 function 0 "Intel 8255x" rev 0x08, i82559: apic 2 int 
10 (irq 5), address 00:02:a5:44:33:f7

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
ahc0 at pci0 dev 2 function 0 "Adaptec AHA-3960D U160" rev 0x01: apic 2 
int 11 (irq 11)

scsibus1 at ahc0: 16 targets, initiator 7
ahc1 at pci0 dev 2 function 1 "Adaptec AHA-3960D U160" rev 0x01: apic 2 
int 11 (irq 11)

scsibus2 at ahc1: 16 targets, initiator 7
st0 at scsibus2 targ 6 lun 0:  SCSI2 
1/sequential removable
fxp1 at pci0 dev 4 function 0 "Intel 8255x" rev 0x08, i82559: apic 2 int 
13 (irq 10), address 00:08:02:45:29:64

inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 5 function 0 "ATI Rage XL" rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Compaq Netelligent ASMC" rev 0x00 at pci0 dev 6 function 0 not configured
piixpm0 at pci0 dev 15 function 0 "ServerWorks CSB5" rev 0x92: polling
iic0 at piixpm0
iic0: addr 0x28 00=a0 01=10 02=03 03=01 04=7f 05=04 06=03 07=00 08=00 
09=00 0b=00 0c=03 0d=41 0e=02 0f=00 10=00 11=05 18=3a 19=10 20=ff 21=ff 
28=00 29=00 2a=04 2b=00 2c=00 2d=00 2e=00 30=00 31=00 32=00 38=00 39=00 
3a=00 3b=00 3c=00 3d=00 3e=00 40=08 41=08 42=80 48=03 49=03 4a=03 50=00 
51=80 58=00 59=00 60=f0 61=f0 68=af 69=af 70=ff 71=00 78=ff 79=ff 80=2b 
81=37 82=ff 88=f0 89=f0 8a=f0 90=3c 91=46 92=ff 98=37 99=41 9a=ff a0=22 
a1=2d a2=80 a8=ff a9=ff b0=00 b1=00 b8=06 b9=00 words 00=a0a0 01=1010 
02=0303 03=0101 04=7f7f 05=0404 06=0303 07=

spdmem0 at iic0 addr 0x50: 256MB SDRAM registered ECC PC133CL2
pciide0 at pci0 dev 15 function 1 "ServerWorks CSB5 IDE" rev 0x92: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus3 at atapiscsi0: 2 targets
cd0 at scsibus3 targ 0 lun 0:  ATAPI 5/cdrom 
removable

cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
ohci0 at pci0 dev 15 function 2 "ServerWorks OSB4/CSB5 USB" rev 0x05: 
apic 8 int 10 (irq 10), version 1.0, legacy support

pchb2 at pci0 

Re: CPU power control and 'unknown Enhanced SpeedStep CPU'

2009-06-18 Thread Daniel Gracia Garallar
That's reasonable, as SpeedStep is able to run CPUs only at several 
discrete speeds, dependant of your CPU model: SpeedStep is more like 
those good old 'turbo switchs' xD than a continuous infitine-step throttle.


To further decrease your sytem clock speed you'll need to hack your 
bios/motherboard and underclock the entire system. That way you'll scale 
the -your two- available speeds.


Keep in mind that you limited speed control is a CPU issue, not and OS 
issue :)


Jan Stary escribis:

On Jun 15 11:05:39, Ted Unangst wrote:

On Mon, Jun 15, 2009 at 10:29 AM, Jan Stary wrote:

What is the best way to learn about the power/frequency/thermal
control options of my CPU from bsd's point of view (besides
dmesg and sysctl)? For example, what are the P-states and C-states
my CPU can enter, and which of those does bsd support?

you can adjust hw.setperf from 0 to 100.

given the current level of acpi support, the only state your cpu can
enter is "on".


What exactly is the relation of apm, acpi, and hw.setperf?

apm is what laptops used to go to sleep 10 years ago.  acpi is what
laptops today use to annoy kernel developers.  hw.setperf is a uniform
userland interface to what may be one of many backend drivers.


So, neither apm nor acpi (acpicpu) is needed to use hw.setperf?

no.


Also, the Enhanced SpeedStep support on my CPU reduces to

   cpu0: unknown Enhanced SpeedStep CPU, msr 0x061a082006000820
   cpu0: using only highest and lowest power states
   cpu0: Enhanced SpeedStep 2667 MHz (1212 mV): speeds: 2667, 2000 MHz

- is there something I can do about it? Is there a point in running
current (as opposed to 4.5-stable) with regard to this?

current has different acpi code.  maybe that works.  what difference
acpicpu makes over est.c is probably none.

on most machines now, setperf works by poking registers in the cpu
telling it to speed up or slow down.  est knows about two settings,
fast and slow.  acpi may have information about some other settings in
the middle which are unlikely to be of use unless your cpu is
frequently exactly 40% busy.


I just upgraded to -current. That makes it boot GENERIC.MP with ACPI,
good. With regard to CPU freq control (now that acpi is in charge of that,
and not est), the difference is indeed none. Setting hw.setperf to whatever
only makes a difference when crossing setperf=50, which lowers 2667 to 2000
as before.




Re: apc ups daemon

2009-06-11 Thread Daniel Gracia Garallar
Gender changers can be a nigthmare because, as FAQ mentions, 'that it 
plugs doesn't mean it's going to work'.


If you miss any doc about serial port standards of any of the devices, 
then take a multimeter and measure the voltage between pin 7 -if DB25- 
or pin 5 -if DB9- and pin 2 of the cable; it should read anything <= -5 
volts. If pin 2 on the wire as negative voltage, the same must be true 
for the pin 3 of the UPS. If wire and UPS have negative voltage on the 
very same pin, you're missing a 'null-modem' cable: go for it.


If these values are ok, it's almost sure we're talking about a software 
issue.



Thanasis escribio':

on 06/10/2009 12:34 PM Thanasis wrote the following:

on 06/10/2009 11:53 AM Daniel Gracia Garallar wrote the following:
  

Are you running the program with a user with dialer privileges? First,
make sure your account has dialer privileges -is part of dialer
group-. Then Shortcut pins 2 and 3 of your black cable while connected
to the pc, and try on a shell 'cu -l /dev/ttyb'. If serial port is
working, any keyboard stroke should be echoed in screen. 


Yes it echoes!
So /dev/ttyb must the the device for the port.
That's one step closer to solve the problem. :-)


  

I don't know if that matters, but let me add that the connection between
the sparc machine's port and the ups' port consists of two cables and a
gender changer in between, like so:
On the sun's port side the plug is a DB25 and the other end on the same
cable in a DB9. This RS232 DB9 is connected through a "gender changer"
to the UPS' black cable which is DB9 on both ends.
Gender changer is DB9 male/male:
http://www.partsdata.co.uk/Gender_changer_2x_DB9_male_K-100.html
I hope it's clear ...




Re: apc ups daemon

2009-06-10 Thread Daniel Gracia Garallar
Are you running the program with a user with dialer privileges? First, 
make sure your account has dialer privileges -is part of dialer group-. 
Then Shortcut pins 2 and 3 of your black cable while connected to the 
pc, and try on a shell 'cu -l /dev/ttyb'. If serial port is working, any 
keyboard stroke should be echoed in screen. If you push any letter and 
don't see nothing, then that's not your serial's device.


I'm not sure on sparc, but it could be /dev/tty00, /dev/cua00...

Thanasis escribio':

on 06/10/2009 09:29 AM jared r r spiegel wrote the following:

  `make search' is awesome, but also check the Makefile for the
  port.  or heck, on the $arch in question you could worst
  case try `make package' and see if it works.  if it doesn't,
  the pkg is probably marked broken or something - in which case
  i'd check archives of ports@ (or cvsweb) and hope i can find why :).
  

OK. Both built fine. ;-)
So now I am trying to setup apc-upsd.
The machine is a old sparc SPARCstation 5 Model 110
(http://www.obsolyte.com/sun_ss5/ss5_110.pdf)
I have set the serial ports to RS-232 mode (by changing the jumpers).

The file apc-upsd.conf  I use is as follows:

# cat /etc/apc-upsd.conf 
#

#   apc-upsd.conf
#

# ups is connected to ...
# OpenBSD ... device /dev/tty00

#device /dev/tty00
device /dev/ttyb

#
# startuptest sends a 'test' sequence to the smart series
#

startuptest ON

# debug ON|OFF
#
# OFF ... normal operation
# ON  don't start as daemon, do tests in smart mode

#debugmode OFF
debugmode ON

# smartmode
# ON .. APC Smart-UPS with black cable
# OFF . APC BackUPS with gray cable

smartmode ON

#
# extendedsmart
#
# gives temperature info etc ..
#

extendedsmart ON

# time till shutdown in seconds

time 15

# execute this at shutdown time

execute /sbin/halt

# pidfile

pidfile /var/run/upsd.pid

# every (n) seconds output information from the ups
# to syslog

infotime 3600
--file ends here-

 The problem is when I run apc-upsd :

# apc-upsd   



/etc/apc-upsd.conf, 55 lines:
==
device ... /dev/ttyb
pidfile .. /var/run/upsd.pid
exec script .. /sbin/halt
debug mode ... 1
wait seconds . 15
infotime seconds . 3600
smartmode  1
extended smartinfo ... 1
startuptest .. 1


not forking in debug mode ...

... and stays there for ever, whereas it should print the ups' stats.
Which means probably it does not communicate with the UPS.
The UPS is an APC Smart-UPS SC 620VA 230V
(http://www.apc.com/resource/include/techspec_index.cfm?base_sku=SC620I)
The UPS' cable is a black serial cable supplied by apc and tested to
work on the same UPS with apcupsd on linux.
Any help for testing my serial port (/dev/ttyb) connection to the UPS?




Re: pf, altq, packet rate

2009-05-29 Thread Daniel Gracia Garallar
As stupid as it can sound, you could develop a protocol to make routers 
talk each other and say how much bandwith is available in between. I 
think there's no other really sane way of inbound traffic control.


Dropper techniques are a cheap trick nice for little networks. Serious 
and big performance networking requires solid bases.


Think of overhead of receiving, dropping a packet, enqueing the 
offending stream, waiting, listening a resend again... That looks too 
much as spam :)


Regards,

Dani

irix escribio':

Hello ,



* irix  [2009-05-27 18:12]:

But I can not understand why you are sure that traffic can only
outlet Shape

i can not understand why you want to shape outlets.

you don't understand that inbound shaping doesn't work because you
have obviously no idea how the network stack works. there is no
suitable queue inbound to do any queueing on. the ipintrq is way too
early. so to do any inbound shaping you had to insert another queueing
step, which is as clever as drinking water from the dead sea when
you're thirsty. or maybe one could rape the ipintrq somehow. but i
don't and won't rape.


by  shaping  the  incoming  traffic,  I  mean  simple  dropper  without
constructing  queues. All that the above specified speed dropped until
the  flow becomes less than or equal to specified speed. That actually
makes CDNR, which arrears.




But it pains me to see the obvious defects in my favorite system,

interestingly, in the 6 years since I did the altq/pf merge, you're
the only one to see that "obvious defect"


and complete indifference on the part of developers to the obvious defects.

obviously the developers have no clue about what they are doing, and
the milestones they have to meet by the contract they have with you


 understood the joke. Funny




Re: OSSv4 on OpenBSD

2009-05-25 Thread Daniel Gracia Garallar
Actually, when audio is a concern, I'm quite happy with the audio(4) 
framework of sio_open(3) and friends.


I've just finished a remote PMR control app where real-time audio is 
needed, and all the bells and whistles are up to the task: multiple 
devices support -I'm working with four Behringer USB audio cards-, 
full-duplex, mixer control et al.


Sure and additional framework should make easy porting other projects to 
OpenBSD, but as far as audio programming is related, native audio 
support is nicely implemented and rock solid.


Just missing some samplerate convert not relying in aucat! So I can use 
it on several devices at once, but that's a patch -filtering is the hard 
trick- I'll work into :)


Regards!

Dani

Jacob Meuser escribis:

On Sun, May 24, 2009 at 07:48:27PM -0400, Predrag Punosevac wrote:

A friend of mine who is an avid NetBSD user kept complaining about how
bad is audio on NetBSD. After getting sick of hearing complains, 
I asked on OSS mailing lists about OSSv4 support for NetBSD and OpenBSD.
I actually got a very interesting answer 


http://www.4front-tech.com/forum/viewtopic.php?t=3133

I recall OSS being discussed on this mailing list after OSS went 
open source and changed the license. Can Jake or any other developers 
in charge of audio on OpenBSD explain the issues involved in porting 
OSSv4 to OpenBSD? 

I personally have fantastic experience with our audio but I would 
think that OpenBSD could benefit at least from extra audio drivers.

Am I very wrong? Sorry for the noise.


audio(4) and all the current audio drivers would need to be
modularized to not conflict with OSSv4.  OpenBSD doesn't use
modules by default, so users who would want to use OSSv4 would
be running an unsupported system.

I have tried taking small bits from 4Front drivers (for cmpci(4)
and azalia(4)), but it has not been very helpful, for various
reasons.  I've learned more by looking at FreeBSD and ALSA drivers.

some of the 4Front drivers were developed under NDAs, so the only
"documentation" available to us is the driver source.

having 2 vastly different audio APIs is not helpful, at all.
arguably, OSSv4 would be a third (or fourth even) audio API that
we would be supporting, as OSSv4 is different than OSSv3, which
we already support with ossaudio(3).

even though OpenBSD and NetBSD share the same basic audio code,
there are numerous differences, starting with aucat(1) and
sio_open(3) and going all the way down to the low level drivers.
it appears this diversion is going to continue.  I've tried
sending patches for simple bugs azalia(4) to NetBSD devs that
never got acted on, and they have a GSoC project to add support
for stream mixing in the kernel.




Re: OpenBSD and VPN 1411 Criptographic Card

2009-05-24 Thread Daniel Gracia Garallar
AFAIK, crypto accel cards will be used by the OpenBSD kernel whenever 
possible without further user intervention needed other than plugging 
the card and rebooting the system.


Make sure your dmesg displays the hifn* device and make some performance 
test: you may be satisfied.


Joco Salvatti escribis:

Hi misc,

I bought a Soekris Net5501 with a cryptographic card VPN1411
(Authentication, SHA-1 and MD5, Public Key, RSA, DSA, SSL, IKE and DH,
Hardware random number generator) and I would like to know if any
configuration is needed in OpenBSD kernel to use this card when
cryptography is necessary.

eg. When a VPN IPSec is done.

--
Joco Salvatti
Graduated in Computer Science
Federal University of Para - UFPA - Brazil
E-Mail: salva...@gmail.com




Re: Spanish BSD Group

2009-04-30 Thread Daniel Gracia Garallar

Nice!

I must confess I have a strong bias towards english language when 
talking about programming, but as a spanish OpenBSD user I'll try to 
support the group as far as possible.


!Mucha suerte en la singladura! ;)

Dani

Daniel Andersen escribis:

Well, I would like to announce that the Spanish BSD User Group (its
Spanish acronym being "GUBE") is now official. Its mailing list is
kindly hosted on MetaBUG (http://www.metabug.org/).

--

Key ID:   493FB6AE
Key fingerprint:  3E96 7892 B56D AE27 02EF  BBAA BAA6 6C78 493F B6AE
Keyserver:pgp.mit.edu




  1   2   >