Re: OpenBSD on a Nokia IP380

2013-08-24 Thread s_gammons

On Fri, Aug 23, 2013 at 11:06 PM, Mike Larkin wrote:


At the boot prompt, what does mach mem show?

-ml



Hi Mike, here's the output from mach mem. It only has 1GB of memory. 
Not sure why it's saying the total is 2GB.



Stan


Using drive 0, partition 3.
Loading.
probing: pc0 com0 com1 pci mem[637K 1023M 1023M a20=on]
disk: hd0+

OpenBSD/i386 BOOT 3.21

switching console to com0
  OpenBSD/i386 BOOT 3.21
boot: illegal argument acpi
boot mach mem
Region 0: type 1 at 0x0 for 637KB
Region 1: type 2 at 0x9f400 for 3KB
Region 2: type 1 at 0x10 for 1047552KB
Region 3: type 1 at 0x10 for 1047552KB
Region 4: type 2 at 0xfff0 for 1024KB
Low ram: 637KB  High ram: 2095104KB
Total free memory: 2095741KB
boot $



Re: udp6 fix for possible memory corruption

2013-08-24 Thread Stefan Sperling
On Fri, Aug 23, 2013 at 12:47:10PM -0700, Loganaden Velvindron wrote:
 Hi,
 
 From NetBSD:
 
 http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/netinet6/udp6_output.c?rev=1.41content-type=text/x-cvsweb-markuponly_with_tag=MAIN
 
 Under some circumstances, udp6_output() would call ip6_clearpktopts()
 with an uninitialized struct ip6_pktopts on the stack, opt.
 ip6_clearpktopts(opt, ...) could dereference dangling pointers,
 leading to memory corruption or a crash.  Now, udp6_output() calls
 ip6_clearpktopts(opt, ...) only if opt was initialized. Thanks to
 Clement LECIGNE for reporting this bug.
 
 I checked openbsd source code and it seems that the issue is present
 as well.

No, this doesn't apply to OpenBSD.

In OpenBSD, udp6_output() starts off with a call to ip6_setpktopts()
if control is not NULL. This means that opt will always be initalised
before being cleaned up.

NetBSD does not initialise opt at the start of udp6_output().
Rather, they initalise it after an if (addr6) { ... } block of
code which in case of error can jump to the code that tries to
free opt (via 'goto release;'), without opt having been initalised.
That's what the extra if (optp == opt) is supposed to prevent.

