Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jan 2011 13:30:39 +0100
From:      "Marek Salwerowicz" <marek_sal@wp.pl>
To:        <Soekris-tech@lists.soekris.com>, <freebsd-current@freebsd.org>
Subject:   Soekris net5501-70 problem with loading ATA modules on FreeBSD-Current
Message-ID:  <985980B15EF74FCD9DBAD736E3CCFF28@marekdesktop>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0005_01CBB4B8.667E0C70
Content-Type: text/plain; format=flowed; charset="iso-8859-2";
	reply-type=original
Content-Transfer-Encoding: 7bit

Hi all,

I am unable to dynamically load modules to support ATA disks on soekris net5501-70.

I boot via PXE diskless FreeBSD-Current.
In kernel config there are commented out options:

#device          ata            
#device          atadisk

After boot, I load modules:

 # kldload ata.ko
# kldload atapci.ko
# kldload ataamd
# kldload atadisk

so5501a% kldstat
Id Refs Address    Size     Name
 1   59 0xc0400000 4179cc   kernel
 2    1 0xc0818000 6c50     procfs.ko
 3    2 0xc081f000 6d80     pseudofs.ko
 4    1 0xc0826000 68c8     geom_md.ko
 5    1 0xc082d000 9b70     if_sis.ko
 6    3 0xc0837000 28400    miibus.ko
 7    1 0xc0860000 a418     if_vr.ko
 8    1 0xc2e78000 9000     tmpfs.ko
 9    4 0xc2ef1000 e000     ata.ko
10    2 0xc2f03000 8000     atapci.ko
11    1 0xc2f0d000 3000     ataamd.ko
12    1 0xc2f17000 4000     atadisk.ko
so5501a%

after that, in dmesg:

atapci0: <AMD ATA controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci0
atapci0: failed to add ata child device
atapci0: failed to add ata child device

And I am unable to access my HDD or CF. (see full 'dmesg' and 'kldstat -v' in attachment)


After compiling kernel with options:
device          ata            
device          atadisk

Everything works fine. 
But I would like to be able to load / unload ATA modules.. 

-- 
Marek Salwerowicz








------=_NextPart_000_0005_01CBB4B8.667E0C70
Content-Type: text/plain; format=flowed; name="net5501-ata-log.txt";
	reply-type=original
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="net5501-ata-log.txt"

