[Uclinux-h8-devel] 動作報告

Back to archive index

細渕憲行 hoso****@ce*****
2002年 6月 13日 (木) 00:49:15 JST


細渕です。

ユーザプログラムの作成まで確認できました。
ちなみに、HOST OS は NetBSD です :-)

  binutils-2.11
  gcc-2.95.3
  uClibc-0.9.9
  coff2flt-0.5

という環境です。カーネルは CVS のを使っています。

ここまでくるのに、いろいろとはまりました。
主なポイントは以下のとおりです。

* make config が CONFIG_NE_IRQ で無限ループしてしまう。
  → NetBSD では bash と sh-utils(test command)、および gmake の
     インストールが必要
* gcc-3.x では、ksyms.c でコンパイルエラー
  → gcc-2.95.3 を使う
* CVS の uClibc ではライブラリのコンパイルに失敗する(5月中旬ころ)。
  → 素直に uClibc-0.9.9 を使用する。
* 自作プログラムを実行するとカーネルが暴走する。
  → リンカスクリプトをデフォルトのではなく、 uclibc の rpm に含
     まれているものを利用する。

以下動かした様子です。
ユーザプログラム動作記念に Dhrystone を走らせました。

今後マルチユーザ環境と、ネットワーク周りを確かめる予定です。

まずは報告まで。

 ----------------------------------------------
+DP83902A - eeprom ESA: 00:02:cb:01:30:35
Ethernet eth0: MAC address 00:02:cb:01:30:35
IP: 192.168.0.100, Default server: 192.168.0.17

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 22:45:00, May  9 2002

Platform: Akizuki H8/3068 Network micom (H8/300H)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00400000-0x005f4000, 0x00400000-0x005f4000 available
RedBoot> load -r -b 0x400000 linux0602.bin
Raw file loaded 0x00400000-0x004953cd
RedBoot> load -r -b 0x5ffe00 command-nfs.bin
Specified address (0x005ffe00) is not believed to be in RAM - are you sure (y/n)? y
Raw file loaded 0x005ffe00-0x005ffe83
RedBoot> go 0x400000


uClinux for H8/300H
H8/300H Porting by Yoshinori Sato
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
Calibrating delay loop.. ok - 3.23 BogoMIPS
Memory available: 1296k/1588k RAM, 0k/0k ROM (4832k kernel data, 434k code)
Swansea University Computer Society NET3.035 for Linux 2.0
NET3: Unix domain sockets 0.13 for Linux NET3.035.
Swansea University Computer Society TCP/IP for NET3.034
IP Protocols: ICMP, UDP, TCP
uClinux version 2.0.39.uc2 (hoso @ proton) (gcc version 2.95.3 20010315 (release)) 13 Sun Jun 2 09:19:40 JST 2002
Hitachi SCI driver version 0.01
hitachi-sci.c(1476): info=485f26 num=0
ttySC0 at 0xffffb0 (irq = 52 - 55)
hitachi-sci.c(1476): info=48602a num=1
ttySC1 at 0xffffb8 (irq = 56 - 59)
hitachi-sci.c(1476): info=48612e num=2
ttySC2 at 0xffffc0 (irq = 60 - 63)
Ramdisk driver initialized : 16 ramdisks of 4096K size
ne.c:v1.10 9/23/94 Donald Becker (becke****@cesdi*****)
NE*000 ethercard probe at 0x200000: 00 02 cb 01 30 35
eth0: NE1000 found at 0x200000, using IRQ 17.
Sending BOOTP requests.... OK
Root-NFS: Got BOOTP answer from 192.168.0.17, my address is 192.168.0.100
Root-NFS: Got file handle for /work/export/aki3068/root via RPC
VFS: Mounted root (nfs filesystem).
init: Booting to single user mode.
#
# cd /work/
# cd drystone
# ./dry2

Dhrystone Benchmark, Version 2.1 (Language: C)

Program compiled without 'register' attribute

Please give the number of runs through the benchmark: 100000

Execution starts, 100000 runs through Dhrystone
Execution ends

Final values of the variables used in the benchmark:

Int_Glob:            5
        should be:   5
Bool_Glob:           1
        should be:   1
Ch_1_Glob:           A
        should be:   A
Ch_2_Glob:           B
        should be:   B
Arr_1_Glob[8]:       7
        should be:   7
Arr_2_Glob[8][7]:    100010
        should be:   Number_Of_Runs + 10
Ptr_Glob->
  Ptr_Comp:          6260952
        should be:   (implementation-dependent)
  Discr:             0
        should be:   0
  Enum_Comp:         2
        should be:   2
  Int_Comp:          17
        should be:   17
  Str_Comp:          DHRYSTONE PROGRAM, SOME STRING
        should be:   DHRYSTONE PROGRAM, SOME STRING
Next_Ptr_Glob->
  Ptr_Comp:          6260952
        should be:   (implementation-dependent), same as above
  Discr:             0
        should be:   0
  Enum_Comp:         1
        should be:   1
  Int_Comp:          18
        should be:   18
  Str_Comp:          DHRYSTONE PROGRAM, SOME STRING
        should be:   DHRYSTONE PROGRAM, SOME STRING
Int_1_Loc:           5
        should be:   5
Int_2_Loc:           13
        should be:   13
Int_3_Loc:           7
        should be:   7
Enum_Loc:            1
        should be:   1
Str_1_Loc:           DHRYSTONE PROGRAM, 1'ST STRING
        should be:   DHRYSTONE PROGRAM, 1'ST STRING
Str_2_Loc:           DHRYSTONE PROGRAM, 2'ND STRING
        should be:   DHRYSTONE PROGRAM, 2'ND STRING

Microseconds for one run through Dhrystone:  960.0
Dhrystones per Second:                      1041.7

#
------------------------

-- 
細渕憲行 <hoso****@ce*****>
http://www.tt.rim.or.jp/~hoso/





Uclinux-h8-devel メーリングリストの案内
Back to archive index