Cannot set swap priority to "move" swap on another disk.

2018-08-17 Thread Eric Huiban

Hello,

With "6.3 release" version, i'm unable to set swap priority with fstab 
using the following :


2e04cb867188f137.b none swap sw,priority=0
e7f9094bf357d407.b none swap sw,priority=1

I get the following result :

$ swapctl
Device  512-blocks Used    Avail Capacity  Priority
/dev/sd0b 21941640    0 21941640 0%    0
/dev/sd1b 62524916    0 62524916 0%    0
Total 84466556    0 84466556 0%

Using "swapctl -a -p 1 e7f9094bf357d407.b" present the very same result.
Same for "swapctl -a -p 1 /dev/sd0b".
Also tried an hypothetic reboot...

Do you have an idea on what i missed here ?

Regards,
Eric.



systat strange live display on pf rules activity.

2018-08-17 Thread Eric Huiban

Hello,

Functionnally pf is OK : packets are blocked or passed according to 
what's expected. But when i use systat for live examination of what 
appends amongst the rules there is no hit on match rules with IP list 
while there's on relevant block rule.


Did someone notice such behaviour, or did i missed something once again 
? Google and others only output some garbage about this question.


my pf is organised around an header pf.conf which calls sub pf files and 
puts each of them in an anchor ( one for IPv4 wan, one for IPv4 local, 
one for IPv6 wan, etc). It is organised with a lot of match rules and a 
few block/pass rules. (One list to rule them all, One match to find 
them, One block to bring them all and in the darkness bind them)


I changed the orders of rules and anchors : no effect. What i currently 
use is here :


(rogueIPs list is the automatically build from several reliable sources 
and processed to get clean without dups, annoyers is my manually fed table)


table  persist file "/etc/rogueIPs.tbl" counters
table  persist file "/etc/annoyers.tbl" counters

match in on $EXIT inet from {,  } to any tag 
"ROGUED:$if"
match out on $EXIT inet from any to {,} tag 
"ROGUED:$if"


block return quick on $EXIT inet tagged "ROGUED:$if"

Regards,
Eric.



Re: Cannot set swap priority to "move" swap on another disk.

2018-08-17 Thread Eric Huiban

Solene Rapenne wrote:

Eric Huiban  wrote:

Hello,

With "6.3 release" version, i'm unable to set swap priority with fstab
using the following :

2e04cb867188f137.b none swap sw,priority=0
e7f9094bf357d407.b none swap sw,priority=1

I get the following result :

$ swapctl
Device  512-blocks Used    Avail Capacity  Priority
/dev/sd0b 21941640    0 21941640 0%    0
/dev/sd1b 62524916    0 62524916 0%    0
Total 84466556    0 84466556 0%

Using "swapctl -a -p 1 e7f9094bf357d407.b" present the very same result.
Same for "swapctl -a -p 1 /dev/sd0b".
Also tried an hypothetic reboot...

Do you have an idea on what i missed here ?

Regards,
Eric.

Hello,

I tried on amd64 6.3 and on amd64 -current and I have not been able to
reproduce the issue.

What is the result if you remove your 2 swaps with

 # swapctl -d e7f9094bf357d407.b
 # swapctl -d 2e04cb867188f137.b

and that you type

 # swapctl -A

after this, you should see the priorities correctly assigned after
typing "swapctl".



Hello,

I performed what you just suggested :

Tried to remove the two swaps : OK none remaining
Tried to reload the fstab : OK got priorities 0 and 1
Performed "halt -p" : OK computer dead like a stone
Power on...
Check swapctl : two swaps present with both priority at 0.

There's something i do not master within the boot process.

Note : this host has been freshly reinstalled with wiped out SSD.

Eric.



Re: ESP8266 Non-OS SDK

2018-03-23 Thread Eric Huiban

Base Pr1me wrote:

Has anyone played around with compiling the Espressif SDK for their chips?
Just curious.

Thanks,
Tracey



I'm beginning to modify the SDK for Espressif ESP32 step by step when 
time allows. It's full of linuxism and very gnuish, but if i can do some 
mod in their stuff everybody can. I'm a very small player in this kind 
of arena. ;)


