| 313 | |
| 314 | = 09/17 = |
| 315 | * 高速なviolaを用いてビルドする |
| 316 | * Xeon X5570 * 2, 12GB memory |
| 317 | |
| 318 | == remake Ubuntu Guest == |
| 319 | * 何度もkernelの導入を試してごちゃごちゃしてきてしまったので、一度再インストールしてVMのスナップショットを取っておく |
| 320 | |
| 321 | * s0711489@ubuntu-lucid:~$ sudo aptitude install -R vim screen subversion |
| 322 | * s0711489@ubuntu-lucid:~$ sudo update-alternatives --config editor |
| 323 | * s0711489@ubuntu-lucid:~$ sudo visudo |
| 324 | * s0711489@ubuntu-lucid:~$ sudo aptitude install build-essential kernel-package libncurses-dev |
| 325 | |
| 326 | * s0711489@ubuntu-lucid:~$ sudo mount /dev/cdrom /media |
| 327 | * s0711489@ubuntu-lucid:~$ tar xzf /media/VMwareTools-8.4.6-385536.tar.gz |
| 328 | * s0711489@ubuntu-lucid:~/vmware-tools-distrib$ sudo ./vmware-install.pl --default |
| 329 | |
| 330 | == build kernel on viola == |
| 331 | * viola06:linux s0711489$ sha1sum -b mirrors-linux-v2.6.32-0-g22763c5.tar.gz |
| 332 | {{{ |
| 333 | 61a48874ea6e0887e0bd89505b80d590a63175c4 *mirrors-linux-v2.6.32-0-g22763c5.tar.gz |
| 334 | }}} |
| 335 | |
| 336 | * viola06:mirrors-linux-459b3d5 s0711489$ make defconfig |
| 337 | * viola06:mirrors-linux-459b3d5 s0711489$ make menuconfig |
| 338 | * 前回と同じ |
| 339 | * viola06:mirrors-linux-459b3d5 s0711489$ make -j 16 |
| 340 | * viola06:mirrors-linux-459b3d5 s0711489$ make modules |
| 341 | |
| 342 | == make install on Guest == |
| 343 | * s0711489@ubuntu-lucid:/mnt/hgfs/mirrors-linux-459b3d5$ sudo make install |
| 344 | {{{ |
| 345 | HOSTCC scripts/basic/fixdep |
| 346 | HOSTCC scripts/basic/docproc |
| 347 | HOSTCC scripts/basic/hash |
| 348 | HOSTCC scripts/kconfig/conf.o |
| 349 | scripts/kconfig/conf.c: In function ‘conf_askvalue’: |
| 350 | scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result |
| 351 | scripts/kconfig/conf.c: In function ‘conf_choice’: |
| 352 | scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result |
| 353 | HOSTCC scripts/kconfig/kxgettext.o |
| 354 | HOSTCC scripts/kconfig/zconf.tab.o |
| 355 | HOSTLD scripts/kconfig/conf |
| 356 | scripts/kconfig/conf -s arch/x86/Kconfig |
| 357 | * |
| 358 | * Restart config... |
| 359 | * |
| 360 | * |
| 361 | * RCU Subsystem |
| 362 | * |
| 363 | RCU Implementation |
| 364 | > 1. Tree-based hierarchical RCU (TREE_RCU) |
| 365 | choice[1]: 1 |
| 366 | Enable tracing for RCU (RCU_TRACE) [N/y/?] n |
| 367 | Tree-based hierarchical RCU fanout value (RCU_FANOUT) [32] (NEW) |
| 368 | }}} |
| 369 | * うまくいかない |
| 370 | * violaはwindellと違い、x86_64版のCentOSだったため、そのままビルドすると64bitカーネルになっていた |
| 371 | * ゲスト上でmake menuconfig & makeし直すと起動する[[br]][[Image(WS001486.png,33%)]] |
| 372 | |
| 373 | == setup x64 version of Ubuntu == |
| 374 | * s0711489@ubuntu-lucid64:~$ sudo aptitude install -R vim screen subversion |
| 375 | * s0711489@ubuntu-lucid64:~$ sudo update-alternatives --config editor |
| 376 | * s0711489@ubuntu-lucid64:~$ sudo visudo |
| 377 | * s0711489@ubuntu-lucid64:~$ sudo aptitude install build-essential kernel-package libncurses-dev |
| 378 | |
| 379 | * s0711489@ubuntu-lucid64:~$ sudo mount /dev/cdrom /media |
| 380 | * s0711489@ubuntu-lucid64:~$ tar xzf /media/VMwareTools-8.4.6-385536.tar.gz |
| 381 | * s0711489@ubuntu-lucid64:~/vmware-tools-distrib$ sudo ./vmware-install.pl --default |
| 382 | |
| 383 | * s0711489@ubuntu-lucid64:/mnt/hgfs/mirrors-linux-459b3d5$ sudo make install |
| 384 | {{{ |
| 385 | sh /mnt/hgfs/mirrors-linux-459b3d5/arch/x86/boot/install.sh 2.6.32 arch/x86/boot/bzImage \ |
| 386 | System.map "/boot" |
| 387 | }}} |
| 388 | * s0711489@ubuntu-lucid64:/mnt/hgfs/mirrors-linux-459b3d5$ sudo make modules_install |
| 389 | {{{ |
| 390 | INSTALL arch/x86/kernel/test_nx.ko |
| 391 | INSTALL drivers/scsi/scsi_wait_scan.ko |
| 392 | DEPMOD 2.6.32 |
| 393 | }}} |
| 394 | * s0711489@ubuntu-lucid64:/mnt/hgfs/mirrors-linux-459b3d5$ sudo mkinitramfs -o /boot/initrd.img-2.6.32 2.6.32 |
| 395 | * s0711489@ubuntu-lucid64:/mnt/hgfs/mirrors-linux-459b3d5$ sudo vim /etc/default/grub |
| 396 | {{{ |
| 397 | #GRUB_HIDDEN_TIMEOUT=0 |
| 398 | GRUB_HIDDEN_TIMEOUT_QUIET=false |
| 399 | }}} |
| 400 | |
| 401 | * s0711489@ubuntu-lucid64:/mnt/hgfs/mirrors-linux-459b3d5$ sudo update-grub |
| 402 | {{{ |
| 403 | Generating grub.cfg ... |
| 404 | Found linux image: /boot/vmlinuz-2.6.32-33-generic |
| 405 | Found initrd image: /boot/initrd.img-2.6.32-33-generic |
| 406 | Found linux image: /boot/vmlinuz-2.6.32 |
| 407 | Found initrd image: /boot/initrd.img-2.6.32 |
| 408 | Found memtest86+ image: /boot/memtest86+.bin |
| 409 | done |
| 410 | }}} |
| 411 | |
| 412 | * s0711489@ubuntu-lucid64:~$ uname -a |
| 413 | {{{ |
| 414 | Linux ubuntu-lucid64 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:07:13 UTC 2011 x86_64 GNU/Linux |
| 415 | }}} |
| 416 | * s0711489@ubuntu-lucid64:~$ sudo reboot |
| 417 | * 起動しない[[br]][[Image(WS001488.png,33%)]] |
| 418 | |
| 419 | === install Fusion-MPT SCSI device === |
| 420 | * 64bitゲストではBusLogicが使用出来ないため、VM作成時デフォルトではLSI Logicとなるが、具体的には以下のデバイスにHDDが接続されている形となる |
| 421 | * s0711489@ubuntu-lucid64:~$ lspci |
| 422 | {{{ |
| 423 | 00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01) |
| 424 | }}} |
| 425 | |
| 426 | * see http://www.linuxforums.org/forum/kernel/169338-linux-kernel-compilation-help.html#post804372 |
| 427 | > This is your SCSI controller for the harddrive. VMWare actually doesn't use SATA by default. To use this you need to enable CONFIG_FUSION_SPI |
| 428 | > * Code: |
| 429 | > {{{ |
| 430 | > Device Drivers ---> |
| 431 | > {*} Fusion MPT device support ---> |
| 432 | > <*> Fusion MPT ScsiHost drivers for SPI (NEW) |
| 433 | > }}} |
| 434 | |
| 435 | * 以下のドライバを新たに導入する(ついでにBuslogicのドライバは削除しておく) |
| 436 | * viola06:mirrors-linux-459b3d5 s0711489$ make menuconfig |
| 437 | {{{ |
| 438 | │ │ Device Drivers ---> │ │ |
| 439 | │ │ SCSI device support ---> │ │ |
| 440 | │ │ [ ] SCSI low-level drivers ---> │ │ |
| 441 | │ │ [*] Fusion MPT device support ---> │ │ |
| 442 | │ │ <*> Fusion MPT ScsiHost drivers for SPI │ │ |
| 443 | }}} |
| 444 | |
| 445 | * s0711489@ubuntu-lucid64:~$ sudo reboot |
| 446 | * s0711489@ubuntu-lucid64:~$ uname -a |
| 447 | {{{ |
| 448 | Linux ubuntu-lucid64 2.6.32 #3 SMP Sat Sep 17 14:16:07 JST 2011 x86_64 GNU/Linux |
| 449 | }}} |
| 450 | * ビルド成功[[br]][[Image(WS001489.png,33%)]] |