kuro-box
  玄箱/Linkstation
    families
  HD-LAN
    入手
      flash
      取出
      HD-LAN vs HD-HLAN
    玄箱に変身
  HD-HGLAN
hardware
  Diag LED の点滅回数
  serial console
    9-KE connection
    clock speed
    shell
    mfdisk
      # mfdisk -h
      # mfdisk -c /dev/hda
      # mfdisk -p /dev/hda
      # mfdisk -e /dev/hda
      # mfdisk -p /dev/hda
      # mfdisk -c /dev/hda
  JTAG connection
    parallel port
    USB
  flash ROM
    firmbin.img
  firmimgtool
  しくみ
    玄箱
    LinkStation
      HD-HGLAN
    TeraStation
      TS-TGL
    Alert mode
    Info
  後のボタンを押しながら
  部品
    直列通信口
    電源
    ファン
NetBSD
  URL(1)
  改造の有無
  URL(2)
  getting stuff
  入手したら
    材料の説明
      binary 形式
    区画 (fdisk)
    Linux の設置
    20061027
    EM mode
      mfdisk
      ftp
    loader/install kernel
      /boot
      tools
      kernel
      nbloader
      boot selector2
      url
      ftp-get
    sysinst 起動
    sysinst (一部)
    multi-user
    自動起動
    rc2.d
    自動起動の解除
    message
  kuro_avrd
  bootsel2
    何をするもの
    起動の操作は
    設置
      Root Login
      操作
    設定
  無改造
    全体の流れ
    OS 設置後は
    /boot を用意する
    kuro_boot.conf
    sysinst by telnet
    chroot
    single user
      sshd
      telnet
      root
    20061027
      ftp
      nbloader/kernel
      boot selector
      kuro_boot.conf
      single user
      multi-user
      kuro_boot.conf
  packages
    pkg_info
  server
    samba
    netatalk
    NFS
    cvsync
    sendmail
  panic した時
  build.sh
    20070921
    20061019
    思いつくまま
SandPoint
  手順
  手順(別法)
files
  Buffalo
    kuro_102
    TS-TGL
problems
  20070917
  20061012
  sysinst 終了
  screen
  NFS 書込異常
  質問等
  ちょっとうっかり
    single user
boot code
  compile
    cross
      NetBSD
      powerpc-gnu-linux
  たつや版
    self
  U-Boot
  ts-tgl
玄箱/pro
    20081107
    20080624
    build
    boot
    dmesg
    日記から

hardware | TeraStation | software

Kuro-Box