I'm know at the step where the SDK is looking for python and does not 
find it on BSD (all versions are here because of pkg dependancies 
management...).


So... it is slow (on my  x230 laptop each compilation of the toolchain 
now lasts 50mn before ending with a new error) and quite boring. However 
it apparently can be done up to now. But i'm not finished with this 
stuff and cannot say it is definitively OK.


Regards



Searching dmesg from Z68P-DS3 ...

2013-08-30 Thread Eric Huiban

Hello,

I'm looking for a dmesg from a Z68P-DS3 motherboard as seen by 
OpenBSD/amd64, as well as the result of "sysctl hw". Does someone have 
this kind of information available ?


Reason: on my system the ITE chip is not seen by the OS. So... Just 
checking... and sorry for the noise ! :)


Thank-you,
Eric.



media player with dlna support recommendation.

2016-09-22 Thread Eric Huiban
Hello,

I'm currently playing with home stuff with OpenBSD, and i'm now looking
for a media server with dlna support amongst package. Up to this day i
was not able to find one, or at least to find how to enable and
configure that.

The OpenBSD based server side is ok and well supported (also tested with
android and MacOs clients).

Any ideas about my errors here ?

Regards,
Eric.



Re: media player with dlna support recommendation.

2016-09-22 Thread Eric Huiban
Eric Huiban wrote:
> Hello,
> 
> I'm currently playing with home stuff with OpenBSD, and i'm now looking
> for a media server with dlna support amongst package. Up to this day i
> was not able to find one, or at least to find how to enable and
> configure that.
> 
> The OpenBSD based server side is ok and well supported (also tested with
> android and MacOs clients).
> 
> Any ideas about my errors here ?
> 
> Regards,
> Eric.
> 
> 

sorry for  mistyping... i'm looking for the media player, not the server.



Re: pppoe via switch

2016-10-01 Thread Eric Huiban
tech-lists wrote:
> On 30/09/2016 16:49, tech-lists wrote:
>> Hello misc@
>>
>> If I had this arrangement:
>>
>> openbsd re0 --- unmanaged gigabit switch --- vdsl modem offering PPPoE
>>
>> can I expect pppoe0 on the openbsd box to be able to communicate with
>> the modem and bring the line up?
> 
> It seems the answer to this is YES. Not sure how it works though. Maybe
> something to do with ARP?
> 

Hello,

According RFC2516, the discovery phase is based on usual broadcast and
unicast raw ethernet packets before the communication phase which is
also on raw ethernet. So... you won't have problems with your modem
which is configured as a bridge : everything's control is based MAC
addresses including your dumb switch. You'll get your ISP's access
server directly on your switch.

And my last sentence is where you'll get "problems" with your ISP ! It
will append if you're leaking undue ethernet packets to the PPPoE
gateway : any broadcast or anything unknown to your dumb switch will be
submitted to your ISP's good will. So... don't make your ISP grumpy. ;-)

You better have to use a not-so-dumb switch on which you can
affect/group ports all-together (without any VLAN tagging) and isolate
them from any other data traffic from other ports. There's always a way
to leak something by misconfiguration or by plugin-in other clients on
your switch (even if you put red-tape on unused ports... someone will do
that one day or another!).

Regards,
Eric



Re: DHCP over vr(4) on bridge(4) through vether(4) no working?

2016-10-09 Thread Eric Huiban
Raimo Niskanen wrote:

> I did a bridge configuration according to the FAQ with bridge0 containing
> athn0, vr1 and vether0.  vether0 got the IP address configuration that
> athn0 had before, dhcpd was reconfigured to serve vr0 and vether0 and that
> worked just fine.  DHCP over athn0 passes through bridge0 and vether0 to
> dhcpd as well as directly from vr0 to dhcpd.
> 
> But DHCP over vr1 through bridge0 and vether0 does not work.  I had to
> configure a static address on the access point to get any further.
> 
> I know that DHCP over vr0 that dhcpd serves directly works, and I know that
> it works when dhcpd serves athn0 directly, plus it works when dhcpd serves
> athn0 throught bridge0 and vether0.

did you try to add something like this in your pf.conf for "debug" :

set skip on { lo0, vr1, athn0 }

Eric



softraid & GPT configuration.

2017-03-03 Thread Eric Huiban