so5501a% kldstat -v
Id Refs Address    Size     Name
 1   59 0xc0400000 4179cc   kernel (/boot/kernel.soekris/kernel)
        Contains modules:
                Id Name
                71 newreno
                69 if_lo
                64 elf32
                65 shell
                70 igmp
                72 nfs_common
                76 krpc
                75 nfslockd
                74 nfs
                52 devfs
                77 ufs
                58 g_part_bsd
                60 g_part_mbr
                59 g_part_ebr
                83 legacy/cpu
                82 nexus/legacy
                66 cpu/cpufreq
                39 null
                106 isa/sysresource
                105 nexus/ram
                104 root/nexus
                81 pci/geode
                80 isa/pnpbios
                79 io
                73 nfslock
                50 pci/uart
                103 qpi/pcib
                102 nexus/qpi
                49 isa/uart
                101 isa/orm
                100 acpi/atdma
                99 isa/atdma
                98 legacy/isa
                97 acpi/attimer
                96 isa/attimer
                38 mem
                95 acpi/atrtc
                94 isa/atrtc
                93 acpi/atpic
                92 isa/atpic
                48 random
                47 pty
                46 pci/vgapci
                45 pci/pcib
                91 legacy/pir
                44 pcib/pci
                43 pci/isab
                42 pci/ignore_pci
                90 pci/pcibios_pcib
                89 isa/pcibus_pnp
                88 legacy/pcib
                87 isa/pmtimer
                86 acpi/npxisa
                85 isa/npxisa
                84 nexus/npx
                63 isa/pnp
                62 eisab/isa
                61 isab/isa
                41 pci/hostb
                40 pci/fixup_pci
                51 watchdog
                78 g_class
                53 g_dev
                55 g_vfs
                67 rootbus
                57 g_part
                54 g_disk
                56 g_label
                68 ether
 2    1 0xc0818000 6c50     procfs.ko (/boot/kernel.soekris/procfs.ko)
        Contains modules:
                Id Name
                 2 procfs
 3    2 0xc081f000 6d80     pseudofs.ko (/boot/kernel.soekris/pseudofs.ko)
        Contains modules:
                Id Name
                 1 pseudofs
 4    1 0xc0826000 68c8     geom_md.ko (/boot/kernel.soekris/geom_md.ko)
        Contains modules:
                Id Name
                 3 g_md
 5    1 0xc082d000 9b70     if_sis.ko (/boot/kernel.soekris/if_sis.ko)
        Contains modules:
                Id Name
                35 pci/sis
                34 sis/miibus
 6    3 0xc0837000 28400    miibus.ko (/boot/kernel.soekris/miibus.ko)
        Contains modules:
                Id Name
                33 miibus/xmphy
                32 miibus/ukphy
                31 miibus/truephy
                30 miibus/tlphy
                29 miibus/tdkphy
                28 miibus/ruephy
                27 miibus/rlphy
                26 miibus/rgephy
                25 miibus/rdcphy
                24 miibus/qsphy
                23 miibus/pnaphy
                22 miibus/nsphyter
                21 miibus/nsphy
                20 miibus/nsgphy
                19 miibus/mlphy
                18 miibus/lxtphy
                17 miibus/jmphy
                16 miibus/ip1000phy
                15 miibus/inphy
                14 miibus/icsphy
                13 miibus/gentbi
                12 miibus/xlphy
                11 miibus/e1000phy
                10 miibus/ciphy
                 9 miibus/brgphy
                 8 miibus/bmtphy
                 7 miibus/axphy
                 6 miibus/atphy
                 5 miibus/amphy
                 4 miibus/acphy
 7    1 0xc0860000 a418     if_vr.ko (/boot/kernel.soekris/if_vr.ko)
        Contains modules:
                Id Name
                37 pci/vr
                36 vr/miibus
 8    1 0xc2e78000 9000     tmpfs.ko (/boot/kernel.soekris/tmpfs.ko)
        Contains modules:
                Id Name
                107 tmpfs
 9    4 0xc2ef1000 e000     ata.ko (/boot/kernel.soekris/ata.ko)
        Contains modules:
                Id Name
                108 ata
10    2 0xc2f03000 8000     atapci.ko (/boot/kernel.soekris/atapci.ko)
        Contains modules:
                Id Name
                110 pci/atapci
                109 atapci/ata
11    1 0xc2f0d000 3000     ataamd.ko (/boot/kernel.soekris/ataamd.ko)
        Contains modules:
                Id Name
                111 pci/ata_amd
12    1 0xc2f17000 4000     atadisk.ko (/boot/kernel.soekris/atadisk.ko)
        Contains modules:
                Id Name
                112 ata/ad
so5501a%

