Re: Bug 5682

2008-04-17 Thread Rickard Dahlstrand
Otto Moerbeek wrote:
> On Tue, Apr 15, 2008 at 09:41:50PM +0200, Rickard Dahlstrand wrote:
>
>   
>> Thanks, I have sent dmesg and bioctl output for three systems to gnats@, is 
>> there anything else I can do?
>> 
>
> You could prod krw@ and/or dlg@, but the're probably quite busy atm.
>   
This seems like a dead end, I will just patch.

Rickard.



Re: Bug 5682

2008-04-15 Thread Rickard Dahlstrand
Otto Moerbeek wrote:
> On Tue, Apr 15, 2008 at 06:03:53PM +0200, Rickard Dahlstrand wrote:
>
>   
>> Hi,
>>
>> Can someone please commit this, we are suffering from it and would be very 
>> happy not the have to patch manually. It has been running on +3 systems 
>> with the relevant hardware for about 6 months now.
>>
>> Also, what is the correct procedure for getting bugs corrected? When I 
>> search the pr-database there are lots of open bugs.
>>
>> Rickard.
>> 
>
> I now nothing about ciss(4), but if you mail test reports to
> [EMAIL PROTECTED] with the subject Re: Category/Number: title, so in
> ths case
>
>   Re: kernel/5682: fix ciss(4)
>
> the report will be attached to the PR. In that way, useful info does
> not get lost (like your post likely will in all the noise of misc@).
> Please include at least dmesgs with your report, so we can see which
> version of ciss(4) hardware you have tested and on which platforms.
>
> Getting bugs corrected is sometimes hard, but you can make it as easy
> for developers as possible by sending in proper, detailed reports,
> with diffs to fix the problem and test reports on various platforms.
>   
Hi Otto,

Thanks, I have sent dmesg and bioctl output for three systems to gnats@, 
is there anything else I can do?

Rickard.



Bug 5682

2008-04-15 Thread Rickard Dahlstrand

Hi,

Can someone please commit this, we are suffering from it and would be 
very happy not the have to patch manually. It has been running on +3 
systems with the relevant hardware for about 6 months now.


Also, what is the correct procedure for getting bugs corrected? When I 
search the pr-database there are lots of open bugs.


Rickard.



Re: cvs up, no space left in /tmp

2007-08-12 Thread Rickard Dahlstrand
Shawn K. Quinn wrote:
> On Thu, 2007-08-09 at 19:36 +0200, Mackan wrote:
>   
>> Hi,
>>
>> For many months, I've had this in root's crontab:
>>
>> # update src tree
>> 0   4   *   *   *   cd /usr/src && cvs -q up - 
>> rOPENBSD_4_1 -Pd
>>
>> with no problem. For about a week now I get mail from cron about no  
>> space left on device.
>> I need some advise on how to find whats wrong.
>> 
> [...]
>   
>> can't create temporary directory /tmp/cvs-serv19063
>> No space left on device
>> 
> [...]
>   
>> # df -hi
>> Filesystem SizeUsed   Avail Capacity iused   ifree  %iused   
>> Mounted on
>> /dev/wd0a  147M   37.7M102M27%2208   1699012%   /
>> /dev/wd0d  148M104K140M 0%  14   19312 0%   /tmp
>> 
>
> Like, duh, /tmp is full!
>   
Yes, but on the server. I get the same when using Stackens cvs-mirror.

Rickard.



Please betatest the new flashboot binary release.

2007-01-12 Thread Rickard Dahlstrand
Hi,

A new version of flashboot is ready and we need people to betatest
before we put it up.

The release are locate here http://tilde.se/flashboot/download/4.0/

Please report all successfully and unsuccessful results to me!!

.bsd are kernels ready to be uploaded to your existing flashboot system.
.image are diskimages ready to be put on a 128 mb (or larger) flashcard
using "gunzip -c image.gz | dd of=/dev/sd0c" or
http://m0n0.ch/wall/physdiskwrite.php (on windows)
.large are kernels with all the extra list.large tools and a 20 MB
ramdisk instead of the normal 15 MB.

Rickard.



Dead lm-sensor??

2006-11-12 Thread Rickard Dahlstrand
Hi,

Here is two dmegs from two identically pcengines WRAP 2E boxes that
until today had lm77-sensors providing the temperature, but today on of
them don't and I get this:

< "unknown" at iic1 addr 0x48 not configured
---
> lmtemp0 at iic1 addr 0x48: lm77

Is this a hardware failure?? Other than this they are both working fine.