Hello,

I should have miss something in the man pages with softraid and bioctl. 
But i want to form a RAID 1 between two 3TB harddisk (2.7TiB) and it is 
acting like 2TiB MBR disks with OpenBSD 6.0.


fdisk -ig sd1 is OK. same for sd2. No EFI boot partition.

disklabel is ok with a 2.7TiB ".a and .c" RAID&Disk partitions on each 
disk. (the check with newfs and mount is also OK). checked as per man pages.


but when i construct the RAID with

bioctl -c 1 -l /dev/sd1a,/dev/sd2a softraid

the softraid reports only  2TiB partitions on sd1 and sd2 thus building 
2TiB raid unit sd3.


Does someone have any advise about such behavior, or about what i'm 
missing ? Both man, apropos and google seem a little bit shy about such 
topic.


Regards,
Eric.



Re: softraid & GPT configuration.

2017-03-03 Thread Eric Huiban

Stefan Sperling wrote:

On Fri, Mar 03, 2017 at 01:27:20PM +0100, Eric Huiban wrote:

Hello,

I should have miss something in the man pages with softraid and bioctl. But
i want to form a RAID 1 between two 3TB harddisk (2.7TiB) and it is acting
like 2TiB MBR disks with OpenBSD 6.0.

fdisk -ig sd1 is OK.


Did you also use the -b option?

The FAQ now lists the steps for EFI setups:
http://www.openbsd.org/faq/faq14.html#softraid
Did you see this already?



I saw that but i dismissed it since i do not need a EFI boot for my 
"data container" disks. (aside of the container disks i've got a system 
disk with traditional image & rsync backups).


Anyway i did not find "anywhere" the mention that a softraid 1 needs to 
be based on a bootable units. As well as "huge" discs management topic 
seemed to me not so covered. Such idea of mandatory boot partition 
looked weird to me... i just posted an open question on the list.


Eric.



Re: softraid & GPT configuration.

2017-03-03 Thread Eric Huiban

Eric Huiban wrote:

Stefan Sperling wrote:

On Fri, Mar 03, 2017 at 01:27:20PM +0100, Eric Huiban wrote:

Hello,

I should have miss something in the man pages with softraid and
bioctl. But
i want to form a RAID 1 between two 3TB harddisk (2.7TiB) and it is
acting
like 2TiB MBR disks with OpenBSD 6.0.

fdisk -ig sd1 is OK.


Did you also use the -b option?

The FAQ now lists the steps for EFI setups:
http://www.openbsd.org/faq/faq14.html#softraid
Did you see this already?



I saw that but i dismissed it since i do not need a EFI boot for my
"data container" disks. (aside of the container disks i've got a system
disk with traditional image & rsync backups).

Anyway i did not find "anywhere" the mention that a softraid 1 needs to
be based on a bootable units. As well as "huge" discs management topic
seemed to me not so covered. Such idea of mandatory boot partition
looked weird to me... i just posted an open question on the list.

Eric.




i just performed some remote connection... recreating GPT with an .i EFI 
boot partition. The softraid is now 2.7TiB... Grumbl! conclusion : 
bioctl needs a mandatory bootable partition to act correctly even on 
disks not aimed to be bootable.


Sorry for the noise.
Eric.



Re: howto show IPv6 address lifetime?

2017-04-19 Thread Eric Huiban
Hi,

Give a try to ifconfig as regarde privacy policy lifetime : pltime & vltime if 
i'm still right. You can also preset this two counters using the same command.

Eric

Re: No closing quote

2014-11-10 Thread Eric Huiban

Jason Adams wrote:

On 11/09/2014 02:30 PM, h410g3n wrote:

I encountered the same problem.

You must have just upgraded from 5.5 and forgot to run sysmerge, right? :D

Jason Adams wrote:

Everytime /etc/netstart runs I get a no closing quote message.

Hate to obsess about trivialities but wondering If I've messed something up.
All interfaces seem to work just fine.



Did upgrade.
Did NOT forget to run sysmerge.

That's the google answer, but its not the REAL answer.



It appeared here before the edit/update of my /etc/rc.conf.local files



OpenBSD 5.2 amd64, downsizing to low power platform with Asrock AD2700B-ITX.

