The pfSense Store

Author Topic: Nokia 130  (Read 7910 times)

0 Members and 1 Guest are viewing this topic.

Offline Klug

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
    • Network Studio
Nokia 130
« on: June 01, 2008, 03:33:47 am »
Hello all.

Just got a Nokia 130 out of eBay and I'm trying to run pfSense on it (with the FreeBSD 6.3 version).
I'm doing the tests with an old HD (2 GB) on which I write the embedded image.

First I tried with the default embedded image and it gave me trap 12 (sounds normal).

Then I setup a FreeBSD VM on my laptop and setup the dev tools on it (6.3).
I built a brand new embedded image and wrote it, same issue.

Then I patched the kernel sources (using the patch I found on the forum) and built a new image.
Better but still not nice : the kernel finds a "HighPoint RocketRAID" then stops booting (unable to find the HD).

Then I removed the htprr from the kernel file and recompile it and rewrote the image.
Same problem...

Here's the dmesg I'm getting :
Code: [Select]
/boot/kernel/kernel text=0x4fccdc data=0x95eb4+0x43598 /

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.3-RELEASE-p2 #0: Fri May 30 18:25:44 UTC 2008
    root@pfSense.local:/usr/obj.pfSense/usr/src/sys/pfSense_wrap.6
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by National Semi (300.01-MHz 586-class CPU)
  Origin = "Geode by NSC"  Id = 0x540  Stepping = 0
  Features=0x808131<FPU,TSC,MSR,CX8,CMOV,MMX>
real memory  = 268435456 (256 MB)
avail memory = 253263872 (241 MB)
wlan: mac acl policy registered
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 4 Entries> on motherboard
pci0: <PCI bus> on pcib0
ubsec0 mem 0x80000000-0x8000ffff irq 10 at device 13.0 on pci0
ubsec0: Broadcom 5802
fxp0: <Intel 82559ER Embedded 10/100 Ethernet> port 0x8000-0x803f mem 0x80100000
-0x80100fff,0x80200000-0x8021ffff irq 11 at device 14.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: 00:a0:8e:22:03:38
fxp1: <Intel 82559ER Embedded 10/100 Ethernet> port 0x8400-0x843f mem 0x80300000
-0x80300fff,0x80400000-0x8041ffff irq 10 at device 15.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: 00:a0:8e:22:03:39
fxp2: <Intel 82559ER Embedded 10/100 Ethernet> port 0x8800-0x883f mem 0x80500000
-0x80500fff,0x80600000-0x8061ffff irq 5 at device 16.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: 00:a0:8e:22:03:3a
isab0: <PCI-ISA bridge> at device 18.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge> at device 18.1 (no driver attached)
atapci0: <Cyrix 5530 ATA33 controller> port 0xfc00-0xfc0f at device 18.2 on pci0
ata0: <ATA channel 0> on atapci0
device_attach: ata0 attach returned 6
ata1: <ATA channel 1> on atapci0
device_attach: ata1 attach returned 6
pci0: <multimedia, audio> at device 18.3 (no driver attached)
orm0: <ISA Option ROMs> at iomem 0xe8000-0xebfff,0xec000-0xeffff on isa0
ppc0: parallel port not found.
sio0 at port 0x3f8-0x3ff irq 4 flags 0x30 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0c02> can't assign resources (port)
speaker0: <PC speaker> at port 0x61 on isa0
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
Timecounters tick every 10.000 msec
Fast IPsec: Initialized Security Association Processing.
Trying to mount root from ufs:/dev/ufs/pfSense

Manual root filesystem specification:
  <fstype>:<device>  Mount <device> using filesystem <fstype>
                       eg. ufs:da0s1a
  ?                  List valid disk boot devices
  <empty line>       Abort manual input

mountroot> ?

List of GEOM managed disk devices:


Manual root filesystem specification:
  <fstype>:<device>  Mount <device> using filesystem <fstype>
                       eg. ufs:da0s1a
  ?                  List valid disk boot devices
  <empty line>       Abort manual input

mountroot>

It seems the kernel does find a IDE/HD controler (Cyrix 5530 ATA33 controller) but is unable to access the HD through it.

Any idea about this ?
Anything I could try (debug kernel ?) in order to get additional informations ?

Thanks.
« Last Edit: June 01, 2008, 03:49:08 am by Klug »

Offline Klug

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
    • Network Studio
Re: Nokia 130
« Reply #1 on: June 01, 2008, 04:53:55 am »
Me again.
Actually, this thread might be in "Hardware", feel free to move it if needed.

I've just tried with another HD (just in case), same issue.

Offline ermal

  • Administrator
  • Hero Member
  • *****
  • Posts: 3365
  • Karma: +3/-0
    • View Profile
Re: Nokia 130
« Reply #2 on: June 01, 2008, 09:05:06 am »
Actually it does not attach the disk cleanly as you can read by the device attach returned error 6.
From 6.3-RELEASE notes, here it seems that the following driver
The rr232x(4) driver supports the following hardware:

    * HighPoint RocketRAID 2320
    * HighPoint RocketRAID 2322

supports your controller i do not recall if that driver is included in pfSense system.
If not grab the module from a 6.3-RELEASE cd and try it out or build a pfSense kernel with that device in it.

Ermal



Offline Klug

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
    • Network Studio
