4.5-stable - berkwdt unkown device while config GENERIC
Hello list, While trying to build base from source on 4.5-stable, I've encountered the following message GENERIC:107: berkwdt0: unknown device 'berkwdt' ***Stop. # cd /dev/ # MAKEDEV all didn't remove the problem. I've seen berkwdt has been added to -current. Did I mess the sources, or perhaps something else is the issue? Many thanks in advance for any hint (preferrably written for DUMMIES).
Re: 4.5-stable - berkwdt unkown device while config GENERIC
On Fri, 5 Jun 2009 12:10:08 +0200 soko.tica soko.t...@gmail.com wrote: Hello list, While trying to build base from source on 4.5-stable, I've encountered the following message GENERIC:107: berkwdt0: unknown device 'berkwdt' ***Stop. # cd /dev/ # MAKEDEV all didn't remove the problem. I've seen berkwdt has been added to -current. Did I mess the sources, or perhaps something else is the issue? Many thanks in advance for any hint (preferrably written for DUMMIES). berkwdt(4) was imported after 4.5, so isn't in 4.5 -stable. Guess you messed up your sourcetree by mixing -current and -stable source. Revisit the FAQ and get yourself a clean -stable source checkout. - Robert
boot problem. in short
Hi all. I have some situation, my machine will not boot after installing amd64_obsd4.5_stable. amd64, 250G harddrive (first physical). 0. 1 Primary 100G NTFS (WindowsXP), 1 Secondary 100G NTFS (just data) 1. have free 36G at the end of drive. 2. in windows make blank primary partition (with powerquest Partition Manager) at all 36G 3. install obsd in this partition 4. reboot Then BIOS, POST,.. and black screen with blinking cursor. (By the way, there was similiar behavior, when i mount ntfs partition in obsd, and forget umount it. After rebooting got black screen. After mount/umount once again all was correct.) Any ideas how to fix?
Re: boot problem. in short
On Fri, Jun 5, 2009 at 6:36 AM, Andrej Elizarov vigilan...@gmail.comwrote: Hi all. I have some situation, my machine will not boot after installing amd64_obsd4.5_stable. amd64, 250G harddrive (first physical). 0. 1 Primary 100G NTFS (WindowsXP), 1 Secondary 100G NTFS (just data) 1. have free 36G at the end of drive. 2. in windows make blank primary partition (with powerquest Partition Manager) at all 36G 3. install obsd in this partition 4. reboot Then BIOS, POST,.. and black screen with blinking cursor. spitball bootloader? e.g., http://www.gnu.org/software/grub/ /spitball (By the way, there was similiar behavior, when i mount ntfs partition in obsd, and forget umount it. After rebooting got black screen. After mount/umount once again all was correct.) Any ideas how to fix?
Problems booting OpenBSD 4.5 on Sun Fire v245
Hi all, I got this panic when I am trying to boot OpenBSD 4.5/sparc64. The installation was painful, the system panic with cdrom access, http access, and only worked with the ftp install by network :( I read the documentation and set security-mode, but it does not work. any hint? ... ppb12 at pci12 dev 0 function 2 Intel 41210 PCIE-PCIX rev 0x09 pci14 at ppb12 bus 4 ebus1 at mainbus0: ign 7c0 flashprom at ebus1 addr 0-1f not configured com0 at ebus1 addr 80-87 ivec 0x8: ns16550a, 16 byte fifo com0: console com1 at ebus1 addr 40-47 ivec 0x9: ns16550a, 16 byte fifo rmc-comm at ebus1 addr 0-7 ivec 0xa not configured gpio at ebus1 addr c0-c0 not configured led0 at ebus1 addr 0-80: rev 0x5a power0 at ebus1 addr 40-c1 ivec 0x3 i2c at mainbus0 not configured data error type 32 sfsr=808008 sfva=4fa6050 afsr=1008000500 afva=7f8100010c0 tf=0xe0017aa8 panic: data fault: pc=101974c addr=4fa6050 sfsr=808008TM,PRIV kdb breakpoint at 1402c80 Stopped at Debugger+0x4: nop data_access_error(e0017aa8, 400, 7f8100010c0, 1008000500, 4fa6050, 8080 08) at data_access_error+0xd8 trapbase_sun4v(1485b48, 5, 0, 0, 0, 0) at trapbase_sun4v+0x8798 openfirmware(4fa66a8, 17, d, f, f005da24, 40008ea2000) at openfirmware+0x44 wdcintr(4fa66a8, 1400, 1000, 180f550, 1c09c00, 5) at wdcintr+0x48 pciide_pci_intr(4fa6000, 0, e0017ec8, 80, 13633e0, 40) at pciide_pci_intr+0 x68 sparc_interrupt(4f97f80, 4f97f80, 0, 0, 14ab928, 5) at sparc_interrupt+ 0x294 cpu_configure(115a4c0, 0, 0, e000, 1, 1) at cpu_configure+0x5c main(0, 113f380, 18, f005da24, f005da24, 1801010) at main+0x478 print_dtlb(10, 1208, 100, fff2ba30, 18, 45) at print_dtlb+0x158 RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC! DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION! ddb ddb trace data_access_error(e0017aa8, 400, 7f8100010c0, 1008000500, 4fa6050, 8080 08) at data_access_error+0xd8 trapbase_sun4v(1485b48, 5, 0, 0, 0, 0) at trapbase_sun4v+0x8798 openfirmware(4fa66a8, 17, d, f, f005da24, 40008ea2000) at openfirmware+0x44 wdcintr(4fa66a8, 1400, 1000, 180f550, 1c09c00, 5) at wdcintr+0x48 pciide_pci_intr(4fa6000, 0, e0017ec8, 80, 13633e0, 40) at pciide_pci_intr+0 x68 sparc_interrupt(4f97f80, 4f97f80, 0, 0, 14ab928, 5) at sparc_interrupt+ 0x294 cpu_configure(115a4c0, 0, 0, e000, 1, 1) at cpu_configure+0x5c main(0, 113f380, 18, f005da24, f005da24, 1801010) at main+0x478 print_dtlb(10, 1208, 100, fff2ba30, 18, 45) at print_dtlb+0x158 ddb ddb ps PID PPID PGRPUID S FLAGS WAIT COMMAND *0 -1 0 0 7 0x80200swapper ddb ddb show registers tstate0x8606 pc 0x1402c84Debugger+0x4 npc0x1402c88Debugger+0x8 ipl 0xf y 0 g0 0 g1 0x180f000sig_filtops g2 0x1 g3 0 g4 0 g50x125b g6 0 g70xe0018000 o0 0x1 o10xe00179b0 o2 0x1567a40mainbus_space_tag+0x1920 o30xe00179b0 o4 0 o50x o60xe0017069 o7 0x1163d28panic+0x88 l0 0x182d3f0__bss_start+0x718 l10x7ff8 l20x8000 l3 0 l4 0x84 l5 0x7 l60xf005dec4 l7 0 more info: 2 sata disk (70GBx2), no video, no keyboard, yes dvdrom. Thanks in advanced. -- -- Fernando Quintero http://nonroot.blogspot.com/ *Just a nonroot User*
Re: boot problem. in short
I try some bootloaders to boot this partition, like MagickBoot and some others (from Hiren's BootCD). Nope. I try reinstall windows - it only copy files to hd, then reboot to continue installation from hd - and again black screen. 2009/6/5 Neal Hogan nealho...@gmail.com On Fri, Jun 5, 2009 at 6:36 AM, Andrej Elizarov vigilan...@gmail.comwrote: Hi all. I have some situation, my machine will not boot after installing amd64_obsd4.5_stable. amd64, 250G harddrive (first physical). 0. 1 Primary 100G NTFS (WindowsXP), 1 Secondary 100G NTFS (just data) 1. have free 36G at the end of drive. 2. in windows make blank primary partition (with powerquest Partition Manager) at all 36G 3. install obsd in this partition 4. reboot Then BIOS, POST,.. and black screen with blinking cursor. spitball bootloader? e.g., http://www.gnu.org/software/grub/ /spitball (By the way, there was similiar behavior, when i mount ntfs partition in obsd, and forget umount it. After rebooting got black screen. After mount/umount once again all was correct.) Any ideas how to fix?
Re: Flapping VPN under load on Soekris
Mikolaj Kucharski wrote: Another scenario. When all VPNs are up and stable (traffic is low) and one of the clients is rebooted at boot time when ipsecctl -f /etc/ipsec.conf is executed it's tunell is setup and _all_ other tunnels are immediately dropped. Am I right to assume that only those tunnels from behind the same NAT device are dropped? There was what I consider a bug in isakmpd that only looked ad IP pairs when matching packets to existing SAs. So any new connection from the same IP would break the existing ones. I don't know if it's actually fixed. See http://kerneltrap.org/index.php?q=mailarchive/openbsd-misc/2008/2/3/704644 krgds /markus
Re: boot problem. in short
On Fri, 5 Jun 2009 16:33:17 +0400, Andrej Elizarov wrote I try some bootloaders to boot this partition, like MagickBoot and some others (from Hiren's BootCD). Nope. I try reinstall windows - it only copy files to hd, then reboot to continue installation from hd - and again black screen. [SNIP] Any ideas how to fix? 1. Boot OpenBSD installation media 2. At Install/Update/Shell prompt, select shell. 3. Examine MBR of boot drive: # fdisk boot drive (e.g.: sd0, wd0) Is there an MBR partition table? Is a partition flagged as boot? Repair as necessary, per fdisk(8) man page 4. Install MBR program onto boot drive, preserving repaired MBR table # fdisk -u your boot drive
Re: boot problem. in short
I'd written: 4. Install MBR program onto boot drive, preserving repaired MBR table # fdisk -u your boot drive You probably do not want to use OpenBSD's fdisk to rewrite the MBR program, it will clear the NT disk signature.
Re: Radeon 9200 PRO + radeondrm freezes OpenBSD 4.5
Howdy Victor? I appear to be having the same problems with the same card. Do you have any news? Thanks, Dhu On Fri, 29 May 2009 10:33:21 +0200 Viktor Varheit viktorvarh...@gmx.de wrote: Hi, according to radeon(4) my graphics card is supported, but I cannot get hardware acceleration to work. Booting with disable radeondrm in UKC and then running startx works fine. Doing the same with enable radeondrm (which is the default in the GENERIC kernel) appears to freeze the machine. The screen goes blank, and the monitor enters standby mode. Sometimes the computer shuts down after pressing the power button, but most of the time it can only be forced off by holding the power button. Trying several options in xorg.conf did not advance things. I booted with a serial console to see if any messages appeared after entering startx. This is what I got: radeondrm0: Setting GART location based on new memory map radeondrm0: writeback test failed radeondrm0: wait idle failed status : 0x80010140 0x radeondrm0: wait idle failed status : 0x80010140 0x radeondrm0: wait idle failed status : 0x80010140 0x ... The last message is repeated over and over until the machine appears to freeze. The time it takes to get to that point varies. After setting 'Option AGPFastWrite on' in xorg.conf no messages were output at all, but that was the only apparent difference. Setting AccelMethod to EXA also did not change anything. Using no xorg.conf at all also did not work. Anyway, here's my xorg.conf and dmesg. I hope someone can give me a hint. Vic +++ xorg.conf +++ Section ServerLayout Identifier X.org Configured Screen 0 Screen0 0 0 InputDeviceMouse0 CorePointer InputDeviceKeyboard0 CoreKeyboard EndSection Section Files ModulePath /usr/X11R6/lib/modules FontPath /usr/X11R6/lib/X11/fonts/misc/ FontPath /usr/X11R6/lib/X11/fonts/TTF/ FontPath /usr/X11R6/lib/X11/fonts/OTF FontPath /usr/X11R6/lib/X11/fonts/Type1/ FontPath /usr/X11R6/lib/X11/fonts/100dpi/ FontPath /usr/X11R6/lib/X11/fonts/75dpi/ EndSection Section Module Load dbe Load dri Load extmod Load glx Load freetype EndSection Section InputDevice Identifier Keyboard0 Driver kbd EndSection Section InputDevice Identifier Mouse0 Driver mouse Option Protocol wsmouse Option Device /dev/wsmouse Option ZAxisMapping 4 5 6 7 EndSection Section Monitor #DisplaySize 340 270 # mm Identifier Monitor0 VendorName ENC ModelNameL557 HorizSync24.0 - 80.0 VertRefresh 50.0 - 75.0 Option DPMS EndSection Section Device Option AGPMode x4 Option BusType AGP# [str] #Option AGPFastWrite on # [bool] #Option AccelMethod EXA # str Option DRI on # [bool] Identifier Card0 Driver radeon VendorName ATI BoardName Radeon 9200 PRO BusID PCI:1:0:0 EndSection Section Screen Identifier Screen0 Device Card0 MonitorMonitor0 SubSection Display Viewport 0 0 Depth 1 EndSubSection SubSection Display Viewport 0 0 Depth 4 EndSubSection SubSection Display Viewport 0 0 Depth 8 EndSubSection SubSection Display Viewport 0 0 Depth 15 EndSubSection SubSection Display Viewport 0 0 Depth 16 EndSubSection SubSection Display Viewport 0 0 Depth 24 EndSubSection EndSection +++ dmesg +++ OpenBSD 4.5-stable (GENERIC) #0: Sun May 3 11:29:20 CEST 2009 v...@overstolz.my.domain:/usr/src/sys/arch/i386/compile/GENERIC cpu0: AMD Athlon(tm) XP 2000+ (AuthenticAMD 686-class, 256KB L2 cache) 1.68 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 804810752 (767MB) avail mem = 769404928 (733MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 10/18/06, BIOS32 rev. 0 @ 0xfdb10, SMBIOS rev. 2.3 @ 0xf0630 (21 entries) bios0: vendor American Megatrends Inc. version P2.80 date 10/18/2006 bios0: American Megatrends Inc. K7S41GX acpi0 at bios0: rev 0 acpi0: tables DSDT FACP APIC acpi0: wakeup devices PS2M(S4) PS2K(S4) UAR1(S4) USB1(S4) USB2(S4) EHCI(S4) LAN_(S4) MDM_(S4) AUD_(S4) PCI0(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 268MHz ioapic0 at
Re: Radeon 9200 PRO + radeondrm freezes OpenBSD 4.5
On Fri, 5 Jun 2009 06:54:05 -0600 Duncan Patton a Campbell campb...@neotext.ca wrote: Howdy Victor? I appear to be having the same problems with the same card. Do you have any news? Thanks, Dhu I read somewhere to disable the radeondrm driver in kernel and this has worked so far. Dhu On Fri, 29 May 2009 10:33:21 +0200 Viktor Varheit viktorvarh...@gmx.de wrote: Hi, according to radeon(4) my graphics card is supported, but I cannot get hardware acceleration to work. Booting with disable radeondrm in UKC and then running startx works fine. Doing the same with enable radeondrm (which is the default in the GENERIC kernel) appears to freeze the machine. The screen goes blank, and the monitor enters standby mode. Sometimes the computer shuts down after pressing the power button, but most of the time it can only be forced off by holding the power button. Trying several options in xorg.conf did not advance things. I booted with a serial console to see if any messages appeared after entering startx. This is what I got: radeondrm0: Setting GART location based on new memory map radeondrm0: writeback test failed radeondrm0: wait idle failed status : 0x80010140 0x radeondrm0: wait idle failed status : 0x80010140 0x radeondrm0: wait idle failed status : 0x80010140 0x ... The last message is repeated over and over until the machine appears to freeze. The time it takes to get to that point varies. After setting 'Option AGPFastWrite on' in xorg.conf no messages were output at all, but that was the only apparent difference. Setting AccelMethod to EXA also did not change anything. Using no xorg.conf at all also did not work. Anyway, here's my xorg.conf and dmesg. I hope someone can give me a hint. Vic +++ xorg.conf +++ Section ServerLayout Identifier X.org Configured Screen 0 Screen0 0 0 InputDeviceMouse0 CorePointer InputDeviceKeyboard0 CoreKeyboard EndSection Section Files ModulePath /usr/X11R6/lib/modules FontPath /usr/X11R6/lib/X11/fonts/misc/ FontPath /usr/X11R6/lib/X11/fonts/TTF/ FontPath /usr/X11R6/lib/X11/fonts/OTF FontPath /usr/X11R6/lib/X11/fonts/Type1/ FontPath /usr/X11R6/lib/X11/fonts/100dpi/ FontPath /usr/X11R6/lib/X11/fonts/75dpi/ EndSection Section Module Load dbe Load dri Load extmod Load glx Load freetype EndSection Section InputDevice Identifier Keyboard0 Driver kbd EndSection Section InputDevice Identifier Mouse0 Driver mouse Option Protocol wsmouse Option Device /dev/wsmouse Option ZAxisMapping 4 5 6 7 EndSection Section Monitor #DisplaySize 340 270 # mm Identifier Monitor0 VendorName ENC ModelNameL557 HorizSync24.0 - 80.0 VertRefresh 50.0 - 75.0 Option DPMS EndSection Section Device Option AGPMode x4 Option BusType AGP # [str] #Option AGPFastWrite on # [bool] #Option AccelMethod EXA # str Option DRI on # [bool] Identifier Card0 Driver radeon VendorName ATI BoardName Radeon 9200 PRO BusID PCI:1:0:0 EndSection Section Screen Identifier Screen0 Device Card0 MonitorMonitor0 SubSection Display Viewport 0 0 Depth 1 EndSubSection SubSection Display Viewport 0 0 Depth 4 EndSubSection SubSection Display Viewport 0 0 Depth 8 EndSubSection SubSection Display Viewport 0 0 Depth 15 EndSubSection SubSection Display Viewport 0 0 Depth 16 EndSubSection SubSection Display Viewport 0 0 Depth 24 EndSubSection EndSection +++ dmesg +++ OpenBSD 4.5-stable (GENERIC) #0: Sun May 3 11:29:20 CEST 2009 v...@overstolz.my.domain:/usr/src/sys/arch/i386/compile/GENERIC cpu0: AMD Athlon(tm) XP 2000+ (AuthenticAMD 686-class, 256KB L2 cache) 1.68 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 804810752 (767MB) avail mem = 769404928 (733MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 10/18/06, BIOS32 rev. 0 @ 0xfdb10, SMBIOS rev. 2.3 @ 0xf0630 (21 entries) bios0: vendor American Megatrends Inc. version P2.80 date 10/18/2006 bios0: American Megatrends Inc. K7S41GX acpi0 at bios0: rev 0 acpi0: tables DSDT FACP APIC acpi0: wakeup devices PS2M(S4) PS2K(S4) UAR1(S4) USB1(S4)
tmux vs wake
Hi all, I'm a little bit curious about why there is place in bin for tmux(1) and there is no place for wake(8). In my opinion it's a little bit unfair. Could someone explain it? Information about why wake(8) was removed: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/wake/Attic/Makefile?hideattic=0;only_with_tag=HEAD Cheers!
Re: tmux vs wake
window was removed and tmux was added. -Mensagem original- De: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] Em nome de Pawlowski Marcin Piotr Enviada: sexta-feira, 5 de Junho de 2009 16:29 Para: misc@openbsd.org Assunto: tmux vs wake Hi all, I'm a little bit curious about why there is place in bin for tmux(1) and there is no place for wake(8). In my opinion it's a little bit unfair. Could someone explain it? Information about why wake(8) was removed: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/wake/Attic/Makefile?hidea ttic=0;only_with_tag=HEAD Cheers!
Questions about OpenBGPD setup
Hi Misc, I'm thinking about the best way to accomplish a redundant BGP setup with two boxes running OpenBGPD. I know there are 2 ways that are frequently suggested: First one: active / passive setup with depend on. Bad because sessions are reset, and bad as well because one router idles while the other one has to deal with all packets Second, better one: one carrier per router and linking them together with OSPF and iBGP as discussed in Claudio's papers But there are still a few things I don't like about the second way: I would prefer to connect both carriers to both routers so that still both carriers remain active when one router fails. In addition to that I need either 2 extra machines for running OSPF or traffic might flow twice over one single router which decreases pps performance. Now my idea looks like that: carrier1 carrier2carrier1 carrier2 | | | | |em0 |em1|em0 |em1 |metric50 |metric100|metric100 |metric50 | | | | -- --- | | router1 router2 | | |em2 |em2 |carp with arp |carp with arp |loadbalancing |loadbalancing | | coreswitch1-coreswitch2 | | |RSTP |RSTP | | switchN--- | serverN My targets are: Quite evenly load balancing to reduce pps per router. Full redundancy - carrier, router or coreswitch can fail without service interruption. Avoid additional routers running OSPF. So finally here come my questions: Is this idea that I'm figuring out possible or have I missed something? Has anyone set up such an architecture before? Any hints or suggestions for improvements? Do I reach all my targets: can I avoid OSPF and master/slave operation that way while still having full redundancy without resetting sessions?
Re: tmux vs wake
On Fri, 5 Jun 2009, Pawlowski Marcin Piotr wrote: Hi all, I'm a little bit curious about why there is place in bin for tmux(1) and there is no place for wake(8). In my opinion it's a little bit unfair. Could someone explain it? life isn't fair... tmux replaced window. one removed, one added. -moj Information about why wake(8) was removed: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/wake/Attic/Makefile?hideattic=0;only_with_tag=HEAD Cheers!
Re: tmux vs wake
On Fri, 5 Jun 2009 17:53:11 +0200 (MEST) Mats O Jansson m...@cntw.com wrote: On Fri, 5 Jun 2009, Pawlowski Marcin Piotr wrote: Hi all, I'm a little bit curious about why there is place in bin for tmux(1) and there is no place for wake(8). In my opinion it's a little bit unfair. Could someone explain it? life isn't fair... tmux replaced window. one removed, one added. Thanks, I didn't noticed that. No more questions. Cheers.
Re: tmux vs wake
hi, they're not related to each other, so please stop whining. but i'm happy to have tmux(1) in base because most of the openbsd users/hackers i know used to install the screen port on their systems which is not needed anymore. tmux is nice, it is actively maintained and developed in the tree, and it is more than a replacement for screen. so a possible explanation is that tmux(1) is more important than wake(8). reyk On Fri, Jun 05, 2009 at 05:29:00PM +0200, Pawlowski Marcin Piotr wrote: Hi all, I'm a little bit curious about why there is place in bin for tmux(1) and there is no place for wake(8). In my opinion it's a little bit unfair. Could someone explain it? Information about why wake(8) was removed: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/wake/Attic/Makefile?hideattic=0;only_with_tag=HEAD Cheers!
correct way to call execve() with environ?
I want to call execve using my current set of environment variables. From the manpage: EXECVE(2) int execve(const char *path, char *const argv[], char *const envp[]); ENVIRON(7) extern char **environ; An array of strings called the ``environment'' is made available by execve(2) when a process begins. execve() wants char *const envp[] environ provides char ** environ is provided by execve from envp. How do I pass the environment into execve without raising a compiler warning about incompatible pointer types? Ted -- There's a party in your skull. And you're invited! Name:Ted Walther Phone: 604-755-7732 Skype: tederific Email: t...@reactor-core.org Address: 1755 246 St, LANGLEY BC V2Z1G4
Re: Problems booting OpenBSD 4.5 on Sun Fire v245
I got this panic when I am trying to boot OpenBSD 4.5/sparc64. The installation was painful, the system panic with cdrom access, http access, and only worked with the ftp install by network :( I read the documentation and set security-mode, but it does not work. On a few sparc64 machines, with specific models of cdrom drives, we hit a race in the ide driver, probably related to the cruddy chipset Sun uses. We've hunted for it but we can't find the bug yet. You could try -current. As a bonus, the install is way easier.
Re: correct way to call execve() with environ?
On Fri, Jun 5, 2009 at 12:15 PM, Ted Walther t...@reactor-core.org wrote: execve() wants char *const envp[] environ provides char ** environ is provided by execve from envp. How do I pass the environment into execve without raising a compiler warning about incompatible pointer types? What warning are you getting? What's your source?
Re: correct way to call execve() with environ?
Hi Ted, I want to call execve using my current set of environment variables. Any reason not to use plain execv(3)? Which problem are you trying to solve? Yours, Ingo -- I like SEE ALSO.
Re: correct way to call execve() with environ?
On Fri, Jun 05, 2009 at 12:27:12PM -0400, Ted Unangst wrote: On Fri, Jun 5, 2009 at 12:15 PM, Ted Walther t...@reactor-core.org wrote: execve() wants ? char *const envp[] environ provides char ** environ is provided by execve from envp. How do I pass the environment into execve without raising a compiler warning about incompatible pointer types? What warning are you getting? What's your source? My apologies. I was abusing const. I must have been using the function prototype from an other OS than OpenBSD. Here was my sample that caused the error: #include unistd.h #include stdlib.h extern char **environ; void my_exec(const char *f, const char *const *a, const char *const *e) { /* do some stuff ... then: */ execve(f,a,e); } int main(int argc, char **argv) { my_exec(*argv,argv+1,environ); exit(0); } The fix was to remove the extraneous consts from arg2 and arg3. -my_exec(const char *f, const char *const *a, const char *const *e) { +my_exec(const char *f, char *const a[], char *const e[]) { Ted -- There's a party in your skull. And you're invited! Name:Ted Walther Phone: 604-755-7732 Skype: tederific Email: t...@reactor-core.org Address: 1755 246 St, LANGLEY BC V2Z1G4
Re: boot problem. in short
Thanks, i'll try. Just an idea. Signature is already cleared. How can i test it? 2009/6/5 Josh Grosse j...@jggimi.homeip.net I'd written: 4. Install MBR program onto boot drive, preserving repaired MBR table # fdisk -u your boot drive You probably do not want to use OpenBSD's fdisk to rewrite the MBR program, it will clear the NT disk signature.
Thinkpad T42 panic on i386 snapshot bsd.rd
Trying to upgrade to latest i386 snap (dated 6/4/09) on an IBM Thinkpad T42 produces the following panic: - ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81 pci2 at ppb1 bus 2 mem address conflict 0xb000/0x1000 mem address conflict 0xb100/0x1000 cbb0 at pci2 dev 0 function 0 TI PCI4520 CardBus rev 0x01: irq 11 cbb1 at pci2 dev 0 function 1 TI PCI4520 CardBus rev 0x01: irq 11 em0 at pci2 dev 1 function 0 Intel Pro/1000MT (82540EP) rev 0x03: irq 11, address 00:01:6c:ea:03:f8 iwi0 at pci2 dev 2 function 0 Intel PRO/Wireless 2915ABG rev 0x05: irq11iwi0: could not load cmd ring DMA map uvm_fault(0xd072b960, 0xd23d8000, 0, 1) - e fatal page fault (6) in supervisor mode trap type 6 code 0 eip d03fa3bc cs 8 eflags 10046 cr2 d23d8f84 cpl 0 panic: trap type 6, code=0, pc=d03fa3bc The operating system has halted. Please press any key to reboot. - The machine is currently running the May 18 snap with iwi firmware 3.1 installed. Has anyone else run into this? -- Joe Gidi j...@entropicblur.com
Re: Questions about OpenBGPD setup
* alex sp alex@googlemail.com [2009-06-05 17:55]: I would prefer to connect both carriers to both routers so that still both carriers remain active when one router fails. that is what I do, tho in active-passive and only with the two main upstreams. peerings and less important upstreams via carp. Is this idea that I'm figuring out possible or have I missed something? definately possible. Has anyone set up such an architecture before? ya Any hints or suggestions for improvements? do it :) -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services Dedicated Servers, Rootservers, Application Hosting - Hamburg Amsterdam
Re: boot problem. in short
On Fri, Jun 05, 2009 at 10:53:53PM +0400, Andrej Elizarov wrote: Thanks, i'll try. Just an idea. Signature is already cleared. How can i test it? Step 1. Google for nt disk signature. Step 2. Open the top search result, Windows NT: Disk Management Basics, a link at microsoft.com. Step 3. Search forward for disk signature. Step 4. Read this paragraph. Step 5. Think. Step 6. Search forward for disk signature again. Look at the comments about the disk signature under the section labelled Master Boot Record, that shows a hexdump output of the first sector of a drive. Step 7. Think again. The contents of this first sector can be edited. The dd(1) program included with the ramdisk kernel will allow you copy the sector to a file on removeable media such as diskette or USB stick. A hex editor would be required on another platform could be used, then dd once again could be deployed to write the modified sector back to hard drive.
Re: Thinkpad T42 panic on i386 snapshot bsd.rd
On Fri, 5 Jun 2009, Joe Gidi wrote: Trying to upgrade to latest i386 snap (dated 6/4/09) on an IBM Thinkpad T42 produces the following panic: ... uvm_fault(0xd072b960, 0xd23d8000, 0, 1) - e fatal page fault (6) in supervisor mode trap type 6 code 0 eip d03fa3bc cs 8 eflags 10046 cr2 d23d8f84 cpl 0 panic: trap type 6, code=0, pc=d03fa3bc The operating system has halted. Please press any key to reboot. Hmm, no ddb? A back trace would have _really_ helped. Do you have ddb.panic=0 in /etc/sysctl.conf? If so, please remove it, try the new kernel again and get trace and ps and send those with full dmesg. (See item #5 about halfway down on http://www.openbsd.org/report.html) Philip Guenther
Re: Questions about OpenBGPD setup
Sorry about my unreadable ASCII art, please have a look at: http://nopaste.org/p/aB4Lq6knf Thank you, Henning. I'll set up a test configuration and report how it's working. On Fri, Jun 5, 2009 at 9:26 PM, Henning Brauer lists-open...@bsws.dewrote: * alex sp alex@googlemail.com [2009-06-05 17:55]: I would prefer to connect both carriers to both routers so that still both carriers remain active when one router fails. that is what I do, tho in active-passive and only with the two main upstreams. peerings and less important upstreams via carp. Is this idea that I'm figuring out possible or have I missed something? definately possible. Has anyone set up such an architecture before? ya Any hints or suggestions for improvements? do it :) -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services Dedicated Servers, Rootservers, Application Hosting - Hamburg Amsterdam
Re: tmux vs wake
On Friday 05 June 2009 11:29:00 Pawlowski Marcin Piotr wrote: Hi all, I'm a little bit curious about why there is place in bin for tmux(1) and there is no place for wake(8). In my opinion it's a little bit unfair. Could someone explain it? Information about why wake(8) was removed: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/wake/Attic/Makefile?hide attic=0;only_with_tag=HEAD Cheers! Gotta love it, fan clubs for commands! The proper solution there is to put it back into /usr/src/usr.sbin, link it up, and you'll have it once again. This IS open source, isn't it--if you want to make/keep different commands, you can. You are on your own, but wake(1) is hardly a monster. So while I'd like to see it in the official distribution, the option is there to keep it in *your* distribution. --STeve Andre'
Re: Thinkpad T42 panic on i386 snapshot bsd.rd
On Fri, June 5, 2009 3:35 pm, Philip Guenther wrote: On Fri, 5 Jun 2009, Joe Gidi wrote: Trying to upgrade to latest i386 snap (dated 6/4/09) on an IBM Thinkpad T42 produces the following panic: ... uvm_fault(0xd072b960, 0xd23d8000, 0, 1) - e fatal page fault (6) in supervisor mode trap type 6 code 0 eip d03fa3bc cs 8 eflags 10046 cr2 d23d8f84 cpl 0 panic: trap type 6, code=0, pc=d03fa3bc The operating system has halted. Please press any key to reboot. Hmm, no ddb? A back trace would have _really_ helped. Do you have ddb.panic=0 in /etc/sysctl.conf? If so, please remove it, try the new kernel again and get trace and ps and send those with full dmesg. (See item #5 about halfway down on http://www.openbsd.org/report.html) Philip Guenther Hi Philip, I do not have ddb.panic=0 in /etc/sysctl.conf. Would changing the values in /etc/sysctl.conf even help in this case? The machine is crashing during the kernel probe, before that file is read. The panic does not give me a ddb prompt and I can't seem to break into ddb; ctrl-alt-esc just reboots the machine, as does ctrl-alt-del. Also, the machine has no serial port, so I can't try the serial console trick. I'd very much like to help and give you the information you need, but I'm not sure how to do that at this point. -- Joe Gidi j...@entropicblur.com
Re: Thinkpad T42 panic on i386 snapshot bsd.rd
On Fri, June 5, 2009 3:55 pm, Gonzalo Lionel Rodriguez wrote: What model? Becouse i have the same laptop. This is a 2379-RHU. Dmesg from the current, working snapshot follows: OpenBSD 4.5-current (GENERIC) #10: Mon May 18 21:33:01 MDT 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) M processor 1.80GHz (GenuineIntel 686-class) 1.80 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2 real mem = 1609527296 (1534MB) avail mem = 1546940416 (1475MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 06/18/07, BIOS32 rev. 0 @ 0xfd750, SMBIOS rev. 2.33 @ 0xe0010 (61 entries) bios0: vendor IBM version 1RETDRWW (3.23 ) date 06/18/2007 bios0: IBM 2379RHU apm0 at bios0: Power Management spec V1.2 apm0: battery life expectancy 100% apm0: AC on, battery charge high acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries) pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00) pcibios0: PCI bus #6 is the last bus bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 0xe/0x1 cpu0 at mainbus0: (uniprocessor) cpu0: Enhanced SpeedStep 1800 MHz (1340 mV): speeds: 1800, 1600, 1400, 1200, 1000, 800, 600 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) io address conflict 0x5800/0x8 io address conflict 0x5808/0x4 io address conflict 0x5810/0x8 io address conflict 0x580c/0x4 pchb0 at pci0 dev 0 function 0 Intel 82855PM Host rev 0x03 intelagp0 at pchb0 agp0 at intelagp0: aperture at 0xd000, size 0x1000 ppb0 at pci0 dev 1 function 0 Intel 82855PM AGP rev 0x03 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M10 rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) radeondrm0 at vga1: irq 11 drm0 at radeondrm0 uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 11 uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 11 uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 11 ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81 pci2 at ppb1 bus 2 mem address conflict 0xb000/0x1000 mem address conflict 0xb100/0x1000 cbb0 at pci2 dev 0 function 0 TI PCI4520 CardBus rev 0x01: irq 11 cbb1 at pci2 dev 0 function 1 TI PCI4520 CardBus rev 0x01: irq 11 em0 at pci2 dev 1 function 0 Intel PRO/1000MT (82540EP) rev 0x03: irq 11, address 00:01:6c:ea:03:f8 iwi0 at pci2 dev 2 function 0 Intel PRO/Wireless 2915ABG rev 0x05: irq 11, address 00:13:ce:8b:79:ed cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0xb0 pcmcia0 at cardslot0 cardslot1 at cbb1 slot 1 flags 0 cardbus1 at cardslot1: bus 6 device 0 cacheline 0x8, lattimer 0xb0 pcmcia1 at cardslot1 ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01: 24-bit timer at 3579545Hz pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: HTS541060G9AT00 wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: MATSHITA, UJDA765 DVD/CDRW, 1.70 ATAPI 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: irq 11 iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC2700CL2.5 spdmem1 at iic0 addr 0x51: 1GB DDR SDRAM non-parity PC2700CL2.5 auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x01: irq 11, ICH4 AC97 ac97: codec id 0x41445374 (Analog Devices AD1981B) ac97: codec features headphone, 20 bit DAC, No 3D Stereo audio0 at auich0 Intel 82801DB Modem rev 0x01 at pci0 dev 31 function 6 not configured usb1 at uhci0: USB revision 1.0 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1 isa0 at ichpcib0 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 aps0 at isa0 port 0x1600/31 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 biomask effd netmask effd ttymask mtrr: Pentium Pro MTRR support
Re: Thinkpad T42 panic on i386 snapshot bsd.rd
On Fri, Jun 05, 2009 at 04:11:39PM -0400, Joe Gidi wrote: Also, the machine has no serial port, so I can't try the serial console trick. It does, but you need the port replicator to access it. Maybe you can find one you can borrow. -- Jussi Peltola
Re: tmux vs wake
Pawlowski Marcin Piotr pawlowski...@gmail.com writes: Hi all, I'm a little bit curious about why there is place in bin for tmux(1) and there is no place for wake(8). In my opinion it's a little bit unfair. Could someone explain it? Sure, I'll try to explain. Ready? Brace yourself for the blinding flash of clarity that will shine on this highly mystical perceived inconsistency in the fairness of the decisions made by the developers. Here it comes: Because we wanted to. //art
Voice-chat on OpenBSD with nothing more than aucat and ssh
With the recent work done to the audio system on OpenBSD, a buddy of mine and I figured it should be easy to setup two-way voice-chat between two OpenBSD clients using nothing more than aucat(1) and ssh(1). As we found out, it is both very easy and very usable! We have telephone-quality chatting working with a = 1 second delay in the audio (after a few minutes of chatting, this is unnoticeable). First, a hearty thanks to Jacob Meuser and the other OpenBSD developers who have worked hard on this recently. Your efforts are both noticed and greatly appreciated. Second, I have a couple of questions... 1. We, the two users chatting (users neal and ryan) have ssh accounts on each other's machines. To voice-chat with each other, what we did boils down to the following: ryan# aucat -l ryan# aucat -o - | ssh r...@neals-machine aucat -i - User neal would do the same, only to my (ryan's) machine. When aucat is run in server-mode ('aucat -l') it creates a socket in /tmp/aucat-USERID/default where USERID is the uid of the user who ran the command (aucat -l). For another user (neal) to bind to this socket, we had to make this socket available to the other user, namely ryan# grep ryan /etc/passwd (find ryan's uid, call it RYANSID) ryan# grep neal /etc/passwd (find neal's uid, call it NEALSID) ryan# aucat -l ryan# cd /tmp/ ryan# chmod 755 aucat-RYANSID ryan# ln -s aucat-RYANSIDaucat-NEALSID Neal would do the same on his machine, only reversed. Question: is it possible to run aucat(1) in such a way that the socket it creates in 'global', such that other users can connect to it? A quick perusing of the man/archives and the source says no... but I may be missing something. 2. After doing the above, we would both simply do the following... ryan# aucat -b 1 -r 11000 -o - | ssh r...@neals-machine aucat -b 1 -r 11000 -i - With the above -b and -r flags, the audio was not choppy at all, quite high-quality (equal to telephone quality), and overall very nice. We had about a ~1 second delay in the audio, however (neal's in Chicago, I'm in Cincinnati... we expected this), but could any of the developers familiar with the audio system see a way to perhaps decrease this delay? We played with other rates (-r values), but below 11000 the delay was about the same, and the audio became deeper and more muted. Any other options, to aucat or perhaps audioctl, that one could play with to reduce this? Many thanks to the devs again... this rocks. and it's in base. -ryan
Re: Voice-chat on OpenBSD with nothing more than aucat and ssh
Wow, that's an interesting use of using aucat and ssh, you made me curious and i'm going to try it :-) Gilles On Fri, Jun 05, 2009 at 06:02:01PM -0400, Ryan Flannery wrote: With the recent work done to the audio system on OpenBSD, a buddy of mine and I figured it should be easy to setup two-way voice-chat between two OpenBSD clients using nothing more than aucat(1) and ssh(1). As we found out, it is both very easy and very usable! We have telephone-quality chatting working with a = 1 second delay in the audio (after a few minutes of chatting, this is unnoticeable). First, a hearty thanks to Jacob Meuser and the other OpenBSD developers who have worked hard on this recently. Your efforts are both noticed and greatly appreciated. Second, I have a couple of questions... 1. We, the two users chatting (users neal and ryan) have ssh accounts on each other's machines. To voice-chat with each other, what we did boils down to the following: ryan# aucat -l ryan# aucat -o - | ssh r...@neals-machine aucat -i - User neal would do the same, only to my (ryan's) machine. When aucat is run in server-mode ('aucat -l') it creates a socket in /tmp/aucat-USERID/default where USERID is the uid of the user who ran the command (aucat -l). For another user (neal) to bind to this socket, we had to make this socket available to the other user, namely ryan# grep ryan /etc/passwd (find ryan's uid, call it RYANSID) ryan# grep neal /etc/passwd (find neal's uid, call it NEALSID) ryan# aucat -l ryan# cd /tmp/ ryan# chmod 755 aucat-RYANSID ryan# ln -s aucat-RYANSIDaucat-NEALSID Neal would do the same on his machine, only reversed. Question: is it possible to run aucat(1) in such a way that the socket it creates in 'global', such that other users can connect to it? A quick perusing of the man/archives and the source says no... but I may be missing something. 2. After doing the above, we would both simply do the following... ryan# aucat -b 1 -r 11000 -o - | ssh r...@neals-machine aucat -b 1 -r 11000 -i - With the above -b and -r flags, the audio was not choppy at all, quite high-quality (equal to telephone quality), and overall very nice. We had about a ~1 second delay in the audio, however (neal's in Chicago, I'm in Cincinnati... we expected this), but could any of the developers familiar with the audio system see a way to perhaps decrease this delay? We played with other rates (-r values), but below 11000 the delay was about the same, and the audio became deeper and more muted. Any other options, to aucat or perhaps audioctl, that one could play with to reduce this? Many thanks to the devs again... this rocks. and it's in base. -ryan
Re: Voice-chat on OpenBSD with nothing more than aucat and ssh
2009/6/6, Ryan Flannery ryan.flann...@gmail.com: ryan# grep ryan /etc/passwd man id id -u ryan Best Martin
Re: Voice-chat on OpenBSD with nothing more than aucat and ssh
Well, if you'd like to test with a fellow openbsd user and play around with some of the settings, feel free to hit me up. ps - I'm loving smtpd... your efforts there are also greatly appreciated. On Fri, Jun 5, 2009 at 6:05 PM, Gilles Chehadegil...@openbsd.org wrote: Wow, that's an interesting use of using aucat and ssh, you made me curious and i'm going to try it :-) Gilles On Fri, Jun 05, 2009 at 06:02:01PM -0400, Ryan Flannery wrote: With the recent work done to the audio system on OpenBSD, a buddy of mine and I figured it should be easy to setup two-way voice-chat between two OpenBSD clients using nothing more than aucat(1) and ssh(1). As we found out, it is both very easy and very usable! We have telephone-quality chatting working with a = 1 second delay in the audio (after a few minutes of chatting, this is unnoticeable). First, a hearty thanks to Jacob Meuser and the other OpenBSD developers who have worked hard on this recently. Your efforts are both noticed and greatly appreciated. Second, I have a couple of questions... 1. We, the two users chatting (users neal and ryan) have ssh accounts on each other's machines. To voice-chat with each other, what we did boils down to the following: ryan# aucat -l ryan# aucat -o - | ssh r...@neals-machine aucat -i - User neal would do the same, only to my (ryan's) machine. When aucat is run in server-mode ('aucat -l') it creates a socket in /tmp/aucat-USERID/default where USERID is the uid of the user who ran the command (aucat -l). For another user (neal) to bind to this socket, we had to make this socket available to the other user, namely ryan# grep ryan /etc/passwd (find ryan's uid, call it RYANSID) ryan# grep neal /etc/passwd (find neal's uid, call it NEALSID) ryan# aucat -l ryan# cd /tmp/ ryan# chmod 755 aucat-RYANSID ryan# ln -s aucat-RYANSIDaucat-NEALSID Neal would do the same on his machine, only reversed. Question: is it possible to run aucat(1) in such a way that the socket it creates in 'global', such that other users can connect to it? A quick perusing of the man/archives and the source says no... but I may be missing something. 2. After doing the above, we would both simply do the following... ryan# aucat -b 1 -r 11000 -o - | ssh r...@neals-machine aucat -b 1 -r 11000 -i - With the above -b and -r flags, the audio was not choppy at all, quite high-quality (equal to telephone quality), and overall very nice. We had about a ~1 second delay in the audio, however (neal's in Chicago, I'm in Cincinnati... we expected this), but could any of the developers familiar with the audio system see a way to perhaps decrease this delay? We played with other rates (-r values), but below 11000 the delay was about the same, and the audio became deeper and more muted. Any other options, to aucat or perhaps audioctl, that one could play with to reduce this? Many thanks to the devs again... this rocks. and it's in base. -ryan
Re: Voice-chat on OpenBSD with nothing more than aucat and ssh
Ryan Flannery ha scritto: With the recent work done to the audio system on OpenBSD, a buddy of [snip] audioctl, that one could play with to reduce this? Maybe is stupid but r just my 2 cent , but trying to use blowfish cipher? I noticed a little difference using this cipher when i've to move big files... PS= Thanks for the idea of aucat :P
Re: Voice-chat on OpenBSD with nothing more than aucat and ssh
On Fri, Jun 05, 2009 at 06:02:01PM -0400, Ryan Flannery wrote: With the recent work done to the audio system on OpenBSD, a buddy of mine and I figured it should be easy to setup two-way voice-chat between two OpenBSD clients using nothing more than aucat(1) and ssh(1). As we found out, it is both very easy and very usable! We have telephone-quality chatting working with a = 1 second delay in the audio (after a few minutes of chatting, this is unnoticeable). First, a hearty thanks to Jacob Meuser and the other OpenBSD developers who have worked hard on this recently. Your efforts are both noticed and greatly appreciated. Second, I have a couple of questions... 1. We, the two users chatting (users neal and ryan) have ssh accounts on each other's machines. To voice-chat with each other, what we did boils down to the following: ryan# aucat -l ryan# aucat -o - | ssh r...@neals-machine aucat -i - User neal would do the same, only to my (ryan's) machine. When aucat is run in server-mode ('aucat -l') it creates a socket in /tmp/aucat-USERID/default where USERID is the uid of the user who ran the command (aucat -l). For another user (neal) to bind to this socket, we had to make this socket available to the other user, namely ryan# grep ryan /etc/passwd (find ryan's uid, call it RYANSID) ryan# grep neal /etc/passwd (find neal's uid, call it NEALSID) ryan# aucat -l ryan# cd /tmp/ ryan# chmod 755 aucat-RYANSID ryan# ln -s aucat-RYANSIDaucat-NEALSID Neal would do the same on his machine, only reversed. Question: is it possible to run aucat(1) in such a way that the socket it creates in 'global', such that other users can connect to it? A quick perusing of the man/archives and the source says no... but I may be missing something. not yet. it's a bit of a can of worms ... 2. After doing the above, we would both simply do the following... ryan# aucat -b 1 -r 11000 -o - | ssh r...@neals-machine aucat -b 1 -r 11000 -i - With the above -b and -r flags, the audio was not choppy at all, quite high-quality (equal to telephone quality), and overall very nice. We had about a ~1 second delay in the audio, however (neal's in Chicago, I'm in Cincinnati... we expected this), but could any of the developers familiar with the audio system see a way to perhaps decrease this delay? We played with other rates (-r values), but below 11000 the delay was about the same, and the audio became deeper and more muted. Any other options, to aucat or perhaps audioctl, that one could play with to reduce this? you could run the aucat server process with a smaller buffer. maybe -b 1024. that's pretty low latency, maybe too much even. you could try 8-bit encodings. Many thanks to the devs again... this rocks. and it's in base. -ryan -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
Re: Voice-chat on OpenBSD with nothing more than aucat and ssh
On Fri, Jun 05, 2009 at 06:02:01PM -0400, Ryan Flannery wrote: Any other options, to aucat or perhaps audioctl, that one could play with to reduce this? I forgot to say, audioctl isn't really useful for anything but exploring/debugging. you really shouldn't mess with audioctl on a running stream. -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
Re: Voice-chat on OpenBSD with nothing more than aucat and ssh
Hi! On Fri, Jun 05, 2009 at 06:02:01PM -0400, Ryan Flannery wrote: [...] deeper and more muted. Any other options, to aucat or perhaps audioctl, that one could play with to reduce this? I guess you could try to reduce the buffer size on the aucat *servers* (-b on the aucat *-l* invocations). Kind regards, Hannah.
Re: Thinkpad T42 panic on i386 snapshot bsd.rd
On Fri, 5 Jun 2009, Joe Gidi wrote: Trying to upgrade to latest i386 snap (dated 6/4/09) on an IBM Thinkpad T42 produces the following panic: ... iwi0 at pci2 dev 2 function 0 Intel PRO/Wireless 2915ABG rev 0x05: irq11iwi0: could not load cmd ring DMA map uvm_fault(0xd072b960, 0xd23d8000, 0, 1) - e Looks like this was a latent iwi bug that was tickled by changes in uvm. If that's indeed what got you, then the fix (not my work) is already committed. Philip Guenther
Re: Voice-chat on OpenBSD with nothing more than aucat and ssh
cheers On Fri, Jun 5, 2009 at 6:34 PM, Hannah Schroeter han...@schlund.de wrote: Hi! On Fri, Jun 05, 2009 at 06:02:01PM -0400, Ryan Flannery wrote: [...] deeper and more muted. Any other options, to aucat or perhaps audioctl, that one could play with to reduce this? I guess you could try to reduce the buffer size on the aucat *servers* (-b on the aucat *-l* invocations). Kind regards, Hannah.
Re: Thinkpad T42 panic on i386 snapshot bsd.rd
On Fri, June 5, 2009 8:01 pm, Philip Guenther wrote: On Fri, 5 Jun 2009, Joe Gidi wrote: Trying to upgrade to latest i386 snap (dated 6/4/09) on an IBM Thinkpad T42 produces the following panic: ... iwi0 at pci2 dev 2 function 0 Intel PRO/Wireless 2915ABG rev 0x05: irq11iwi0: could not load cmd ring DMA map uvm_fault(0xd072b960, 0xd23d8000, 0, 1) - e Looks like this was a latent iwi bug that was tickled by changes in uvm. If that's indeed what got you, then the fix (not my work) is already committed. Philip Guenther Yep, I was just informed of this off-list. Thanks for looking into it! -- Joe Gidi j...@entropicblur.com
Package problems after 4.5 upgrade.
I upgraded a system from 4.4 to 4.5. After the upgrade gv failed when run because it couldn't find gv_init.ps. locate didn't show gv_init.ps, and when I tried to list the files in gv I got $ uname -a OpenBSD AddisAbaba.hhadmin.monmouth.edu 4.5 GENERIC#1749 i386 $ echo $PKG_PATH ftp://carroll.cac.psu.edu/pub/OpenBSD/4.5/packages/i386 $ sudo pkg_delete gv gv-3.5.8p4: complete Clean shared items: complete $ sudo pkg_add gv gv-3.5.8p4: complete $ pkg_info -L gv Expected: Bad packing list for inst:gv-3.5.8p4 at /usr/sbin/pkg_info line 316 $ My other openbsd 4.5 system was installed from scratch; gv works there without gv_init.ps, as does pkg_list -L gv. At this point I have exhausted my package knowledge: I don't know why gv is choking on gv_init.ps, and I don't know why pkg listing doesn't work. What might the explanations be?
Computer turns on after turning on with powerdown=YES (4.5 GENERIC i386)
Hi, I'm running OpenBSD 4.5 with a GENERIC kernel (i386), and my computer boots after shutdown when I run halt. It's not the same like rebooting, since when I halt, the computer actually turns off (as in, all the LEDs are off); but when I reboot it, the LEDs remain on. This worked fine in OpenBSD 4.4, the computer turn off at shutdown, and didn't turn on (sic) afterward. Please tell me if you need more information. Motherboard: ASRock 775i65G rc.shutdown: powerdown=YES dmesg: OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Celeron(R) CPU 2.80GHz (GenuineIntel 686-class) 2.80 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR real mem = 2137878528 (2038MB) avail mem = 2058952704 (1963MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 05/28/07, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.4 @ 0xfcd70 (22 entries) bios0: vendor American Megatrends Inc. version P3.20 date 05/28/2007 acpi0 at bios0: rev 0 acpi0: tables DSDT FACP APIC OEMB acpi0: wakeup devices P0P4(S4) MC97(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) EUSB(S4) PS2K(S4) PS2M(S4) UAR1(S4) GBEN(S4) SLPB(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 133MHz ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 1 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P4) acpicpu0 at acpi0 acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: SLPB bios0: ROM list: 0xc/0xa000! pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82865G Host rev 0x02 vga1 at pci0 dev 2 function 0 Intel 82865G Video rev 0x02 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xf000, size 0x800 inteldrm0 at vga1: apic 1 int 16 (irq 10) drm0 at inteldrm0 uhci0 at pci0 dev 29 function 0 Intel 82801EB/ER USB rev 0x02: apic 1 int 16 (irq 10) uhci1 at pci0 dev 29 function 1 Intel 82801EB/ER USB rev 0x02: apic 1 int 19 (irq 3) uhci2 at pci0 dev 29 function 2 Intel 82801EB/ER USB rev 0x02: apic 1 int 18 (irq 5) uhci3 at pci0 dev 29 function 3 Intel 82801EB/ER USB rev 0x02: apic 1 int 16 (irq 10) ehci0 at pci0 dev 29 function 7 Intel 82801EB/ER USB2 rev 0x02: apic 1 int 23 (irq 11) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb0 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xc2 pci1 at ppb0 bus 1 rl0 at pci1 dev 5 function 0 Realtek 8139 rev 0x10: apic 1 int 22 (irq 5), address 00:19:66:19:7a:a5 rlphy0 at rl0 phy 0: RTL internal PHY ichpcib0 at pci0 dev 31 function 0 Intel 82801EB/ER LPC rev 0x02 pciide0 at pci0 dev 31 function 1 Intel 82801EB/ER IDE rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVD-RAM GSA-H20N, 1.01 ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 disabled (no drives) pciide1 at pci0 dev 31 function 2 Intel 82801EB SATA rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide1: using apic 1 int 18 (irq 5) for native-PCI interrupt wd0 at pciide1 channel 0 drive 0: WDC WD800BD-22MRA1 wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 ichiic0 at pci0 dev 31 function 3 Intel 82801EB/ER SMBus rev 0x02: apic 1 int 17 (irq 5) iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 1GB DDR SDRAM non-parity PC3200CL3.0 spdmem1 at iic0 addr 0x52: 1GB DDR SDRAM non-parity PC3200CL3.0 auich0 at pci0 dev 31 function 5 Intel 82801EB/ER AC97 rev 0x02: apic 1 int 17 (irq 5), ICH5 AC97 ac97: codec id 0x434d4983 (C-Media Electronics CMI9761A+) audio0 at auich0 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo 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 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 wbsio0 at isa0 port 0x2e/2: W83627EHF rev 0x63 lm1 at wbsio0 port 0x290/8: W83627EHF npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
Re: Package problems after 4.5 upgrade.
On Fri, Jun 5, 2009 at 6:22 PM, R. Claytonrvclay...@acm.org wrote: I upgraded a system from 4.4 to 4.5. B After the upgrade gv failed when run because it couldn't find gv_init.ps. B locate didn't show gv_init.ps, and when I tried to list the files in gv I got B $ uname -a B OpenBSD AddisAbaba.hhadmin.monmouth.edu 4.5 GENERIC#1749 i386 B $ echo $PKG_PATH B ftp://carroll.cac.psu.edu/pub/OpenBSD/4.5/packages/i386 B $ sudo pkg_delete gv B gv-3.5.8p4: complete B Clean shared items: complete B $ sudo pkg_add gv B gv-3.5.8p4: complete This is WAG, but did/do you have PKG_CACHE defined? --patrick B $ pkg_info -L gv B Expected: Bad packing list for inst:gv-3.5.8p4 at /usr/sbin/pkg_info line 316 B $ My other openbsd 4.5 system was installed from scratch; gv works there without gv_init.ps, as does pkg_list -L gv. B At this point I have exhausted my package knowledge: I don't know why gv is choking on gv_init.ps, and I don't know why pkg listing doesn't work. B What might the explanations be?