FreeBSD 5.4-STABLEから6.1-STABLEにアップグレードする

FreeBSDがインストールされているPCはIBM ThinkPad i1124です。

5.4-STABEから6.1-RELEASEへアップグレード

kernel compile

# cd /usr/src/sys/i386/conf
# cp GENERIC I1124
# vi I1124
# config I1124


ERROR: version of config(8) does not match kernel!
config version = 500013, version required = 600003

Make sure that /usr/src/usr.sbin/config is in sync
with your /usr/src/sys and install a new config binary
before trying this again.

If running the new config fails check your config
file against the GENERIC or LINT config files for
changes in config syntax, or option/device naming
conventions

configのバージョンが古いと言うことなので、まずはconfigを先にコンパイルしてから、カーネルのコンパイルをする。

# cd /usr/src/usr.sbin/config
# make
# cd /usr/src/sys/i386/conf
# /usr/src/usr.sbin/config I1124
# cd ../compile/I1124
# make cleandepend; make depend; make
# make install
# reboot

dmesg

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 6.1-STABLE #3: Fri May 12 22:56:43 JST 2006
    jun1@i1124.sasaj.com:/usr/src/sys/i386/compile/I1124
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (503.31-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x686  Stepping = 6
 Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,
MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 201261056 (191 MB)
avail memory = 187420672 (178 MB)
kbd1 at kbdmux0
acpi0: <PTLTD   RSDT> on motherboard
acpi0: Power Button (fixed)
can't fetch resources for \\_SB_.PCI0.ISA_.FIR_ - AE_AML_INVALID_
RESOURCE_TYPE Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x19> port 0x62,0x66 on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,
0x3f6,0x170-0x177,0x376,0x1420-0x142f at device 7.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <Intel 82443MX USB controller> port 0x1400-0x141f irq 11
 at device 7.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82443MX USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge> at device 7.3 (no driver attached)
pci0: <display, VGA> at device 9.0 (no driver attached)
cbb0: <TI1211 PCI-CardBus Bridge> irq 11 at device 10.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pci0: <multimedia, audio> at device 11.0 (no driver attached)
pci0: <simple comms> at device 12.0 (no driver attached)
acpi_button0: <Sleep Button> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
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
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
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
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 Generic PS/2 mouse, device ID 0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcbfff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff
 on isa0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
Timecounter "TSC" frequency 503313111 Hz quality 800
Timecounters tick every 1.000 msec
cbb0: bad Vcc request. ctrl=0x33, status=0x30000b20
cbb_power: 3V
cardbus0: Expecting link target, got 0xff
cardbus0: Resource not specified in CIS: id=14, size=100
cardbus0: Resource not specified in CIS: id=20, size=20
uhci1: <VIA 83C572 USB controller> port 0x1100-0x111f mem
 0x88000000-0x880000ff
irq 11 at device 0.0 on cardbus0
uhci1: [GIANT-LOCKED]
ad0: 38154MB <IC25N040ATCS05 0 CS4OA61A> at ata0-master UDMA33
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
cardbus0: Expecting link target, got 0xff
cardbus0: Resource not specified in CIS: id=14, size=100
cardbus0: Resource not specified in CIS: id=20, size=20
uhci2: <VIA 83C572 USB controller> port 0x1120-0x113f mem
 0x88001000-0x880010ff
irq 11 at device 0.1 on cardbus0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
cardbus0: Expecting link target, got 0xff
cardbus0: Resource not specified in CIS: id=10, size=100
cardbus0: Resource not specified in CIS: id=14, size=100
cardbus0: <serial bus, USB> at device 0.2 (no driver attached)
cardbus0: CIS pointer is 0!
cardbus0: Resource not specified in CIS: id=10, size=800
cardbus0: Resource not specified in CIS: id=14, size=4000
fwohci0: <Texas Instruments TSB43AB22/A> mem 0x8800c000-
0x8800c7ff,0x88008000-0x8800bfff irq 11 at device 0.3 on cardbus0
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:01:b7:0d:00:00:5e:68
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
cardbus0: CIS pointer is 0!
cardbus0: Resource not specified in CIS: id=10, size=100
cardbus0: Resource not specified in CIS: id=14, size=100
rl0: <RealTek 8139 10/100BaseTX> port 0x1200-0x12ff mem 0x88002000-
0x880020ff irq 11 at device 0.4 on cardbus0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:e0:4c:0a:38:77
fwohci0: BUS reset
Trying to mount root from ufs:/dev/ad0s1a
rl0: link state changed to UP

make buildworld & make installworld

# cd /usr/src
# make buildworld
# make installworld

エラーメッセージを保存するのを忘れましたが、/usr/src/UPGRADING をみろというエラーが出ます。

ユーザー名が足りないからmergemaster -p を実行しろ。というエラーです。

# mergermaster -p

 シングルユーザーになる

# shutdown now
# cd /usr/src
# make installworld
# reboot

カーネルコンパイル

再起動したらケーネルをモウイチド作成し直しておきます。

# cd /usr/src/sys/i386/conf
# config I1124
# make cleandepend; make depend; make
# make install
# reboot

以上で終わりです。