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

先月 2009年05月 来月
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
31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2009年05月04日(月) 旧暦 [n年日記] [更新:"2009/05/07 02:08:17"]

#1 [NetBSD] status for Marvell Orion support (5.99.01)

  • (-1) Get KuroBox Pro
  • (0) Get serial console at the bottom (115.2kbps) USB like connector. (See photo below, click enlarges).
  • (1) Getting src with kiyohara version.
     cd /export
     mkdir orion_nas
     cd orion_nas
     wget ftp://ftp.jp.netbsd.org/pub/NetBSD/misc/kiyohara/orion_nas/orion_nas-20081107.diff
     wget ftp://ftp.jp.netbsd.org/pub/NetBSD/misc/kiyohara/orion_nas/orion_nas-20081107.tar.gz
    
    The shell commands issued are:
    pts/1:makoto@t-105 9:50:03/090403(/export/src)>
    cvs -Q -d ${REPOSITORY} co -D 20081107 src && cd src && cvs -Q update -dP .
    patch -s -p0 <  ../orion_nas/orion_nas-20081107.diff 
    tar zxf ../orion_nas/orion_nas-20081107.tar.gz 
    time sudo ./build.sh -m evbarm -j 4 release > & ../log-release
    9239.373u 1268.966s 56:42.20 308.8%     0+0k 4311+1844659io 5685pf+0w
    
    By this build, the kernel KUROBOX_PRO KUROBOX_TERA are not automatically build. So build kernel manually.
    pts/0:makoto@t-105 17:23:23/090504(/export/src)> \
    time sudo ./build.sh -j 8 -m evbarm \
    -T /export/src/tooldir.NetBSD-5.0_BETA-i386 \
    kernel=KUROBOX_PRO > & ../KUROBOX_PRO-log
    
    Here I've got an error like:
    src/sys/arch/arm/marvell/if_oriongbe.c:504: error: 'status' undeclared (first use in this function)
    
    Edit the file
    src/sys/arch/arm/marvell/if_oriongbe.c 
    
    and adding the line 462:
    455 static int
    456 oriongbe_intr(void *arg)
    457 {
    458         struct oriongbe_softc *sc = arg;
    459         struct ifnet *ifp = &sc->sc_ethercom.ec_if;
    460         uint32_t ic, ice;
    461         int claimed = 0;
    462         int status = 0;
    
    With this change, the kernel is built, and
  • (1-2) Prepare bootp/tftp server and place kernel with -O binary version. Power on the KUROBOX_PRO and interrupt twice when booting: Then issue:
    bootp 8000; go 8000
    
    it runs to the point asking device file.
  • (1-3) Then I've got the changes to enable sysinst kernel.
    Changed:
    etc/etc.evbarm/Makefile.inc
    distrib/evbarm/instkernel/instkernel/Makefile
    distrib/utils/sysinst/arch/evbarm/md.h
    distrib/utils/sysinst/arch/evbarm/
    (above four tar + gzipped) 20090504-kurobox-patches.tar.gz
    Added:
    sys/arch/evbarm/conf/KUROBOX_PRO_INSTALL
    sys/arch/evbarm/conf/KUROBOX_TERA_INSTALL
  • (2) Again, build release:
    time sudo ./build.sh -j 8 -m evbarm release
  • (3) gunzip the kernel (netbsd-KUROBOX_PRO_INSTALL.bin) and put it on bootp server:
    Do the same thing on (1-2):
  • (4) sysinst now starts. You may select NFS or FTP depending on your server convenience:
  • (5) Replace install kernel by normal kernel on bootp server:
  • (6) and boot as
        bootp 8000; go 8000
    
    This should run upto regular multi-user environment.
  • (7) PROBLEM
    • Can't Boot stand alone for now.
      Currently bootp server is necessary. Ext2fs and uImage may be one of the work around.
    • NFS client may have a problem.
           cvs -D /NFSserver/hoge co pkgsrc
      
      may soon hang up to some point. Control-T will say: load: 0.00 cmd: cvs 333 [uvn_fp2] 0.51u 8.70s 0% 2440k
    • Reboot won't make it: It won't proceed after following line displayed.
             Orion1   CPU =  Low  
      
    • halt -p halts, but won't power off.
      ---------------------------
      syncing disks... done
      unmounting file systems...
      unmounting /dev/pts (ptyfs)...
      unmounting /kern (kernfs)...
      unmounting /export (/dev/wd0g)...
      unmounting /mnt/var (/dev/wd0f)...
      unmounting /usr (/dev/wd0e)...
      unmounting / (/dev/wd0a)... done
      The operating system has halted.
      Please press any key to reboot.
      ---------------------------
        pressing key here does not proceed after following line:
      ---------------------------
      rebooting...
      Orion1   CPU =  Low 
      ---------------------------
      
  • (8) binary and source
    I have placed the binary and source at:
Related mail:



最近の日記
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)