AKI-H8/3069FとuClinuxのメモ

思い立ってAKI-H8/3069Fを引っ張り出してuClinuxを動かしているが、そのときのメモ。


http://uclinux.quake4.jp/uClinux/ にあるRedBootとuClinuxを使ってNFSマウントして起動しようとした場合、カーネルパニックになる。

...
Looking up port of RPC 100003/2 on 192.168.x.x
Looking up port of RPC 100005/1 on 192.168.x.x
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 32k freed (0x4ce000 - 0x4d5000)
Kernel panic: No init found.  Try passing init= option to kernel.


その場合、

  • RedBootを修正する
  • カーネルのフォーマットを変更して読み込む
  • mfillコマンドをloadの前に実行してメモリを0クリアする

参照:http://uclinux.quake4.jp/read.php?FID=2&TID=107&p=4


mfillを使う場合は以下の通り。

RedBoot> mfill -b 0x400000 -l 0x1e1000 -p 0x00 -1
RedBoot> load -v aki3069f/linux.bin
RedBoot> exec -c "console=ttySC1,38400n81 nfsroot=192.168.x.x:/opt/aki3069f"

で、出力は、

...
Looking up port of RPC 100003/2 on 192.168.x.x
Looking up port of RPC 100005/1 on 192.168.x.x
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 32k freed (0x4ce000 - 0x4d5000)
Shell invoked to run file: /etc/rc
Command: hostname AE3068
Command: mount -t proc proc /proc
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _ 
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

Akizukidenshi/AE-3068 (aki3069net) port.
For further information check:
http://www.uclinux.org/

Execution Finished, Exiting
init: Failed to open /etc/inittab.
Sash command shell (version 1.1.1)
/>