so5501a% dmesg
Copyright (c) 1992-2010 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 8.2-RC1 #0: Thu Dec 23 15:32:35 UTC 2010
    root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by AMD PCS (499.91-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x5a2  Family = 5  Model = a  Stepping = 2
  Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
  AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>
real memory  = 536870912 (512 MB)
avail memory = 510726144 (487 MB)
kbd1 at kbdmux0
K6-family MTRR support enabled (2 registers)
ACPI Error: A valid RSDP was not found (20101013/tbxfroot-309)
ACPI: Table initialisation failed: AE_NOT_FOUND
ACPI: Try disabling either ACPI or apic support.
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci0: <encrypt/decrypt, entertainment crypto> at device 1.2 (no driver attached)
vr0: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe100-0xe1ff mem 0xa0004000-0xa00040ff irq 11 at device 6.0 on pci0
vr0: Quirks: 0x2
vr0: Revision: 0x96
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:00:24:c9:2c:7c
vr0: [ITHREAD]
vr1: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe200-0xe2ff mem 0xa0004100-0xa00041ff irq 5 at device 7.0 on pci0
vr1: Quirks: 0x2
vr1: Revision: 0x96
miibus1: <MII bus> on vr1
ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr1: Ethernet address: 00:00:24:c9:2c:7d
vr1: [ITHREAD]
vr2: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe300-0xe3ff mem 0xa0004200-0xa00042ff irq 9 at device 8.0 on pci0
vr2: Quirks: 0x2
vr2: Revision: 0x96
miibus2: <MII bus> on vr2
ukphy2: <Generic IEEE 802.3u media interface> PHY 1 on miibus2
ukphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr2: Ethernet address: 00:00:24:c9:2c:7e
vr2: [ITHREAD]
vr3: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe400-0xe4ff mem 0xa0004300-0xa00043ff irq 12 at device 9.0 on pci0
vr3: Quirks: 0x2
vr3: Revision: 0x96
miibus3: <MII bus> on vr3
ukphy3: <Generic IEEE 802.3u media interface> PHY 1 on miibus3
ukphy3:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr3: Ethernet address: 00:00:24:c9:2c:7f
vr3: [ITHREAD]
pcib1: <PCI-PCI bridge> at device 14.0 on pci0
pci1: <PCI bus> on pcib1
sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0xd000-0xd0ff mem 0xa4000000-0xa4000fff irq 10 at device 0.0 on pci1
sis0: Silicon Revision: DP83816A
miibus4: <MII bus> on sis0
nsphyter0: <DP83815 10/100 media interface> PHY 0 on miibus4
nsphyter0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:00:24:c9:48:80
sis0: [ITHREAD]
sis1: <NatSemi DP8381[56] 10/100BaseTX> port 0xd100-0xd1ff mem 0xa4001000-0xa4001fff irq 6 at device 1.0 on pci1
sis1: Silicon Revision: DP83816A
miibus5: <MII bus> on sis1
nsphyter1: <DP83815 10/100 media interface> PHY 0 on miibus5
nsphyter1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis1: Ethernet address: 00:00:24:c9:48:81
sis1: [ITHREAD]
ath0: <Atheros 5212> mem 0xa0010000-0xa001ffff irq 15 at device 17.0 on pci0
ath0: [ITHREAD]
ath0: AR5413 mac 10.5 RF5413 phy 6.1
isab0: <PCI-ISA bridge> at device 20.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD CS5536 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
ohci0: <OHCI (generic) USB controller> mem 0xa0020000-0xa0020fff irq 7 at device 21.0 on pci0
ohci0: [ITHREAD]
usbus0: <OHCI (generic) USB controller> on ohci0
ehci0: <AMD CS5536 (Geode) USB 2.0 controller> mem 0xa0021000-0xa0021fff irq 7 at device 21.1 on pci0
ehci0: [ITHREAD]
usbus1: EHCI version 1.0
usbus1: <AMD CS5536 (Geode) USB 2.0 controller> on ehci0
cpu0 on motherboard
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc8000-0xd27ff pnpid ORM0000 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]
atkbd0: [ITHREAD]
atrtc0: <AT Real Time Clock> at port 0x70 irq 8 on isa0
ppc0: parallel port not found.
uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
uart0: [FILTER]
uart0: console (115200,n,8,1)
uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0
uart1: [FILTER]
Timecounter "TSC" frequency 499905707 Hz quality 800
Timecounters tick every 1.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ad1: DMA limited to UDMA33, device found non-ATA66 cable
ad1: 7279MB <ELITE PRO CF CARD 8GB Ver3.05K> at ata0-slave UDMA33
ugen0.1: <AMD> at usbus0
uhub0: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <AMD> at usbus1
uhub1: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
Root mount waiting for: usbus1 usbus0
uhub0: 4 ports with 4 removable, self powered
Root mount waiting for: usbus1
uhub1: 4 ports with 4 removable, self powered
Trying to mount root from ufs:/dev/ufs/ROOT
WARNING: TMPFS is considered to be a highly experimental feature in FreeBSD.
Copyright (c) 1992-2011 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 9.0-CURRENT #2: Fri Jan 14 16:45:16 CET 2011
    ato@volt.iem.pw.edu.pl:/tmp/obj/i386.i386/usr/src/sys/SOEKRIS i386
