組み込みLinux

作成: 2004-07-04 16:28:54 (日)
更新: 2005-06-26 20:18:59 (日)
参照: 7327

#contents


H8MAXでNFSクライアント(nfsmount)試行

  • そこでCFroot+nfsmountが可能だと、ユーザランド開発に便利そうです。
    • 残念ながら mount -t nfsで以下エラーが出ます。
      /> mount -t nfs 192.168.2.2:/home/h8max /mnt
      pmap_getmaps rpc problem: RPC: Program/version mismatch; low version = 0, high version = 5950864
      mount: RPC: Can't encode arguments
      mount: nfsmount failed: Bad file descriptor
      mount: Mounting 192.168.2.2:/home/h8max on /mnt failed: No such device
      pid 15: failed 256
      />
      • 上記動作時のパケットキャプチャ結果
http://muranaka.info/images/h8max-nfsmount.png
  • 2005-05-07:どうやらpmapdがいないための応答待ちでタイムアウトしている様子です。
    • mount -t nfs -o nolockオプションを付けるも同様・・・

H8MAXを最新環境でトライ中

  • ysatoさんのサイトより、開発環境をダウンロードした。
  • colinux Fedora Core 3上に開発環境を展開した。
  • まずデフォルトconfigでmakeした。動作OKだった。
  • 次にuClinux-distでnfsrootを設定した。
    • 起動はするが、メモリ関連の警告↓がでる。(おや)
      • __alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
+SanDisk SDCFB-256                       
DP83902A - eeprom ESA: 00:02:cb:01:67:cb
... waiting for BOOTP information
... waiting for BOOTP information
DHCP reply: 5, not 2
... waiting for BOOTP information
... waiting for BOOTP information
... waiting for BOOTP information
Ethernet eth0: MAC address 00:02:cb:01:67:cb
IP: 192.168.2.10/255.255.255.0, Gateway: 192.168.2.2
Default server: 192.168.2.2

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 22:55:10, Apr 11 2004

Platform: H8MAX (H8/300H) 
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00400000-0x005f4000, [0x00400000-0x005e1000] available
FLASH: 0x00000000 - 0x00080000, 8 blocks of 0x00010000 bytes each.
RedBoot> load -r -v -m TFTP -b 0x400000 h8max-image-nfs.bin
Raw file loaded 0x00400000-0x004d08ff, assumed entry at 0x00400000
RedBoot> exec -c "console=ttySC1,38400n81 nfsroot=192.168.2.5:/diskless/192.168.
2.10"
Now booting linux kernel:
 Entry Address 0x00400000
 Cmdline : console=ttySC1,38400n81 nfsroot=192.168.2.5:/diskless/192.168.2.10
Linux version 2.4.29-uc0 (root@colinux) (gcc version 3.4.3) #3 Fri Apr 29 21:44:
20 JST 2005

uClinux H8/300H
Target Hardware: H8MAX
H8/300 series support by Yoshinori Sato <ysato@users.sourceforge.jp>
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
On node 0 totalpages: 1536
zone(0): 0 pages.
zone(1): 1536 pages.
zone(2): 0 pages.
Kernel command line: console=ttySC1,38400n81 nfsroot=192.168.2.5:/diskless/192.1
68.2.10
virtual vector at 0x00fffd20
Calibrating delay loop... 8.26 BogoMIPS
Memory available: 1008k/1091k RAM, 0k/0k ROM (754k kernel code, 196k data)
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
SuperH SCI(F) driver initialized
ttySC0 at 0x00ffffb0 is a SCI
ttySC1 at 0x00ffffb8 is a SCI
ttySC2 at 0x00ffffc0 is a SCI
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0x800600: 00 02 cb 01 67 cb
eth0: NE2000 found at 0x800600, using IRQ 16.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 1024)
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 192.168.2.2, my address is 192.168.2.10
IP-Config: Complete:
      device=eth0, addr=192.168.2.10, mask=255.255.255.0, gw=192.168.2.2,
     host=192.168.2.10, domain=myhome.ne, nis-domain=(none),
     bootserver=192.168.2.2, rootserver=192.168.2.5, rootpath=
Looking up port of RPC 100003/2 on 192.168.2.5
Looking up port of RPC 100005/1 on 192.168.2.5
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 32k freed (0x4c8000 - 0x4cf000)
Shell invoked to run file: /etc/rc
Command: hostname H8MAX
__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
Command: mount -t proc proc /proc
Command: cat /etc/motd
__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _ 
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

strawberry-linux.com/H8MAX port.
For further information check:
http://www.uclinux.org/

Execution Finished, Exiting
init: cannot open inittab

Sash command shell (version 1.1.1)
/> mount
__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
__alloc_pages: 0-order allocation failed (gfp=0x1f0/0)
__nfs_fhget: iget failed
/dev/root on / type nfs (ro,v2,rsize=4096,wsize=4096,hard,udp,nolock,addr=192.16
8.2.5)
/proc on /proc type proc (rw)
/> 

*1 busybox

トップ   編集 凍結解除 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: Sun, 26 Jun 2005 20:14:36 JST (4321d)