2013-01-21 Thread Eric Huiban

Hello,

It was just suggested to me to post all this here for information after 
i repaired a defunct ITX box : 64bits platform is available with D2xxx 
based Asrock mainboards (at least with a fanless D2700).


Note 1 : check BIOS revision for d2xxx boards. Asrock needs unofficial 
1.13-beta or official 1.20 release to unlock Intel64 architecture. 
64bits support is advertised nowhere !


Note 2 : Suspend/Hibernate not thoroughly tested on my side. But 
behavior seems "strange" at first glance : not so functional and Xorg 
locked itself when using it two or three times.


Here is the post upgrade dmesg from 5.2/i386 to 5.2/amd64 :

OpenBSD 5.2 (GENERIC.MP) #368: Wed Aug  1 10:04:49 MDT 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4280446976 (4082MB)
avail mem = 4144132096 (3952MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb110 (18 entries)
bios0: vendor American Megatrends Inc. version "P1.20" date 07/25/2012
bios0: ASRock AD2700B-ITX
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG AAFT HPET SSDT BGRT
acpi0: wakeup devices P0P8(S4) PS2K(S4) PS2M(S4) UAR1(S4) CIR_(S4) 
USB0(S4) USB1(S4) USB2(S4) USB3(S4) USB7(S4) PXSX(S4) RP01(S4) PXSX(S4) 
RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Atom(TM) CPU D2700 @ 2.13GHz, 2133.76 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,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF

cpu0: 512KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU D2700 @ 2.13GHz, 2133.41 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,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF

cpu1: 512KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU D2700 @ 2.13GHz, 2133.41 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,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF

cpu2: 512KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU D2700 @ 2.13GHz, 2133.41 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,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF

cpu3: 512KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 5 (P0P8)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus 2 (RP02)
acpiprt4 at acpi0: bus 3 (RP03)
acpiprt5 at acpi0: bus 4 (RP04)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpicpu2 at acpi0
acpicpu3 at acpi0
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x0bf3 
rev 0x03
vga1 at pci0 dev 2 function 0 vendor "Intel", unknown product 0x0be2 rev 
0x09

wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp at vga1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: VIA/0x4397
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL 
(0x2c80), apic 4 int 16, address bc:5f:f4:2c:22:9a

rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
"ASMedia ASM1042 xHCI" rev 0x00 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: msi
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: msi
pci4 at ppb3 bus 4
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 4 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 4 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 4 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 4 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 4 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci5 at ppb4 bus 5
pcib0 at pci0 dev 31 function 0 "Intel NM10 LPC" rev 0x02
ahci0 at pci0 dev 31 function 2 "Intel 82801GR AHCI" rev 0x02: msi, AHCI 1.1
scsibus0 at ah

Re: firefox crashes

2013-01-24 Thread Eric Huiban

On 01/23/13 01:43, Salil Wadnerkar wrote:

Hi,

On my amd64 machine, firefox crashes regularly after some time.

[...]

$ uname -a
OpenBSD passport.my.domain 5.2 GENERIC.MP#17 amd64

I am on OpenBSD current and I have my system and packages updated just
yesterday.

Thanks
Salil




Your firefox does not crash by itself. It is wiped out by the system 
when the process size reaches the maximum memory size you allowed to be 
requested by your user.


Already seen with 5.1, 5.2 and if what i'm remembering is correct 5.0.
(No change made on any binaries). Memory size can increase a lot when 
using a lot of tabs at the same time, or after loading pages overloaded 
with crappy scripts for advertisement display. All this modulates the 
delay before firefox relaunch...


Sorry for my poor english wording. Not my native language.



Re: firefox crashes

2013-01-28 Thread Eric Huiban

On 01/28/13 13:43, Ed Ahlsen-Girard wrote:

On Fri, 25 Jan 2013 01:55:35 +0100
Eric Huiban  wrote:


On 01/23/13 01:43, Salil Wadnerkar wrote:

Hi,

On my amd64 machine, firefox crashes regularly after some time.

[...]

$ uname -a
OpenBSD passport.my.domain 5.2 GENERIC.MP#17 amd64

I am on OpenBSD current and I have my system and packages updated
just yesterday.

Thanks
Salil




Your firefox does not crash by itself. It is wiped out by the system
when the process size reaches the maximum memory size you allowed to
be requested by your user.

Already seen with 5.1, 5.2 and if what i'm remembering is correct 5.0.
(No change made on any binaries). Memory size can increase a lot when
using a lot of tabs at the same time, or after loading pages
overloaded with crappy scripts for advertisement display. All this
modulates the delay before firefox relaunch...

Sorry for my poor english wording. Not my native language.



Perhaps this is related, perhaps not, but my firefox issue is that the
system becomes unresponsive as more tabs/certain pages (ads, videos) are
opened. Completely unresponsive: can't ssh in over the network (I'd try
serial but I can't find my cable). dmesg below. Time to try Chrome?



I observed the same behaviour. I have to wait a little bit for the 
"application killing" by the system, or just have to press quietly two 
times the "close" button on the window upper "bar" : then the window 
manager proposes me to close the unresponsive application.




Re: OT: True hardware UNIX terminal

2016-03-30 Thread Eric Huiban
Sent from my WIKO PULP 4G
Le 30 mars 2016 10:07, Sean Kamath  a écrit :
>
> Still using a Wyse (50?) on my Ultrasparc 80. 
>
> In college, we had these weird DEC PC’s that we used as VT100 compatible 
> terminals. 
>
> There were so many.  The VT100 was the prototype what XTerm emulated. 
>
> Sean 
>
> > On Mar 29, 2016, at 5:18 AM, Nick Holland  
> wrote: 
> > Some things to search for: 
> > * DEC VT100  (a terminal that still influcences the standards today) 
> > * DEC VT52   (a terminal with an easier to understand command set) 
> > * ADM3A  (a terminal that was old when the DEC vt100 came out) 
> > * DECwriter  (printing terminal.  DECwriter II was a beautiful machine) 
> > * TI Silent 700 ("home oriented" printing terminal.  At the time, in the 
> > US, it was illegal to attach non-telephone company equipment to the 
> > telephone company's phone lines...) 
> > * ASCII  (the non-IBM standard character coding system) 
> > * EBCDIC (the IBM standard) 
> > * ASR33  (one of the earliest printing terminals.  And why we use 
> > "TTY" today in the Unix world!  If you wonder why unix commands are so 
> > short, imagine typing on this...) 
> > * Tektronix 4010 (In case you thought terminals were dull and graphics 
> > free...and I suspect a LOT of people who have been rolling their eyes at 
> > everything I've said up to now will have their eyes bug out a bit when 
> > they figure out how these things work) 
> > 
> > Anything more than that (and probably a lot less than that), probably 
> > best to ask me off list. :)  (and yes, I've glossed over and simplified 
> > a few things here) 
> > 
> > Nick. 
>

You may have also a look at the ncd 88k terminal which was also a very common 
terminal. Wikipedia has a small article about this at "X terminal". 

Éric



Ipv6 address build on pf.conf ?

2016-06-04 Thread Eric Huiban
Hello,

I've got a problem to properly build IPv6 address in pf.conf in order to
have the proper protection... i may be tired and i probably missed
something... but i now begin to go round and round... and round...

the constraint is that the IPv6 prefix (a /56) given by the ISP to its
router is dynamic each time there's a router reboot/restart/update, thus
without notice. Yes... it seems that this is a bizness model... :-/

I can get the renewed prefix easily using "(interface)/64" in pf.conf to
circumvent the problem.

But if i want to designate a computer on the LAN for which i know the
EUI64 suffix or a semi-dynamic assignment used by DHCPv6 : i'm stuck !
I was not able to guess how to do something like this :

HOST1_SFX=":::"
HOST2_SFX=":::"

match in on $LAN_IF inet6 from ! ($LAN_IF)/64 to ($LAN_IF)/64:$HOST1
_SFX tag LAN_INCOMING
match in on $LAN_IF inet6 from ! ($LAN_IF)/64 to ($LAN_IF)/64:$HOST2
_SFX tag LAN_PRIVATE

pass in tagged LAN_INCOMING
block in tagged LAN_PRIVATE

(etc)

And i'm still not considering the use of subnet delegation : this
function is not available even with a /56... My ISP seems to love to
shovel dung on its own fans.

Any ideas ? thanks !

Eric.



RTL8402 realtek card reader

2014-05-03 Thread Eric Huiban
Hello there ...

I had to produce this ugly one on fresh 5.5 release in order to get my
cardreader operational.

diff on pcidevs :

5687a5688
> product REALTEK RTL8402   0x5286  RTL8402 Card Reader

and diff on rtsx_pci.c :

61c61,62
<   PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5229)
---
>   PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5229 ||
>   PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8402)