The problem was introduced in NetBSD in this revision:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/netinet6/udp6_output.c.diff?r1=1.22r2=1.23only_with_tag=MAIN

 Tentative diff:
 
 Index: udp6_output.c
 ===
 RCS file: /cvs/src/sys/netinet6/udp6_output.c,v
 retrieving revision 1.19
 diff -u -p -r1.19 udp6_output.c
 --- udp6_output.c 28 Mar 2013 16:45:16 -  1.19
 +++ udp6_output.c 23 Aug 2013 19:30:36 -
 @@ -119,7 +119,8 @@ udp6_output(struct in6pcb *in6p, struct 
   struct  in6_addr *laddr, *faddr;
   u_short fport;
   int error = 0;
 - struct ip6_pktopts *optp, opt;
 + struct ip6_pktopts *optp = NULL; 
 + struct ip6_pktopts opt;
   int priv;
   int af, hlen;
   int flags;
 @@ -284,7 +285,8 @@ release:
  
  releaseopt:
   if (control) {
 - ip6_clearpktopts(opt, -1);
 + if (optp == opt)
 + ip6_clearpktopts(opt, -1);
   m_freem(control);
   }
   return (error);



Re: OpenBSD on a Nokia IP380

2013-08-24 Thread Brynet
On Sat, Aug 24, 2013 at 06:39:11AM -0400, s_gamm...@charter.net wrote:
 On Fri, Aug 23, 2013 at 11:06 PM, Mike Larkin wrote:
 
 At the boot prompt, what does mach mem show?
 
 -ml
 
 
 Hi Mike, here's the output from mach mem. It only has 1GB of memory.
 Not sure why it's saying the total is 2GB.
 
 
 Stan
 
 
 Using drive 0, partition 3.
 Loading.
 probing: pc0 com0 com1 pci mem[637K 1023M 1023M a20=on]
 disk: hd0+
 OpenBSD/i386 BOOT 3.21
 switching console to com0
   OpenBSD/i386 BOOT 3.21
 boot: illegal argument acpi
 boot mach mem
 Region 0: type 1 at 0x0 for 637KB
 Region 1: type 2 at 0x9f400 for 3KB
 Region 2: type 1 at 0x10 for 1047552KB
 Region 3: type 1 at 0x10 for 1047552KB
 Region 4: type 2 at 0xfff0 for 1024KB
 Low ram: 637KB  High ram: 2095104KB
 Total free memory: 2095741KB
 boot $

This is likely a problem with the BIOS on the system, the memory map has
duplicate entries..

You can attempt to manually fix this at boot using a variation of the
same command used to retreive the mappings:

boot mach mem =1023M

You can play around with it, maybe try removing both of the duplicates
first:

boot mach mem -0x3ff0@0x10
boot mach mem -0x3ff0@0x10

-Bryan.



Re: OpenBSD on a Nokia IP380

2013-08-24 Thread s_gammons


On Sat, Aug 24, 2013 at 10:08 AM, Brynet wrote:



This is likely a problem with the BIOS on the system, the memory map 
has

duplicate entries..

You can attempt to manually fix this at boot using a variation of the
same command used to retreive the mappings:

boot mach mem =1023M

You can play around with it, maybe try removing both of the duplicates
first:

boot mach mem -0x3ff0@0x10
boot mach mem -0x3ff0@0x10

-Bryan.


Bryan, removing both gives this

warning: too little memory available;running in degraded mode
press a key to confirm

[ using 749064 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-2013 OpenBSD. All rights reserved. 
http://www.OpenBSD.org


OpenBSD 5.3 (GENERIC) #50: Tue Mar 12 18:35:23 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 867 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,PSN,MMX,FXSR,SSE

real mem  = 585728 (0MB)
avail mem = 790528 (0MB)
panic: procinit: malloc
Stopped at  Debugger+0x4:   popl%ebp
Debugger(d08fdcbc,d0bc9f04,d08d9e90,d0bc9f04,bc8000) at Debugger+0x4
panic(d08d9e90,29,2,d0a548c8,0) at panic+0x5d
procinit(d08d6b00,d08d8f40,c0,d0bc9f4c,1) at procinit+0x29c
main(d02004f6,d02004fe,0,0,0) at main+0x75
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS 
PANIC!



Removing only one, I get this.  As you can see, all the NICs have FF and 
00 as the MAC address. So, it's a bit farther, but still not quite 
there...



Stan


[ using 749064 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-2013 OpenBSD. All rights reserved. 
http://www.OpenBSD.org


OpenBSD 5.3 (GENERIC) #50: Tue Mar 12 18:35:23 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 867 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,PSN,MMX,FXSR,SSE

real mem  = 1073278976 (1023MB)
avail mem = 1044758528 (996MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/30/04, BIOS32 rev. 0 @ 0xe7650
pcibios0 at bios0: rev 2.1 @ 0xe76c0/0x600
pcibios0: PCI BIOS has 9 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 7 9 10 11
pcibios0: PCI Interrupt Router at 000:15:0 (ServerWorks OSB4 rev 0x00)
pcibios0: PCI bus #4 is the last bus
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 ServerWorks CNB20LE Host rev 0x06
pchb1 at pci0 dev 0 function 1 ServerWorks CNB20LE Host rev 0x06
pci1 at pchb1 bus 1
ppb0 at pci1 dev 0 function 0 Intel 21154AE/BE PCI-PCI rev 0x00
pci2 at ppb0 bus 2
fxp0 at pci2 dev 3 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff:ff:ff

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
fxp1 at pci2 dev 4 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff:ff:ff

inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
fxp2 at pci2 dev 5 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff:ff:ff

inphy2 at fxp2 phy 1: i82555 10/100 PHY, rev. 4
fxp3 at pci2 dev 6 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff:ff:ff

inphy3 at fxp3 phy 1: i82555 10/100 PHY, rev. 4
ppb1 at pci1 dev 2 function 0 Intel 21154AE/BE PCI-PCI rev 0x00
pci3 at ppb1 bus 3
dc0 at pci3 dev 5 function 0 DEC 21142/3 rev 0x41: irq 10, address 
00:00:00:00:00:00

bmtphy0 at dc0 phy 1: BCM5221 100baseTX PHY, rev. 4
dc1 at pci3 dev 6 function 0 DEC 21142/3 rev 0x41: irq 10, address 
00:00:00:00:00:00

bmtphy1 at dc1 phy 1: BCM5221 100baseTX PHY, rev. 4
cbb0 at pci0 dev 9 function 0 TI PCI1420 CardBus rev 0x00: couldn't 
map interrupt
cbb1 at pci0 dev 9 function 1 TI PCI1420 CardBus rev 0x00: couldn't 
map interrupt
ubsec0 at pci0 dev 10 function 0 Broadcom 5802 rev 0x01: 3DES MD5 SHA1 
RNG PK, irq 11

piixpm0 at pci0 dev 15 function 0 ServerWorks OSB4 rev 0x51: polling
iic0 at piixpm0
lmenv0 at iic0 addr 0x2d: lm87 rev 6, starting scan
lmenv1 at iic0 addr 0x2e: lm87 rev 6, starting scan
spdmem0 at iic0 addr 0x50: 512MB SDRAM registered ECC PC133CL2
spdmem1 at iic0 addr 0x51: 512MB SDRAM registered ECC PC133CL2
pciide0 at pci0 dev 15 function 1 ServerWorks OSB4 IDE rev 0x00: DMA
wd0 at pciide0 channel 0 drive 0: FUJITSU MHT2040AS
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x04: 
irq 11, version 1.0, legacy support

DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!



Re: OpenBSD on a Nokia IP380

2013-08-24 Thread Brynet
On Sat, Aug 24, 2013 at 11:37:25AM -0400, s_gamm...@charter.net wrote:
 Bryan, removing both gives this
 
 warning: too little memory available;running in degraded mode
 press a key to confirm
 
 [ using 749064 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-2013 OpenBSD. All rights reserved.
 http://www.OpenBSD.org
 
 OpenBSD 5.3 (GENERIC) #50: Tue Mar 12 18:35:23 MDT 2013
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel Pentium III (GenuineIntel 686-class) 867 MHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,PSN,MMX,FXSR,SSE
 real mem  = 585728 (0MB)
 avail mem = 790528 (0MB)
 panic: procinit: malloc
 Stopped at  Debugger+0x4:   popl%ebp
 Debugger(d08fdcbc,d0bc9f04,d08d9e90,d0bc9f04,bc8000) at Debugger+0x4
 panic(d08d9e90,29,2,d0a548c8,0) at panic+0x5d
 procinit(d08d6b00,d08d8f40,c0,d0bc9f4c,1) at procinit+0x29c
 main(d02004f6,d02004fe,0,0,0) at main+0x75
 RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS
 PANIC!


I meant removing both mappings and then adding a single 1023M mapping, I
didn't expect it to work with 1M of RAM. ;-)

 
 Removing only one, I get this.  As you can see, all the NICs have FF
 and 00 as the MAC address. So, it's a bit farther, but still not
 quite there...
 
 
 Stan
 
 
 [ using 749064 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-2013 OpenBSD. All rights reserved.
 http://www.OpenBSD.org
 
 OpenBSD 5.3 (GENERIC) #50: Tue Mar 12 18:35:23 MDT 2013
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel Pentium III (GenuineIntel 686-class) 867 MHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,PSN,MMX,FXSR,SSE
 real mem  = 1073278976 (1023MB)
 avail mem = 1044758528 (996MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 04/30/04, BIOS32 rev. 0 @ 0xe7650
 pcibios0 at bios0: rev 2.1 @ 0xe76c0/0x600
 pcibios0: PCI BIOS has 9 Interrupt Routing table entries
 pcibios0: PCI Exclusive IRQs: 5 7 9 10 11
 pcibios0: PCI Interrupt Router at 000:15:0 (ServerWorks OSB4 rev 0x00)
 pcibios0: PCI bus #4 is the last bus
 cpu0 at mainbus0: (uniprocessor)
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 0 function 0 ServerWorks CNB20LE Host rev 0x06
 pchb1 at pci0 dev 0 function 1 ServerWorks CNB20LE Host rev 0x06
 pci1 at pchb1 bus 1
 ppb0 at pci1 dev 0 function 0 Intel 21154AE/BE PCI-PCI rev 0x00
 pci2 at ppb0 bus 2
 fxp0 at pci2 dev 3 function 0 Intel 82559ER rev 0x10, i82551: irq
 11, address ff:ff:ff:ff:ff:ff
 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
 fxp1 at pci2 dev 4 function 0 Intel 82559ER rev 0x10, i82551: irq
 11, address ff:ff:ff:ff:ff:ff
 inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
 fxp2 at pci2 dev 5 function 0 Intel 82559ER rev 0x10, i82551: irq
 11, address ff:ff:ff:ff:ff:ff
 inphy2 at fxp2 phy 1: i82555 10/100 PHY, rev. 4
 fxp3 at pci2 dev 6 function 0 Intel 82559ER rev 0x10, i82551: irq
 11, address ff:ff:ff:ff:ff:ff
 inphy3 at fxp3 phy 1: i82555 10/100 PHY, rev. 4
 ppb1 at pci1 dev 2 function 0 Intel 21154AE/BE PCI-PCI rev 0x00
 pci3 at ppb1 bus 3
 dc0 at pci3 dev 5 function 0 DEC 21142/3 rev 0x41: irq 10, address
 00:00:00:00:00:00
 bmtphy0 at dc0 phy 1: BCM5221 100baseTX PHY, rev. 4
 dc1 at pci3 dev 6 function 0 DEC 21142/3 rev 0x41: irq 10, address
 00:00:00:00:00:00
 bmtphy1 at dc1 phy 1: BCM5221 100baseTX PHY, rev. 4
 cbb0 at pci0 dev 9 function 0 TI PCI1420 CardBus rev 0x00:
 couldn't map interrupt
 cbb1 at pci0 dev 9 function 1 TI PCI1420 CardBus rev 0x00:
 couldn't map interrupt
 ubsec0 at pci0 dev 10 function 0 Broadcom 5802 rev 0x01: 3DES MD5
 SHA1 RNG PK, irq 11
 piixpm0 at pci0 dev 15 function 0 ServerWorks OSB4 rev 0x51: polling
 iic0 at piixpm0
 lmenv0 at iic0 addr 0x2d: lm87 rev 6, starting scan
 lmenv1 at iic0 addr 0x2e: lm87 rev 6, starting scan
 spdmem0 at iic0 addr 0x50: 512MB SDRAM registered ECC PC133CL2
 spdmem1 at iic0 addr 0x51: 512MB SDRAM registered ECC PC133CL2
 pciide0 at pci0 dev 15 function 1 ServerWorks OSB4 IDE rev 0x00: DMA
 wd0 at pciide0 channel 0 drive 0: FUJITSU MHT2040AS
 wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
 wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
 ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev
 0x04: irq 11, version 1.0, legacy support
 DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!

What is the new panic message? Does it enter ddb?

The bogus MAC addresses could indicate a problem, but it's possible
there is no EPROM defaults.. once you boot successfully you can
configure your it manually with ifconfig int lladdr xx:xx:xx:xx:xx:xx.

You mentioned problems with USB on FreeBSD, so try disabling ohci(4) in
UKC and see if that helps (..remember 

Re: OpenBSD on a Nokia IP380

2013-08-24 Thread s_gammons




On Sat, Aug 24, 2013 at 11:00 AM, Brynet wrote:

z I meant removing both mappings and then adding a single 1023M mapping, 
I

didn't expect it to work with 1M of RAM. ;-)


I figured that out after the fact :)




What is the new panic message? Does it enter ddb?

The bogus MAC addresses could indicate a problem, but it's possible
there is no EPROM defaults.. once you boot successfully you can
configure your it manually with ifconfig int lladdr xx:xx:xx:xx:xx:xx.

You mentioned problems with USB on FreeBSD, so try disabling ohci(4) 
in

UKC and see if that helps (..remember to fix the mappings):

boot boot -c
..
ukc disable ohci
ukc quit

-Bryan.


No, it hung and didn't enter ddb.  I accidentally copied that last line. 
Here's the latest attempt.  It went into the la la land at this point. 
Gotta run.  Thanks for the help.  Talk to you later



Stan

Using drive 0, partition 3.
Loading.
probing: pc0 com0 com1 pci mem[637K 1023M 1023M a20=on]
disk: hd0+

OpenBSD/i386 BOOT 3.21

-switching console to com0
OpenBSD/i386 BOOT 3.21
boot mach mem -0x3ff0@0x10
Region 0: type 1 at 0x0 for 637KB
Region 1: type 2 at 0x9f400 for 3KB
Region 2: type 1 at 0x10 for 1047552KB
Region 3: type 2 at 0xfff0 for 1024KB
Low ram: 637KB  High ram: 2095104KB
Total free memory: 1048189KB
boot boot -c
booting hd0a:/bsd: 8404228+1102404 [52+381152+367486]=0x9c7d50
entry point at 0x200120

[ using 749064 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-2013 OpenBSD. All rights reserved. 
http://www.OpenBSD.org


OpenBSD 5.3 (GENERIC) #50: Tue Mar 12 18:35:23 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 867 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,PSN,MMX,FXSR,SSE

real mem  = 1073278976 (1023MB)
avail mem = 1044758528 (996MB)
User Kernel Config
UKC disable ohci
154 ohci* disabled
155 ohci* disabled
UKC quit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/30/04, BIOS32 rev. 0 @ 0xe7650
pcibios0 at bios0: rev 2.1 @ 0xe76c0/0x600
pcibios0: PCI BIOS has 9 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 7 9 10 11
pcibios0: PCI Interrupt Router at 000:15:0 (ServerWorks OSB4 rev 0x00)
pcibios0: PCI bus #4 is the last bus
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 ServerWorks CNB20LE Host rev 0x06
pchb1 at pci0 dev 0 function 1 ServerWorks CNB20LE Host rev 0x06
pci1 at pchb1 bus 1
ppb0 at pci1 dev 0 function 0 Intel 21154AE/BE PCI-PCI rev 0x00
pci2 at ppb0 bus 2
fxp0 at pci2 dev 3 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
fxp1 at pci2 dev 4 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff

inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
fxp2 at pci2 dev 5 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff

inphy2 at fxp2 phy 1: i82555 10/100 PHY, rev. 4
fxp3 at pci2 dev 6 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff

inphy3 at fxp3 phy 1: i82555 10/100 PHY, rev. 4
ppb1 at pci1 dev 2 function 0 Intel 21154AE/BE PCI-PCI rev 0x00
pci3 at ppb1 bus 3
dc0 at pci3 dev 5 function 0 DEC 21142/3 rev 0x41: irq 10, address 
00:00:00:00:00:00

bmtphy0 at dc0 phy 1: BCM5221 100baseTX PHY, rev. 4
dc1 at pci3 dev 6 function 0 DEC 21142/3 rev 0x41: irq 10, address 
00:00:00:00:00:00

bmtphy1 at dc1 phy 1: BCM5221 100baseTX PHY, rev. 4
cbb0 at pci0 dev 9 function 0 TI PCI1420 CardBus rev 0x00: couldn't 
map interrupt
cbb1 at pci0 dev 9 function 1 TI PCI1420 CardBus rev 0x00: couldn't 
map interrupt
ubsec0 at pci0 dev 10 function 0 Broadcom 5802 rev 0x01: 3DES MD5 SHA1 
RNG PK, irq 11

piixpm0 at pci0 dev 15 function 0 ServerWorks OSB4 rev 0x51: polling
iic0 at piixpm0
lmenv0 at iic0 addr 0x2d: lm87 rev 6, starting scan
lmenv1 at iic0 addr 0x2e: lm87 rev 6, starting scan
spdmem0 at iic0 addr 0x50: 512MB SDRAM registered ECC PC133CL2
spdmem1 at iic0 addr 0x51: 512MB SDRAM registered ECC PC133CL2
pciide0 at pci0 dev 15 function 1 ServerWorks OSB4 IDE rev 0x00: DMA
wd0 at pciide0 channel 0 drive 0: FUJITSU MHT2040AS
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
ServerWorks OSB4/CSB5 USB rev 0x04 at pci0 dev 15 function 2 not 
configured

isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: 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
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
vscsi0 

Re: OpenBSD on a Nokia IP380

2013-08-24 Thread s_gammons
I finally got it to boot successfully.  Not sure what was up with the 
hard drive errors.  Maybe the file system wasn't clean?   After I put 
the drive in the laptop and let it boot Ok, it's been booting Ok in the 
IP380.  I'll see if I can get the network ports to work later today.


Thanks again for all the help!

Stan




[ using 749064 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-2013 OpenBSD. All rights reserved. 
http://www.OpenBSD.org


OpenBSD 5.3 (GENERIC) #50: Tue Mar 12 18:35:23 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 867 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,PSN,MMX,FXSR,SSE

real mem  = 1073278976 (1023MB)
avail mem = 1044758528 (996MB)
User Kernel Config
UKC disable ohci
154 ohci* disabled
155 ohci* disabled
UKC quit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/30/04, BIOS32 rev. 0 @ 0xe7650
pcibios0 at bios0: rev 2.1 @ 0xe76c0/0x600
pcibios0: PCI BIOS has 9 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 7 9 10 11
pcibios0: PCI Interrupt Router at 000:15:0 (ServerWorks OSB4 rev 0x00)
pcibios0: PCI bus #4 is the last bus
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 ServerWorks CNB20LE Host rev 0x06
pchb1 at pci0 dev 0 function 1 ServerWorks CNB20LE Host rev 0x06
pci1 at pchb1 bus 1
ppb0 at pci1 dev 0 function 0 Intel 21154AE/BE PCI-PCI rev 0x00
pci2 at ppb0 bus 2
fxp0 at pci2 dev 3 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff:ff:ff

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
fxp1 at pci2 dev 4 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff:ff:ff

inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
fxp2 at pci2 dev 5 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff:ff:ff

inphy2 at fxp2 phy 1: i82555 10/100 PHY, rev. 4
fxp3 at pci2 dev 6 function 0 Intel 82559ER rev 0x10, i82551: irq 11, 
address ff:ff:ff:ff:ff:ff

inphy3 at fxp3 phy 1: i82555 10/100 PHY, rev. 4
ppb1 at pci1 dev 2 function 0 Intel 21154AE/BE PCI-PCI rev 0x00
pci3 at ppb1 bus 3
dc0 at pci3 dev 5 function 0 DEC 21142/3 rev 0x41: irq 10, address 
00:00:00:00:00:00

bmtphy0 at dc0 phy 1: BCM5221 100baseTX PHY, rev. 4
dc1 at pci3 dev 6 function 0 DEC 21142/3 rev 0x41: irq 10, address 
00:00:00:00:00:00

bmtphy1 at dc1 phy 1: BCM5221 100baseTX PHY, rev. 4
cbb0 at pci0 dev 9 function 0 TI PCI1420 CardBus rev 0x00: couldn't 
map interrupt
cbb1 at pci0 dev 9 function 1 TI PCI1420 CardBus rev 0x00: couldn't 
map interrupt
ubsec0 at pci0 dev 10 function 0 Broadcom 5802 rev 0x01: 3DES MD5 SHA1 
RNG PK, irq 11

piixpm0 at pci0 dev 15 function 0 ServerWorks OSB4 rev 0x51: polling
iic0 at piixpm0
lmenv0 at iic0 addr 0x2d: lm87 rev 6
lmenv1 at iic0 addr 0x2e: lm87 rev 6
spdmem0 at iic0 addr 0x50: 512MB SDRAM registered ECC PC133CL2
spdmem1 at iic0 addr 0x51: 512MB SDRAM registered ECC PC133CL2
pciide0 at pci0 dev 15 function 1 ServerWorks OSB4 IDE rev 0x00: DMA
wd0 at pciide0 channel 0 drive 0: FUJITSU MHT2040AS
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
ServerWorks OSB4/CSB5 USB rev 0x04 at pci0 dev 15 function 2 not 
configured

isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: 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
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
scsibus1 at softraid0: 256 targets
root on wd0a (f6446c169da91933.a) swap on wd0b dump on wd0b
Automatic boot in progress: starting file system checks.
/dev/rwd0a: file system is clean; not checking
/dev/rwd0k: file system is clean; not checking
/dev/rwd0d: file system is clean; not checking
/dev/rwd0f: file system is clean; not checking
/dev/rwd0g: file system is clean; not checking
/dev/rwd0h: file system is clean; not checking
/dev/rwd0j: file system is clean; not checking
/dev/rwd0i: file system is clean; not checking
/dev/rwd0e: file system is clean; not checking
setting tty flags
pf enabled
starting network
starting early daemons: syslogd pflogd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 - 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sendmail inetd sndiod.
starting local daemons: cron.
Sat Aug 24 09:30:40 CDT 2013

OpenBSD/i386 (gateway.home.pc) (tty00)


Re: OpenBSD on a Nokia IP380

2013-08-24 Thread Chris Cappuccio
s_gamm...@charter.net [s_gamm...@charter.net] wrote:
 I finally got it to boot successfully.  Not sure what was up with
 the hard drive errors.  Maybe the file system wasn't clean?   After
 I put the drive in the laptop and let it boot Ok, it's been booting
 Ok in the IP380.  I'll see if I can get the network ports to work
 later today.

The errors you got are due to errors reported by the IDE controller back to the 
pciide driver. That's a layer (or two) lower than the filesystem itself. If 
moving the drive around fixed it, perhaps there was a poor connection 
somewhere? (Hell, I just bought an old stereo receiver and had to take it apart 
and reseat every board inside to clean up the sound coming out...)

Since the dc driver doesn't know how to read the MAC addresses from your 
system, your best bet to make those work is to use the 'lladdr' flag so that 
something other than 0 is used on the wire...

-- 
Semicolons; use them