Nokia 130



  • 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 :```
    /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 4="" interrupt="" routing="" table:="" 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 10="" 100="" 82559er="" embedded="" 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 10="" 100="" 82559er="" embedded="" 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 10="" 100="" 82559er="" embedded="" 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 0="" channel=""> on atapci0
    device_attach: ata0 attach returned 6
    ata1: <ata 1="" channel=""> 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></empty></fstype></device></device></fstype></empty></fstype></device></device></fstype></pnp0501></pnp0501></pc></pnp0c02></pnp0c01></isa></multimedia,></ata></ata></cyrix></bridge></isa></pci-isa></i82555></mii></intel></i82555></mii></intel></i82555></mii></intel></pci></pci></host></fpu,tsc,msr,cx8,cmov,mmx>

    
    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.


  • 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.



  • 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



  • 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-§



  • Working !

    Once the below patch is applied (as per the linked thread), no more problem booting.

    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 :

    /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 4="" interrupt="" routing="" table:="" 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 10="" 100="" 82559er="" embedded="" 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 10="" 100="" 82559er="" embedded="" 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 10="" 100="" 82559er="" embedded="" 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 0="" channel=""> on atapci0
    ata1: <ata 1="" channel=""> 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]?</ibm></pnp0501></pnp0501></pc></pnp0c02></pnp0c01></isa></multimedia,></ata></ata></cyrix></bridge></isa></pci-isa></i82555></mii></intel></i82555></mii></intel></i82555></mii></intel></pci></pci></host></fpu,tsc,msr,cx8,cmov,mmx>
    


  • Hi,

    Could I get a copy of your image?

    Regards,

    Darren


Log in to reply