tested with GENERIC.MP on amd64 with W310CZ-T notebook and SDHC card
freshly extracted from my camera.

Eric.



Re: OT: serial console through S-Video 7-pin locking 'dub' connector?

2007-07-20 Thread Eric Huiban
Le ven 20 jui 2007 14:59:17 CEST, vladas  a C)crit:

>Is it possible to connect to server's serial console through the
>S-Video 7-pin locking "dub" connector - RS-232C cable [1]
>directly

The answer is simple as possible : No.

> without using Video/S-Video to VGA/Component Video
>Converterconverter?

"With..." or "Without..." :  No.

RS232 and video signals have nothing in common... except
perhaps their respective ground connexion.

>I need to connect to OpenBSD (RC-232C side) from windoze
> (S-Video side).

You will have better result playing with USB-Serial adapter
when trying to fiddle with RS232 on Windows(tm) side...

Note : take care of  USB-Serial adapter capability to send BREAK
signal if you realy need it...

>[1] The pic is small/hopeless, but:
>
>http://www.sanyo-lcdp.com/option/images/poa-ca-vgas.jpg
>One end is RC-232C, other - S-Video (7 pins).

This is VGA-to-SVideo (dumb) adapter. In no case you can connect
RS232 to VGA with this kind of cable excepted if you're using a
hammer to convince a 9 pins DB plug to fit with a 15 pins DB plug.
(Even in this case, i'm not sure that the concept is functionnaly
correct).

