Hi misc@,
Background
I am yet another Nokia IP330 owner seeking help to put a real
OS/Firewall onto one of these devices. I have a handful of these at
my disposal, all with AMD K6-2 400MHz CPUs, 1 SDRAM bank with 256MB of
CAS2 PC100 ECC SDRAM (the other is empty), 2xdc NICs, 3xfxp NICs,
Primary IDE, 20GB ATA33 IDE drive, and 2x16550 serial ports. The 2xdc
NICs are on an independent cPCI card, but the rest is integrated.
There is also a covered RJ11 port to the right of the third onboard
NIC that seems to be used for modem connectivity, but I question its
functionality on a lower-level. There is an empty header spot on the
mainboard for floppy controller, which is detected, but no pins
connected to the solder joints (Adding a floppy header looks like a
trivial task for someone with any skill in microelectronics). USB
(uhci) is detected by FreeBSD, but there are no visually identifiable
headers. It uses an Award Modular BIOS, v4.51PG whose console is
interfaced via the first serial port using a null-modem cable. (For
archival information, a pure null-modem cable is required to see the
BIOS -- those with incorrect CTS/RTS alignment won't show the BIOS,
but will show an AT and then no output until the OS loads using the
serial port. As well, a real serial program (!Hyperterminal) that
doesn't send random garbage on device initialization is necessary.)
The Problem
When I load the generic OpenBSD 3.8 (i386) onto the factory 20GB drive
from another i386 machine, specifying the com port as its default
console, the other i386 machine boots perfectly with the correct
output. When I relocate the drive to the IP330, it cannot detect the
serial port on boot. As well, when it gets to the boot> prompt and
begins the boot process, it gets to the point where it says 'entry
point at 0x100120' and then halts indefinitely, never loading the
kernel.
Here is the attempt from latest 3.8 Snapshot, The 3.8 from the release
CD produces the same output, regardless of CD or HD boot source.
---8<---
Verifying DMI Pool Data ........
Boot from ATAPI CD-ROM :
CD-ROM: 9F
Loading /3.8/I386/CDBOOT
probing: pc0 mem[639K 255M a20=on]
disk: cd0
OpenBSD/i386 CDBOOT 1.04
boot> set tty com0
switching console to com0
com0 console not present
boot> set tty com1
switching console to com1
com1 console not present
boot> machine memory
Region 0: type 1 at 0x0 for 639KB
Region 1: type 1 at 0x9fc00 for 1KB
Region 2: type 2 at 0xf0000 for 64KB
Region 3: type 2 at 0xffff0000 for 64KB
Region 4: type 1 at 0x100000 for 261120KB
Low ram: 639KB High ram: 261120KB
Total free memory: 261760KB
boot> machine diskinfo
Disk BIOS# Type Cyls Heads Secs Flags Checksum
hd0 0x80 *none* 1024 255 63 0x4 0x86b8cab0
cd0 0x9f label 0 0 0 0xa 0x0
boot> boot -c
booting cd0a:/3.8/i386/bsd.rd: 4420484+740300 [52+154608+141206]=0x534480
entry point at 0x100120
---8<---
The 'machine diskinfo' command produces an output that is inconsistent
with BIOS settings for the hard drive, is this normal? I would think
this not to matter since I can't boot from the CDROM either.
Attempted Resolutions
I have tested the OpenBSD install on the other x86 to ensure that it
detects and uses the serial console as well as proper booting.
Everything works very well, and as documented.
I have tried to edit the kernel configuration for the serial ports to
match that of the bios, but had the same results.
I have also tried to edit them (address, irq, flags) to match them to
what FreeBSD 6 shows in its dmesg.
I have also tried to set them in the BIOS to match what OpenBSD wants.
I have tested different RAM.
I have tested another drive.
I have tried disabling DMA and forcing PIO modes in the BIOS.
I have tried forcing hard drive C/H/S parameters and auto detection.
I have tried setting the 'PCI IDE IRQ Map to : PCI (AUTO)' in the
PNP/PCI Configuration menu.
I have tested without the cPCI dual-NIC.
I have tried to boot using the drive as a slave instead of master on
the primary (single) IDE channel (and modifying /etc/fstab at the same
time).
I have configured and unconfigured several BIOS options (text screens
provided below)
I have tried using the second serial port for the console.
I have tried booting using 'boot -c' (this yields no additional output).
I have tried compiling a custom kernel with more debugging.
I have tried booting from CD using bsd.rd.
I have tried NOT using the serial port for a console.
I have tried reinstalling the boot blocks on the alternate x86
machine. (on that note, I would like to try booting from floppy to
reinstall the boot blocks,
but this operation is currently impossible).
I have installed FreeBSD using the same procedure and it works fine,
detecting both serial ports, using the first as its console. (dmesg
provided below)
serial clip from dmesg, note the flags 0x10 (also attempted in kernel
config in openbsd with no results)
---8<---
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
---8<---
Plea for pointers/assistance
I realize that I'll be told to read the documentation (again) on
booting from console, re-installing new boot blocks, possibly reinit
the MBR, etc.. I'm not new to OpenBSD, but I could be making a silly
mistake and overlooking something extremely simple. If so, it seems
others have been making the same mistake because I repeat the results
found in the list previously. In order to debug this further by a set
of eyes more skeptical than my own, I offer a SSH connection to one of
the Nokia IP330s running FreeBSD 6. I will provide console access to
the second one via null modem from the first though I am unsure if I
can scare up a remote-power control to assist with remote rebooting of
the unit. This is not the highest-powered unit on the market, and I'm
well aware of its ranking in terms of processing power, but I still
feel it is capable of some use. I get the same results from several
units which _suggests_ that they are indeed operating normally (read:
aren't defective). I apologize in advance for the linewrap as I've
tried to cut it down to 72 chars/line; unfortunately, ASCII doesn't
always behave as advertised for me.
Thanks for any assistance you can provide.
Device Output
------------------------------------------------------------------------
Award Modular BIOS v4.51PG
Copyright (C) 1984-99, Award Software, Inc.
(DOM430T1) NOKIA IP ROUTER
AMD-K6(tm)-2/256 CPU Found
Memory Test : 262144K OK
Press TAB to enter SETUP
10/27/1999-i430TX-2A59INOKC-00
Award Modular BIOS v4.51PG
Copyright (C) 1984-99, Award Software, Inc.
(DOM430T1) NOKIA IP ROUTER
AMD-K6(tm)-2/256 CPU Found
Memory Test : 262144K OK
Award Plug and Play BIOS Extension v1.0A
Copyright (C) 1998, Award Software, Inc.
Detecting IDE Primary Master ... WDC WD200EB-11CPF0
Detecting IDE Primary Slave ... CDU5211
------------------------------------------------------------------------
ROM PCI/ISA BIOS (2A59INOK)
CMOS SETUP UTILITY
AWARD SOFTWARE, INC.
+=======================================+==============================+
| STANDARD CMOS SETUP | INTEGRATED PERIPHERALS |
| | |
| BIOS FEATURES SETUP | SUPERVISOR PASSWORD |
| | |
| CHIPSET FEATURES SETUP | USER PASSWORD |
| | |
| PNP/PCI CONFIGURATION | IDE HDD AUTO DETECTION |
| | |
| LOAD BIOS DEFAULTS | SAVE & EXIT SETUP |
| | |
| LOAD SETUP DEFAULTS | EXIT WITHOUT SAVING |
| | |
| | |
|---------------------------------------+------------------------------|
| Esc : Quit ^ V > * : Select Item |
| F10 : Save & Exit Setup (Shift)F2 : Change Color |
|----------------------------------------------------------------------|
| |
| Time, Date, Hard Disk Type... |
| |
+======================================================================+
ROM PCI/ISA BIOS (2A59INOK)
STANDARD CMOS SETUP
AWARD SOFTWARE, INC.
+======================================================================+
| |
| Date (mm:dd:yy) : Thu, Jan 1 1998 |
| Time (hh:mm:ss) : 22 : 45 : 33 |
+----------------------------------------------------------------------+
| |
| CYLS. HEADS PRECOMP LANDZONE SECTORS MODE |
|Drive C : Auto ( 0b) 0 0 0 0 0 LBA |
|Drive D : Auto ( 0b) 0 0 0 0 0 LBA |
| |
| Drive A : None +--------------------------------------|
| Drive B : None | |
| | Base Memory: 640K |
| Video : EGA/VGA | Extended Memory: 261120K |
| | Other Memory: 384K |
| Halt On : All,But Keyboard | ----------------------- |
| | Total Memory: 262144K |
| | |
| | |
|-------------------------------+--------------------------------------|
| ESC : Quit ^ V > * : Select Item PU/PD/+/- : Modify |
| F1 : Help (Shift)F2 : Change Color |
+======================================================================+
ROM PCI/ISA BIOS (2A59INOK)
BIOS FEATURES SETUP
AWARD SOFTWARE, INC.
+======================================+===============================+
| Virus Warning : Disabled | Video BIOS Shadow : Enabled |
| CPU Internal Cache : Enabled | C8000-CBFFF Shadow : Disabled|
| External Cache : Enabled | CC000-CFFFF Shadow : Disabled|
| Quick Power On Self Test : Enabled | D0000-D3FFF Shadow : Disabled|
| Boot Sequence : CDROM,C,A| D4000-D7FFF Shadow : Disabled|
| Display Config Screen : Enabled | D8000-DBFFF Shadow : Disabled|
| | DC000-DFFFF Shadow : Disabled|
| | Award Preboot Agent : Enabled |
| Boot Up NumLock Status : On | Agent connect via : NULL |
| Boot Up System Speed : High | Agent wait time(min): 1 |
| Typematic Rate Setting : Enabled | Max Baud Rate : 9600 |
| Typematic Rate (Chars/Sec): 10 | |
| Typematic Delay (Msec) : 250 | |
| Security Option : Setup | |
| PCI/VGA Palette Snoop : Disabled |-------------------------------|
| OS Select For DRAM > 64MB : Non-OS2 | ESC : Quit |
| | F1 : Help |
| | F5 : Old Values |
| | F6 : Load BIOS Defaults |
| | F7 : Load Setup Defaults |
+======================================+===============================+
ROM PCI/ISA BIOS (2A59INOK)
CHIPSET FEATURES SETUP
AWARD SOFTWARE, INC.
+=====================================+==============================+
| Auto Configuration : Enabled | Pipline Cache Timing :Faster |
| DRAM Timing : 70ns | Chipset NA# Asserted :Enabled|
| | Mem Drive Str(MA/RAS):Auto |
| DRAM Leadoff Timing : 10/6/3 | DRAM Refresh Rate :15.6 us|
| DRAM Read Burst (EDO/FP) : x222/x333| |
| DRAM Write Burst Timing : x222 | |
| Fast EDO Lead Off : Disabled | |
| Refresh RAS# Assertion : 4 Clks | |
| Fast RAS To CAS Delay : 3 | |
| DRAM Page Idle Timer : 2 Clks | |
| DRAM Enhanced Paging : Enabled | |
| Fast MA to RAS# Delay : 2 Clks | |
| SDRAM(CAS Lat/RAS-to-CAS): 3/3 | |
| SDRAM Speculative Read : Disabled | |
| System BIOS Cacheable : Disabled |------------------------------|
| Video BIOS Cacheable : Disabled | ESC : Quit |
| 8 Bit I/O Recovery Time : 1 | F1 : Help |
| 16 Bit I/O Recovery Time : 2 | F5 : Old Values |
| Memory Hole At 15M-16M : Disabled | F6 : Load BIOS Defaults |
| PCI 2.1 Compliance : Disabled | F7 : Load Setup Defaults |
+=====================================+==============================+
ROM PCI/ISA BIOS (2A59INOK)
PNP/PCI CONFIGURATION
AWARD SOFTWARE, INC.
+=======================================+============================+
| Resources Controlled By : Auto | PCI IDE IRQ Map To : ISA |
| Reset Configuration Data : Disabled | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |----------------------------|
| | ESC : Quit |
| | F1 : Help |
| | F5 : Old Values |
| | F6 : Load BIOS Defaults |
| | F7 : Load Setup Defaults |
+=======================================+============================+
ROM PCI/ISA BIOS (2A59INOK)
INTEGRATED PERIPHERALS
AWARD SOFTWARE, INC.
+=======================================+============================+
| IDE HDD Block Mode : Enabled | |
| IDE Primary Master PIO : Auto | |
| IDE Primary Slave PIO : Auto | |
| IDE Primary Master UDMA : Auto | |
| IDE Primary Slave UDMA : Auto | |
| | |
| | |
| | |
| | |
| On-Chip Primary PCI IDE: Enabled | |
| | |
| | |
| Onboard FDC Controller : Disabled | |
| Onboard Serial Port 1 : 3F8/IRQ4 | |
| Onboard Serial Port 2 : 2F8/IRQ3 |----------------------------|
| | ESC : Quit |
| | F1 : Help |
| | F5 : Old Values |
| | F6 : Load BIOS Defaults |
| | F7 : Load Setup Defaults |
+=======================================+============================+
----------------------------------------------------------------------
Award Software, Inc.
System Configurations
+====================================================================+
| CPU Type : AMD-K6(tm)-2 Base Memory : 640K |
| Co-Processor : Installed Extended Memory: 261120K |
| CPU Clock : 256 Cache Memory : 512K |
|--------------------------------------------------------------------|
| Diskette Drive A : None Display Type : EGA/VGA|
| Diskette Drive B : None Serial Port(s) : 3F8 2F8|
| Pri. Master Disk : LBA ,UDMA 5,20021MB Parallel Port(s) : None |
| Pri. Slave Disk : CDROM,UDMA 2 EDO DRAM at Row(s): None |
| SDRAM at Row(s) : 0 1 |
| L2 Cache Type : Pipelined Burst |
+====================================================================+
PCI device listing ...
Bus No Device No Func No Vendor ID Device ID Device Class IRQ
----------------------------------------------------------------------
0 7 1 8086 7111 IDE Controller 14
0 7 2 8086 7112 Serial Bus Controller 11
0 13 0 8086 1229 Network Controller 10
0 14 0 8086 1229 Network Controller 12
0 15 0 8086 1229 Network Controller 5
1 5 0 1011 0019 Network Controller 10
1 6 0 1011 0019 Network Controller 12
Attempt from latest 3.8 Snapshot
---8<---
Verifying DMI Pool Data ........
Boot from ATAPI CD-ROM :
CD-ROM: 9F
Loading /3.8/I386/CDBOOT
probing: pc0 mem[639K 255M a20=on]
disk: cd0
OpenBSD/i386 CDBOOT 1.04
boot> set tty com0
switching console to com0
com0 console not present
boot> set tty com1
switching console to com1
com1 console not present
boot> machine memory
Region 0: type 1 at 0x0 for 639KB
Region 1: type 1 at 0x9fc00 for 1KB
Region 2: type 2 at 0xf0000 for 64KB
Region 3: type 2 at 0xffff0000 for 64KB
Region 4: type 1 at 0x100000 for 261120KB
Low ram: 639KB High ram: 261120KB
Total free memory: 261760KB
boot> machine diskinfo
Disk BIOS# Type Cyls Heads Secs Flags Checksum
hd0 0x80 *none* 1024 255 63 0x4 0x86b8cab0
cd0 0x9f label 0 0 0 0xa 0x0
boot> boot -c
booting cd0a:/3.8/i386/bsd.rd: 4420484+740300 [52+154608+141206]=0x534480
entry point at 0x100120
---8<---
FreeBSD 6.0 dmesg
---8<---
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD-K6(tm) 3D processor (398.62-MHz 586-class CPU)
Origin = "AuthenticAMD" Id = 0x58c Stepping = 12
Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
AMD Features=0x80000800<SYSCALL,3DNow>
real memory = 268435456 (256 MB)
avail memory = 253325312 (241 MB)
K6-family MTRR support enabled (2 registers)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 7 Entries> on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 7.1 on
pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x6400-0x641f
irq 11 at device 7.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge> at device 7.3 (no driver attached)
fxp0: <Intel 82558 Pro/100 Ethernet> port 0x6800-0x681f mem
0xe0300000-0xe0300fff,0xe0000000-0xe00fffff irq 10 at device 13.0 on
pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: ff:ff:ff:ff:ff:ff
fxp1: <Intel 82558 Pro/100 Ethernet> port 0x6c00-0x6c1f mem
0xe0302000-0xe0302fff,0xe0100000-0xe01fffff irq 12 at device 14.0 on
pci0
miibus1: <MII bus> on fxp1
inphy1: <i82555 10/100 media interface> on miibus1
inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: ff:ff:ff:ff:ff:ff
fxp2: <Intel 82558 Pro/100 Ethernet> port 0x7000-0x701f mem
0xe0301000-0xe0301fff,0xe0200000-0xe02fffff irq 5 at device 15.0 on
pci0
miibus2: <MII bus> on fxp2
inphy2: <i82555 10/100 media interface> on miibus2
inphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp2: Ethernet address: ff:ff:ff:ff:ff:ff
pcib1: <PCI-PCI bridge> at device 16.0 on pci0
pci1: <PCI bus> on pcib1
dc0: <Intel 21143 10/100BaseTX> port 0xe000-0xe07f mem
0xd8000000-0xd80003ff irq 10 at device 5.0 on pci1
miibus3: <MII bus> on dc0
dcphy0: <Intel 21143 NWAY media interface> on miibus3
dcphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc0: Ethernet address: 00:c0:95:c7:cd:88
dc1: <Intel 21143 10/100BaseTX> port 0xe400-0xe47f mem
0xd8001000-0xd80013ff irq 12 at device 6.0 on pci1
miibus4: <MII bus> on dc1
dcphy1: <Intel 21143 NWAY media interface> on miibus4
dcphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc1: Ethernet address: 00:c0:95:c7:cd:89
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
ppc0: parallel port not found.
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0a03> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
ppc1: <ECP parallel printer port> at port 0x378-0x37f,0x778-0x77a irq
7 drq 3 on isa0
ppc1: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc1: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc1
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
psmcpnp0: irq resource info is missing; assuming irq 12
Timecounter "TSC" frequency 398620235 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 19092MB <WDC WD200EB-11CPF0 06.04G06> at ata0-master UDMA33
Trying to mount root from ufs:/dev/ad0s1a
---8<---
FreeBSD 6 /etc/ttys modifications
---8<---
ttyd0 "/usr/libexec/getty std.9600" vt100 on secure
---8<--- /etc/ttys ---8<---