Re: USB worked on 5.5, not on 5.6 on MacbookAir5,1

2014-11-15 Thread Bertrand Janin
You should try with a snapshot, I got mine (same model) to work. Here is the
dmesg:


OpenBSD 5.6-current (GENERIC.MP) #563: Sat Nov 15 16:12:30 MST 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error e3
real mem = 4180746240 (3987MB)
avail mem = 4065624064 (3877MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (54 entries)
bios0: vendor Apple Inc. version "MBA51.88Z.00EF.B02.1211271028" date 11/27/2012
bios0: Apple Inc. MacBookAir5,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC SBST ECDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT 
SSDT SSDT SSDT SSDT DMAR MCFG
acpi0: wakeup devices P0P2(S4) PEG2(S4) EC__(S4) HDEF(S4) RP02(S4) ARPT(S4) 
RP05(S4) EHC1(S4) EHC2(S4) XHC1(S4) ADP1(S4) LID0(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, 1596.60 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, 1596.38 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, 1596.38 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz, 1596.38 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiec0 at acpi0
acpimcfg0 at acpi0 addr 0xe000, bus 0-153
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P2)
acpiprt2 at acpi0: bus -1 (PEG2)
acpiprt3 at acpi0: bus 2 (RP02)
acpiprt4 at acpi0: bus 3 (RP05)
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpibat0 at acpi0: BAT0 model "3545797981023400290" type 3545797981528607052 
oem "3545797981528608836"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: IGPU
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 1596 MHz: speeds: 1701, 1700, 1600, 1500, 1400, 1300, 
1200, 1100, 1000, 900, 800 MHz
memory map conflict 0xe00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xffe7/0x3
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09
intagp at vga1 not configured
inteldrm0 at vga1
drm0 at inteldrm0
drm: Memory usable by graphics device = 2048M
inteldrm0: 1366x768
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
xhci0 at pci0 dev 20 function 0 "Intel 7 Series xHCI" rev 0x04: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 7 Series HD Audio" rev 0x04: msi
azalia0: codecs: Cirrus Logic CS4206, Intel/0x2806, using Cirrus Logic CS4206
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi
pci1 a

Re: HDD not found

2014-11-19 Thread Bertrand Janin
Dutch Ingraham wrote :
> Just asking for a sanity check.  I tried installing 5.6 from CD on a
> WD1600AAJS HDD and was presented with "Available disks are: none."  This
> seems to be a fairly mainstream drive around for several years (mine being
> manufactured in 2010), so I just want to check whether I've missed some
> critical install instruction.  I followed section 4.5 of the FAQ and
> accepted default settings and used entire disk.
> 
> The same install disk has been used without incident on other installations
> and a different OS was installed on the HDD after the attempt chronicled
> above.
> 
> Your suggestions/advice are appreciated.  dmesg to follow:
> 
> 
> 
> OpenBSD 5.6 (RAMDISK_CD) #303: Fri Aug  8 00:25:26 MDT 2014
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
> real mem = 8401186816 (8011MB)
> avail mem = 8172158976 (7793MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0450 (82 entries)
> bios0: vendor Dell Inc. version "A03" date 02/13/2010
> bios0: Dell Inc. OptiPlex 780
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET  SLIC
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2992.90 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,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF
> cpu0: 6MB 64b/line 16-way L2 cache
> cpu0: apic clock running at 332MHz
> cpu at mainbus0: not configured
> ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 8
> acpiprt0 at acpi0: bus 4 (PCI4)
> acpiprt1 at acpi0: bus 2 (PCI2)
> acpiprt2 at acpi0: bus 3 (PCI3)
> acpiprt3 at acpi0: bus 1 (PCI1)
> acpiprt4 at acpi0: bus -1 (PCI5)
> acpiprt5 at acpi0: bus -1 (PCI6)
> acpiprt6 at acpi0: bus 0 (PCI0)
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Q45 Host" rev 0x03
> ppb0 at pci0 dev 1 function 0 "Intel Q45 PCIE" rev 0x03: msi
> pci1 at ppb0 bus 1
> vga1 at pci0 dev 2 function 0 "Intel Q45 Video" rev 0x03
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> "Intel Q45 Video" rev 0x03 at pci0 dev 2 function 1 not configured
> "Intel Q45 HECI" rev 0x03 at pci0 dev 3 function 0 not configured
> pciide0 at pci0 dev 3 function 2 "Intel Q45 PT IDER" rev 0x03: DMA
> (unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
> pciide0: using apic 8 int 18 for native-PCI interrupt
> pciide0: channel 0 ignored (not responding; disabled or no drives?)
> pciide0: channel 1 ignored (not responding; disabled or no drives?)
> "Intel Q45 KT" rev 0x03 at pci0 dev 3 function 3 not configured
> em0 at pci0 dev 25 function 0 "Intel ICH10 D BM LM" rev 0x02: msi, address
> b8:ac:6f:a4:35:01
> uhci0 at pci0 dev 26 function 0 "Intel 82801JD USB" rev 0x02: apic 8 int 16
> uhci1 at pci0 dev 26 function 1 "Intel 82801JD USB" rev 0x02: apic 8 int 17
> uhci2 at pci0 dev 26 function 2 "Intel 82801JD USB" rev 0x02: apic 8 int 22
> ehci0 at pci0 dev 26 function 7 "Intel 82801JD USB" rev 0x02: apic 8 int 22
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> "Intel 82801JD HD Audio" rev 0x02 at pci0 dev 27 function 0 not configured
> ppb1 at pci0 dev 28 function 0 "Intel 82801JD PCIE" rev 0x02: msi
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 28 function 1 "Intel 82801JD PCIE" rev 0x02: msi
> pci3 at ppb2 bus 3
> uhci3 at pci0 dev 29 function 0 "Intel 82801JD USB" rev 0x02: apic 8 int 23
> uhci4 at pci0 dev 29 function 1 "Intel 82801JD USB" rev 0x02: apic 8 int 17
> uhci5 at pci0 dev 29 function 2 "Intel 82801JD USB" rev 0x02: apic 8 int 18
> ehci1 at pci0 dev 29 function 7 "Intel 82801JD USB" rev 0x02: apic 8 int 23
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb3 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa2
> pci4 at ppb3 bus 4
> "Intel 82801JDO LPC" rev 0x02 at pci0 dev 31 function 0 not configured
> pciide1 at pci0 dev 31 function 2 "Intel 82801H RAID" rev 0x02: DMA, channel
> 0 wired to native-PCI, channel 1 wired to native-PCI
> pciide1: using apic 8 int 18 for native-PCI interrupt
> "Intel 82801JD SMBus" rev 0x02 at pci0 dev 31 function 3 not configured
> usb2 at uhci0: USB revision 1.0
> uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb3 at uhci1: USB revision 1.0
> uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb4 at uhci2: USB revision 1.0
> uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb5 at uhci3: USB revision 1.0
> uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb6 at uhci4: USB revision 1.0
> uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb7 at uhci5: USB revision 1.0
> uhub7 at usb7 "Intel UH

Re: Malformed request shuts down httpd

2014-11-28 Thread Bertrand Janin
Ezequiel Garzon wrote :
> Hello! I know a lot is happening to httpd lately, so maybe this is not 
> an issue anymore. I've noticed that a malformed HTTP request such as
> 
> $ printf 'GET /file\r\n\r\n'| nc myhost 80
> 
> doesn't just silently fail, but rather shuts down httpd. My 
> /etc/httpd.conf is minimal:
> 
> server default {listen on egress port 80}
> 
> Has anybody else tried this?
> 
> Thanks and cheers,
> 
> Ezequiel
> 

No crash in current, I get a "HTTP/1.0 500 Internal Server Error" response from
the server. However in the server logs I get different error messages as I
repeat the request:

Undefined error: 0 (500 Internal Server Error)

then:

Resource temporarily unavailable (500 Internal Server Error)

then:

No such file or directory (500 Internal Server Error)

That doesn't sound right.

-b



Re: Dummy question about .htaccess

2008-10-27 Thread Bertrand Janin
Jordi Espasa Clofent wrote :
> I want to restrict the access to my syweb site (web GUI for symon).
>
> # pwd
> /var/www/htdocs/syweb
> # ls -la
> total 228
> drwxr-xr-x  3 root  daemon   1024 Oct 27 12:44 .
> drwxr-xr-x  3 root  daemon512 Oct 27 12:49 ..
> -rw-r--r--  1 root  daemon131 Oct 27 12:44 .htaccess
> -rw-r--r--  1 root  daemon 69 Oct 27 11:50 .htpasswd
> drwxr-xr-x  2 www   daemon512 Apr  2  2008 cache
> -rw-r--r--  1 root  daemon   6287 Apr 14  2008 class_cache.inc
> -rw-r--r--  1 root  daemon  10478 Apr 14  2008 class_graph.inc
> -rw-r--r--  1 root  daemon   8937 Apr 14  2008 class_layout.inc
> -rw-r--r--  1 root  daemon   6193 Apr 14  2008 class_lexer.inc
> -rw-r--r--  1 root  daemon   3959 Apr 14  2008 class_rrdtool.inc
> -rw-r--r--  1 root  daemon   4394 Apr 14  2008 class_session.inc
> -rw-r--r--  1 root  daemon   2014 Apr 14  2008 class_text.inc
> -rw-r--r--  1 root  daemon   3591 Apr 14  2008 class_vars.inc
> -rw-r--r--  1 root  daemon   2414 Apr 14  2008 configtest.php
> -rw-r--r--  1 root  daemon   2542 Apr 14  2008 graph.php
> -rw-r--r--  1 root  daemon  19177 Apr 14  2008 graph_defaults.inc
> -rw-r--r--  1 root  daemon   4873 Apr 14  2008 index.php
> -rw-r--r--  1 root  daemon   5318 Apr 14  2008 setup.inc
> -rw-r--r--  1 root  daemon 95 Apr 14  2008 spacer.png
> -rw-r--r--  1 root  daemon976 Apr 14  2008 symon.css
> -rw-r--r--  1 root  daemon   1760 Apr 14  2008 symon.png
> -rw-r--r--  1 root  daemon   3233 Apr 14  2008 tools.inc
> # more .htaccess 
>
> AuthUserFile /var/www/htdocs/syweb/.htpasswd
> AuthGroupFile /dev/null
> AuthName Restricted Access.
> AuthType Basic
> require valid-user
> # more .htpasswd 

Apache is running in a chroot by default so the path you give to
AuthUserFile is incorrect, it should be /htdocs/syweb/.htpasswd

Bertrand



Re: tar(1) bug?

2008-11-19 Thread Bertrand Janin
LIVAI Daniel wrote :
> $ uname -mrsv
> OpenBSD 4.4 GENERIC#0 i386
> $ pwd
> /home/daniell
>
> $ tar -C / -cvf test.tar ./home/daniell/.ksh*
> tar: Unable to access ./home/daniell/.ksh*: No such file or directory
> tar: WARNING! These file names were not selected:
> ../home/daniell/.ksh*
>
> $ ls -l /home/daniell/.ksh*
> -rw-r-  1 daniell  daniell [...] /home/daniell/.ksh_logout
> -rw-r-  1 daniell  daniell [...] /home/daniell/.kshrc
>
> Without the wildcard, it is working as expected. Anyone else  
> experiencing this? Is this a known problem?

As far as I know, the shell is evaluating the wildcard, not tar. And
putting a dot (.) in from of your root (/) is likely to break the
wildcard so why don't you use:

$ tar -C / -cvf test.tar /home/daniell/.ksh*

Bertrand



Re: web development on OpenBSD

2008-04-28 Thread Bertrand Janin
> I Wonder what amazon.com and Ebay.com use? it would stand to reason
> that they would need speed any place they can get it.
> I wonder if they use C?

I remember seeing "Sun" microbanners here and there on eBay, it might
scream "Java".



Re: getting ^L to clear the screen?

2006-05-29 Thread Bertrand Janin
Han Boetes wrote :
> John Wright wrote:
> >bind -m ^L=clear^M
> >
> > Which types c l e a r RETURN where my cursor is.
> 
> Shells like zsh and bash also clear the screen while you are
> typing a line. So your solution works only fine at the start of a
> line. And adding a c-g or c-c won't help since it also interupts
> the macro.

I tried to do something like that :

bind -m ^L=^Uclear^M^Y

If you do each steps one by one, it works: remove the line, use clear
and put the line back on the screen. For some reason once it's in the
bind, it doesn't 'use' the ^Y at the end. In fact if you ^Y by hand
after this user-defined ^L, it 'pastes' the non-empty line that was
there before the clear.


-- 
Bertrand



Re: Logitech Quick Cam driver

2010-02-25 Thread Bertrand Janin
> Any body running Ligitech QuickCam on OpenBSD 4.6 using
> 
> http://tamentis.com/projects/openqce/
> 
> or any other driver?
> 
> I have a QuickCam messenger.

This stuff was an experiment, the code is awful and I don't recommend
using it for anything but morbid curiosity. It only works with the
"Express" version of the webcam, it doesn't integrate with anything and
will only let you capture still frames (it does not even adjust the
luminosity).

Bertrand