hns - 日記自動生成システム - Version 2.19.9

先月 2012年04月 来月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2012年04月07日() 旧暦 [n年日記] [更新:"2012/04/24 22:33:06"]

#1 [NetBSD] 本当に長い間待ちかねた Sandpoint (KURO-BOX/T4)

某オークションで KURO-BOX/T4 を入手した。 金物としては TeraStation TS-TGL と全く同じで、 EEPROM に u-boot が初めから入っている型式だ。 TS-TGL の Flash ROM を書替えても同じものになるが、 その作業をしないでも済むというだけのもの

これを NetBSD/Sandpoint 6.0_BETA で起動した。

  • 背面の 9pin DSUB にクロス線で直列通信が出来るようにしておく。 僕が使う方法は、USB シリアル線をつないでおいて、次のように入力する
    sudo cu -l /dev/dtyU0 -s 57600
    
    (抜ける時には ~. と入力)
  • DHCP または BOOTP サーバを用意する
    (自動で IP address を設定するため)、なくても手動で設定可
    host kurobox-t4 { #  20120406
            hardware ethernet 00:16:01:96:46:be;
            fixed-address 192.168.60.34;
            next-server 192.168.60.198;
            filename "sandpoint/altboot.bin";
            option root-path "/export/tftpboot/sandpoint";
    }
    
    手で設定する場合には "setenv ipaddr=192.168.1.1; setenv serverip=192.168.1.100" など
  • TFTP server を用意する
    /etc/inetd.conf のうちの一行
    tftp  dgram  udp  wait  root  /usr/libexec/tftpd tftpd -l -s /export/tftpboot
    
    最後の引数で指定された位置に altboot.bin と netbsd-INSTALL_KURO.gz を用意 する (list) から wget で持って来ておく
    pts/2:makoto@serv 12:57:48/120407(/export/tftpboot)> ls -lt sandpoint
    total 14840
    -rw-r--r--  1 makoto  wheel    75992 Apr  3 01:27 altboot.bin
    -r--r--r--  2 makoto  wheel  2477268 Apr  2 16:27 netbsd
    -r--r--r--  2 makoto  wheel  2477268 Apr  2 16:27 netbsd-INSTALL_KURO.gz
    
  • 前面扉の内側の(下から見える)赤いボタンを押しながら電源を入れる
    Power on while pushing red button inside of the front door (you will see it from the downside).
    この項目は不思議で、多分、(動作中に)その赤いボタンを長押しすると、 無効になり、再び上記おまじないが必要になる(ようだ)
  • 「5 秒だけ待つので s を押してね」というので s を入力
    Hit s to interrupt.
    U-Boot 2009.06-BUFFALO-svn1376 (Jul 11 2009 - 04:11:01) KURO-NAS/T4
    
    CPU:   MPC8245/8241 Revision 1.4 at 262.144 MHz: 16 kB I-Cache 16 kB D-Cache
    DRAM:  128 MB
    FLASH:  4 MB
    In:    serial
    Out:   serial
    Err:   serial
    Net:   RTL8169#0
    Boot in 05 seconds ('s' to stop)...
    
  • bootp で設定
    この時に、ipaddr が設定されたままだと 読まないので
    BUFFALO>> setenv ipaddr
    
    と入力して設定を無にしておく (setenv ipaddr 0.0.0.0 も可)
    BUFFALO>> bootp
    BOOTP broadcast 1
    *** Unhandled DHCP Option in OFFER/ACK: 28
    *** Unhandled DHCP Option in OFFER/ACK: 28
    DHCP client bound to address 192.168.60.34
    BUFFALO>> 
    
  • altboot.bin を転送
    BUFFALO>> tftp 1000000 sandpoint/altboot.bin
    Using RTL8169#0 device
    TFTP from server 192.168.60.198; our IP address is 192.168.60.34
    Filename 'sandpoint/altboot.bin'.
    Load address: 0x1000000
    Loading: ######
    done
    Bytes transferred = 75992 (128d8 hex)
    BUFFALO>>
    
  • 次のようにして 1000000 から起動し kernel を読んで起動する
    BUFFALO>> go 1000000 tftp:sandpoint/netbsd
    ## Starting application at 0x01000000 ...
    
    >> NetBSD/sandpoint altboot, revision 1.9
    >> KuroBox, cpu 262 MHz, bus 131 MHz, 128MB SDRAM
    MAC address 00:16:01:96:46:be
    1000Mbps-FDXp
    Hit any key to enter interactive mode: 0
    loading "sandpoint/netbsd" 5357340+148972=0x540990
    entry=0x90000, ssym=0x5d0508, esym=0x5d0990
    Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
        2006, 2007, 2008, 2009, 2010, 2011, 2012
        The NetBSD Foundation, Inc.  All rights reserved.
    Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
    
    NetBSD 6.0_BETA (INSTALL_KURO)
    
  • dmesg の全文
  • このままだと raidctl atactl が入っていないので、RAID の設定は (sysinst 前には) 出来ない。入れたものを build 中。
    Index: distrib/sandpoint/ramdisk/list
    ===================================================================
    RCS file: /cvs/cvsroot/src/distrib/sandpoint/ramdisk/list,v
    retrieving revision 1.10
    diff -u -r1.10 list
    --- distrib/sandpoint/ramdisk/list	14 Jan 2011 10:26:35 -0000	1.10
    +++ distrib/sandpoint/ramdisk/list	7 Apr 2012 04:31:44 -0000
    @@ -22,6 +22,7 @@
     PROG	bin/stty
     PROG	bin/sync
     
    +PROG	sbin/atactl
     PROG	sbin/chown	bin/chgrp
     PROG	sbin/disklabel
     PROG	sbin/dmesg
    @@ -37,6 +38,7 @@
     PROG	sbin/mount_nfs
     PROG	sbin/newfs	sbin/mount_mfs
     PROG	sbin/ping
    +PROG	sbin/raidctl
     PROG	sbin/reboot	sbin/halt
     PROG	sbin/restore	sbin/rrestore
     PROG	sbin/route
    
    
  • 出来た
    ...
    make release started at:  Sat Apr  7 12:31:49 JST 2012
    make release finished at: Sat Apr  7 15:14:49 JST 2012
    ===> Successful make release
    ===> build.sh ended:      Sat Apr  7 15:14:49 JST 2012
    ===> Summary of results:
             build.sh command:    ./build.sh -m sandpoint -j 4 release
             build.sh started:    Sat Apr  7 12:31:47 JST 2012
             NetBSD version:      6.0_BETA
             MACHINE:             sandpoint
             MACHINE_ARCH:        powerpc
             Build platform:      NetBSD 6.0_BETA i386
             HOST_SH:             /bin/sh
             TOOLDIR path:        /export/src-netbsd-6/obj/tooldir.NetBSD-6.0_BETA-i386
             DESTDIR path:        /export/src-netbsd-6/obj/destdir.sandpoint
             RELEASEDIR path:     /export/src-netbsd-6/obj/releasedir
             Updated makewrapper: /export/src-netbsd-6/obj/tooldir.NetBSD-6.0_BETA-i386/bin/nbmake-sandpoint
             Successful make release
             build.sh ended:      Sat Apr  7 15:14:49 JST 2012
    ===> .
    
    netbsd-INSTALL_KURO.gz を次のところに置いておく attach/2012/20120407/
明日に続く



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)