Re: Building OpenBSD
Chuck Robey chu...@telenix.org writes: Like I said above, I'm getting my sources via cvsup, and since they're the src with no tag or date, so I would suppose you'd call this current. The general advice for building a system using -current sources is to start with the most recent snapshot you can get your hands on. This is the gcc I just installed from the 4.5 release, installed only a week ago. Yes, but consider this: The release date was set to May 1st mainly in order to have CDs and other physical items ready by then. If you look at the file dates on the CD or the mirrors, you will see that they are not quite that recent. What you're seeing is expected. The time between when the after the release is cut and sent to CD production and the formal release dates is when the more radical changes happen in OpenBSD, giving us a preview of what the next release will be like. http://www.openbsd.org/faq/current.html and the references it contains will likely make all this a little clearer. - Peter -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ Remember to set the evil bit on all malicious network traffic delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
Re: ath(4) kernel panic on Acer Aspire One
Hi Matthew, I confirm both effects with my Acer Aspire One. I was wondering what made the pckbcintr messages happen. I didn't get to the point of realizing that it was the touch pad. One more problem I notice is that something when switching back to X (F5) from a text terminal (say F1) causes a few keystrokes to appear, which often cause a Firefox window to refresh. Sometimes I don't want it to refresh, and I can't easily avoid it. Maybe that's something to do with the touch pad too -- I'll have to watch it more carefully to see if it's that. BTW, when looking for a USB wireless for the Acer Aspire one, since the built in Atheros doesn't work, I had to discard a number of them before I found that the Linksys Dual Band Wireless-N works great, first time, without having to download any special firmware either. Austin On Mon, 11 May 2009, Matthew Dempsky wrote: On Mon, May 11, 2009 at 8:34 PM, Matthew Dempsky matt...@dempsky.org wrote: I just installed the latest OpenBSD/i386 snapshot on my Aspire One, and if I run ifconfig ath0 scan, it results in a kernel panic. Doh, just found in the archives that this is a known issue. I couldn't find mention of the pckbcintr problem though.
mDNS
I've installed howl on my fileserver and enabled multicast. From linux I can do this: ko...@arcology:~$ uname -a Linux arcology 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux ko...@arcology:~$ nslookup muzkabox.local Server: 192.168.1.254 Address:192.168.1.254#53 ** server can't find muzkabox.local: NXDOMAIN ko...@arcology:~$ ping muzakbox.local PING muzakbox.local (192.168.1.66) 56(84) bytes of data. 64 bytes from muzakbox.local (192.168.1.66): icmp_seq=1 ttl=255 time=310 ms 64 bytes from muzakbox.local (192.168.1.66): icmp_seq=2 ttl=255 time=3.19 ms 64 bytes from muzakbox.local (192.168.1.66): icmp_seq=3 ttl=255 time=5.26 ms 64 bytes from muzakbox.local (192.168.1.66): icmp_seq=7 ttl=255 time=2.44 ms ^C --- muzakbox.local ping statistics --- 7 packets transmitted, 4 received, 42% packet loss, time 6025ms rtt min/avg/max/mdev = 2.441/80.299/310.295/132.792 ms but on OpenBSD I get this: $ uname -a OpenBSD splat 4.5 GENERIC#1749 i386 $ nslookup muzakbox.local Server: 192.168.1.254 Address:192.168.1.254#53 ** server can't find muzakbox.local: NXDOMAIN $ ping muzakbox.local ping: unknown host: muzakbox.local Obviously linux's resolver is checking mDNS as well as regular DNS. Is there any way to get OpenBSD doing this too? The only thing I can think is that is has to do with the 'order hosts,bind' line, though bind doesn't seem to be install on the linux box Zeroconf is really convenient for me but it's kind of useless if it's going to force me into using Linux as a desktop. To head off the stupid questions: I had my computers all with static IPs but I've moved and there's a new (very locked down) router that I can't tamper with, and names are nicer anyway. .Actually I just solved my problem a different way because I discovered the dhclient.conf:send host-name hostname; option. I'm still curious about mDNS support in OpenBSD though (and this took me a couple hours of searching, so the archives could probably use this tip). -Nick
Re: can not use USB drive with recent snapshot
On Wed, May 13, 2009 at 09:04:36AM +0200, LEVAI Daniel wrote: Hi! With a May 12 snapshot, I can no longer use my USB thumb-drive. OpenBSD doesn't recognize any partitions on the drive, while on other OSes and with a previous snapshot it works fine. Here is dmesg.boot and the output (with a weird message) when I plug in the drive. Thanks for the report, but please also provide the output of fdisk. We are working on a more strict mbr validation, but this is all quite tricky and will take some iterations to get right. -Otto dmesg.boot: OpenBSD 4.5-current (GENERIC.MP) #38: Tue May 12 16:15:34 MDT 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,A CPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR real mem = 1072066560 (1022MB) avail mem = 1028272128 (980MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 08/02/06, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS rev. 2.4 @ 0xe0010 (68 entries) bios0: vendor LENOVO version 79ET66WW (1.10 ) date 08/02/2006 bios0: LENOVO 2007FRG acpi0 at bios0: rev 2 acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,A CPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 2, remapped to apid 1 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus 4 (EXP2) acpiprt5 at acpi0: bus 12 (EXP3) acpiprt6 at acpi0: bus 21 (PCI1) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2 acpicpu1 at acpi0: C3, C2 acpitz0 at acpi0: critical temperature 127 degC acpitz1 at acpi0: critical temperature 99 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpibat0 at acpi0: BAT0 model 42T4511 serial 21826 type LION oem SANYO acpibat1 at acpi0: BAT1 not present acpiac0 at acpi0: AC unit offline acpithinkpad0 at acpi0 acpidock at acpi0 not configured acpivideo at acpi0 not configured acpivideo at acpi0 not configured bios0: ROM list: 0xc/0xfe00 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 0xe/0x1 cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130b2c06000613 cpu0: using only highest and lowest power states cpu0: Enhanced SpeedStep 1000 MHz (1004 mV): speeds: 1833, 1000 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) extent `pciio' (0x0 - 0x), flags=0 0x1800 - 0x188f 0x18a8 - 0x18cf 0x18e0 - 0x18ff 0x2000 - 0xdfff 0x1 - 0x extent `pcimem' (0x0 - 0x), flags=0 0x0 - 0xfff 0x2000 - 0x9 0xd2000 - 0xd3fff 0xdc000 - 0x3fff 0xd800 - 0xee1f 0xee40 - 0xee4047ff 0xf000 - 0xf3ff 0xfec0 - 0xfec0 0xfed0 - 0xfed003ff 0xfed14000 - 0xfed19fff 0xfed1c000 - 0xfed8 0xfee0 - 0xfee00fff 0xff80 - 0x pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03 ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: apic 1 int 16 (irq 11) pci1 at ppb0 bus 1 extent `ppb0 pciio' (0x0 - 0x), flags=0 0x0 - 0x20ff 0x3000 - 0x extent `ppb0 pcimem' (0x0 - 0x), flags=0 0x0 - 0xee10 0xee20 - 0x vga1 at pci1 dev 0 function 0 ATI Radeon Mobility X1400 rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) radeondrm0 at vga1: apic 1 int 16 (irq 11) drm0 at radeondrm0 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: apic 1 int 17 (irq 11) azalia0: RIRB time out azalia0: codecs: Analog Devices AD1981HD, 0x/0x, using Analog Devices AD1981HD azalia0: RIRB time out audio0 at azalia0 ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 20 (irq 11) pci2 at ppb1 bus 2 extent `ppb1 pciio' (0x0 - 0x), flags=0 0x0 - 0x301f 0x4000 - 0x extent `ppb1 pcimem' (0x0 - 0x), flags=0 0x0 - 0xee01 0xee10 - 0x em0 at pci2 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 1 int 16 (irq 11), address 00:16:41:aa:d2:70 ppb2 at pci0 dev 28 function 1 Intel
Atheros AR9001U chipset - maybe Otus driver ?
I was given a AVM FRITZ!WLAN USB Stick N and I found some references to it in a man page for otus driver (rel 1.3 and 1.4). However searching the man pages via openbsd.org I can't find any mention of a released otus driver at least in 4.5 (as per my official CD). Also I noticed this line in the web page for changes between 4.5 and -current Enabled otus(4) on amd64 and i386 GENERIC kernels. But clicking on the otus(4) link, gives me Sorry, no data found for `otus(4)'. Can anyone shed any light on what the odds are of getting this device working ? If I plug it in to my old t22 Thinkpad (usb 1.1 I'm guessing) it picks it up as a mass storage device Thanks uname 4.5 Generic 1749 i386 dmesg SR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 267874304 (255MB) avail mem = 250728448 (239MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 02/28/02, BIOS32 rev. 0 @ 0xfd820, SMBIOS rev. 2.3 @ 0xfff (46 entries) bios0: vendor IBM version 16ET29WW (1.09 ) date 02/28/2002 bios0: IBM 26474EG apm0 at bios0: Power Management spec V1.2 apm0: battery life expectancy 46% apm0: AC off, battery charge high, estimated 0:33 hours acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xfd7b0/0x850 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdee0/208 (11 entries) pcibios0: PCI Interrupt Router at 000:07:0 (Intel 82371FB ISA rev 0x00) pcibios0: PCI bus #5 is the last bus bios0: ROM list: 0xc/0xc000 0xcc000/0x1800 0xdc000/0x4000! 0xe/0x1 cpu0 at mainbus0: (uniprocessor) pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x03 intelagp0 at pchb0 agp0 at intelagp0: aperture at 0xf800, size 0x400 ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x03 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 S3 Savage/IX-MV rev 0x13 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) cbb0 at pci0 dev 2 function 0 TI PCI1450 CardBus rev 0x03: irq 11 cbb1 at pci0 dev 2 function 1 TI PCI1450 CardBus rev 0x03: irq 11 fxp0 at pci0 dev 3 function 0 Intel 8255x rev 0x0c, i82550: irq 11, address 00:03:47:7b:6d:1e inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4 ATT/Lucent LTMODEM rev 0x01 at pci0 dev 3 function 1 not configured clcs0 at pci0 dev 5 function 0 Cirrus Logic CS4280/46xx CrystalClear rev 0x01: irq 11 reset_codec: AC97 inputs slot ready timeout clcs0: AC97 write fail (DCV!=0) for add=0x26 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x02 data=0x8000 clcs0: AC97 write fail (DCV!=0) for add=0x06 data=0x8000 clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x04 data=0x8000 clcs0: AC97 write fail (DCV!=0) for add=0x38 data=0x8080 clcs0: AC97 write fail (DCV!=0) for add=0x36 data=0x8080 clcs0: AC97 write fail (DCV!=0) for add=0x36 data=0x8080 clcs0: AC97 write fail (DCV!=0) for add=0x36 data=0x8080 clcs0: AC97 write fail (DCV!=0) for add=0x36 data=0x8080 clcs0: AC97 write fail (DCV!=0) for add=0x08 data=0x0f0f clcs0: AC97 write fail (DCV!=0) for add=0x0a data=0x clcs0: AC97 write fail (DCV!=0) for add=0x0c data=0x8008 clcs0: AC97 write fail (DCV!=0) for add=0x0e data=0x8008 clcs0: AC97 write fail (DCV!=0) for add=0x0e data=0x8008 clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x10 data=0x8808 clcs0: AC97 write fail (DCV!=0) for add=0x12 data=0x8808 clcs0: AC97 write fail (DCV!=0) for add=0x14 data=0x8808 clcs0: AC97 write fail (DCV!=0) for add=0x16 data=0x8808 clcs0: AC97 write fail (DCV!=0) for add=0x18 data=0x8808 clcs0: AC97 write fail (DCV!=0) for add=0x1a data=0x clcs0: AC97 write fail (DCV!=0) for add=0x1c data=0x8000 clcs0: AC97 write fail (DCV!=0) for add=0x1e data=0x8000 clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x22 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x22 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x26 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x2a data=0x clcs0: AC97 read prob. (DCV!=0) for add=0x7c clcs0: AC97 read prob. (DCV!=0) for add=0x7e clcs0: AC97 read prob. (DCV!=0) for add=0x00 ac97: codec id not read clcs0: AC97 read prob. (DCV!=0) for add=0x28 clcs0: AC97 read prob. (DCV!=0) for add=0x02 clcs0: AC97 write fail (DCV!=0) for add=0x02 data=0x clcs0: AC97 read prob. (DCV!=0) for add=0x18 clcs0: AC97 write fail (DCV!=0) for add=0x18 data=0x0808 clcs0: AC97 read prob. (DCV!=0) for add=0x1c clcs0: AC97 write fail (DCV!=0) for add=0x1c data=0x clcs0: AC97 read prob. (DCV!=0) for add=0x1a clcs0: AC97 write fail (DCV!=0) for add=0x1a data=0x
Re: can not use USB drive with recent snapshot
On Wednesday 13 May 2009 09.43.40 you wrote: On Wed, May 13, 2009 at 09:04:36AM +0200, LEVAI Daniel wrote: Hi! With a May 12 snapshot, I can no longer use my USB thumb-drive. OpenBSD doesn't recognize any partitions on the drive, while on other OSes and with a previous snapshot it works fine. Here is dmesg.boot and the output (with a weird message) when I plug in the drive. Thanks for the report, but please also provide the output of fdisk. We are working on a more strict mbr validation, but this is all quite tricky and will take some iterations to get right. Here is the fdisk output and some more. I hope it's useful. $ sudo fdisk /dev/rsd1c Disk: /dev/rsd1cgeometry: 243/255/63 [3915776 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start:size ] - -- 0: 0C 0 0 63 -241 232 3 [ 62: 3886222 ] Win95 FAT32L 1: 83241 232 4 -243 149 10 [ 3886284: 26908 ] Linux files* 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused $ sudo disklabel /dev/rsd1c disklabel: warning, DOS partition table with no valid OpenBSD partition # /dev/rsd1c: type: SCSI disk: SCSI disk label: GOODDRIVEFR flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 243 total sectors: 3915776 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] c: 39157760 unused $ sudo mount /dev/sd1i /mnt/tmp mount_ffs: /dev/sd1i on /mnt/tmp: Device not configured $ sudo mount /dev/sd1j /mnt/tmp mount_ffs: /dev/sd1j on /mnt/tmp: Device not configured Daniel -- LIVAI Daniel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
UTF-8 on the file system?
Hi, from a discussion around early November last year, I gather that OpenBSD has not much UTF-8 support right now. I am a bit unsure about whether having file names with UTF-8 characters are supported, though. I don't need to type the characters, nor see or print them, but only have a program like fd = open(filename_with_utf8_characters); succeed on a standard OpenBSD disk (FFS, if I'm not mistaken), using open(2) and fopen(3). I'm currently debugging a third-party application that happens to want to use UTF-8 filenames, but doesn't seem to find them, and, FWIW, the file names I get with ls are ISO-Latin-1 encoded, anyway. It would be great if someone could make a definite statement about this issue. -- Kind regards, --Toni++
Re: UTF-8 on the file system?
On Wed, May 13, 2009 at 10:35:25AM +0200, Toni Mueller wrote: Hi, from a discussion around early November last year, I gather that OpenBSD has not much UTF-8 support right now. I am a bit unsure about whether having file names with UTF-8 characters are supported, though. I don't need to type the characters, nor see or print them, but only have a program like fd = open(filename_with_utf8_characters); succeed on a standard OpenBSD disk (FFS, if I'm not mistaken), using open(2) and fopen(3). OpenBSD does not restrict or interpret filenames in any way, apart from the obvious: / and NUL are not allowed in filenames. So we accept funny chars in filenames, but do nothing special with them. I'm currently debugging a third-party application that happens to want to use UTF-8 filenames, but doesn't seem to find them, and, FWIW, the file names I get with ls are ISO-Latin-1 encoded, anyway. I suppose hwta you are seeing depends on your terminal. The kernel and base utilities encode nothing. Some utilities might protect funny chars being printed on a terminal (e.g. see ls -q). It would be great if someone could make a definite statement about this issue. The kernel and libc do not do any encoding or decoding. What third part libs and applications do, who nows. -Otto
Re: Unable to update ports since 4.4 and now with 4.5
Stuart Henderson s...@spacehopper.org wrote: On 2009-05-12, Helmut Schneider jumpe...@gmx.de wrote: PP2P3P5P=P8P9 P.P=P0P: e.yu...@gmail.com wrote: 2009/5/12 Helmut Schneider jumpe...@gmx.de: Lovely! Will this make it into a future (stable) release (just to prepare myself for november 1st)? Yes, it's been commited already. When and where? :) http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm Well, *that* was promptly! Thanks again. -- No Swen today, my love has gone away My mailbox stands for lorn, a symbol of the dawn
Re: can not use USB drive with recent snapshot
On Wed, May 13, 2009 at 10:21:57AM +0200, LEVAI Daniel wrote: On Wednesday 13 May 2009 09.43.40 you wrote: On Wed, May 13, 2009 at 09:04:36AM +0200, LEVAI Daniel wrote: Hi! With a May 12 snapshot, I can no longer use my USB thumb-drive. OpenBSD doesn't recognize any partitions on the drive, while on other OSes and with a previous snapshot it works fine. Here is dmesg.boot and the output (with a weird message) when I plug in the drive. Thanks for the report, but please also provide the output of fdisk. We are working on a more strict mbr validation, but this is all quite tricky and will take some iterations to get right. Here is the fdisk output and some more. I hope it's useful. Likely a newer snap will have this fixed. -Otto $ sudo fdisk /dev/rsd1c Disk: /dev/rsd1cgeometry: 243/255/63 [3915776 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start:size ] --- 0: 0C 0 0 63 -241 232 3 [ 62: 3886222 ] Win95 FAT32L 1: 83241 232 4 -243 149 10 [ 3886284: 26908 ] Linux files* 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused $ sudo disklabel /dev/rsd1c disklabel: warning, DOS partition table with no valid OpenBSD partition # /dev/rsd1c: type: SCSI disk: SCSI disk label: GOODDRIVEFR flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 243 total sectors: 3915776 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] c: 39157760 unused $ sudo mount /dev/sd1i /mnt/tmp mount_ffs: /dev/sd1i on /mnt/tmp: Device not configured $ sudo mount /dev/sd1j /mnt/tmp mount_ffs: /dev/sd1j on /mnt/tmp: Device not configured Daniel -- L?VAI D?niel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Re: UTF-8 on the file system?
Hi Otto, thanks for the quick answer. On Wed, 13.05.2009 at 10:50:37 +0200, Otto Moerbeek o...@drijf.net wrote: On Wed, May 13, 2009 at 10:35:25AM +0200, Toni Mueller wrote: fd = open(filename_with_utf8_characters); succeed on a standard OpenBSD disk (FFS, if I'm not mistaken), using open(2) and fopen(3). OpenBSD does not restrict or interpret filenames in any way, apart from the obvious: / and NUL are not allowed in filenames. I guess, but don't know, that NUL is not part of any UTF-8 character... So we accept funny chars in filenames, but do nothing special with them. Ok, that sounds great for a start. It means that the user can do whatever he likes, in terms of weird filenames. I'm currently debugging a third-party application that happens to want to use UTF-8 filenames, but doesn't seem to find them, and, FWIW, the file names I get with ls are ISO-Latin-1 encoded, anyway. I suppose hwta you are seeing depends on your terminal. Erm... I did: ls -al | od -c ls-output.txt and looked at that to determine what was on the file system, because I've been bitten by weird encoding problems often enough already. This way I determined that the special chars were indeed Latin1 encoded. Just saying 'ls -al' would only yield blanks in the offending places, and otherwise only tends to garble my display. The kernel and base utilities encode nothing. Some utilities might protect funny chars being printed on a terminal (e.g. see ls -q). Thanks for the hint. The kernel and libc do not do any encoding or decoding. What third part libs and applications do, who nows. ;) Kind regards, --Toni++
Re: UTF-8 on the file system?
On Wed, May 13, 2009 at 11:59:04AM +0200, Toni Mueller wrote: Hi Otto, thanks for the quick answer. On Wed, 13.05.2009 at 10:50:37 +0200, Otto Moerbeek o...@drijf.net wrote: On Wed, May 13, 2009 at 10:35:25AM +0200, Toni Mueller wrote: fd = open(filename_with_utf8_characters); succeed on a standard OpenBSD disk (FFS, if I'm not mistaken), using open(2) and fopen(3). OpenBSD does not restrict or interpret filenames in any way, apart from the obvious: / and NUL are not allowed in filenames. I guess, but don't know, that NUL is not part of any UTF-8 character... So we accept funny chars in filenames, but do nothing special with them. Ok, that sounds great for a start. It means that the user can do whatever he likes, in terms of weird filenames. I'm currently debugging a third-party application that happens to want to use UTF-8 filenames, but doesn't seem to find them, and, FWIW, the file names I get with ls are ISO-Latin-1 encoded, anyway. I suppose hwta you are seeing depends on your terminal. Erm... I did: ls -al | od -c ls-output.txt show me what filename you constructed (and how you did that) and the contents of ls-output.txt. I prefer hexdump -C, btw. -Otto and looked at that to determine what was on the file system, because I've been bitten by weird encoding problems often enough already. This way I determined that the special chars were indeed Latin1 encoded. Just saying 'ls -al' would only yield blanks in the offending places, and otherwise only tends to garble my display. The kernel and base utilities encode nothing. Some utilities might protect funny chars being printed on a terminal (e.g. see ls -q). Thanks for the hint. The kernel and libc do not do any encoding or decoding. What third part libs and applications do, who nows. ;) Kind regards, --Toni++
UTF-8 on the file system?
utf-8 is ignored as regular valid ASCII in most utilities. This is what makes utf-8 so nice. The main problem(1) is for utilities like for example ls and ed that use isprint to determine if they are allowed to print a character and print '?' or an octal escape sequence on nonprint chars. With a hacked libc and a utf-8 version of multibyte functions as well as a few fixes on apps solve most of these problems, gtk apps and scim will be happy with just being able to set the locale(2). However, advanced console applications will need the full character support and also support in the console driver for full glitch-less functionality. Your problem is likely 1 or 2. 2009/5/13 Toni Mueller openbsd-m...@oeko.net: Hi Otto, thanks for the quick answer. On Wed, 13.05.2009 at 10:50:37 +0200, Otto Moerbeek o...@drijf.net wrote: On Wed, May 13, 2009 at 10:35:25AM +0200, Toni Mueller wrote: fd = open(filename_with_utf8_characters); succeed on a standard OpenBSD disk (FFS, if I'm not mistaken), using open(2) and fopen(3). OpenBSD does not restrict or interpret filenames in any way, apart from the obvious: / and NUL are not allowed in filenames. I guess, but don't know, that NUL is not part of any UTF-8 character... So we accept funny chars in filenames, but do nothing special with them. Ok, that sounds great for a start. It means that the user can do whatever he likes, in terms of weird filenames. I'm currently debugging a third-party application that happens to want to use UTF-8 filenames, but doesn't seem to find them, and, FWIW, the file names I get with ls are ISO-Latin-1 encoded, anyway. I suppose hwta you are seeing depends on your terminal. Erm... I did: ls -al | od -c ls-output.txt and looked at that to determine what was on the file system, because I've been bitten by weird encoding problems often enough already. This way I determined that the special chars were indeed Latin1 encoded. Just saying 'ls -al' would only yield blanks in the offending places, and otherwise only tends to garble my display. The kernel and base utilities encode nothing. Some utilities might protect funny chars being printed on a terminal (e.g. see ls -q). Thanks for the hint. The kernel and libc do not do any encoding or decoding. What third part libs and applications do, who nows. B ;) Kind regards, --Toni++
OpenBGPD ASN4 filtering
!-- /* Font Definitions */ @font-face {font-family:Cambria Math; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:Calibri,sans-serif; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-bidi-font-family:Times New Roman;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 70.85pt 70.85pt 70.85pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} -- Hi all, With a future look we are now testing serveral situations with quagga and OpenBGPD. In both situations the results are satisfactory. But still we are facing the issue with the 4 AS byte community filter. In both situations itbs made to use 4 byte AS, but what about filtering? The implementation is global as following: 0:Peer-Asn Block the prefix for Peer-asn 64520:Peer-Asn Only announce too Peer-asn 0:64520 Block for all peers 64520:64520 Announce to all peers This filter works great, but by using the 4 byte AS number, this implementation is hard to implement. Does anyone know a solution for this problem? In the 2 byte AS this solutions works, but what about the 4 byte AS filtering. Does anyone has experience with this? Regards Tom Martin
Re: UTF-8 on the file system?
Hi, On Wed, 13.05.2009 at 12:12:31 +0200, Otto Moerbeek o...@drijf.net wrote: show me what filename you constructed (and how you did that) and the contents of ls-output.txt. I prefer hexdump -C, btw. I can't send you a recipe for constructing these filenames because I didn't do it, and I also don't have the recipe. It's even unclear that these filenames were originally generated on the OpenBSD system where I saw the problem - on the application level, that is. Might very well be a bug in one of the associated applications if you say that OpenBSD leaves filenames alone, or a mishandling of data on behalf of the user who asked me to look into the problem. Unless there's a problem handling UTF-8 in one of the applications, eg. the FTP server that I use, the problem rests firmly in the realm of the user, who currently investigates changing his application in this respect to make it more robust, anyway. Nevertheless, I include that listing below, for your information and further reference. You can clearly see that the filenames contain characters in Latin1. Thank you for your effort! Kind regards, --Toni++ 74 6f 74 61 6c 20 32 37 36 0a 64 72 77 78 72 2d |total 276.drwxr-| 0010 78 72 2d 78 20 20 32 20 32 30 33 34 20 20 32 30 |xr-x 2 2034 20| 0020 33 34 20 20 32 30 34 38 20 41 70 72 20 32 32 20 |34 2048 Apr 22 | 0030 31 34 3a 35 34 20 2e 0a 64 72 77 78 72 2d 78 72 |14:54 ..drwxr-xr| 0040 2d 78 20 20 33 20 32 30 33 34 20 20 32 30 33 34 |-x 3 2034 2034| 0050 20 20 20 35 31 32 20 41 70 72 20 32 32 20 31 34 | 512 Apr 22 14| 0060 3a 35 34 20 2e 2e 0a 2d 72 77 2d 72 2d 2d 72 2d |:54 ...-rw-r--r-| 0070 2d 20 20 31 20 32 30 33 34 20 20 32 30 33 34 20 |- 1 2034 2034 | 0080 20 31 30 39 35 20 41 70 72 20 32 32 20 31 34 3a | 1095 Apr 22 14:| 0090 35 34 20 41 75 73 74 72 61 6c 69 65 6e 2e 70 6e |54 Australien.pn| 00a0 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 20 31 20 |g.-rw-r--r-- 1 | 00b0 32 30 33 34 20 20 32 30 33 34 20 20 20 35 34 37 |2034 2034 547| 00c0 20 41 70 72 20 32 32 20 31 34 3a 35 34 20 42 65 | Apr 22 14:54 Be| 00d0 6c 67 69 65 6e 2e 70 6e 67 0a 2d 72 77 2d 72 2d |lgien.png.-rw-r-| 00e0 2d 72 2d 2d 20 20 31 20 32 30 33 34 20 20 32 30 |-r-- 1 2034 20| 00f0 33 34 20 20 31 31 31 35 20 41 70 72 20 32 32 20 |34 1115 Apr 22 | 0100 31 34 3a 35 34 20 42 72 61 73 69 6c 69 65 6e 2e |14:54 Brasilien.| 0110 70 6e 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 20 |png.-rw-r--r-- | 0120 31 20 32 30 33 34 20 20 32 30 33 34 20 20 20 34 |1 2034 2034 4| 0130 32 37 20 41 70 72 20 32 32 20 31 34 3a 35 34 20 |27 Apr 22 14:54 | 0140 42 75 6c 67 61 72 69 65 6e 2e 70 6e 67 0a 2d 72 |Bulgarien.png.-r| 0150 77 2d 72 2d 2d 72 2d 2d 20 20 31 20 32 30 33 34 |w-r--r-- 1 2034| 0160 20 20 32 30 33 34 20 20 20 36 30 34 20 41 70 72 | 2034 604 Apr| 0170 20 32 32 20 31 34 3a 35 34 20 43 48 49 4e 41 2e | 22 14:54 CHINA.| 0180 70 6e 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 20 |png.-rw-r--r-- | 0190 31 20 32 30 33 34 20 20 32 30 33 34 20 20 20 35 |1 2034 2034 5| 01a0 34 37 20 41 70 72 20 32 32 20 31 34 3a 35 34 20 |47 Apr 22 14:54 | 01b0 43 68 69 6c 65 2e 70 6e 67 0a 2d 72 77 2d 72 2d |Chile.png.-rw-r-| 01c0 2d 72 2d 2d 20 20 31 20 32 30 33 34 20 20 32 30 |-r-- 1 2034 20| 01d0 33 34 20 20 20 34 32 38 20 41 70 72 20 32 32 20 |34 428 Apr 22 | 01e0 31 34 3a 35 34 20 43 6f 73 74 61 20 52 69 63 61 |14:54 Costa Rica| 01f0 2e 70 6e 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 |.png.-rw-r--r-- | 0200 20 31 20 32 30 33 34 20 20 32 30 33 34 20 20 20 | 1 2034 2034 | 0210 36 37 33 20 41 70 72 20 32 32 20 31 34 3a 35 34 |673 Apr 22 14:54| 0220 20 43 7a 65 63 68 20 52 65 70 75 62 6c 69 63 2e | Czech Republic.| 0230 70 6e 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 20 |png.-rw-r--r-- | 0240 31 20 32 30 33 34 20 20 32 30 33 34 20 20 20 35 |1 2034 2034 5| 0250 33 39 20 41 70 72 20 32 32 20 31 34 3a 35 34 20 |39 Apr 22 14:54 | 0260 44 6f 6d 69 6e 69 6b 61 6e 69 73 63 68 65 20 52 |Dominikanische R| 0270 65 70 75 62 6c 69 6b 2e 70 6e 67 0a 2d 72 77 2d |epublik.png.-rw-| 0280 72 2d 2d 72 2d 2d 20 20 31 20 32 30 33 34 20 20 |r--r-- 1 2034 | 0290 32 30 33 34 20 20 20 35 33 37 20 41 70 72 20 32 |2034 537 Apr 2| 02a0 32 20 31 34 3a 35 34 20 44 e4 6e 65 6d 61 72 6b |2 14:54 DC$nemark| 02b0 2e 70 6e 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 |.png.-rw-r--r-- | 02c0 20 31 20 32 30 33 34 20 20 32 30 33 34 20 20 20 | 1 2034 2034 | 02d0 37 37 30 20 41 70 72 20 32 32 20 31 34 3a 35 34 |770 Apr 22 14:54| 02e0 20 45 63 75 61 64 6f 72 2e 70 6e 67 0a 2d 72 77 | Ecuador.png.-rw| 02f0 2d 72 2d 2d 72 2d 2d 20 20 31 20 32 30 33 34 20 |-r--r-- 1 2034 | 0300 20 32 30 33 34 20 20 20 35 38 38 20 41 70 72 20 | 2034 588 Apr
Re: UTF-8 on the file system?
On Wed, May 13, 2009 at 12:55:05PM +0200, Toni Mueller wrote: Hi, On Wed, 13.05.2009 at 12:12:31 +0200, Otto Moerbeek o...@drijf.net wrote: show me what filename you constructed (and how you did that) and the contents of ls-output.txt. I prefer hexdump -C, btw. I can't send you a recipe for constructing these filenames because I didn't do it, and I also don't have the recipe. It's even unclear that these filenames were originally generated on the OpenBSD system where I saw the problem - on the application level, that is. Might very well be a bug in one of the associated applications if you say that OpenBSD leaves filenames alone, or a mishandling of data on behalf of the user who asked me to look into the problem. Unless there's a problem handling UTF-8 in one of the applications, eg. the FTP server that I use, the problem rests firmly in the realm of the user, who currently investigates changing his application in this respect to make it more robust, anyway. Nevertheless, I include that listing below, for your information and further reference. You can clearly see that the filenames contain characters in Latin1. Thank you for your effort! Ok, indeed, with only this information it's impossible to decide where the encoding from UTF8 to Latin1 took place. -Otto Kind regards, --Toni++ 74 6f 74 61 6c 20 32 37 36 0a 64 72 77 78 72 2d |total 276.drwxr-| 0010 78 72 2d 78 20 20 32 20 32 30 33 34 20 20 32 30 |xr-x 2 2034 20| 0020 33 34 20 20 32 30 34 38 20 41 70 72 20 32 32 20 |34 2048 Apr 22 | 0030 31 34 3a 35 34 20 2e 0a 64 72 77 78 72 2d 78 72 |14:54 ..drwxr-xr| 0040 2d 78 20 20 33 20 32 30 33 34 20 20 32 30 33 34 |-x 3 2034 2034| 0050 20 20 20 35 31 32 20 41 70 72 20 32 32 20 31 34 | 512 Apr 22 14| 0060 3a 35 34 20 2e 2e 0a 2d 72 77 2d 72 2d 2d 72 2d |:54 ...-rw-r--r-| 0070 2d 20 20 31 20 32 30 33 34 20 20 32 30 33 34 20 |- 1 2034 2034 | 0080 20 31 30 39 35 20 41 70 72 20 32 32 20 31 34 3a | 1095 Apr 22 14:| 0090 35 34 20 41 75 73 74 72 61 6c 69 65 6e 2e 70 6e |54 Australien.pn| 00a0 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 20 31 20 |g.-rw-r--r-- 1 | 00b0 32 30 33 34 20 20 32 30 33 34 20 20 20 35 34 37 |2034 2034 547| 00c0 20 41 70 72 20 32 32 20 31 34 3a 35 34 20 42 65 | Apr 22 14:54 Be| 00d0 6c 67 69 65 6e 2e 70 6e 67 0a 2d 72 77 2d 72 2d |lgien.png.-rw-r-| 00e0 2d 72 2d 2d 20 20 31 20 32 30 33 34 20 20 32 30 |-r-- 1 2034 20| 00f0 33 34 20 20 31 31 31 35 20 41 70 72 20 32 32 20 |34 1115 Apr 22 | 0100 31 34 3a 35 34 20 42 72 61 73 69 6c 69 65 6e 2e |14:54 Brasilien.| 0110 70 6e 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 20 |png.-rw-r--r-- | 0120 31 20 32 30 33 34 20 20 32 30 33 34 20 20 20 34 |1 2034 2034 4| 0130 32 37 20 41 70 72 20 32 32 20 31 34 3a 35 34 20 |27 Apr 22 14:54 | 0140 42 75 6c 67 61 72 69 65 6e 2e 70 6e 67 0a 2d 72 |Bulgarien.png.-r| 0150 77 2d 72 2d 2d 72 2d 2d 20 20 31 20 32 30 33 34 |w-r--r-- 1 2034| 0160 20 20 32 30 33 34 20 20 20 36 30 34 20 41 70 72 | 2034 604 Apr| 0170 20 32 32 20 31 34 3a 35 34 20 43 48 49 4e 41 2e | 22 14:54 CHINA.| 0180 70 6e 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 20 |png.-rw-r--r-- | 0190 31 20 32 30 33 34 20 20 32 30 33 34 20 20 20 35 |1 2034 2034 5| 01a0 34 37 20 41 70 72 20 32 32 20 31 34 3a 35 34 20 |47 Apr 22 14:54 | 01b0 43 68 69 6c 65 2e 70 6e 67 0a 2d 72 77 2d 72 2d |Chile.png.-rw-r-| 01c0 2d 72 2d 2d 20 20 31 20 32 30 33 34 20 20 32 30 |-r-- 1 2034 20| 01d0 33 34 20 20 20 34 32 38 20 41 70 72 20 32 32 20 |34 428 Apr 22 | 01e0 31 34 3a 35 34 20 43 6f 73 74 61 20 52 69 63 61 |14:54 Costa Rica| 01f0 2e 70 6e 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 |.png.-rw-r--r-- | 0200 20 31 20 32 30 33 34 20 20 32 30 33 34 20 20 20 | 1 2034 2034 | 0210 36 37 33 20 41 70 72 20 32 32 20 31 34 3a 35 34 |673 Apr 22 14:54| 0220 20 43 7a 65 63 68 20 52 65 70 75 62 6c 69 63 2e | Czech Republic.| 0230 70 6e 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 20 |png.-rw-r--r-- | 0240 31 20 32 30 33 34 20 20 32 30 33 34 20 20 20 35 |1 2034 2034 5| 0250 33 39 20 41 70 72 20 32 32 20 31 34 3a 35 34 20 |39 Apr 22 14:54 | 0260 44 6f 6d 69 6e 69 6b 61 6e 69 73 63 68 65 20 52 |Dominikanische R| 0270 65 70 75 62 6c 69 6b 2e 70 6e 67 0a 2d 72 77 2d |epublik.png.-rw-| 0280 72 2d 2d 72 2d 2d 20 20 31 20 32 30 33 34 20 20 |r--r-- 1 2034 | 0290 32 30 33 34 20 20 20 35 33 37 20 41 70 72 20 32 |2034 537 Apr 2| 02a0 32 20 31 34 3a 35 34 20 44 e4 6e 65 6d 61 72 6b |2 14:54 DC$nemark| 02b0 2e 70 6e 67 0a 2d 72 77 2d 72 2d 2d 72 2d 2d 20 |.png.-rw-r--r-- | 02c0 20 31 20 32 30 33 34 20 20 32 30 33 34 20 20 20 | 1 2034 2034 | 02d0 37 37 30 20 41 70 72 20 32 32 20 31 34 3a 35 34 |770 Apr 22
Audio problems on Lenovo Thinkpad T61 with 4.5
For some reason, I can play audio through the speakers, but not through my headphones. If my headphones are plugged in, no sound comes out the speakers (but I think this is handled at the hardware level), which is the proper behaviour. I've tried unmuting everything with mixerctl (although nothing was muted by default), to no avail. I've got the sound up all the way on my headphones, but nothing comes out. Here's my dmesg and mixerctl: outputs.dig-dac_source= inputs.dac2=126,126 inputs.dac=204,204 inputs.hp_source=sel6,sel5 inputs.spkr_source=dac,sel5 record.adc_source=mic record.adc_mute=off record.adc=124,124 record.adc2_source=mic record.adc2_mute=off record.adc2=124,124 inputs.sel3_source=dac2 inputs.sel4_source=dac2 inputs.beep_mute=off inputs.beep=119 outputs.hp_mute=off outputs.hp_boost=off outputs.spkr_mute=off outputs.spkr_boost=off outputs.spkr_eapd=on inputs.mic=0,0 outputs.mic_dir=input-vr80 inputs.mic2=85,85 outputs.mic2_dir=input-vr80 outputs.SPDIF_source=dig-dac outputs.SPDIF_mute=off outputs.SPDIF=126,126 outputs.mic3_mute=off outputs.mic3_dir=input-vr80 outputs.vendor_source=hp inputs.mix4_source=sel3,sel5 inputs.mix6_source=mic,mic2 inputs.mix6_mic=120,120 inputs.mix6_mic2=120,120 inputs.sel5_source=mix6 outputs.sel5_mute=off outputs.sel5=120,120 inputs.sel6_source=dac2 inputs.sel7_source=dac2 inputs.mic3_source=sel7,sel5 inputs.mic3=85,85 outputs.vendor2_source=mic outputs.hp_sense=plugged outputs.mic_sense=plugged outputs.mic3_sense=unplugged outputs.spkr_muters=mic,mic3 outputs.master=204,204 outputs.master.mute=off outputs.master.slaves=dac,spkr record.volume=124,124 record.volume.mute=off record.volume.slaves=adc,adc2 inputs.usingdac=0403 OpenBSD 4.5 (GENERIC) #2052: Sat Feb 28 14:55:24 MST 2009 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC real mem = 2111504384 (2013MB) avail mem = 2038304768 (1943MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries) bios0: vendor LENOVO version 7LETC4WW (2.24 ) date 08/15/2008 bios0: LENOVO 6459CTO acpi0 at bios0: rev 2 acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! SSDT SSDT SSDT SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) EHC0(S3) EHC1(S3) HDEF(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) Core(TM)2 Duo CPU T9300 @ 2.50GHz, 2494.21 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,VMX,EST,TM2,CX16,xTPR,NXE,LONG cpu0: 6MB 64b/line 16-way L2 cache cpu0: apic clock running at 199MHz cpu at mainbus0: not configured ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 2, remapped to apid 1 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus 4 (EXP2) acpiprt5 at acpi0: bus 5 (EXP3) acpiprt6 at acpi0: bus 13 (EXP4) acpiprt7 at acpi0: bus 21 (PCI1) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2 acpitz0 at acpi0: critical temperature 127 degC acpitz1 at acpi0: critical temperature 100 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpibat0 at acpi0: BAT0 model 42T4621 serial 1186 type LION oem SANYO acpibat1 at acpi0: BAT1 not present acpiac0 at acpi0: AC unit online acpithinkpad0 at acpi0 acpidock at acpi0 not configured acpivideo at acpi0 not configured acpivideo at acpi0 not configured cpu0: unknown Enhanced SpeedStep CPU, msr 0x06174d2806004d28 cpu0: using only highest and lowest power states cpu0: Enhanced SpeedStep 15400 MHz (1340 mV): speeds: 15400, 1200 MHz pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c ppb0 at pci0 dev 1 function 0 Intel GM965 PCIE rev 0x0c: apic 1 int 16 (irq 10) pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 vendor NVIDIA, unknown product 0x0429 rev 0xa1 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) em0 at pci0 dev 25 function 0 Intel ICH8 IGP M AMT rev 0x03: apic 1 int 20 (irq 11), address 00:1f:e2:1c:0f:4e uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 1 int 20 (irq 11) uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: apic 1 int 21 (irq 11) ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: apic 1 int 22 (irq 11) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03: apic 1 int 17 (irq 11) azalia0: RIRB time out azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices AD1984 audio0 at azalia0 ppb1 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: apic 1 int 20 (irq 11) pci2
Re: UTF-8 on the file system?
Hi, On Wed, 13.05.2009 at 19:26:59 +0900, Jordi Beltran Creix jbcreix.m...@gmail.com wrote: print '?' or an octal escape sequence on nonprint chars. With a hacked libc and a utf-8 version of multibyte functions as well as a few fixes on apps solve most of these problems, gtk apps and scim will be happy with just being able to set the locale(2). thanks for caring, but ATM I really don't need UTF-8 support in OpenBSD and on level 7. My only problem is that a user creates files with the wrong names, and then can't find them later. It's a (his) web app, so no terminal/scim/...-stuff is reqired here - it's really only the ability to handle UTF-8 filenames properly, and saying that OpenBSD won't interfere with any file names which comply with the rules Otto mentioned, imho amounts to saying that the problem is created somewhere within the application area, starting with his required infrastructure (eg, some apps from the ports tree), or even outside (farter awawy) of that. However, advanced console applications will need the full character support and also support in the console driver for full glitch-less functionality. Your problem is likely 1 or 2. Ummm... Kind regards, --Toni++
Re: Audio problems on Lenovo Thinkpad T61 with 4.5
On Wed, May 13, 2009 at 07:04:53PM +0800, Samuel Baldwin wrote: For some reason, I can play audio through the speakers, but not through my headphones. If my headphones are plugged in, no sound comes out the speakers (but I think this is handled at the hardware level), which is the proper behaviour. I've tried unmuting everything with mixerctl (although nothing was muted by default), to no avail. I've got the sound up all the way on my headphones, but nothing comes out. Here's my dmesg and mixerctl: please send `mixerctl -v`. probably one of the _source controls needs to be changed, but need to know the available choices ... alternatively, there's a good chance this is fixed in -current ... -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
Geo Tourism Sunar: Çin'den Haberler 7. Sayı
Gin'den Haberler 13 May}s 2009 Say}: 7 Gin'den Haberler'i d|zg|n gvr|nt|lenemiyorsa l|tfen t}klay}n}z http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0BBEpWA1BKUlAGDlIH . http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0BB0pWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0BBkpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0BCUpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0BCEpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0AAUpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0AAEpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0BCEpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0AA0pWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0AAkpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0ABUpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0ABEpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0AB0pWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0ABkpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0AB0pWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0ABEpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0ACUpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0ACEpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0PAUpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0PAEpWA1BKUlAGDlIH http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0PA0pWA1BKUlAGDlIH mailto:nopermis...@email2clients.com http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0PAkpWA1BKUlAGDlIH mailto:sendmem...@email2clients.com http://www.email2clients.com/geotourism/lists/lt.php?id=ZU4HDwcMUA0PAUpWA1BKUlAGDlIH -- Powered by PHPlist, www.phplist.com --
Re: UTF-8 on the file system?
Toni Mueller openbsd-m...@oeko.net wrote: OpenBSD does not restrict or interpret filenames in any way, apart from the obvious: / and NUL are not allowed in filenames. I guess, but don't know, that NUL is not part of any UTF-8 character... Being able to use it with a Unix-style filesystem is one of UTF-8's design principles. All ASCII characters (0-127) represent themselves; all characters 127 are represented by sequences of bytes with the top bit set. -- Christian naddy Weisgerber na...@mips.inka.de
Re: softraid
On Wed, May 13, 2009 at 01:11:43PM +0800, Uwe Dippel wrote: Beautyful, as it looks like! I tried here on 2 300 GB U320, and the setup went through without any warnings (?? most users encounter some?). What I did was: (my system disk is sd0) fdisk -iy sd1 fdisk -iy sd2 printf a\n\n\n\nRAID\nw\nq\n\n | disklabel -E sd1 printf a\n\n\n\nRAID\nw\nq\n\n | disklabel -E sd2 bioctl -c 1 -l /dev/sd1a,/dev/sd2a softraid0 dd if=/dev/zero of=/dev/rsd3c bs=1m count=1 disklabel sd3 (creating my partitions/slices) newfs /dev/rsd3a newfs /dev/rsd3b mount /dev/sd3b /mnt/ cd /mnt/ [pull one hot-swap out] If I were to try this (search the archives, it has been discussed recently what and how to restore a broken mirror), here is when I would search very hard for error indications. Does not really bioctl say nothing? Try bioctl sd3 bioctl softraid0, bioctl -q sd3, bioclt -q softraid0. echo Nonsense testo [push the disk back in] That pushed in disk is most probably still regarded by softraid as broken. The feature of now starting a rebuild using bioctl -R sd2 is missing in softraid. The existing repair option as I recall it (again, search the archives) is to backup the still working filesystems sd3a and sd3b on the broken mirror, re-create the array from scratch, and restore them. [pull the other disk] That sounds fatal. You should repair the RAID mirror, not break the working half. Now both mirror halves are probably regarded as broken. Your RAID is doomed. # ls -l total 4 -rw-r--r-- 1 root wheel 9 May 13 12:00 testo [everything okay until here] # rm testo rm: testo: Input/output error [I still guess this may happen] But now my question: All posts say all info is in 'man softraid' and 'man bioctl'. There is nothing about *warnings* in there. I also tried bioctl -a/-q, but none would indicate that anything was wrong when one of the drives was pulled. This will be a production server, but it can take downtime, in case. However: 1. I *need to know* when a disk goes offline 2. I need to know, in real life(!), if I can simply use the broken mirror to save my data; how I can mount it in another machine. Alas, softraid and bioctl are silent about these two. Another reason for asking: Next I issued 'reboot'; and could play hangman :( After the reboot, I got: ... softraid0 at root softraid0: sd3 was not shutdown properly scsibus3 at softraid0: 1 targets, initiator 1 sd3 at scsibus3 targ 0 lun 0: OPENBSD, SR RAID 1, 003 SCSI2 0/direct fixed sd3: 286094MB, 36471 cyl, 255 head, 63 sec, 512 bytes/sec, 585922538 sec total Now I wonder what to do. Will a traditional fsck do, or do I have to recreate the softraid? Can anyone please help me further? Uwe -- / Raimo Niskanen, Erlang/OTP, Ericsson AB
Re: Atheros AR9001U chipset - maybe Otus driver ?
try -current. On 2009-05-13, openbsd misc open...@6wells.com wrote: I was given a AVM FRITZ!WLAN USB Stick N and I found some references to it in a man page for otus driver (rel 1.3 and 1.4). However searching the man pages via openbsd.org I can't find any mention of a released otus driver at least in 4.5 (as per my official CD). Also I noticed this line in the web page for changes between 4.5 and -current Enabled otus(4) on amd64 and i386 GENERIC kernels. But clicking on the otus(4) link, gives me Sorry, no data found for `otus(4)'. Can anyone shed any light on what the odds are of getting this device working ? If I plug it in to my old t22 Thinkpad (usb 1.1 I'm guessing) it picks it up as a mass storage device Thanks uname 4.5 Generic 1749 i386 dmesg SR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 267874304 (255MB) avail mem = 250728448 (239MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 02/28/02, BIOS32 rev. 0 @ 0xfd820, SMBIOS rev. 2.3 @ 0xfff (46 entries) bios0: vendor IBM version 16ET29WW (1.09 ) date 02/28/2002 bios0: IBM 26474EG apm0 at bios0: Power Management spec V1.2 apm0: battery life expectancy 46% apm0: AC off, battery charge high, estimated 0:33 hours acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xfd7b0/0x850 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdee0/208 (11 entries) pcibios0: PCI Interrupt Router at 000:07:0 (Intel 82371FB ISA rev 0x00) pcibios0: PCI bus #5 is the last bus bios0: ROM list: 0xc/0xc000 0xcc000/0x1800 0xdc000/0x4000! 0xe/0x1 cpu0 at mainbus0: (uniprocessor) pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x03 intelagp0 at pchb0 agp0 at intelagp0: aperture at 0xf800, size 0x400 ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x03 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 S3 Savage/IX-MV rev 0x13 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) cbb0 at pci0 dev 2 function 0 TI PCI1450 CardBus rev 0x03: irq 11 cbb1 at pci0 dev 2 function 1 TI PCI1450 CardBus rev 0x03: irq 11 fxp0 at pci0 dev 3 function 0 Intel 8255x rev 0x0c, i82550: irq 11, address 00:03:47:7b:6d:1e inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4 ATT/Lucent LTMODEM rev 0x01 at pci0 dev 3 function 1 not configured clcs0 at pci0 dev 5 function 0 Cirrus Logic CS4280/46xx CrystalClear rev 0x01: irq 11 reset_codec: AC97 inputs slot ready timeout clcs0: AC97 write fail (DCV!=0) for add=0x26 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x00 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x02 data=0x8000 clcs0: AC97 write fail (DCV!=0) for add=0x06 data=0x8000 clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x04 data=0x8000 clcs0: AC97 write fail (DCV!=0) for add=0x38 data=0x8080 clcs0: AC97 write fail (DCV!=0) for add=0x36 data=0x8080 clcs0: AC97 write fail (DCV!=0) for add=0x36 data=0x8080 clcs0: AC97 write fail (DCV!=0) for add=0x36 data=0x8080 clcs0: AC97 write fail (DCV!=0) for add=0x36 data=0x8080 clcs0: AC97 write fail (DCV!=0) for add=0x08 data=0x0f0f clcs0: AC97 write fail (DCV!=0) for add=0x0a data=0x clcs0: AC97 write fail (DCV!=0) for add=0x0c data=0x8008 clcs0: AC97 write fail (DCV!=0) for add=0x0e data=0x8008 clcs0: AC97 write fail (DCV!=0) for add=0x0e data=0x8008 clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x10 data=0x8808 clcs0: AC97 write fail (DCV!=0) for add=0x12 data=0x8808 clcs0: AC97 write fail (DCV!=0) for add=0x14 data=0x8808 clcs0: AC97 write fail (DCV!=0) for add=0x16 data=0x8808 clcs0: AC97 write fail (DCV!=0) for add=0x18 data=0x8808 clcs0: AC97 write fail (DCV!=0) for add=0x1a data=0x clcs0: AC97 write fail (DCV!=0) for add=0x1c data=0x8000 clcs0: AC97 write fail (DCV!=0) for add=0x1e data=0x8000 clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x20 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x22 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x22 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x26 data=0x clcs0: AC97 write fail (DCV!=0) for add=0x2a data=0x clcs0: AC97 read prob. (DCV!=0) for add=0x7c clcs0: AC97 read prob. (DCV!=0) for add=0x7e clcs0: AC97 read prob. (DCV!=0) for add=0x00 ac97: codec id not read clcs0: AC97 read prob. (DCV!=0) for add=0x28 clcs0: AC97 read prob. (DCV!=0) for add=0x02 clcs0: AC97 write fail (DCV!=0) for add=0x02 data=0x clcs0: AC97 read prob. (DCV!=0) for add=0x18 clcs0: AC97 write fail (DCV!=0) for add=0x18 data=0x0808 clcs0: AC97 read prob. (DCV!=0) for
Re: mDNS
I need an mdns solution as well. If you have something working please let me know. On Wed, May 13, 2009 at 03:26:29AM -0400, Nick Guenther wrote: I've installed howl on my fileserver and enabled multicast. From linux I can do this: ko...@arcology:~$ uname -a Linux arcology 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux ko...@arcology:~$ nslookup muzkabox.local Server: 192.168.1.254 Address: 192.168.1.254#53 ** server can't find muzkabox.local: NXDOMAIN ko...@arcology:~$ ping muzakbox.local PING muzakbox.local (192.168.1.66) 56(84) bytes of data. 64 bytes from muzakbox.local (192.168.1.66): icmp_seq=1 ttl=255 time=310 ms 64 bytes from muzakbox.local (192.168.1.66): icmp_seq=2 ttl=255 time=3.19 ms 64 bytes from muzakbox.local (192.168.1.66): icmp_seq=3 ttl=255 time=5.26 ms 64 bytes from muzakbox.local (192.168.1.66): icmp_seq=7 ttl=255 time=2.44 ms ^C --- muzakbox.local ping statistics --- 7 packets transmitted, 4 received, 42% packet loss, time 6025ms rtt min/avg/max/mdev = 2.441/80.299/310.295/132.792 ms but on OpenBSD I get this: $ uname -a OpenBSD splat 4.5 GENERIC#1749 i386 $ nslookup muzakbox.local Server: 192.168.1.254 Address: 192.168.1.254#53 ** server can't find muzakbox.local: NXDOMAIN $ ping muzakbox.local ping: unknown host: muzakbox.local Obviously linux's resolver is checking mDNS as well as regular DNS. Is there any way to get OpenBSD doing this too? The only thing I can think is that is has to do with the 'order hosts,bind' line, though bind doesn't seem to be install on the linux box Zeroconf is really convenient for me but it's kind of useless if it's going to force me into using Linux as a desktop. To head off the stupid questions: I had my computers all with static IPs but I've moved and there's a new (very locked down) router that I can't tamper with, and names are nicer anyway. .Actually I just solved my problem a different way because I discovered the dhclient.conf:send host-name hostname; option. I'm still curious about mDNS support in OpenBSD though (and this took me a couple hours of searching, so the archives could probably use this tip). -Nick
Re: mDNS
On Wed, 13 May 2009, Marco Peereboom wrote: I need an mdns solution as well. If you have something working please let me know. I'm working on avahi which I intend to finish at c2k9. -- Antoine
Re: Audio problems on Lenovo Thinkpad T61 with 4.5
On Wed, May 13, 2009 at 7:04 AM, Samuel Baldwin shardz4...@gmail.com wrote: For some reason, I can play audio through the speakers, but not through my headphones. If my headphones are plugged in, no sound comes out the speakers (but I think this is handled at the hardware level), which is the proper behaviour. I've tried unmuting everything with mixerctl (although nothing was muted by default), to no avail. I've got the sound up all the way on my headphones, but nothing comes out. Here's my dmesg and mixerctl: I have a Lenovo T61 also, and experienced this problem some time ago. I see from your mixerctl output you have inputs.sel6_source=dac2 Jacob suggested I try setting the following: mixerctl inputs.sel6_source=dac and with that the headphones/speakers work as expected. Hope it helps.
Re: Audio problems on Lenovo Thinkpad T61 with 4.5
please send `mixerctl -v`. B probably one of the _source controls needs to be changed, but need to know the available choices ... outputs.dig-dac_source= [ adc adc2 ] inputs.dac2=126,126 inputs.dac=198,198 inputs.hp_source=sel6,sel5 { sel6 sel5 } inputs.spkr_source=dac,sel5 { dac sel5 } record.adc_source=mic [ mic mic2 ] record.adc_mute=off [ off on ] record.adc=124,124 record.adc2_source=mic [ mic mic2 ] record.adc2_mute=off [ off on ] record.adc2=124,124 inputs.sel3_source=dac2 [ dac2 dac ] inputs.sel4_source=dac2 [ dac2 dac ] inputs.beep_mute=off [ off on ] inputs.beep=119 outputs.hp_mute=off [ off on ] outputs.hp_boost=off [ off on ] outputs.spkr_mute=off [ off on ] outputs.spkr_boost=off [ off on ] outputs.spkr_eapd=on [ off on ] inputs.mic=85,85 outputs.mic_dir=input-vr80 [ none input input-vr0 input-vr50 input-vr80 input-vr100 ] inputs.mic2=85,85 outputs.mic2_dir=input-vr80 [ none input input-vr0 input-vr50 input-vr80 input-vr100 ] outputs.SPDIF_source=dig-dac [ dig-dac ] outputs.SPDIF_mute=off [ off on ] outputs.SPDIF=126,126 outputs.mic3_mute=off [ off on ] outputs.mic3_dir=input-vr80 [ none output input input-vr0 input-vr50 input-vr80 input-vr100 ] outputs.vendor_source=hp [ hp spkr adc adc2 sel3 sel4 beep hp ] inputs.mix4_source=sel3,sel5 { sel3 sel5 } inputs.mix6_source=mic,mic2 { mic mic2 } inputs.mix6_mic=120,120 inputs.mix6_mic2=120,120 inputs.sel5_source=mix6 [ mix6 ] outputs.sel5_mute=off [ off on ] outputs.sel5=120,120 inputs.sel6_source=dac2 [ dac2 dac ] inputs.sel7_source=dac2 [ dac2 dac ] inputs.mic3_source=sel7,sel5 { sel7 sel5 } inputs.mic3=85,85 outputs.vendor2_source=mic [ mic mic2 mic3 ] outputs.hp_sense=unplugged [ unplugged plugged ] outputs.mic_sense=unplugged [ unplugged plugged ] outputs.mic3_sense=unplugged [ unplugged plugged ] outputs.spkr_muters=hp,mic,mic3 { hp mic mic3 } outputs.master=200,200 outputs.master.mute=off [ off on ] outputs.master.slaves=dac,spkr { dac2 dac beep hp spkr SPDIF mic3 sel5 mic3 } record.volume=124,124 record.volume.mute=off [ off on ] record.volume.slaves=adc,adc2 { adc adc2 mic mic2 } inputs.usingdac=0403 [ 0403 02 ] -- Samuel 'Shardz' Baldwin - staticfree.info/~samuel
Re: softraid
On Wed, May 13, 2009 at 01:11:43PM +0800, Uwe Dippel wrote: Beautyful, as it looks like! I tried here on 2 300 GB U320, and the setup went through without any warnings (?? most users encounter some?). What I did was: (my system disk is sd0) fdisk -iy sd1 fdisk -iy sd2 printf a\n\n\n\nRAID\nw\nq\n\n | disklabel -E sd1 printf a\n\n\n\nRAID\nw\nq\n\n | disklabel -E sd2 bioctl -c 1 -l /dev/sd1a,/dev/sd2a softraid0 dd if=/dev/zero of=/dev/rsd3c bs=1m count=1 disklabel sd3 (creating my partitions/slices) newfs /dev/rsd3a newfs /dev/rsd3b mount /dev/sd3b /mnt/ cd /mnt/ [pull one hot-swap out] echo Nonsense testo Yay your data survived on the remaining disk!! [push the disk back in] Stale metadata, disk will remain unused from now on. [pull the other disk] You lose. all data is gone (for all intents and purposes). # ls -l total 4 -rw-r--r-- 1 root wheel 9 May 13 12:00 testo [everything okay until here] Nope, this comes out of cache. # rm testo rm: testo: Input/output error [I still guess this may happen] Shall happen. But now my question: All posts say all info is in 'man softraid' and 'man bioctl'. There is nothing about *warnings* in there. I also tried bioctl -a/-q, but none would indicate that anything was wrong when one of the drives was pulled. Show me bioctl softraid0 output. This will be a production server, but it can take downtime, in case. However: 1. I *need to know* when a disk goes offline Provided in sensors and bioctl. 2. I need to know, in real life(!), if I can simply use the broken mirror to save my data; how I can mount it in another machine. Alas, softraid and bioctl are silent about these two. You must have done something wrong. Also you completely destroyed your volume by pulling the 2nd and last disk out of the system. Another reason for asking: Next I issued 'reboot'; and could play hangman :( I really need to see a trace. It can be something induced but not the fault of softraid. You failed the whole volume and bad things happen when that happens. After the reboot, I got: ... softraid0 at root softraid0: sd3 was not shutdown properly scsibus3 at softraid0: 1 targets, initiator 1 sd3 at scsibus3 targ 0 lun 0: OPENBSD, SR RAID 1, 003 SCSI2 0/direct fixed sd3: 286094MB, 36471 cyl, 255 head, 63 sec, 512 bytes/sec, 585922538 sec total To be expected because the 2nd disk you pulled contained valid metadata. Now I wonder what to do. Will a traditional fsck do, or do I have to recreate the softraid? I am actively working on rebuilds but there are some other pieces being modified before that can make it in. You can fsck + dump/restore this volume onto a new one. You need to realize that double failures are considered the end of your data on raid volumes. In softraid you can can create a 10 disk raid1 but once the last one (considered the double failure) fails you lose. Can anyone please help me further? Uwe
Re: softraid
On Wed, May 13, 2009 at 05:50:40AM +, Uwe Dippel wrote: Uwe Dippel udippel at uniten.edu.my writes: Now I wonder what to do. Will a traditional fsck do, or do I have to recreate the softraid? I guess, I can answer this myself, in the meantime: I did the fsck of the softraid volume sd3a and sd3b (the first one was clean, to be expected, the second not; but marked clean with fsck). Then I mounted it again: # fsck /dev/sd3b ** /dev/rsd3b ** Last Mounted on /mnt ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups SUMMARY INFORMATION BAD SALVAGE? [Fyn?] SALVAGE? [Fyn?] y BLK(S) MISSING IN BIT MAPS SALVAGE? [Fyn?] y 1 files, 1 used, 128675303 free (15 frags, 16084411 blocks, 0.0% fragmentation) MARK FILE SYSTEM CLEAN? [Fyn?] y * FILE SYSTEM WAS MODIFIED * # mount /dev/sd3b /mnt/ # cd /mnt/ # ls -l # [that's okay, I never put anything there] # pwd /mnt # echo Nonsense testo [that's not okay, because it got me another hangman] Trace. I bet it is a fatal filesystem panic because your disk is basically hosed. If anyone was interested, I have all the 'trace'es and 'ps'es on camera. I guess it is time for a dmesg as well: OpenBSD 4.4 (GENERIC.MP) #0: Fri Jan 23 14:33:38 SGT 2009 r...@claude2.uwe.uniten.edu.my:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4214460416 (4019MB) avail mem = 4092596224 (3903MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xec000 (62 entries) bios0: vendor HP version D17 date 07/16/2007 bios0: HP ProLiant ML350 G4 acpi0 at bios0: rev 2 acpi0: tables DSDT FACP SPCR MCFG APIC acpi0: wakeup devices acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Xeon(TM) CPU 3.00GHz, 3000.52 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, CNXT-ID,CX16,xTPR,LONG cpu0: 1MB 64b/line 8-way L2 cache cpu0: apic clock running at 200MHz cpu1 at mainbus0: apid 6 (application processor) cpu1: Intel(R) Xeon(TM) CPU 3.00GHz, 3000.11 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, CNXT-ID,CX16,xTPR,LONG cpu1: 1MB 64b/line 8-way L2 cache ioapic0 at mainbus0 apid 8 pa 0xfec0, version 20, 24 pins ioapic1 at mainbus0 apid 9 pa 0xfec1, version 20, 24 pins ioapic1: misconfigured as apic 0, remapped to apid 9 ioapic2 at mainbus0 apid 10 pa 0xfec8, version 20, 24 pins ioapic3 at mainbus0 apid 11 pa 0xfec80400, version 20, 24 pins acpiprt0 at acpi0: bus 1 (IP2P) acpiprt1 at acpi0: bus 2 (IPXB) acpiprt2 at acpi0: bus 6 (PCXA) acpiprt3 at acpi0: bus 9 (PCXB) acpiprt4 at acpi0: bus 5 (PTA0) acpiprt5 at acpi0: bus 13 (PTB0) acpiprt6 at acpi0: bus 16 (PTC0) acpiprt7 at acpi0: bus 0 (PCI0) acpicpu0 at acpi0 acpicpu1 at acpi0 acpitz0 at acpi0: critical temperature 31 degC pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0 Intel E7520 Host rev 0x0c ppb0 at pci0 dev 2 function 0 Intel E7520 PCIE rev 0x0c pci1 at ppb0 bus 5 ppb1 at pci1 dev 0 function 0 Intel PCIE-PCIE rev 0x09 pci2 at ppb1 bus 6 ppb2 at pci1 dev 0 function 2 Intel PCIE-PCIE rev 0x09 pci3 at ppb2 bus 9 ppb3 at pci0 dev 4 function 0 Intel E7520 PCIE rev 0x0c pci4 at ppb3 bus 13 ppb4 at pci0 dev 6 function 0 Intel E7520 PCIE rev 0x0c pci5 at ppb4 bus 16 ppb5 at pci0 dev 28 function 0 Intel 6300ESB PCIX rev 0x02 pci6 at ppb5 bus 2 mpi0 at pci6 dev 3 function 0 Symbios Logic 53c1030 rev 0x08: apic 9 int 0 (irq 5) scsibus0 at mpi0: 16 targets, initiator 7 sd0 at scsibus0 targ 0 lun 0: COMPAQ, BF03688284, HPB3 SCSI3 0/direct fixed sd0: 34732MB, 50824 cyl, 2 head, 699 sec, 512 bytes/sec, 71132000 sec total sd1 at scsibus0 targ 3 lun 0: COMPAQ, BF3008AFEC, HPB1 SCSI3 0/direct fixed sd1: 286102MB, 82594 cyl, 8 head, 886 sec, 512 bytes/sec, 585937500 sec total sd2 at scsibus0 targ 5 lun 0: COMPAQ, BF3008AFEC, HPB1 SCSI3 0/direct fixed sd2: 286102MB, 82594 cyl, 8 head, 886 sec, 512 bytes/sec, 585937500 sec total mpi0: target 0 Sync at 160MHz width 16bit offset 63 QAS 1 DT 1 IU 1 mpi0: target 3 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1 mpi0: target 5 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1 mpi1 at pci6 dev 3 function 1 Symbios Logic 53c1030 rev 0x08: apic 9 int 1 (irq 5) scsibus1 at mpi1: 16 targets, initiator 7 uhci0 at pci0 dev 29 function 0 Intel 6300ESB USB rev 0x02: apic 8 int 16 (irq 5) uhci1 at pci0 dev 29 function 1 Intel 6300ESB USB rev 0x02: apic 8 int 19 (irq 5) Intel 6300ESB WDT rev 0x02 at pci0 dev 29
Re: Audio problems on Lenovo Thinkpad T61 with 4.5
2009/5/13 Ryan Flannery ryan.flann...@gmail.com: I have a Lenovo T61 also, and experienced this problem some time ago. I see from your mixerctl output you have B B inputs.sel6_source=dac2 Jacob suggested I try setting the following: B B mixerctl inputs.sel6_source=dac I nearly went deaf; I had everything up all the way, midway through a brutal death metal song... Anyways, works great now, thank you! -- Samuel 'Shardz' Baldwin - staticfree.info/~samuel
Re: Building OpenBSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric Furman wrote: If you like troubleshooting then OpenBSD is going to be no fun for you. OpenBSD Just Works You'll also find that your best friend is 'man' instead of 'google'. That's an adjustment that takes time for Linux refugees ... ;-) - -- David Talkington dt...@drizzle.com - -- PGP key: http://www.flyingjoke.org/keys/801E3976.asc (What's this? http://en.wikipedia.org/wiki/Digital_signature) iQEcBAEBAgAGBQJKCu5xAAoJEO7jL1CAHjl2v1cH/1dUf7icuvV3A1J59iMcyrtY p7cnXUqFQHjde7MJJ8LfRF90mRPwOA+90fXav52O5nFL9pULCCNcbtHDuFEr981W etWT6xwWaRbzAHRzVT4u3p8OquyCZtd724iU0Hho/Y0sa6Xpkl05r5s9CzfTc1T+ vAKs1+l2FM/1c/+hQB3SSlQTguRLpnxqcR3zwMySPwyghBU/x/mKhTmgRIl+C0vA OkxHzEK8J5wdLLUFoMzCuigDpAMZO7UKYV8mOEgSxXgxh/cQrsVsmvHkL9+mecYu tHpALFpbZeaxBjMaSIit0Pan+y6+oI7OpZZBSzR/NPA4aWBzFm2IjC+B/v4cSE0= =H0YT -END PGP SIGNATURE-
Re: [dera...@cvs.openbsd.org: Re: I would like to send this to misc@ and security-announce@, from me.]
Hi, On Thu, 30.04.2009 at 11:21:50 -0600, Bob Beck b...@openbsd.org wrote: The best place to get OpenBSD is from an official CD set, produced in a secured location FWIW, I have what I think are official CDs, and they contain OS code dated 2009-02-28 22:41 UTC. This means the official code was produced two months before the release date. -- Kind regards, --Toni++
Re: softraid
Marco Peereboom wrote: [push the disk back in] Stale metadata, disk will remain unused from now on. check [pull the other disk] You lose. all data is gone (for all intents and purposes). check # ls -l total 4 -rw-r--r-- 1 root wheel 9 May 13 12:00 testo [everything okay until here] Nope, this comes out of cache. # rm testo rm: testo: Input/output error [I still guess this may happen] Shall happen. Yes. And no. Maybe I wasn't all too clear? My expectation is not (yet) the automatic recovery of the respective half mirror! Sure not! I don't expect miracles. What I do expect, though, is a consistent, defined and predictable state. Please, try to view it from a different perspective. Nobody would voluntary pull out disk A, plug it back after 20 seconds, expecting it to recover the mirror, pull out disk B after another 10 seconds, and plug it back after 20 seconds, and still expect a full mirror! But, and that's a big 'but' for me: some fault might do exactly that, a flimsy controller, a faulty power supply. And then I don't want I/O errors, and neither a panic at reboot. My expectations are much lower, but based on consistency: 0. Running sane raid 1. One drive goes offline What I'd expect, personally, would basically be minimally: A. Immediate info about a drive lost. B. 2 half mirrors remaining that I can plug into another box, at least to access the data on either. C. No further attempt to use that drive that went offline any longer, at least not until a reboot. D. That means, I won't have I/O errors, but the system running happily from the active drive, E. And it means that a reboot will go through smoothly. I am aware that this implies, that when the second drive goes offline as well, that NO more drive is available (even if either came back!). As I mentioned, I request consistency of data, not necessarily uptime. I want to be abe to retrieve the data from the drive that went offline first, and I want to be able to retrieve data from the drive that went offline later. Personally, to me RAID is not failover, or availability, but access to the data up to and until that moment when a drive goes offline. And I want a clean reboot, irrespective of all ups and downs of the drives. Please, correct me if I am wrong! Uwe
Re: Atheros AR9001U chipset - maybe Otus driver ?
Thanks Stuart , I've made some progress but still no connectivity - recent snapshot gets me an otus driver and a man page for instructions to follow I've grabbed the firmware as per the man page and used pkg_add with it which gives me the following in /etc/firmware otus-init otus-licence otus-main Now when I plug the device in, I get umass detection and then detach and then I get otus0 at uhub0 port 1 AVM Berlin FRITZ!WLAN USB Stick N rev 2.00/4.03 addr 2 otus0: could not load init firmware Anyone got any ideas for next steps ? Full demesg and uname 4.5 GENERIC#160 OpenBSD 4.5-current (GENERIC) #160: Tue May 12 20:45:38 MDT 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 897 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,S SE real mem = 267874304 (255MB) avail mem = 250662912 (239MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 02/28/02, BIOS32 rev. 0 @ 0xfd820, SMBIOS rev. 2.3 @ 0xfff (46 entries) bios0: vendor IBM version 16ET29WW (1.09 ) date 02/28/2002 bios0: IBM 26474EG apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xfd7b0/0x850 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdee0/208 (11 entries) pcibios0: PCI Interrupt Router at 000:07:0 (Intel 82371FB ISA rev 0x00) pcibios0: PCI bus #5 is the last bus bios0: ROM list: 0xc/0xc000 0xcc000/0x1800 0xdc000/0x4000! 0xe/0x1 cpu0 at mainbus0: (uniprocessor) pci0 at mainbus0 bus 0: configuration mode 1 (bios) extent `pciio' (0x0 - 0x), flags=0 0x1800 - 0x1847 0x1850 - 0x187f 0x1 - 0x extent `pcimem' (0x0 - 0x), flags=0 0x1000 - 0x9 0xdc000 - 0xfff 0x5000 - 0x5fff 0x5010 - 0x50100fff 0xe800 - 0xe8122fff 0xf000 - 0xfbff 0xfff8 - 0x pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x03 intelagp0 at pchb0 agp0 at intelagp0: aperture at 0xf800, size 0x400 ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x03 pci1 at ppb0 bus 1 extent `ppb0 pcimem' (0x0 - 0x), flags=0 0x0 - 0x vga1 at pci1 dev 0 function 0 S3 Savage/IX-MV rev 0x13 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) cbb0 at pci0 dev 2 function 0 TI PCI1450 CardBus rev 0x03: irq 11 cbb1 at pci0 dev 2 function 1 TI PCI1450 CardBus rev 0x03: irq 11 fxp0 at pci0 dev 3 function 0 Intel 8255x rev 0x0c, i82550: irq 11, address 00:03:47:7b:6d:1e inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4 ATT/Lucent LTMODEM rev 0x01 at pci0 dev 3 function 1 not configured clcs0 at pci0 dev 5 function 0 Cirrus Logic CS4280/46xx CrystalClear rev 0x01: irq 11 ac97: codec id 0x43525914 (Cirrus Logic CS4297A rev 4) ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D piixpcib0 at pci0 dev 7 function 0 Intel 82371AB PIIX4 ISA rev 0x02: SpeedStep pciide0 at pci0 dev 7 function 1 Intel 82371AB IDE rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: IC25N020ATDA04-0 wd0: 16-sector PIO, LBA, 19077MB, 39070080 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: TOSHIBA, DVD-ROM SD-C2512, 1115 ATAPI 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 7 function 2 Intel 82371AB USB rev 0x01: irq 11 piixpm0 at pci0 dev 7 function 3 Intel 82371AB Power rev 0x03: SMI iic0 at piixpm0 cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0xb0 pcmcia0 at cardslot0 cardslot1 at cbb1 slot 1 flags 0 cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0xb0 pcmcia1 at cardslot1 isa0 at piixpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 lpt2 at isa0 port 0x3bc/4: polled npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 Intel UHCI root hub rev 1.00/1.00 addr 1 biomask effd netmask effd ttymask mtrr: Pentium Pro MTRR support softraid0 at root root on wd0a swap on wd0b dump on wd0b clcs0: firmware loaded audio0 at clcs0 umass0 at uhub0 port 1 configuration 1 interface 0 AVM Berlin FRITZ!WLAN USB Stick N rev 2.00/4.03 addr 2 umass0: using ATAPI over Bulk-Only scsibus1 at umass0: 2 targets, initiator 0 cd1 at scsibus1 targ 1 lun 0: FRITZ!, WLAN selfinstall, 1.00 ATAPI 5/cdrom removable cd1 detached scsibus1 detached umass0 detached otus0
Re: mDNS
On Wed, May 13, 2009 at 8:55 AM, Antoine Jacoutot ajacou...@bsdfrog.org wrote: On Wed, 13 May 2009, Marco Peereboom wrote: I need an mdns solution as well. If you have something working please let me know. I'm working on avahi which I intend to finish at c2k9. Thank you!
Re: usb ethernet needs promisc after mac change (fixed with patch)
Yes, I've committed this. So future snaps and 4.6 will have it. On Tue, May 12, 2009 at 08:29:35PM +0200, Walter Haidinger wrote: I got a patch to try from Jonathan Gray. I've applied the patch to the 4.4 sources (if_axe.c revision 1.85) and compiled a new GENERIC kernel. Problem fixed! :-) I just hope this will go into 4.6. Well, below is Jonathan's patch. Thanks very much for the quick fix! Regards, Walter Jonathan Gray wrote: The original axe chip didn't support this newer ones apparently do, try this (untested) diff: Index: if_axe.c === RCS file: /cvs/src/sys/dev/usb/if_axe.c,v retrieving revision 1.91 diff -u -p -r1.91 if_axe.c --- if_axe.c 28 Nov 2008 02:44:18 - 1.91 +++ if_axe.c 12 May 2009 13:57:46 - @@ -1243,6 +1243,11 @@ axe_init(void *xsc) */ axe_reset(sc); + /* set MAC address */ + if (sc-axe_flags AX178 || sc-axe_flags AX772) + axe_cmd(sc, AXE_178_CMD_WRITE_NODEID, 0, 0, + sc-arpcom.ac_enaddr); + /* Enable RX logic. */ /* Init RX ring. */
Re: softraid
Yes. And no. Yes and yes. This stuff is binary. Maybe I wasn't all too clear? My expectation is not (yet) the automatic recovery of the respective half mirror! Sure not! I don't expect miracles. What I do expect, though, is a consistent, defined and predictable state. Your expectations are out of whack with reality. Please, try to view it from a different perspective. Nobody would voluntary pull out disk A, plug it back after 20 seconds, expecting it to recover the mirror, pull out disk B after another 10 seconds, and plug it back after 20 seconds, and still expect a full mirror! The plugging in of the disk is a non-event. The disk is dead to the OS and by extension to softraid. But, and that's a big 'but' for me: some fault might do exactly that, a flimsy controller, a faulty power supply. And then I don't want I/O errors, and neither a panic at reboot. My expectations are much lower, but based on consistency: Panics shouldn't happen and I'd love to see traces so that I can fix those. 0. Running sane raid 1. One drive goes offline What I'd expect, personally, would basically be minimally: A. Immediate info about a drive lost. That is there. And you haven't shown me any evidence it isn't. B. 2 half mirrors remaining that I can plug into another box, at least to access the data on either. No, 1 half mirror; the other one is basically lost. You got an IO error for some reason. There is no telling what didn't get written to it after the remaining chunk continued on its merry way. C. No further attempt to use that drive that went offline any longer, at least not until a reboot. Right, and softraid will detect that it went tits up prior and ignore it. D. That means, I won't have I/O errors, but the system running happily from the active drive, Right. E. And it means that a reboot will go through smoothly. Right. I am aware that this implies, that when the second drive goes offline as well, that NO more drive is available (even if either came back!). As I mentioned, I request consistency of data, not necessarily uptime. I want to be abe to retrieve the data from the drive that went offline first, and I want to be able to retrieve data from the drive that went offline later. Personally, to me RAID is not failover, or availability, but access to the data up to and until that moment when a drive goes offline. And I want a clean reboot, irrespective of all ups and downs of the drives. There is no way for softraid to know if you ripped out the last drive and then use it on another box or reboot it with it reinserted. Softraid can only keep state on its disks and if you rip them all out state can no longer be kept. If you need way more fancy raid then this you should use mfi or ami. Inherent to software RAID there isn't any hardware assist such as flash to keep state.
OpenBSD Libs
Hi all, I've been working on a project to create a smaller, functional version of OpenBSD (50MB). One thing that I've noticed while carrying out this project is that there are four types of libraries, eg: libssl.a libssl.so.14.0 libssl_p.a libssl_pic.a What I would like to know is why are there four different types of libraries? Since disk consumption is a severe constraint, I would like to know which of these are of paramount importance, mandatory for the proper system operation. Thanks in advance for the group's attention. -- Joco Salvatti Graduated in Computer Science Federal University of Para - UFPA - Brazil E-Mail: salva...@gmail.com
Re: OpenBSD Libs
They're meant for different types of linking -- static, dynamic, position independent, etc. In general, you need to decide what executables you're going to run, and figure out which libraries they depend on. Take care, Marti 2009/5/13 Joco Salvatti salva...@gmail.com: Hi all, I've been working on a project to create a smaller, functional version of OpenBSD (50MB). One thing that I've noticed while carrying out this project is that there are four types of libraries, eg: libssl.a libssl.so.14.0 libssl_p.a libssl_pic.a What I would like to know is why are there four different types of libraries? Since disk consumption is a severe constraint, I would like to know which of these are of paramount importance, mandatory for the proper system operation. Thanks in advance for the group's attention. -- Joco Salvatti Graduated in Computer Science Federal University of Para - UFPA - Brazil E-Mail: salva...@gmail.com -- Systems Programmer, Principal Electrical Computer Engineering The University of Arizona ma...@arizona.edu
Re: sendmail vs. other MTAs
On 5/11/09 7:45 PM, Henning Brauer wrote: exim is a piece of shit using the wrong design that sendmail abondoned long ago.and wasn't it GPL or some other unfree license anyway? postfix is not free. but there is some rumor in usr.sbin/smtpd/ ... Sounds like you never tried exim, or at least v4. Currently, no other MTA is able to do what exim does. Its licence may not be the best one, but it is able to do more than any other existing MTA. Security wise, it may not seem the best one, but did you see many security issues with exim? I am waiting smtpd though, but I doubt it will be able replace my exim installations any time soon.
Re: sendmail vs. other MTAs
I am waiting smtpd though, but I doubt it will be able replace my exim installations any time soon. The best part is that noone cares about that.
Re: sendmail vs. other MTAs
On 5/13/09 11:44 PM, Johan Beisser wrote: On Wed, May 13, 2009 at 2:38 PM, Renaud Allardren...@allard.it wrote: Sounds like you never tried exim, or at least v4. Currently, no other MTA is able to do what exim does. Its licence may not be the best one, but it is able to do more than any other existing MTA. Such as? Very deep and very complex ACLs with point in time in SMTP communication that any other MTA can do. [demime 1.01d removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
Re: azalia
On some systems, when I have muted the sound, and then adjust it up and down using the hardware keys, it unmutes it for me. I'm not 100% sure I want this, but it may be the expected behaviour. On 2009 May 04 (Mon) at 08:21:52 + (+), Jacob Meuser wrote: :I put a lot of work into azalia(4) in the last release cycel, and I'd :like to be able to say, when 4.6 release comes, that azalia is :completed. : :by completed I mean it just works as expected, by default, everywhere. : :so, if you are using OpenBSD 4.5 or -current, and you have *any* :issues with azalia(4) (I mean anything, even if it seems small or :is not really a bug but I change this everytime), please let me :know. : :thanks. : :-- :jake...@sdf.lonestar.org :SDF Public Access UNIX System - http://sdf.lonestar.org : -- (null cookie; hope that's ok)
Re: sendmail vs. other MTAs
On Wed, May 13, 2009 at 2:38 PM, Renaud Allard ren...@allard.it wrote: Sounds like you never tried exim, or at least v4. Currently, no other MTA is able to do what exim does. Its licence may not be the best one, but it is able to do more than any other existing MTA. Such as? I please ignorance, I haven't ever used exim.
Re: UTF-8 on the file system?
2009/5/13 Christian Weisgerber na...@mips.inka.de: Being able to use it with a Unix-style filesystem is one of UTF-8's design principles. All ASCII characters (0-127) represent themselves; all characters 127 are represented by sequences of bytes with the top bit set. I recently looked into this. Apologies if this is old news to people, but I personally found it noteworthy how e.g. UTF-8 Unicode characters are defined. I looked at this: http://en.wikipedia.org/wiki/UTF-8#Description The thing is, anything above the old backwards-compatible ASCII 0-127 chars will most likely be listed in character tables as U+abcd, where abcd is a hex number (it might even be 6 digits). But as soon as you're above the old ASCII 0-127 character space, the U+abcd hex number is not the hex number you will see if you look at the string with hexdump -C. That's because certain bits are kind of preordained and prescribed by the standard. The table at the above Wikipedia link explains how you can get from the U+abcd hex to the actual hex you'd see on disk and vice versa. (Pay attention to the underlined parts vs. the non-underlined parts and you'll quickly get it.) Again, maybe you all know this, but I only learned this recently; maybe this helps somebody; otherwise sorry for the noise. regards, --ropers
Re: HD 'Analysis'
I once wrote a fancy dd to recover a disk that jordan used for pictures. It worked well enough to get the crap off before the disk totally. Anyway I dusted it off and added a man page and stuff. Have a look at http://www.peereboom.us/diskrescue/ if you want to play. I'll add some more language to the man page when I get time.
CUPS Printing Problem
I'm new to OpenBSD. I recently installed 4.5. It seems to be working well except for this CUPS printing problem. My printer is an HP DeskJet connected to the parallel port. The CUPS driver is running. Here's a line from dmesg: lpt0 at isa0 port 0x378/4 irq 7 Here's the OpenBSD lpinfo output: # /usr/local/sbin/lpinfo -v network socket network http network ipp network lpd direct usb:/dev/ulpt0 direct usb:/dev/ulpt1 # When I boot Debian Lenny on this same computer, I see this: dada...@swing:~$ /usr/sbin/lpinfo -v network socket network beh direct hpfax direct hp network http network ipp network lpd direct parallel:/dev/lp0 direct scsi serial serial:/dev/ttyS0?baud=115200 dada...@swing:~$ With Debian, I use parallel:/dev/lp0 as the CUPS URI and printing works fine. It seems like the OpenBSD lpinfo output should include a line like direct parallel:/dev/lpt0, but as you can see, it's not there. Can someone tell me what's wrong here? Do I need to install some other package? Duane
Re: sendmail vs. other MTAs
Theo de Raadt wrote: I am waiting smtpd though, but I doubt it will be able replace my exim installations any time soon. The best part is that noone cares about that. Not totally true I hope. Many does, just doesn't look like it. But, you are 150% right however, it sure DO NOT get the RESPECT it deserves! Very sad!
Re: sendmail vs. other MTAs
On Thu, May 14, 2009 at 12:36 AM, Daniel Ouellet dan...@presscom.net wrote: Not totally true I hope. Many does, just doesn't look like it. But, you are 150% right however, it sure DO NOT get the RESPECT it deserves! I believe he meant that no one cares about the fact that someone might be able to replace his installations of exim with some other $mta Cheers, Steph
Re: CUPS Printing Problem
On Wed, 13 May 2009 16:20:30 -0700 Duane A. Damiano dada...@comcast.net wrote: I'm new to OpenBSD. I recently installed 4.5. It seems to be working well except for this CUPS printing problem. My printer is an HP DeskJet connected to the parallel port. Might just be me, but I hate CUPS. Try foomatic-rip together with the appropriate PPD and set up your /etc/printcap. Here's mine for a hp LaserJet 1010 $ cat /etc/printcap lp|LaserJet:\ :lp=/dev/ulpt0:\ :af=/etc/foomatic/HP-LaserJet_1010-hpijs.ppd:\ :if=/usr/local/bin/foomatic-rip:\ :sd=/var/spool/output:\ :lf=/var/log/lpd-errs:\ :sh: Just my 0.2 EUR.
Re: softraid
Marco Peereboom slash at peereboom.us writes: Maybe I wasn't all too clear? My expectation is not (yet) the automatic recovery of the respective half mirror! Sure not! I don't expect miracles. What I do expect, though, is a consistent, defined and predictable state. Your expectations are out of whack with reality. Marco, I hope not. I think this is why I am using OpenBSD, e.g. Predictability is number one for security, so consistency is a must as well. Though we seem to agree what softraid should be doing from the statements below. I propose to tar all photos and send them to you privately. 0. Running sane raid 1. One drive goes offline What I'd expect, personally, would basically be minimally: A. Immediate info about a drive lost. That is there. And you haven't shown me any evidence it isn't. You are right. I simply could not read from the man page the most obvious: that the state is displayed without any options (and me stupid tried almost all options!). So I guess it still is a cronjob to scan for 'degraded'? B. 2 half mirrors remaining that I can plug into another box, at least to access the data on either. No, 1 half mirror; the other one is basically lost. You got an IO error for some reason. There is no telling what didn't get written to it after the remaining chunk continued on its merry way. Good to know. C. No further attempt to use that drive that went offline any longer, at least not until a reboot. Right, and softraid will detect that it went tits up prior and ignore it. Good D. That means, I won't have I/O errors, but the system running happily from the active drive, Right. Good E. And it means that a reboot will go through smoothly. Right. Good. Meaning that we agree, and I'm looking forward to try again! Uwe
Re: softraid
Raimo Niskanen raimo+openbsd at erix.ericsson.se writes: Does not really bioctl say nothing? Try bioctl sd3 bioctl softraid0, bioctl -q sd3, bioclt -q softraid0. Thanks, the first two do it; fault was on my side. I did try the latter 2, and both , well, I dunno what they tell me: # bioctl -q sd3 sd3: OPENBSD, SR RAID 1, 003, serial OPENBSD SR RAID 1 003 # bioctl -q softraid0 bioctl: DIOCINQ: No such file or directory Thanks again for the pointer to the first. Maybe an example could be added to the man pages? The existing repair option as I recall it (again, search the archives) is to backup the still working filesystems sd3a and sd3b on the broken mirror, re-create the array from scratch, and restore them. Yes, this is what I was thinking, and it is fine with me. (Though shoving in a new drive followed by -R would definitively be a huge progress.) That sounds fatal. You should repair the RAID mirror, not break the working half. Now both mirror halves are probably regarded as broken. Your RAID is doomed. Sure. Agreed. But reboot ought to go through, as we discussed elsewhere. Thanks again, Uwe
Re: Building OpenBSD
Is that always true? I don't think that's always true. Take wpa-psk which does not just work for me on current or 4.5, or how I've never seen linux unable to sleep a laptop but I've plenty of machines that OpenBSD's sleep is funky with. The important thing is that that's always the -ideal-, wheras in linux the goal is just to get things working, not necessarily working reproducibly well without regard to platform and situations. -Nick On 13/05/2009, Eric Furman ericfur...@fastmail.net wrote: On Wed, 13 May 2009 01:01:40 -0400, Chuck Robey chu...@telenix.org said: between FreeBSD and OpenBSD. Getting this new OS up is really turning out to be fun (I like troubleshooting). If you like troubleshooting then OpenBSD is going to be no fun for you. OpenBSD Just Works This isn't Linux or FreeBSD
Re: softraid
On Wed, May 13, 2009 at 8:12 PM, Uwe Dippel udip...@uniten.edu.my wrote: You are right. I simply could not read from the man page the most obvious: that the state is displayed without any options (and me stupid tried almost all options!). So I guess it still is a cronjob to scan for 'degraded'? sysctl hw.sensors.softraid0 sleep 5 man sensorsd -- GDB has a 'break' feature; why doesn't it have 'fix' too?
Re: sendmail vs. other MTAs
Theo de Raadt wrote: I am waiting smtpd though, but I doubt it will be able replace my exim installations any time soon. The best part is that noone cares about that. Well, in fact you do because you lost time posting this meaningless comment. [demime 1.01d removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]