FreeBSD に関する幾つかのメモ


インストール・設定などはこちら(以前のこのページ)
自作PC(main server)
VMware 2.0 on FreeBSD
Dynabook PAT5X16PME
SOTEC WL2120
自作PC(Athlon 64)


ハードウェア
2001年2月19日から、新しいマシンに入れ替わりました。
古いマシンと入替えの経緯についてはこちら。

2005年4月2日から、FreeBSD 5.x系列に移行しました。
4.xの頃の話はこちら。

2006年1月頃から、マザーボードを入れ替えました。
その頃までの話はこちら。

2006年6月頃から、FreeBSD 6.x系列に移行しました。
アップデートの詳細は、その頃の日記を見てください。

2006年9月28日から、全システムを入れ替えました。
その頃までの話はありません。経緯は2006年9月頃からの日記をご覧下さい。

CPUAMD Athlon 64 X2 3800+
M/BGIGABYTE GA-M55plus-S3G
ケース+電源スカイテック SKC-05P400/B (400W)
Memory1024MB ( 512MB DDR2-533 SDRAM * 2 )
Videoon Board GeForce6100
NICPLANEX FNW-9803-T PCI Ethernet (ADMtek AN985)
NIC3com 3C905B-TX PCI Ethernet (3Com 3c905B-TX)
NICBuffalo/LGY-PCI-TXC PCI Ethernet (SiS 900)
FDDNEC? 2mode FDD
HDDHitachi HDT725025VLA380 V5DOA52A ( 250GB, 7200rpm, SATA )
HDDHGST Deskstar 120GXP IC35L120AVV207-0 ( 120GB, 7200rpm, UltraATA100 )
CD-R/RWA/Open CRW1232A ( x12/10/32 )
UPSOMRON BX50XF
DisplayBUFFALO FTD-G722AS
KeyboardN/B 106キーボード
MouseN/B スクロールマウス
※印は中古品でした。

OSは FreeBSD 6-STABLE/i386 , X は Xorg 6.9.0 です。
probe の結果はこんな感じ。