Re: Nokia 130
« Reply #3 on: June 02, 2008, 03:31:22 am »
The problem seems to be in 6.3-RELEASE, with the Cyrix controler.
http://www.opensubscriber.com/message/freebsd-stable@freebsd.org/8448087.html

I hope it's not related to the pci patch I'm using 8-§
« Last Edit: June 02, 2008, 06:29:06 am by Klug »

Offline Klug

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
    • Network Studio
Re: Nokia 130
« Reply #4 on: June 02, 2008, 05:55:33 am »
Working !

Once the below patch is applied (as per the linked thread), no more problem booting.
Code: [Select]
Index: pci.c
===================================================================
RCS file: /host/cvs/usr/cvs/src/sys/dev/pci/pci.c,v
retrieving revision 1.292.2.23
diff -u -r1.292.2.23 pci.c
--- pci.c 10 Jan 2008 21:17:12 -0000 1.292.2.23
+++ pci.c 25 Jan 2008 14:05:20 -0000
@@ -1898,7 +1898,9 @@
/* ATA devices needs special map treatment */
if ((pci_get_class(dev) == PCIC_STORAGE) &&
    (pci_get_subclass(dev) == PCIS_STORAGE_IDE) &&
-     (pci_get_progif(dev) & PCIP_STORAGE_IDE_MASTERDEV))
+     ((pci_get_progif(dev) & PCIP_STORAGE_IDE_MASTERDEV) ||
+      (!pci_read_config(dev, PCIR_BAR(0), 4) &&
+       !pci_read_config(dev, PCIR_BAR(2), 4))) )
pci_ata_maps(pcib, bus, dev, b, s, f, rl, force, prefetchmask);
else
for (i = 0; i < cfg->nummaps;)

Here's the full dmesg I now have :
Code: [Select]
/boot/kernel/kernel text=0x4fcd5c data=0x95eb4+0x43598 /

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.3-RELEASE-p2 #0: Sat May 31 07:25:25 UTC 2008
    root@pfSense.local:/usr/obj.pfSense/usr/src/sys/pfSense_wrap.6
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by National Semi (300.01-MHz 586-class CPU)
  Origin = "Geode by NSC"  Id = 0x540  Stepping = 0
  Features=0x808131<FPU,TSC,MSR,CX8,CMOV,MMX>
real memory  = 268435456 (256 MB)
avail memory = 253263872 (241 MB)
wlan: mac acl policy registered
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 4 Entries> on motherboard
pci0: <PCI bus> on pcib0
ubsec0 mem 0x80000000-0x8000ffff irq 10 at device 13.0 on pci0
ubsec0: Broadcom 5802
fxp0: <Intel 82559ER Embedded 10/100 Ethernet> port 0x8000-0x803f mem 0x80100000
-0x80100fff,0x80200000-0x8021ffff irq 11 at device 14.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: 00:a0:8e:22:03:38
fxp1: <Intel 82559ER Embedded 10/100 Ethernet> port 0x8400-0x843f mem 0x80300000
-0x80300fff,0x80400000-0x8041ffff irq 10 at device 15.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: 00:a0:8e:22:03:39
fxp2: <Intel 82559ER Embedded 10/100 Ethernet> port 0x8800-0x883f mem 0x80500000
-0x80500fff,0x80600000-0x8061ffff irq 5 at device 16.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: 00:a0:8e:22:03:3a
isab0: <PCI-ISA bridge> at device 18.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge> at device 18.1 (no driver attached)
atapci0: <Cyrix 5530 ATA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,
0xfc00-0xfc0f at device 18.2 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <multimedia, audio> at device 18.3 (no driver attached)
orm0: <ISA Option ROMs> at iomem 0xe8000-0xebfff,0xec000-0xeffff on isa0
ppc0: parallel port not found.
sio0 at port 0x3f8-0x3ff irq 4 flags 0x30 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0c02> can't assign resources (port)
speaker0: <PC speaker> at port 0x61 on isa0
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
Timecounters tick every 10.000 msec
Fast IPsec: Initialized Security Association Processing.
ad0: 2067MB <IBM DCRA-22160 A81AD0> at ata0-master PIO4
GEOM_LABEL: Label for provider ad0a is ufs/pfSense.
GEOM_LABEL: Label for provider ad0d is ufs/pfSenseCfg.
Trying to mount root from ufs:/dev/ufs/pfSense

     ___
 ___/ f \
/ p \___/ Sense
\___/   \
    \___/

Welcome to pfSense 1.2.1-TESTING-SNAPSHOT on the 'embedded' platform...

Setting up embedded specific environment... done.
Mounting filesystems... done.
Creating symlinks......done.
Launching PHP init system... done.
Initializing.................. done.
Starting device manager (devd)...done.
Loading configuration......done.

Network interface mismatch -- Running interface assignment option.

Valid interfaces are:

fxp0    00:a0:8e:22:03:38
fxp1    00:a0:8e:22:03:39
fxp2    00:a0:8e:22:03:3a

Do you want to set up VLANs first?
If you are not going to use VLANs, or only for optional interfaces, you should
say no here and use the webConfigurator to configure VLANs later, if required.

Do you want to set up VLANs now [y|n]?

Offline DAPBENJAMIN

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Nokia 130
« Reply #5 on: June 15, 2008, 09:49:53 am »
Hi,

Could I get a copy of your image?

Regards,

Darren