Eric.



Re: OT: serial console through S-Video 7-pin locking 'dub' connector?

2007-07-20 Thread Eric Huiban
Le ven 20 jui 2007 16:06:56 CEST, vladas  a C)crit:
>Eric,
>
>
>
>On 7/20/07, Eric Huiban [EMAIL PROTECTED]
>pf.net> wrote:
>> 9 pins DB plug to fit with a 15 pins DB plug.
>
>
>
>Did you actually read my question?

Yes : how to connect PC S-video plug (output connector only, separate
chrominance and luminance signals, around 0 to 0.75Volts linear electrical
signal, around 6MHz signals, video format) to a RS232 server system serial
console  plug (input and output connector, input and output asynchronous
serial lines with handshaking, -30V<--> -3V and +3V <--> +30V discrete
electrical signal, around 250kHz signals, UART format) using dumb
video cables ? This was confirmed by google after looking for "poa-ca-vgas"
which is only a classical Video to VGA adapter (et vice-versa) and not a
proprietary video+serial combo cable

The other point was the possibility to use a video to vga/composite video
smart converter. But there is no VGA signal in the configuration you seemed
to refer to.

Regards,
Eric.



OpenBSD, sparc64, OpenVPN : log date formating.

2006-10-25 Thread Eric Huiban

Hello,

It seems that i missed something when reading the man pages but i am 
clearly unable to get correct date within openvpn log file when produced 
directly by the daemon without syslog interaction.


Here is a small extract from my "test machine" : sparcstation ultra5, 
openbsd 3.9 generic, openvpn package from official repository... The 
following lines were produced a few minutes ago :


Thu Jan  1 01:00:00 1970 Data Channel Encrypt: Cipher 'BF-CBC' 
initialized with 128 bit key
Thu Jan  1 01:00:00 1970 Data Channel Encrypt: Using 160 bit message 
hash 'SHA1' for HMAC authentication
Thu Jan  1 01:00:00 1970 Data Channel Decrypt: Cipher 'BF-CBC' 
initialized with 128 bit key
Thu Jan  1 01:00:00 1970 Data Channel Decrypt: Using 160 bit message 
hash 'SHA1' for HMAC authentication
Thu Jan  1 01:00:00 1970 Control Channel: TLSv1, cipher TLSv1/SSLv3 
DHE-RSA-AES256-SHA, 1024 bit RSA