/Rickard.
OpenBSD 3.9 (WRAP12) #0: Mon Sep  4 17:45:51 CEST 2006
[EMAIL PROTECTED]:/home/rd/flashboot/flashboot/obj/WRAP12
cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC" 
586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 133804032 (130668K)
avail mem = 108634112 (106088K)
using 331 buffers containing 1355776 bytes (1324K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(fa) BIOS, date 05/02/05, BIOS32 rev. 0 @ 0xfc5f2
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
sis0 at pci0 dev 14 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 10, 
address 00:0d:b9:01:91:7c
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 15 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 9, 
address 00:0d:b9:01:91:7d
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 16 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 11, 
address 00:0d:b9:01:91:7e
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI" rev 0x00 at pci0 dev 18 function 1 not configured
pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 1-sector PIO, LBA, 122MB, 250880 sectors
wd0(pciide0:0:0): using PIO mode 4
"NS SCx200 AUDIO" rev 0x00 at pci0 dev 18 function 3 not configured
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6 revision 3 
wdstatus 0
ohci0 at pci0 dev 19 function 0 "Compaq USB OpenHost" rev 0x08: irq 9, version 
1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Compaq OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
isa0 at gscpcib0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
midi0 at pcppi0: 
gscsio0 at isa0 port 0x2e/2: SC1100 SIO rev 1: ACB1 ACB2
iic0 at gscsio0
iic1 at gscsio0
"unknown" at iic1 addr 0x48 not configured
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
biomask f3ef netmask ffef ttymask ffef
rd0: fixed, 30720 blocks
dkcsum: wd0 matches BIOS drive 0x80
root on rd0a
rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
clock: unknown CMOS layout
OpenBSD 3.9 (WRAP12) #0: Mon Sep  4 17:45:51 CEST 2006
[EMAIL PROTECTED]:/home/rd/flashboot/flashboot/obj/WRAP12
cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC" 
586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 133804032 (130668K)
avail mem = 108634112 (106088K)
using 331 buffers containing 1355776 bytes (1324K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(fa) BIOS, date 05/02/05, BIOS32 rev. 0 @ 0xfc5f2
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
sis0 at pci0 dev 14 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 10, 
address 00:0d:b9:01:94:ec
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 15 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 9, 
address 00:0d:b9:01:94:ed
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 16 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: irq 11, 
address 00:0d:b9:01:94:ee
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI" rev 0x00 at pci0 dev 18 function 1 not configured
pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 1-sector PIO, LBA, 122MB, 250880 sectors
wd0(pciide0:0:0): using PIO mode 4
"NS SCx200 AUDIO" rev 0x00 at pci0 dev 18 function 3 not configured
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6 revision 3 
wdstatus 9
isa0 at gscpcib0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
midi0 at pcppi0: 
gscsio0 at isa0 port 0x2e/2: SC1100 SIO rev 1: ACB1 ACB2
iic0 at gscsio0
iic1 at gscsio0
lmtemp0 at iic1 add

Re: pf: state insert failed: tree_lan_ext

2006-07-31 Thread Rickard Dahlstrand
Rickard Dahlstrand wrote:
> Darrin Chandler wrote:
>   
>> On Sun, Jul 30, 2006 at 11:11:17PM +0200, Rickard Dahlstrand wrote:
>>   
>> 
>>> Hi,
>>>
>>> With the rulesset:
>>> nat on sis0 from !(sis0) -> (sis0)
>>> rdr on sis0 inet proto udp from any to any port = 12560 -> 192.168.1.10
>>> port 1
>>> rdr on sis0 inet proto udp from any to any port = 12561 -> 192.168.1.10
>>> port 10001
>>> (and pass quick on all if, no keep state)
>>>
>>> I get these errors when running debug misc:
>>> pf: state insert failed: tree_lan_ext lan: 192.168.1.10:1 gwy:
>>> xx.xxx.xxx.xx:12560 ext: uu.uu.uu.uu:18358
>>>
>>> The udp-stream from 192.168.1.10 gets passed OK, but the incoming stream
>>> from uu.uu.uu.uu triggers the above error.
>>>
>>> Anyone has any idea on why this does occur and if there is any way that
>>> I can get it working.
>>>
>>> Thanks, Rickard.
>>> 
>>>   
>> Have you tried using nonat to exclude your rdr ports?
>>   
>> 
> Yes, if I do that it stoppes the outgoing stream as well.
>   
To expand this question a bit, is there a way to instruct nat not to
create a bi-directional state.

Rickard.



Re: pf: state insert failed: tree_lan_ext

2006-07-30 Thread Rickard Dahlstrand
Darrin Chandler wrote:
> On Sun, Jul 30, 2006 at 11:11:17PM +0200, Rickard Dahlstrand wrote:
>   
>> Hi,
>>
>> With the rulesset:
>> nat on sis0 from !(sis0) -> (sis0)
>> rdr on sis0 inet proto udp from any to any port = 12560 -> 192.168.1.10
>> port 1
>> rdr on sis0 inet proto udp from any to any port = 12561 -> 192.168.1.10
>> port 10001
>> (and pass quick on all if, no keep state)
>>
>> I get these errors when running debug misc:
>> pf: state insert failed: tree_lan_ext lan: 192.168.1.10:1 gwy:
>> xx.xxx.xxx.xx:12560 ext: uu.uu.uu.uu:18358
>>
>> The udp-stream from 192.168.1.10 gets passed OK, but the incoming stream
>> from uu.uu.uu.uu triggers the above error.
>>
>> Anyone has any idea on why this does occur and if there is any way that
>> I can get it working.
>>
>> Thanks, Rickard.
>> 
>
> Have you tried using nonat to exclude your rdr ports?
>   
Yes, if I do that it stoppes the outgoing stream as well.

Rickard.



Re: current state of bioctl with the ciss driver?

2006-07-30 Thread Rickard Dahlstrand
Jason Dixon wrote:
> On Jul 30, 2006, at 10:58 AM, Srebrenko Sehic wrote:
>
>> ciss(4) has no bio(4) support, but marco@ might be working on it.
>> Donate a ciss(4) compatible controller to speed things up.
>>
>> On 7/30/06, Robert Urban <[EMAIL PROTECTED]> wrote:
>>> Hello List,
>>>
>>> can someone tell me what the current state of bioctl support is for
>>> the ciss driver?  I've got a ProLiant Dl380 G2 with a "Compaq Smart
>>> Array 5i"
>>> running vanilla 3.9 and there seems to be no support for bioctl.
>
> Indeed.  According to want.html:
>
> "ciss(4) and gdt(4) RAID cards for bio and bioctl development needed
> in Austin, Texas, USA. Contact [EMAIL PROTECTED]"
>
I promised mickey@ some money in return for some ciss logging a while
ago. I have no idea on progress, but there might be something going on
there as well.

Rickard.



pf: state insert failed: tree_lan_ext

2006-07-30 Thread Rickard Dahlstrand
Hi,

With the rulesset:
nat on sis0 from !(sis0) -> (sis0)
rdr on sis0 inet proto udp from any to any port = 12560 -> 192.168.1.10
port 1
rdr on sis0 inet proto udp from any to any port = 12561 -> 192.168.1.10
port 10001
(and pass quick on all if, no keep state)

I get these errors when running debug misc:
pf: state insert failed: tree_lan_ext lan: 192.168.1.10:1 gwy:
xx.xxx.xxx.xx:12560 ext: uu.uu.uu.uu:18358

The udp-stream from 192.168.1.10 gets passed OK, but the incoming stream
from uu.uu.uu.uu triggers the above error.

Anyone has any idea on why this does occur and if there is any way that
I can get it working.

Thanks, Rickard.



Re: Different

2006-01-06 Thread Rickard Dahlstrand
Stuart Henderson wrote:

>On 2006/01/06 17:36, Rickard Dahlstrand wrote:
>  
>
>>When I install using the floppy38.fs image I get le1 as my
>>ethernet-interface and install using ftp. Then I reboot using the
>>standard bsd-kernel I get pcn0 as my ethernet-interface. Dmesg below.
>>
>>
>
>pcn(4) replaced le(4) in the main OS and on RAMDISK_CD but not the
>floppy images.
>  
>
Ok, not a problem really except that the interface configuration made
during the installation is lost after the reboot.

Rickard.



Different

2006-01-06 Thread Rickard Dahlstrand
Hi,

I don't know if this is a problem or not, if it's with vmware or with
obsd. Here's just an observation from me when running obsd under vmware.

When I install using the floppy38.fs image I get le1 as my
ethernet-interface and install using ftp. Then I reboot using the
standard bsd-kernel I get pcn0 as my ethernet-interface. Dmesg below.

Rickard.

dmesg when running floppy38.fs:
OpenBSD 3.8 (RAMDISK) #793: Sat Sep 10 16:02:31 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ ("AuthenticAMD"
686-class, 1024KB L2 cache) 2.46 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
real mem  = 267952128 (261672K)
avail mem = 240267264 (234636K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(fa) BIOS, date 07/29/05, BIOS32 rev. 0 @ 0xfd880
apm0 at bios0: Power Management spec V1.2
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd880/0x780
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x1000 0xdc000/0x4000!
0xe/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x01
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x01
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x08
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 64-sector PIO, LBA, 8192MB, 16777216 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
"Intel 82371AB Power" rev 0x08 at pci0 dev 7 function 3 not configured
vga1 at pci0 dev 15 function 0 "VMware Virtual SVGA II" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
"Symbios Logic 53c1030" rev 0x01 at pci0 dev 16 function 0 not configured
le1 at pci0 dev 17 function 0 "AMD 79c970 PCnet-PCI" rev 0x10: irq 11
le1: address 00:0c:29:03:8e:15
le1: 8 receive buffers, 2 transmit buffers
isa0 at pcib0
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
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask f7e5 netmask ffe5 ttymask ffe7
rd0: fixed, 3800 blocks
dkcsum: wd0 matches BIOS drive 0x80
root on rd0a
rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02



dmesg when running bsd or bsd.rd:
OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ ("AuthenticAMD"
686-class, 1024KB L2 cache) 2.46 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
cpu0: AMD Powernow: FID VID TTP TM
real mem  = 267952128 (261672K)
avail mem = 237481984 (231916K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(fa) BIOS, date 07/29/05, BIOS32 rev. 0 @ 0xfd880
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd880/0x780
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x1000 0xdc000/0x4000!
0xe/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x01
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x01
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x08
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 64-sector PIO, LBA, 8192MB, 16777216 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
"Intel 82371AB Power" rev 0x08 at pci0 dev 7 function 3 not configured
vga1 at pci0 dev 15 function 0 "VMware Virtual SVGA II" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
mpt0 at pci0 dev 16 function 0 "Symbios Logic 53c1030" rev 0x01: irq 9
mpt0: IM support: 0
scsibus0 at mpt0: 16 targets
pcn0 at pci0 dev 17 function 0 "AMD 79c970 PCnet-PCI" rev 0x10,
Am79c970A, rev 0: irq 11, a

Re: adjtime and settimeofday

2005-11-25 Thread Rickard Dahlstrand
Alexander Hall wrote:

> From looking through the kernel code, it does not seem that
> settimeofday(2) resets the action of a previous call to adjtime(2).
> Would it not be reasonable to assume that to happen?
>
> I see four possibilities:
>
> 1. It does reset it. I am wrong. And blind.
> 2. No, it is not reasonable. (Why?)
> 3. It would be reasonable, but it has not been thought of.
> 4. It has been thought of, but noone has sent the code to fix it.
>
> Can anyone enlighten me in this matter?
>
> /Alexander
>
Are there any comments on this?

Rickard.



Re: OpenBSD Desktop Document

2005-11-09 Thread Rickard Dahlstrand
Roy Morris wrote:

> I have been working on a document for newbies that helps
> them put together a basic/functional desktop under OpenBSD.
> If anyone has time, I'd like feed back.
>
> www.openalternatives.com/OpenBSD/OpenBSD-Desktop.pdf
>
> Thanks
> Roy
>

Great effort!



Compiling perl pkg_* to c

2005-10-14 Thread Rickard Dahlstrand
Hi,

I'm working on a installation where I can't install perl and I need to
be able to install packages using pkg_add, pkg_delete etc.

There are two solutions to my problem:
1. If anyone have a c-based pkg_add or pkg_delete that works, this would
be great. (It seems like this was done in c a while back)
2. Try to compile the perl-source into a c-application using perlcc.

So, the best thing would be to get a c-version, does anyone have one of
these?

My second option seems to fail with a core dump:

# perlcc -c
pkg_add  
/usr/bin/perlcc: pkg_add did not compile, which can't happen:
Starting compile
 Walking tree
 OpenBSD::PackingElement::SpecialFile saved (it is in
OpenBSD::PackingElement::FMTREE_DIRS's @ISA)
 OpenBSD::PackingElement::Unique saved (it is in
OpenBSD::PackingElement::SpecialFile's @ISA)
 OpenBSD::PackingElement::Meta saved (it is in
OpenBSD::PackingElement::Unique's @ISA)
 OpenBSD::PackingElement saved (it is in OpenBSD::PackingElement::Meta's
@ISA)
 Exporter saved (it is in Symbol's @ISA)
 OpenBSD::PackingElement::DirBase saved (it is in
OpenBSD::PackingElement::Dir's @ISA)
 OpenBSD::PackingElement::DirlikeObject saved (it is in
OpenBSD::PackingElement::DirBase's @ISA)
 OpenBSD::PackingElement::FileObject saved (it is in
OpenBSD::PackingElement::DirlikeObject's @ISA)
 OpenBSD::PackingElement::Object saved (it is in
OpenBSD::PackingElement::FileObject's @ISA)
 OpenBSD::PackingElement::Action saved (it is in
OpenBSD::PackingElement::ExeclikeAction's @ISA)
 OpenBSD::PackageLocation saved (it is in
OpenBSD::PackageLocation::SCP's @ISA)
 OpenBSD::PackageLocation::FTPorSCP saved (it is in
OpenBSD::PackageLocation::SCP's @ISA)
 OpenBSD::PackingElement::Option saved (it is in
OpenBSD::PackingElement::NoDefaultConflict's @ISA)
 OpenBSD::PackingElement::Annotation saved (it is in
OpenBSD::PackingElement::Ignore's @ISA)
 OpenBSD::PackingElement::Sample saved (it is in
OpenBSD::PackingElement::Sampledir's @ISA)
 OpenBSD::PackingElement::Comment saved (it is in
OpenBSD::PackingElement::ExtraInfo's @ISA)
 OpenBSD::PackingElement::Extra saved (it is in
OpenBSD::PackingElement::Extradir's @ISA)
 IO::Handle saved (it is in IO::File's @ISA)
 OpenBSD::PackageLocation::HTTPorFTP saved (it is in
OpenBSD::PackageLocation::HTTP's @ISA)
 Prescan
 Saving methods
 Bootstrap File::Glob /usr/libdata/perl5/i386-openbsd/5.8.6/XSLoader.pm
 Segmentation fault (core dumped)

#

Rickard.



SMS (mobile phone) authentication

2005-08-27 Thread Rickard Dahlstrand
Hi,

I have a customer that has asked me to build a SMS-authentication
solution for OpenBSD. The idea being (not saying this is a good idea,
but anyway) that when the user connects using ssh, he will get a
sms-message to his phone with a one-time passkey.

I have made it easy for myself and modified the existing login_skey. I
created a new one called login_sms and added the following three lines
to the "case MODE_CHALLENGE"-section:

-SNIPP--
case MODE_CHALLENGE:
haskey = (skeychallenge2(fd, &skey, user, challenge) == 0);

>char cmd[200];
>sprintf(cmd, "/bin/sh /etc/smsscript.sh \"%s\" \"%s\"",
auth_mkvalue(challenge), user);
>system(cmd);

strlcat(challenge, "\nS/Key Password: ", sizeof(challenge));
-SNIPP--

This means that before sending the challenge to the user the system
executes a script with the challenge and the user name as parameters.
The script looks like this:


#!/bin/sh

declare -a pno

# Declare username/phonenumber-combinations here
pno[rd]="46712344554"
pno[skeytest]="46756223452"

# Get passkey
parm1=`/bin/echo "$1" | /usr/bin/cut -f 1 -d " "`
parm2=`/bin/echo "$1" | /usr/bin/cut -f 2,3 -d " "`
key=`/usr/bin/${parm1} -p 1234567890 ${parm2}`

# Send passkey to user
/usr/bin/logger -p "auth.info" "Sending key ${key} for challenge
${parm2} to ${pno[$2]}"


Right now the last line just logs the key to syslog instead of sending
it to a phone. Also not that the otp-key password is hardcoded in the
script. Not really a good idea, but I have no choice. (The file is not
world readable)

Yes, I know this is a hack and that I should probably find something
better to do instead of wasting your time with my crappy code. BUT this
exist, and even thought you don't see the use for it, can you please
just give me a hand in pointing out if this most obvious security concerns.

Thanks, Rickard.



Re: hardware monitoring

2005-08-04 Thread Rickard Dahlstrand
Shawn K. Quinn wrote:

>I'm able to get sensor data from the BIOS; is there something I'm
>missing to be able to get them from within OpenBSD on this system? dmesg
>follows...
>  
>
Give xmbmon a try.

Rickard.



Re: VIA VT1211 termperature readout

2005-08-03 Thread Rickard Dahlstrand
The VT1211 chip is now supported thanks to some excellent work by 
Alexander Yurchenko. Thanks for all the help, Alexander!


The Lex box actually keeps quite cool (~48 C) regardless of load, 
probably due to the cpu-heatpipe. When I replace the hard drive with a 
flash it will probably drop a couple of degrees more.


Thanks, Rickard.

Rickard Dahlstrand wrote:


Hi,

My dream has come true, a new (BLACK) fan-less LEX CV863A-3U10E. Three
em gig-interfaces and a 1GHz Via Eden processor with encryption and
random number acceleration.

Well, except the fact that I can't monitor the temperature inside the
box since it uses a VIA VT1211 chip which is unsupported in OpenBSD. I
have tried both healthd and xmbmon and healthd actually identifies it
and returns some kind of voltages and temps, but the temps are all 255
or 0. Voltages seems ok though.

So, my question is. Are there any other application or solutions that I
can try other than that? Does anyone know of a solution is worth digging
into?

/Rickard.




Re: Increasing network performance

2005-07-19 Thread Rickard Dahlstrand

Stuart Henderson wrote:


--On 19 July 2005 12:50 +0200, Rickard Dahlstrand wrote:


Stuart Henderson wrote:


--On 19 July 2005 10:50 +0200, Rickard Dahlstrand wrote:


I are using the pc engine wrap-boxes for network measurement. Iperf
tops out at 25 Mbit/s send and 37 Mbit/s receive. If I look at top
at the same time I get 0% idle and the rest is evenly distributed
between interrupt, system and user.




Geode GX seems to spend a lot of time handling interrupts, much
worse  than a PII with similar MHz. Assuming you have DP83816
ethernet chips,  try
<http://marc.theaimsgroup.com/?l=openbsd-misc&m=111066941320791&w=2>
and experiment with values of NS_IHR_DELAY on the type of traffic
flows you want to measure. The nic waits 100us x NS_IHR_DELAY before
it interrupts, so you want to increase it enough to reduce your
interrupt load, without going so far you produce adverse effects.



Excellent, will try that. What kind of adverse effect could occur if
I overdo it?



Increased latency (since after traffic is received, there is a delay 
before the nic interrupts the processor). I also wonder if you might 
drop packets through running out of buffer space if the delay is too 
long and traffic is heavy.




I will try tonight and see if I get any improvement. Thanks.



Re: Increasing network performance

2005-07-19 Thread Rickard Dahlstrand

Stuart Henderson wrote:


--On 19 July 2005 10:50 +0200, Rickard Dahlstrand wrote:


I are using the pc engine wrap-boxes for network measurement. Iperf
tops out at 25 Mbit/s send and 37 Mbit/s receive. If I look at top at
the same time I get 0% idle and the rest is evenly distributed
between interrupt, system and user.



Geode GX seems to spend a lot of time handling interrupts, much worse 
than a PII with similar MHz. Assuming you have DP83816 ethernet chips, 
try 
<http://marc.theaimsgroup.com/?l=openbsd-misc&m=111066941320791&w=2> 
and experiment with values of NS_IHR_DELAY on the type of traffic 
flows you want to measure. The nic waits 100us x NS_IHR_DELAY before 
it interrupts, so you want to increase it enough to reduce your 
interrupt load, without going so far you produce adverse effects.




Excellent, will try that. What kind of adverse effect could occur if I 
overdo it?




Increasing network performance

2005-07-19 Thread Rickard Dahlstrand

Hi,

I are using the pc engine wrap-boxes for network measurement. Iperf tops 
out at 25 Mbit/s send and 37 Mbit/s receive. If I look at top at the 
same time I get 0% idle and the rest is evenly distributed between 
interrupt, system and user.


Obviously I have no option here to replace hardware or to change 
operating system, my only option is to tweak the kernel. I have found 
some options but I would really like help with a complete list of all 
options that will increase network performance. These values are with 
pf-disabled.


/Rickard.

/etc/sysctl.conf   
net.inet.ip.forwarding=1# 1=Permit forwarding (routing) of packets

net.inet6.ip6.forwarding=1  # 1=Permit forwarding (routing) of packets
net.inet.ipcomp.enable=1# 1=Enable the IPCOMP protocol
net.inet.tcp.ecn=1  # 1=Enable the TCP ECN extension
ddb.panic=0 # 0=Do not drop into ddb on a kernel panic
ddb.console=1   # 1=Permit entry of ddb from the console
kern.splassert=2# 2=enable and verbose error messages.
kern.watchdog.period=32 # 32 sec watchdog timeout
kern.watchdog.auto=1# Enable watchdog
net.inet.tcp.recvspace=65535# Bigger tcpwindows
net.inet.tcp.sendspace=65535# ..

OpenBSD 3.7 (TILDECOS021) #0: Sun Jul 10 23:08:03 CEST 2005
   [EMAIL PROTECTED]:/root/cvsflashboot/obj/TILDECOS021
cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC" 
586-class) 267 MHz

cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 66695168 (65132K)
avail mem = 47976448 (46852K)
using 167 buffers containing 684032 bytes (668K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(ac) BIOS, date 07/13/04, BIOS32 rev. 0 @ 0xfc554
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
sis0 at pci0 dev 14 function 0 "NS DP83815 10/100" rev 0x00: DP83816A, 
irq 10, address 00:0d:b9:00:7a:98

nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 15 function 0 "NS DP83815 10/100" rev 0x00: DP83816A, 
irq 9, address 00:0d:b9:00:7a:99

nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 16 function 0 "NS DP83815 10/100" rev 0x00: DP83816A, 
irq 11, address 00:0d:b9:00:7a:9a

nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI/ACPI" rev 0x00 at pci0 dev 18 function 1 not configured
"NS SCx200 IDE" rev 0x01 at pci0 dev 18 function 2 not configured
"NS SCx200 AUDIO" rev 0x00 at pci0 dev 18 function 3 not configured
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6 
revision 3 wdstatus 0

isa0 at gscpcib0
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: 
wd0: 1-sector PIO, LBA, 61MB, 125440 sectors
wd0(wdc0:0:0): using BIOS timings
gscsio0 at isa0 port 0x2e/2: SC1100 SIO rev 1: ACB1 ACB2
iic0 at gscsio0
iic1 at gscsio0
lmtemp0 at iic1 addr 0x48: LM77
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask f1e7 netmask ffe7 ttymask ffe7
rd0: fixed, 22528 blocks
dkcsum: wd0 matched BIOS disk 80
root on rd0a
rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
clock: unknown CMOS layout
arp: attempt to overwrite entry for 0.0.0.0 on lo0 by 00:0f:b5:a7:ae:79 
on sis0

arp info overwritten for 213.113.219.251 by 00:00:0c:07:ac:01 on sis0
arp info overwritten for 213.113.219.251 by 00:50:8b:74:c0:07 on sis0



Re: VIA VT1211 termperature readout

2005-07-18 Thread Rickard Dahlstrand

Rickard Dahlstrand wrote:


Hi,

My dream has come true, a new (BLACK) fan-less LEX CV863A-3U10E. Three
em gig-interfaces and a 1GHz Via Eden processor with encryption and
random number acceleration.

Well, except the fact that I can't monitor the temperature inside the
box since it uses a VIA VT1211 chip which is unsupported in OpenBSD. I
have tried both healthd and xmbmon and healthd actually identifies it
and returns some kind of voltages and temps, but the temps are all 255
or 0. Voltages seems ok though.

So, my question is. Are there any other application or solutions that I
can try other than that? Does anyone know of a solution is worth digging
into?

/Rickard.


output from speedfan (windows app):
Win9x:NO  64Bit:NO  GiveIO:YES  SpeedFan:YES
I/O properly initialized
Linked ISA BUS at $0290
Linked VIA VT8235 SMBUS at $5000
Scanning ISA BUS at $0290...
SuperIO Chip=VIA VT1211 (PLEASE REPORT)
Linked ISA (flat) BUS at $6000
Scanning VIA SMBus at $5000...
SMART Enabled for drive 0
Found TOSHIBA MK4006MAV (4,1GB)
End of detection

dmesg:
OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: VIA Nehemiah ("CentaurHauls" 686-class) 1.01 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,SEP,MTRR,PGE,CMOV,PAT,MMX,FXSR,SSE
cpu0: RNG AES
real mem = 251174912 (245288K)
avail mem = 222433280 (217220K)
using 3091 buffers containing 12660736 bytes (12364K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(4d) BIOS, date 09/09/04, BIOS32 rev. 0 @
0xfb3b0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf/0xdf94
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/224 (12 entries)
pcibios0: PCI Exclusive IRQs: 5 7 10 11
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc/0xf400 0xd/0x8000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8623 PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8633 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "VIA CLE266" rev 0x03: aperture at
0xe800, size 0x1000
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 8 function 0 "Intel PRO/1000MT (82541EI)" rev 0x00:
irq 11, address: 00:40:48:b1:34:e8
em1 at pci0 dev 9 function 0 "Intel PRO/1000MT (82541EI)" rev 0x00:
irq 5, address: 00:40:48:b1:34:e9
em2 at pci0 dev 10 function 0 "Intel PRO/1000MT (82541EI)" rev 0x00:
irq 10, address: 00:40:48:b1:34:ea
cbb0 at pci0 dev 12 function 0 "Ricoh 5C476 CardBus" rev 0x82: irq 11
cbb1 at pci0 dev 12 function 1 "Ricoh 5C476 CardBus" rev 0x82: irq 5
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: irq 7
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: single transaction translator
uhub3: 6 ports with 6 removable, self powered
pcib0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,
channel 0 configured to compatibility, channel 1 configured to
compatibility
pciide0: channel 0 disabled (no drives)
wd0 at pciide0 channel 1 drive 0: 
wd0: 16-sector PIO, LBA48, 19077MB, 39070080 sectors
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x50: irq 10
ac97: codec id 0x56494161 (VIA Technologies VT1612A)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
audio0 at auvia0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x0, lattimer 0x20
pcmcia1 at cardslot1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using
wsdisplay0
pcppi0 at isa0 port 0x61
mi

VIA VT1211 termperature readout

2005-07-17 Thread Rickard Dahlstrand
Hi,

My dream has come true, a new (BLACK) fan-less LEX CV863A-3U10E. Three
em gig-interfaces and a 1GHz Via Eden processor with encryption and
random number acceleration.

Well, except the fact that I can't monitor the temperature inside the
box since it uses a VIA VT1211 chip which is unsupported in OpenBSD. I
have tried both healthd and xmbmon and healthd actually identifies it
and returns some kind of voltages and temps, but the temps are all 255
or 0. Voltages seems ok though.

So, my question is. Are there any other application or solutions that I
can try other than that? Does anyone know of a solution is worth digging
into?

/Rickard.



Re: flashdist-20050601 for OpenBSD 3.7

2005-06-02 Thread Rickard Dahlstrand
I'm just taking this opportunity to tell you how much your work is
appreciated. Although I have moved on to Damien's Flashboot mainly
because of the ramdisk and remote update features, flashdist was what
was needed to help me over the threshold.

Looking forward to future updates.

Thanks, Rickard.

PS. And just so that nobody feels left out, thanks to everybody involved
for bringing us this excellent operating system.


Chris Cappuccio wrote:

>http://www.nmedia.net/~chris/soekris/
>
>Here is a new release that works on both OpenBSD 3.7 and OpenBSD-current
>as of June 1st (and should work on 3.6 with one or two minor adjustments
>of the packaging list)
>
>Now that I finally plugged in my net4801, I was able to test and fix the stupid
>problem with the NET4801 kernel config that I previously distributed in
>older versions of flashdist.  No more anecdotal kernel configuration based on
>third party reports, this is the real thing.  (It also works fine on a WRAP 2C
>board that Netgate just sent me)
>
>I made some other minor updates for OpenBSD 3.7, adding some very useful
>utilities to the base install list like ntpd and ospfd.  (Note that you should
>be trying OpenBSD-current if you want to use ospfd)
>
>Finally, I fixed a problem I noticed trying to install over a CF that
>had m0n0wall on it (The FreeBSD disklabel confused things, so we simply wipe 
>it out earlier by moving up fdisk reinit in the order of things)
>
>I'm still working on bringing nsh up to speed with the latest kernel features
>and improve it in other areas.  Of course, it isn't necessary to use nsh with
>flashdist.
>
>-c



Re: Booting OpenBSD without any console output

2005-05-21 Thread Rickard Dahlstrand
A couple of more direct questions:

Have anyone successfully booted a kernel without any console output?
What related kernel options can I play with?
If not, where in the kernel source should I start digging?

Thanks, Rickard.

Rickard Dahlstrand wrote:

>Hi,
>
>I'm trying to connect a modem to the serial port on my PC Engines
>Wrap1E-board and I can't seem to boot a kernel without having anything
>sent to the com-port.
>
>This device doesn't have a screen controller so it uses the serial port
>for bios and boot messages. It seems like the bios are redirecting pc0
>to com0 up until the kernel booting. There is a boot-option to disable
>this, but since there is no way for me to get a kernel to boot on pc0 it
>makes no difference.
>
>If I boots the a kernel without the PCCOMCONSOLE-option I can boot the
>kernel providing I set the tty to com0 in either the boot loader or
>/etc/boot.conf. But if I set the tty to pc0 and tries to boot it freezes
>just after the entry point message.
>
>I have even tried to set the tty to com1 in boot.conf to see if that
>made any difference, but it seems to freeze up in the same way.
>
>I need to find a way to boot a kernel without any messages on the
>serial-port.
>
>Thankful for any help, Rickard.
>
>
>---
>
>Loading;.
>probing: pc0 com0 pci mem[640K 127M a20=on]
>disk: hd0
>  
>
>>>OpenBSD/i386 BOOT 2.06
>>>  
>>>
>boot> set tty pc0
>switching console to pc0
>  
>
>>>OpenBSD/i386 BOOT 2.06
>>>  
>>>
>boot> bsd
>booting hd0a:bsd: 14062692+352328 [52+108048+95427]=0xdf1128
>entry point at 0x100120
>[FREEZE]
>
>
>
>Loading;.
>probing: pc0 com0 pci mem[640K 127M a20=on]
>disk: hd0
>  
>
>>>OpenBSD/i386 BOOT 2.06
>>>  
>>>
>boot> set tty com0
>switching console to com0
>  
>
>>>OpenBSD/i386 BOOT 2.06
>>>  
>>>
>boot> stty com0 57600
>com0: changing speed to 57600 baud in 5 seconds, change your terminal to
>match!
>
>com0: 57600 baud
>boot> bsd
>booting hd0a:bsd: 14062692+352328 [52+108048+95427]=0xdf1128
>entry point at 0x100120
>
>[ using 203900 bytes of bsd ELF symbol table ]
>Copyright (c) 1982, 1986, 1989, 1991, 1993
>The Regents of the University of California.  All rights reserved.
>Copyright (c) 1995-2005 OpenBSD. All rights reserved. 
>http://www.OpenBSD.org
>
>OpenBSD 3.7 (TILDECOS020) #0: Thu May 19 14:34:58 CEST 2005
>[EMAIL PROTECTED]:/root/cvsflashboot/obj/TILDECOS020
>RTC BIOS diagnostic error 80
>cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC"
>586-class)
> 267 MHz
>cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
>cpu0: TSC disabled
>real mem  = 133804032 (130668K)
>avail mem = 112906240 (110260K)
>using 331 buffers containing 1355776 bytes (1324K) of memory
>RTC BIOS diagnostic error 80
>mainbus0 (root)
>bios0 at mainbus0: AT/286+(fa) BIOS, date 05/02/05, BIOS32 rev. 0 @ 0xfc5f2
>pcibios0 at bios0: rev 2.1 @ 0xf/0x1
>pcibios0: pcibios_get_intr_routing - function not supported
>pcibios0: PCI IRQ Routing information unavailable.
>pcibios0: PCI bus #0 is the last bus
>bios0: ROM list: 0xe/0x8000
>cpu0 at mainbus0
>pci0 at mainbus0 bus 0: configuration mode 1 (bios)
>pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
>sis0 at pci0 dev 14 function 0 "NS DP83815 10/100" rev 0x00: DP83816A,
>irq 10, a
>ddress 00:0d:b9:01:94:e8
>nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
>sis1 at pci0 dev 15 function 0 "NS DP83815 10/100" rev 0x00: DP83816A,
>irq 9, ad
>dress 00:0d:b9:01:94:e9
>nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
>sis2 at pci0 dev 16 function 0 "NS DP83815 10/100" rev 0x00: DP83816A,
>irq 11, a
>ddress 00:0d:b9:01:94:ea
>nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
>gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
>gpio0 at gscpcib0: 64 pins
>"NS SC1100 SMI/ACPI" rev 0x00 at pci0 dev 18 function 1 not configured
>"NS SCx200 IDE" rev 0x01 at pci0 dev 18 function 2 not configured
>"NS SCx200 AUDIO" rev 0x00 at pci0 dev 18 function 3 not configured
>geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6
>revision 3
>wdstatus 0
>isa0 at gscpcib0
>isadma0 at isa0
>wdc0 at isa0 port 0x1f0/8 irq 14
>wd0 at wdc0 channel 0 drive 0: 
>wd0: 1-sector PIO, LBA, 122MB, 250880 sectors
>wd0(wdc0:0:0): using BIOS timings
>gscsio0 at isa0 port 0x2e/2: SC1100 SIO rev 1: ACB1 ACB2
>iic0 at gscsio0
>iic1 at gscsio0
>lmtemp0 at iic1 addr 0x48: LM77
>npx0 at isa0 port 0xf0/16: using exception 16
>pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
>pccom0: console
>biomask f1ef netmask ffef ttymask ffef
>rd0: fixed, 22528 blocks
>dkcsum: wd0 matched BIOS disk 80
>root on rd0a
>rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
>clock: unknown CMOS layout



Booting OpenBSD without any console output

2005-05-19 Thread Rickard Dahlstrand
Hi,

I'm trying to connect a modem to the serial port on my PC Engines
Wrap1E-board and I can't seem to boot a kernel without having anything
sent to the com-port.

This device doesn't have a screen controller so it uses the serial port
for bios and boot messages. It seems like the bios are redirecting pc0
to com0 up until the kernel booting. There is a boot-option to disable
this, but since there is no way for me to get a kernel to boot on pc0 it
makes no difference.

If I boots the a kernel without the PCCOMCONSOLE-option I can boot the
kernel providing I set the tty to com0 in either the boot loader or
/etc/boot.conf. But if I set the tty to pc0 and tries to boot it freezes
just after the entry point message.

I have even tried to set the tty to com1 in boot.conf to see if that
made any difference, but it seems to freeze up in the same way.

I need to find a way to boot a kernel without any messages on the
serial-port.

Thankful for any help, Rickard.


---

Loading;.
probing: pc0 com0 pci mem[640K 127M a20=on]
disk: hd0
>> OpenBSD/i386 BOOT 2.06
boot> set tty pc0
switching console to pc0
>> OpenBSD/i386 BOOT 2.06
boot> bsd
booting hd0a:bsd: 14062692+352328 [52+108048+95427]=0xdf1128
entry point at 0x100120
[FREEZE]



Loading;.
probing: pc0 com0 pci mem[640K 127M a20=on]
disk: hd0
>> OpenBSD/i386 BOOT 2.06
boot> set tty com0
switching console to com0
>> OpenBSD/i386 BOOT 2.06
boot> stty com0 57600
com0: changing speed to 57600 baud in 5 seconds, change your terminal to
match!

com0: 57600 baud
boot> bsd
booting hd0a:bsd: 14062692+352328 [52+108048+95427]=0xdf1128
entry point at 0x100120

[ using 203900 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2005 OpenBSD. All rights reserved. 
http://www.OpenBSD.org

OpenBSD 3.7 (TILDECOS020) #0: Thu May 19 14:34:58 CEST 2005
[EMAIL PROTECTED]:/root/cvsflashboot/obj/TILDECOS020
RTC BIOS diagnostic error 80
cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC"
586-class)
 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 133804032 (130668K)
avail mem = 112906240 (110260K)
using 331 buffers containing 1355776 bytes (1324K) of memory
RTC BIOS diagnostic error 80
mainbus0 (root)
bios0 at mainbus0: AT/286+(fa) BIOS, date 05/02/05, BIOS32 rev. 0 @ 0xfc5f2
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
sis0 at pci0 dev 14 function 0 "NS DP83815 10/100" rev 0x00: DP83816A,
irq 10, a
ddress 00:0d:b9:01:94:e8
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 15 function 0 "NS DP83815 10/100" rev 0x00: DP83816A,
irq 9, ad
dress 00:0d:b9:01:94:e9
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 16 function 0 "NS DP83815 10/100" rev 0x00: DP83816A,
irq 11, a
ddress 00:0d:b9:01:94:ea
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI/ACPI" rev 0x00 at pci0 dev 18 function 1 not configured
"NS SCx200 IDE" rev 0x01 at pci0 dev 18 function 2 not configured
"NS SCx200 AUDIO" rev 0x00 at pci0 dev 18 function 3 not configured
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6
revision 3
wdstatus 0
isa0 at gscpcib0
isadma0 at isa0
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: 
wd0: 1-sector PIO, LBA, 122MB, 250880 sectors
wd0(wdc0:0:0): using BIOS timings
gscsio0 at isa0 port 0x2e/2: SC1100 SIO rev 1: ACB1 ACB2
iic0 at gscsio0
iic1 at gscsio0
lmtemp0 at iic1 addr 0x48: LM77
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
biomask f1ef netmask ffef ttymask ffef
rd0: fixed, 22528 blocks
dkcsum: wd0 matched BIOS disk 80
root on rd0a
rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
clock: unknown CMOS layout