CPU: Geode(TM) Integrated Processor by AMD PCS (499.91-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x5a2  Family = 5  Model = a  Stepping = 2
  Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
  AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>
real memory  = 536870912 (512 MB)
avail memory = 515981312 (492 MB)
K6-family MTRR support enabled (2 registers)
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
Geode LX: Soekris net5501 comBIOS ver. 1.33c 20080626 Copyright (C) 2000-2008
pci0: <encrypt/decrypt, entertainment crypto> at device 1.2 (no driver attached)
vr0: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe100-0xe1ff mem 0xa0004000-0xa00040ff irq 11 at device 6.0 on pci0
vr0: Quirks: 0x2
vr0: Revision: 0x96
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:00:24:c9:2c:7c
vr1: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe200-0xe2ff mem 0xa0004100-0xa00041ff irq 5 at device 7.0 on pci0
vr1: Quirks: 0x2
vr1: Revision: 0x96
miibus1: <MII bus> on vr1
ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr1: Ethernet address: 00:00:24:c9:2c:7d
vr2: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe300-0xe3ff mem 0xa0004200-0xa00042ff irq 9 at device 8.0 on pci0
vr2: Quirks: 0x2
vr2: Revision: 0x96
miibus2: <MII bus> on vr2
ukphy2: <Generic IEEE 802.3u media interface> PHY 1 on miibus2
ukphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr2: Ethernet address: 00:00:24:c9:2c:7e
vr3: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe400-0xe4ff mem 0xa0004300-0xa00043ff irq 12 at device 9.0 on pci0
vr3: Quirks: 0x2
vr3: Revision: 0x96
miibus3: <MII bus> on vr3
ukphy3: <Generic IEEE 802.3u media interface> PHY 1 on miibus3
ukphy3:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr3: Ethernet address: 00:00:24:c9:2c:7f
pcib1: <PCI-PCI bridge> at device 14.0 on pci0
pci1: <PCI bus> on pcib1
sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0xd000-0xd0ff mem 0xa4000000-0xa4000fff irq 10 at device 0.0 on pci1
sis0: Silicon Revision: DP83816A
miibus4: <MII bus> on sis0
nsphyter0: <DP83815 10/100 media interface> PHY 0 on miibus4
nsphyter0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:00:24:c9:48:80
sis1: <NatSemi DP8381[56] 10/100BaseTX> port 0xd100-0xd1ff mem 0xa4001000-0xa4001fff irq 6 at device 1.0 on pci1
sis1: Silicon Revision: DP83816A
miibus5: <MII bus> on sis1
nsphyter1: <DP83815 10/100 media interface> PHY 0 on miibus5
nsphyter1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis1: Ethernet address: 00:00:24:c9:48:81
pci0: <network, ethernet> at device 17.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 20.0 on pci0
isa0: <ISA bus> on isab0
pci0: <mass storage, ATA> at device 20.2 (no driver attached)
pci0: <serial bus, USB> at device 21.0 (no driver attached)
pci0: <serial bus, USB> at device 21.1 (no driver attached)
cpu0 on motherboard
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc8000-0xd27ff pnpid ORM0000 on isa0
atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0
Event timer "RTC" frequency 32768 Hz quality 0
uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
uart0: console (115200,n,8,1)
uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0
Timecounter "TSC" frequency 499913835 Hz quality 800
Timecounters tick every 3.906 msec
Sending DHCP Discover packet from interface vr0 (00:00:24:c9:2c:7c)
Sending DHCP Discover packet from interface vr1 (00:00:24:c9:2c:7d)
Sending DHCP Discover packet from interface vr2 (00:00:24:c9:2c:7e)
Sending DHCP Discover packet from interface vr3 (00:00:24:c9:2c:7f)
Sending DHCP Discover packet from interface sis0 (00:00:24:c9:48:80)
Sending DHCP Discover packet from interface sis1 (00:00:24:c9:48:81)
Received DHCP Offer packet on vr0 from 194.29.146.27 (accepted) (no root path)
Sending DHCP Request packet from interface vr0 (00:00:24:c9:2c:7c)
Received DHCP Ack packet on vr0 from 194.29.146.27 (accepted) (got root path)
DHCP timeout for interface vr1
DHCP timeout for interface vr2
DHCP timeout for interface vr3
DHCP timeout for interface sis0
DHCP timeout for interface sis1
vr0 at 194.29.146.42 server 194.29.146.27 server name amp2
subnet mask 255.255.255.0 router 194.29.146.1 rootfs 194.29.146.3:/R rootopts nolockd hostname so5501a
Adjusted interface vr0
Shutdown interface vr1
Shutdown interface vr2
Shutdown interface vr3
Shutdown interface sis0
Shutdown interface sis1
Trying to mount root from nfs: []...
NFS ROOT: 194.29.146.3:/R
atapci0: <AMD ATA controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci0
atapci0: failed to add ata child device
atapci0: failed to add ata child device
so5501a%



------=_NextPart_000_0005_01CBB4B8.667E0C70--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?985980B15EF74FCD9DBAD736E3CCFF28>