Last Update: "2007/05/20 12:10:23 makoto"
powerpc-gnu-linux
手で powerpc-gnu-linux を作って見る。基本的に http://linux.bytesex.org/cross-compiler.html に書いてあることと同じ。
1binutils アセンブラ、リンカ、ローダ
2include/lib ライブラリ、へッダ
3gcc コンパイラ
  1. binutils-2.16.1
       122  21:58   tar zxf /e/u/j/distfiles/binutils-2.16.1.tar.gz
       124  21:59   mkdir work-binutils-2.16.1-powerpc-linux
       125  21:59   cd work-binutils-2.16.1-powerpc-linux
       126  21:59   ../binutils-2.16.1/configure --target=powerpc-gnu-linux
       127  22:00   time make
    ...
    196.950u 81.735s 4:54.30 94.6%  0+0k 9+13227io 19pf+10w
    ttypd:makoto@st4200 22:06:40/051010(...local-src/work-binutils-2.16.1-powerpc-linux)> sudo make install
    
  2. unpack rpm found at http://vinelinux.org/updates/3.0/RPMS/ppc/ (not found) ( http://ftp.kddilabs.jp/pub/Linux/packages/Vine/Vine-4.1/ppc/Vine/RPMS/ ?)
       135  22:14   mkdir chroot
       136  22:14   cd chroot
       137  22:14   rpm2cpio /e/u/j/distfiles/glibc-2.3.3-3vl1.1.ppc.rpm | cpio --extract --make-directories
       138  22:15   rpm2cpio /e/u/j/distfiles/glibc-devel-2.3.3-3vl1.1.ppc.rpm | cpio --extract --make-directories
       139  22:15   cd ..
       140  22:15   mkdir kernel
       141  22:15   cd kernel/
       142  22:15   rpm2cpio /e/u/j/distfiles/kernel-headers-2.4.26-0vl17.6.ppc.rpm | cpio --extract --make-directories
    
    copy includes
    ttypd:makoto@st4200 22:18:49/051010(/tmp/chroot)> sudo rsync -a usr/include/ /usr/local/powerpc-gnu-linux/include/
    
    copy kernel includes
    ttypd:makoto@st4200 22:19:34/051010(/tmp/kernel)> \
    sudo rsync -a  usr/src/linux-2.4.26/include/linux/ \
           /usr/local/powerpc-gnu-linux/include/linux/
    
    copy machine specific kernel headers
    ttypd:makoto@st4200 22:21:47/051010(/tmp/kernel)> \
       sudo rsync -a usr/src/linux-2.4.26/include/asm-ppc/ \
             /usr/local/powerpc-gnu-linux/include/asm/
    
    copy generic asm kernel headers
    ttypd:makoto@st4200 22:21:50/051010(/tmp/kernel)> \
        sudo rsync -a usr/src/linux-2.4.26/include/asm-generic/ \
              /usr/local/powerpc-gnu-linux/include/asm-generic/
    
    copy libraries
    ttypd:makoto@st4200 22:28:09/051010(/tmp/chroot)> sudo rsync -a lib/ /usr/local/powerpc-gnu-linux/lib/
    ttypd:makoto@st4200 22:28:22/051010(/tmp/chroot)> sudo rsync -a usr/lib/ /usr/local/powerpc-gnu-linux/lib/
    
    fix symbolic link
    ttypd:makoto@st4200 22:29:10/051010(...powerpc-gnu-linux/lib)> ls -l | grep "../../lib" | sed 's|../../lib/||' | \
            awk '{ print "ln -sf", $11, $9 }' | tee fixit? awk '{ print "ln -sf", $11, $9 }' | tee fixit
    ttypd:makoto@st4200 22:29:16/051010(...powerpc-gnu-linux/lib)> sudo sh fixit
    ttypd:makoto@st4200 22:29:29/051010(...powerpc-gnu-linux/lib)> sudo rm fixit
    
    fix libc.so
    --- /usr/local/powerpc-gnu-linux/lib/libc.so-orig       2005-10-10 22:15:16.000000000 +0900
    +++ /usr/local/powerpc-gnu-linux/lib/libc.so    2005-10-10 22:31:11.000000000 +0900
    @@ -2,4 +2,4 @@
        Use the shared library, but some functions are only in
        the static library, so try that secondarily.  */
     OUTPUT_FORMAT(elf32-powerpc)
    -GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )
    +GROUP ( libc.so.6 libc_nonshared.a )
    ttypd:makoto@st4200 22:31:28/051010(...powerpc-gnu-linux/lib)> 
    
  3. gcc-3.4.4
    ../../gcc-3.4.4/gcc/gcc.c:1504: error: `NETBSD_CPP_SPEC' undeclared here (not in a function)
    ../../gcc-3.4.4/gcc/gcc.c:1504: error: initializer element is not constant
    
    gcc-3.3.6
       211  23:00   ../gcc-3.3.6/configure --target=powerpc-gnu-linux --host=powerpc--netbsd --with-gnu-ld --with-gnu-as
       212  23:00   time gmake
    ...
    /usr/local/powerpc-gnu-linux/bin/ld: cannot find /lib/libpthread.so.0
    collect2: ld returned 1 exit status
    gmake[2]: *** [libgcjgc.la] Error 1
    gmake[2]: Leaving directory `/export/local-src/gcc-3.3.6-powerpc-gnu-linux/powerpc-gnu-linux/boehm-gc'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/export/local-src/gcc-3.3.6-powerpc-gnu-linux/powerpc-gnu-linux/boehm-gc'
    gmake: *** [all-target-boehm-gc] Error 2
    1323.699u 508.823s 30:52.34 98.9%       0+0k 65+39409io 233pf+18w
    ttypd:makoto@st4200 23:31:31/051010(...local-src/gcc-3.3.6-powerpc-gnu-linux)> 
    
       232  23:52   sudo ln -s /usr/lib/libpthread.so /lib
       235  23:52   sudo ln -s /usr/lib/libpthread.so.0 /lib
       236  23:52   sudo ln -s /usr/lib/libpthread.so.0.6 /lib
       240  23:54   sudo ln -s /usr/local/powerpc-gnu-linux/lib/libpthread_nonshared.a /lib
       242  23:54   sudo ln -s /usr/local/powerpc-gnu-linux/lib/libpthread_nonshared.a /usr/lib
    
    The error now:
    libtool: compile: unable to infer tagged configuration
    libtool: compile: specify a tag with `--tag'
    *** Error code 1
    
    OK, gcc may be just symbolic link if the architecture of the machine and the target are the same.
asm-specifier for variable `__sc_4' conflicts with asm clobber list
去年何回も見たものだ。 http://ozlabs.org/pipermail/linuxppc64-dev/2003-April/000211.html 解決方法はこれかな: http://ozlabs.org/pipermail/linuxppc-dev/2002-October/014491.html
Last Update: Sat, 07 Jun 2014 13:16:17 GMT 1.66 2008/03/08