FreeBSD na ALIXu (DMA u HDD)

Martin Salac salac at certicon.cz
Wed Dec 3 17:53:22 CET 2008


Ahoj,

mam zajimavy postreh (+ maly namet na premysleni).

Instaloval jsem FreeBSD na ALIX (viz thread DMZ a Usporne PC ...) a
pozadavek byl pripojit misto CF normalni 2,5" ATA HDD (duvody neresme).
Zvolil jsem model ALIX2D3 (http://www.pcengines.ch/alix2d3.htm) -
v podstate osekle tuctove pecko s AMD Geode256 cipem, trema sitovkama,
ale hlavne miniATA (pro 2,5" HDD) patici vedle CF slotu.
Poridil 40ti zilovou ksandicku pro notebookove disky, nainstaloval
na stolnim PC system, zapojil do ALIXe, nabootoval z nej a projevil
se klasicky problem UDMA66/UDMA100 na "33" kabelu:

ad0: 28615MB <IC25N030ATDA04 0 DA4OA70A> at ata0-master UDMA100
ad0: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=63
ad0: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=63
ad0: FAILURE - READ_DMA status=51<READY,DSC,ERROR> 
error=84<ICRC,ABORTED> LBA=63
... (a porad dokolecka)

(cely vypis dmeg nize).

googlil jsem, jak vnutit systemu nahlizet na disk jako na UDMA33 
zariizeni uz pri bootu,
nasel jsem odpoved zde:
http://www.nabble.com/net5501-ATA-UDMA-mode-problem-with-FreeBSD-7.0-td17449010.html
nastavil do /boot/loader.conf
hw.ata.ata_dma_limit="2"  (coz je UDMA33)

... a efekt zadny - stale UDMA100.

Nesetkal se s tim nekdo, popr. netusi, proc mi option ata_dma_limit 
nezabrala?
(7.1-PRERELEASE)

Podotykam, ze jsem problem "obesel" vypnutim DMA v loaderu a po 
nabootovani nastavenim
ad0 na UDMA33 atacontrolem pomoc rc scriptu.

BTW - ALIX slape jako hodinky - muzu vrele doporucit na nenarocne 
routovani a bridge hlavne
u domacich siti,  zkusenosti s nim + FreeBSD mam velmi pozitivni - 
proste prima hracka :)

Zdravi

Martin

P.S. koho zajima info o systemu:

"BIOS" vypada takto (* * =aktivni option) :
(9) 9600 baud (2) 19200 baud *3* 38400 baud (5) 57600 baud (1) 115200 baud
(C) CHS mode *L* LBA mode *W* HDD wait (V) HDD slave *U* UDMA enable
(M) MFGPT workaround
(P) late PCI init
*R* Serial console enable
(E) PXE boot enable
(X) Xmodem upload
(Q) Quit

------------------------------------------

boot + dmesg:

PC Engines ALIX.2 v0.99
640 KB Base Memory
261120 KB Extended Memory
Waiting for HDD ...

01F0 Master 045A IC25N030ATDA04-0
Phys C/H/S 16383/16/63 Log C/H/S 3648/255/63 LBA

F1   FreeBSD

Default: F1

/boot/kernel/kernel text=0x363b68 data=0x3a4a0+0x3a1a0 
syms=[0x4+0x43290+0x4+0x5
5ce2]
/boot/kernel/glxsb.ko text=0x3208 data=0x1bc+0x4 syms=[0x4+0x830+0x4+0x8a3]
loading required module 'crypto'
/boot/kernel/crypto.ko text=0x215a8 data=0x704+0x2a0 
syms=[0x4+0x1840+0x4+0x184a
]
loading required module 'zlib'
/boot/kernel/zlib.ko text=0x7bf0 data=0x320+0x19c0 
syms=[0x4+0x7e0+0x4+0x677]
/

  ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ?
  3                                         3
  3                                         3      ______
  3                                         3     |  ____| __ ___  ___
  3          Welcome to FreeBSD!            3     | |__ | '__/ _ \/ _ \
  3                                         3     |  __|| | |  __/  __/
  3                                         3     | |   | | |    |    |
  3  1. Boot FreeBSD [default]              3     |_|   |_|  \___|\___|
  3  2. Boot FreeBSD with ACPI enabled      3      ____   _____ _____
  3  3. Boot FreeBSD in Safe Mode           3     |  _ \ / ____|  __ \
  3  4. Boot FreeBSD in single user mode    3     | |_) | (___ | |  | |
  3  5. Boot FreeBSD with verbose logging   3     |  _ < \___ \| |  | |
  3  6. Escape to loader prompt             3     | |_) |____) | |__| |
  3  7. Reboot                              3     |     |      |      |
  3                                         3     |____/|_____/|_____/
  3                                         3
  3                                         3
  3                                         3
  3  Select option, [Enter] for default     3
  3  or [Space] to pause timer  0           3
  AÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄU

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 7.1-PRERELEASE #0: Tue Nov 25 18:55:49 CET 2008
     root at alix.whatever.cz:/usr/obj/usr/src/sys/ALIX
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by AMD PCS (498.05-MHz 586-class CPU)
   Origin = "AuthenticAMD"  Id = 0x5a2  Stepping = 2
   Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
   AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>