Does someone know what is the configuration command/control/etc i missed 
during my readings ?


Thanks,

Eric.



Re: openbsd + external sensor (t°, humidity, ...)

2006-11-09 Thread Eric Huiban

Hi

i'm currently looking for solution to monitor external environment from
an openbsd server.

 



I'm currently trying to play such game... yes playing... not working...
:-) 


has anyone advise to find cheap sensors (temperature, but also humdity,
pressure, light, electricity before UPS, ...) which are known to  work
with openbsd ?
 



After a long time of lurking and looking through solutions like USB,
Ethernet, serial busses, home produced, commercial ones, etc : i ended to
buy a scraped terminal server allowing me to connect up to 40
traditionnal 9600 serial devices as well as 57600 bps modems (slip and ppp
can be provided by the termserver). It's dirt cheap when gaming with
sensors and actuators, and wiring is build around standard ethernet cables
with RJ45. But ethernet and IP compatibility with OpenBSD is total, and i
can totaly rely on the code already wrote by people hanging around this
list.

I buy sensors part by part when needed (through local retailers or
radiospares catalogue for example) and i glue that to the termserver using
8 to 40 pins Atmel AVR 8 bits RISC controlers (please have a look a
OpenBSD packages and ports when looking for dev. environment) and regular
MAX232 line driver. I don't need long distance connection but adapting the 
link to optical, fiber-optic, or differential (R422/485) driver is quite simple.
The controler allows me to easily perform all acquisitions, calibrations, 
and conversions from electricaly sensed values to physical values.


As regard cheap sensors, i prefer the old Philips H1 (capacitive gold film
sensor still available from some retailers) for relative humidity
(resistive Honeywell sensors seems also good to me). I simply prefer LM35
when dealing with temperature, and PT100 in more strict environment (i.e.
the area around my vegetables during all my shamefull fridge experiments).
Allegro hall effect sensors were easy to use as well as cheap. You can
find all the cheap sensors you want simply using a little bit of
imagination... and sometimes just by diverting the normal use of what you
already own within your spare parts. i.e. measuring the current needed to 
immobilize a free moving "hammer" found in some electro-mecanical door-bell 
may allow you to detect & quantify some movement or vibration. This kind of 
sensor may be really cheap and efficient. Modems are also great thing to recycle
from junk yard as monitor for power supply before UPS. Power availability can be 
sensed using an old 2400bps modem... there is an OK answer to any AT question 
while power is here !


If you're projecting to monitor water quality... common available sensors
(like pH , resistivity, etc) will lead you to more funky interfacing...
far away out of the scope of this list. The cost will be higher whatever
you choose... homebrew sensors or commercial ones.

All of the sensors i listed just above can be handled using counters
within the local controler. There is no need of bulky and costly Analog to
Digital Converter. In the worst cases i sometimes use ADC, but one of my 
favorite workaround is to use LM311 chip (Voltage to Frequency) or the 
traditionnal 555 in one of its low consumption latest design when i try 
to alleviate the headache about the connection to the controler. Then handling

a 16 bits counter is a simple joke for anybody.

On OpenBSD side... anything you can compile or script which allows you to
communicate over telnet can be used. There is no restriction here. I still
have no ppp/slip/IP stack for the controlers i use... i can't speak about
networking theses sensors. Someone on this list may be able to speak about
this ? 


And... Hu... As regard the stack of junk code i am able to
introduce inside my controlers during all my experiments... i have a non
disclosure agreement with myself just to avoid any shamefull situation for
me.  ;-)  However ATMEL datasheets and application notes are clear enough
for any "apprentice".

All of this costs me more time than money during my experiments and
it's one of the criteria of my own game. One other criteria is reliability
because i don't like to repair failed parts i already built. And this
solution also fullfills it. 


Regards,
Eric.
p.s. i know that it is not a develloper answer... just a basic user
answer... but no flame please :o)



Re: openbsd + external sensor (t°, humidity, ...)

2006-11-10 Thread Eric Huiban

Stuart Henderson a icrit :


On 2006/11/10 08:44, Julien TOUCHE wrote:
 


Eric Huiban wrote on 10/11/2006 01:10:
   