Copyright (c) 1992-2006 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.2-PRERELEASE #1: Fri Sep 29 08:12:56 JST 2006
    turutani@polymer3.scphys.kyoto-u.ac.jp:/usr/obj/usr/src/sys/***
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (2009.16-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x40fb2  Stepping = 2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow+,3DNow>
  AMD Features2=0x1f<LAHF,CMP,<b2>,<b3>,CR8>
  Cores per package: 2
real memory  = 1040121856 (991 MB)
avail memory = 1004072960 (957 MB)
ACPI APIC Table: <GBT    AWRDACPI>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
netsmb_dev: loaded
acpi0: <GBT AWRDACPI> on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
cpu0: <ACPI CPU> on acpi0
powernow0: <PowerNow! K8> on cpu0
cpu1: <ACPI CPU> on acpi0
powernow1: <PowerNow! K8> on cpu1
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.0 (no driver attached)
pci0: <memory, RAM> at device 0.1 (no driver attached)
pci0: <memory, RAM> at device 0.2 (no driver attached)
pci0: <memory, RAM> at device 0.3 (no driver attached)
pci0: <memory, RAM> at device 0.4 (no driver attached)
pci0: <memory, RAM> at device 0.5 (no driver attached)
pci0: <memory, RAM> at device 0.6 (no driver attached)
pci0: <memory, RAM> at device 0.7 (no driver attached)
nvidia0: <GeForce 6100> mem 0xf2000000-0xf2ffffff,0xe0000000-0xefffffff,0xf5000000-0xf5ffffff irq 16 at device 5.0 on pci0
nvidia0: [GIANT-LOCKED]
pci0: <memory, RAM> at device 9.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 10.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 10.1 (no driver attached)
pci0: <memory, RAM> at device 10.2 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xf7008000-0xf7008fff irq 21 at device 11.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 8 ports with 8 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xf7004000-0xf70040ff irq 22 at device 11.1 on pci0
ehci0: [GIANT-LOCKED]
usb1: EHCI version 1.0
usb1: companion controller, 8 ports each: usb0
usb1: <EHCI (generic) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 8 ports with 8 removable, self powered
atapci0: <nVidia nForce MCP51 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 13.0 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
atapci1: <nVidia nForce MCP51 SATA300 controller> port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd800-0xd80f mem 0xf7007000-0xf7007fff irq 23 at device 14.0 on pci0
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
atapci2: <nVidia nForce MCP51 SATA300 controller> port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc400-0xc40f mem 0xf7006000-0xf7006fff irq 20 at device 15.0 on pci0
ata4: <ATA channel 0> on atapci2
ata5: <ATA channel 1> on atapci2
pcib1: <ACPI PCI-PCI bridge> at device 16.0 on pci0
pci1: <ACPI PCI bus> on pcib1
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xa000-0xa07f mem 0xf4007000-0xf400707f irq 16 at device 6.0 on pci1
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:50:04:bd:87:60
xl0: [GIANT-LOCKED]
dc0: <ADMtek AN985 10/100BaseTX> port 0xa400-0xa4ff mem 0xf4004000-0xf40043ff irq 17 at device 7.0 on pci1
miibus1: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc0: Ethernet address: 00:90:cc:52:4d:37
dc0: [GIANT-LOCKED]
sis0: <SiS 900 10/100BaseTX> port 0xa800-0xa8ff mem 0xf4005000-0xf4005fff irq 18 at device 8.0 on pci1
miibus2: <MII bus> on sis0
ukphy1: <Generic IEEE 802.3u media interface> on miibus2
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:07:40:24:7e:52
sis0: [GIANT-LOCKED]
fwohci0: <Texas Instruments TSB43AB23> mem 0xf4006000-0xf40067ff,0xf4000000-0xf4003fff irq 18 at device 14.0 on pci1
fwohci0: [GIANT-LOCKED]
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:16:e6:00:00:c4:6b:26
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:16:e6:c4:6b:26
fwe0: Ethernet address: 02:16:e6:c4:6b:26
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
pci0: <multimedia> at device 16.1 (no driver attached)
pci0: <bridge> at device 20.0 (no driver attached)
speaker0: <PC speaker> port 0x61 on acpi0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x1 on acpi0
sio0: type 16550A
ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model 4D Mouse, device ID 6
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xd0000-0xd17ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
ad0: 117799MB <IC35L120AVV207 0 V24OA63A> at ata0-master UDMA100
ad1: 117800MB <HDS722512VLAT80 V33OA6MA> at ata0-slave UDMA100
acd0: CDRW <AOPEN CD-RW CRW1232 A/1.11> at ata1-master PIO4
ad4: 238475MB <Hitachi HDT725025VLA380 V5DOA52A> at ata2-master SATA300
SMP: AP CPU #1 Launched!
cd0 at ata1 bus 0 target 0 lun 0
cd0: <AOPEN CD-RW CRW1232 A 1.11> Removable CD-ROM SCSI-0 device
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Xorg と nVidia GeForce 6100
マザーボード上のVGAの nVidia GeForce 6100 ですが、 Xorg 6.9.0のXserverでは、vesaドライバでないと表示できないようです。
ただし、portsから、x11/nvidia-driverなどをインストールすると、nvドライバで動作するようになります。
Section "Device"
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia"
        BoardName   "GeForce 6100"
EndSection
といった感じでOKでした。[2006.10.04]

Sound
現時点(2006.10.04)でのサウンドドライバには、適切なものがありません。
そこで、ここからダウンロードしたファイルで 作成したカーネルモジュールを組み込むと、きちんと音が鳴りました。ちょっと荒削りな感じがしなくもないですが、 気のせいかもしれません。
snd_hda.koをロードするように、/etc/rc.localに書いておきました。
認識は以下の通り:
% cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0:  at memory 0xf7000000 irq 21 kld snd_hda [20060928_024] (1p/1r/0v channels duplex default)

なお、snd_hda.koは、CURRENTでは存在するようですが、このM/Bの音源がサポートされているかは知りません。[2006.10.04]

UPS
そのままでは、起動時にUPS DOWNシグナルを拾ってしまうようです。そこで、/boot/device.hintsで
hint.sio.0.flags="0x1"
とし、起動時にデバイスの認識をしないようにしました。[2006.10.04]

GbE
オンボードのGbE(物理層のチップはMarvell 88E1116 phy)は、認識されませんでした。
CURRENTでは使えそうな雰囲気ですが、未確認。[2006.10.04]


GO PREV.つるたにの自己紹介へ戻る
GO PREV.つるたにのホームページへ戻る
turutani@scphys.kyoto-u.ac.jp