real memory  = 268435456 (256 MB)
avail memory = 252989440 (241 MB)
pnpbios: Bad PnP BIOS data checksum
kbd0 at kbdmux0
K6-family MTRR support enabled (2 registers)
cryptosoft0: <software crypto> on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
glxsb0: <AMD Geode LX Security Block (AES-128-CBC, RNG)> mem 
0xefff4000-0xefff7f
ff irq 9 at device 1.2 on pci0
vr0: <VIA VT6105M Rhine III 10/100BaseTX> port 0x1000-0x10ff mem 
0xe0000000-0xe0
0000ff irq 10 at device 9.0 on pci0
vr0: Quirks: 0x6
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:0d:b9:16:b9:7c
vr0: [ITHREAD]
vr1: <VIA VT6105M Rhine III 10/100BaseTX> port 0x1400-0x14ff mem 
0xe0040000-0xe0
0400ff irq 11 at device 10.0 on pci0
vr1: Quirks: 0x6
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:0d:b9:16:b9:7d
vr1: [ITHREAD]
vr2: <VIA VT6105M Rhine III 10/100BaseTX> port 0x1800-0x18ff mem 
0xe0080000-0xe0
0800ff irq 12 at device 11.0 on pci0
vr2: Quirks: 0x6
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:0d:b9:16:b9:7e
vr2: [ITHREAD]
isab0: <PCI-ISA bridge> port 
0x6000-0x6007,0x6100-0x61ff,0x6200-0x623f,0x9d00-0x
9d7f,0x9c00-0x9c3f at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD CS5536 UDMA100 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x37
6,0xff00-0xff0f at device 15.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 0xefffe000-0xefffefff irq 15 
at devic
e 15.4 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 4 ports with 4 removable, self powered
ehci0: <AMD CS5536 (Geode) USB 2.0 controller> mem 0xefffd000-0xefffdfff 
irq 15
at device 15.5 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb1: EHCI version 1.0
usb1: companion controller, 4 ports each: usb0
usb1: <AMD CS5536 (Geode) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: <AMD EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb1
uhub1: 4 ports with 4 removable, self powered
cpu0 on motherboard
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xe0000-0xea7ff pnpid ORM0000 on isa0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
Timecounter "TSC" frequency 498052687 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 28615MB <IC25N030ATDA04 0 DA4OA70A> at ata0-master PIO4
Trying to mount root from ufs:/dev/ad0s1a

------------------------------------------

pciconf -lv:

hostb0 at pci0:0:1:0:      class=0x060000 card=0x20801022 chip=0x20801022 
rev=0x33 hdr=0x00
     vendor     = 'Advanced Micro Devices (AMD)'
     device     = 'Conrad Kostecki'
     class      = bridge
     subclass   = HOST-PCI
glxsb0 at pci0:0:1:2:      class=0x101000 card=0x20821022 chip=0x20821022 
rev=0x00 hdr=0x00
     vendor     = 'Advanced Micro Devices (AMD)'
     device     = 'GX3 Geode GX3 AES Crypto Driver'
     class      = encrypt/decrypt
vr0 at pci0:0:9:0: class=0x020000 card=0x01061106 chip=0x30531106 rev=0x96 
hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'VT6105M Rhine III Management Adapter'
     class      = network
     subclass   = ethernet
vr1 at pci0:0:10:0:        class=0x020000 card=0x01061106 chip=0x30531106 
rev=0x96 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'VT6105M Rhine III Management Adapter'
     class      = network
     subclass   = ethernet
vr2 at pci0:0:11:0:        class=0x020000 card=0x01061106 chip=0x30531106 
rev=0x96 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'VT6105M Rhine III Management Adapter'
     class      = network
     subclass   = ethernet
isab0 at pci0:0:15:0:      class=0x060100 card=0x20901022 chip=0x20901022 
rev=0x03 hdr=0x00
     vendor     = 'Advanced Micro Devices (AMD)'
     device     = 'CS5536 [Geode companion] ISA'
     class      = bridge
     subclass   = PCI-ISA
atapci0 at pci0:0:15:2:    class=0x010180 card=0x209a1022 chip=0x209a1022 
rev=0x01 hdr=0x00
     vendor     = 'Advanced Micro Devices (AMD)'
     device     = 'CS5536 CS5536 IDE Controller'
     class      = mass storage
     subclass   = ATA
ohci0 at pci0:0:15:4:      class=0x0c0310 card=0x20941022 chip=0x20941022 
rev=0x02 hdr=0x00
     vendor     = 'Advanced Micro Devices (AMD)'
     device     = 'CS5536 CS5536 OHCI USB Host Controller'
     class      = serial bus
     subclass   = USB
ehci0 at pci0:0:15:5:      class=0x0c0320 card=0x20951022 chip=0x20951022 
rev=0x02 hdr=0x00
     vendor     = 'Advanced Micro Devices (AMD)'
     device     = 'CS5536 CS5536 EHCI USB Host Controller'
     class      = serial bus
     subclass   = USB

------------------------------------------

/boot/loader.conf:

glxsb_load="YES"
autoboot_delay="3"
console="comconsole"
comconsole_speed="38400"
hw.ata.ata_dma="0"
#hw.ata.ata_dma_limit="1"



More information about the Users-l mailing list