After a long time of lurking and looking through solutions like USB,
Ethernet, serial busses, home produced, commercial ones, etc : i ended to
buy a scraped terminal server allowing me to connect up to 40
traditionnal 9600 serial devices as well as 57600 bps modems (slip and ppp
can be provided by the termserver). It's dirt cheap when gaming with
sensors and actuators, and wiring is build around standard ethernet cables
with RJ45. But ethernet and IP compatibility with OpenBSD is total, and i
can totaly rely on the code already wrote by people hanging around this
list.
 


could you precise some references to buy similar one ?
   



type "terminal server" into ebay. lots of options (old decservers,
cisco 2509/2511/2511RJ, lantronix, xylogic annex, livingstone/lucent
portmaster etc).

you might need to do some research, they won't always come with
everything you need to actually use them (in some cases: AUI/10baseT
transceivers, proprietary cables, flashcards, more RAM).
 



I won't able to do a better answer. But for your reference i use an old 
Xyplex Maxserver 1640 in tftpboot configuration.
The whole doc and the firmware can be reached on internet.  Note : In 
spite of its higher port number, the 1640 price is often lower than 
1608/1616/1620 price due to its lower max bps (57600 instead of 115200), 
and sometimes it may be bough for quite nothing. There may be other 
brand and model affected by the same offer/demand effect.


Good luck,
Eric.



Re: Slow Sparc Ultra 5

2005-09-18 Thread Eric Huiban

badmagic a icrit :


No, that's not it. I just clipped the wrong part of my dmesg.
It's running under GENERIC kernel.

pciide0 at pci1 dev 3 function 0 vendor 0x1095 product 0x0646 rev 
0x03: DMA, channel 0 configured to native-PCI, channel 1 configured 
to native-PCI

pciide0: using ivec 1820 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 4125MB, 8448300 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2


Perhaps you may have to check your ide settings and chipset (here 0x0646 
<--- CMD646 ), and to cross-compare it with pciide man page.


As workaround, i've added an additionnal HD with a PCI card with a 
CMD649/Sil649 (ATA100) or CMD680/Sil680 (ATA133) to the basic 
configuration of  U10 workstation... Everything becamed more "nervous" 
under OpenBSD authority. Theses controlers cards become dirt cheap 
theses days, but not always easy to find.


Good luck for your quest,
Eric.



Re: USB to RS232

2005-10-07 Thread Eric Huiban

Eric Dillenseger a icrit :


Hi,

I'll soon buy a soekris, but just realized i have no serial port on my
laptop (duh!), has someone already tried to use a usb serial adapter?
Most of the time this works as a traditional com port on windows, but
what about openbsd, will it be ok for a serial console?

 

Trendnet TU-S9, cheap adapter tested on OpenBSD 3.7 - i386, and perhaps 
on SPARC64 (i dont' remember for the latest). It uses a classic pl2303. 
Please note that previous release of OpenBSD does detect the adapter but 
are not able to issue any communication : new chip... latest release... ;-)




Re: CF Card on Sparc 64

2010-03-30 Thread Eric Huiban
 Le mar 30/03/10 11:23, "Duncan Patton a Campbell" campb...@neotext.ca a
C)crit:
> I've got a cf card running as a secondary drive on a Sparc Ultra 5
> (Sparc64), but have not been able to get it to boot.  The cf/ide plug I am
using has
> no master/slave/cs sets and a microprocessor on it as well, which leaves me
> suspicious of it because the CF interface is sposed to be a shrunken IDE.
>
> The sparc boot diags (probe-ide) show no device other than an ide hdd if it
> is attached.
> Also, I have experience that IDE disks are addressable after boot if the
> CS/MS/SL is set wrong (that is they can have mountable file systems) but
will still not
> be bootable themselves, which further leads me to believe the CF card 2 IDE
plug I have
> is useless for this.
>
> But I mebbe barking up the wrong tree altogether here and it is just not
> doable...
> Comments/ideas anyone?

I successfully use "passive" CF2IDE adapter with Sparc U5/10. There is no
processor on theses cards : it is only a passive and mechanical adaptation
from
one connector to the other one. There is a few discret parts on the pcb but
they
only look like power regulator, pullups and LED driving components.