HD交換2010/05/25 12:48

HDを交換しました。IBM製Travelstar 10GB(IC25N010ATDA04-0)。以下の部分で引っかかりました。

------------------------------
RedBoot> disk
hda1 Linux
RedBoot> load -v -m disk hda1:/linux
e2fs_open: e2fs_inode_lookup failed
Can't load 'hda1:/linux': Can't open file
------------------------------

http://uclinux.quake4.jp/read.php?FID=2&TID=688
を参考に
mkfs.ext3 -I 128 /dev/sdb1
を実行しました。

---------------------------------
[root@localhost root]# mkfs.ext3 -I 128 /dev/sdb1
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1228800 inodes, 2453920 blocks
122696 blocks (5.00%) reserved for the super user
First data block=0
75 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
---------------------------------
ブートさせてみました。

---------------------------------
RedBoot> +IC25N010ATDA04-0
DP83902A - eeprom ESA: 00:02:cb:03:1c:92
... waiting for BOOTP information
Ethernet eth0: MAC address 00:02:cb:03:1c:92
Can't get BOOTP info for device!

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 17:07:22, Feb 22 2007

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

RAM: 0x00400000-0x007f4000, [0x00400000-0x007f4000] available
RedBoot> disk
hda1 Linux
RedBoot> load -v -m disk hda1:/linux
e2fs_open: e2fs_inode_lookup failed
Can't load 'hda1:/linux': Can't open file
---------------------------------

症状が変わりません。スイッチを見直すと良いのかも知れませんが、ここではこれ以上立ち入らない事にします。

http://www.apnet.co.jp/e-linux/cbbs/cbbs.cgi
ここでも組込みlinuxの掲示板がありますね。有用な情報がありそうです。

IDEの障害2010/05/25 11:04


以下の部分が問題のようです。IDEの知識やソースやハードの変更が必要になるようです。
どうしましょう。 (^^;

--------------------------------
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
hda: probing with STATUS(0x50) instead of ALTSTATUS(0x3f)
hda: IBM-IC25N030ATCS04-0, ATA DISK drive
hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x3f)
hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x3f)
--------------------------------

http://uclinux.quake4.jp/read.php?FID=2&TID=54&p=2

HDからのブート2010/05/25 10:21

HDが認識されましたが、ブート途中で停止してしまいました。
HDが一台しかないのにhdbが出てくるのが不思議ですが、あがいてみます。


+IBM-IC25N030ATCS04-0
DP83902A - eeprom ESA: 00:02:cb:03:1c:92
... waiting for BOOTP information
Ethernet eth0: MAC address 00:02:cb:03:1c:92
Can't get BOOTP info for device!

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 17:07:22, Feb 22 2007

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

RAM: 0x00400000-0x007f4000, [0x00400000-0x007f4000] available

RedBoot> disk
hda1 Linux

RedBoot> load -v -m disk hda1:/linux
Entry point: 0x00400004, address range: 0x003fff8c-0x004e2da4

RedBoot> exec -c "console=ttySC1,38400n81 root=/dev/hda1"
Now booting linux kernel:
Entry Address 0x00400000
Cmdline : console=ttySC1,38400n81 root=/dev/hda1
Linux version 2.4.31-uc0 (root@localhost) (gcc version 3.4.3) #11 2010年 5月 25T
uClinux H8/300H
Target Hardware: AE-3068
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: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line: console=ttySC1,38400n81 root=/dev/hda1
virtual vector at 0x00fffd20
Calibrating delay loop... 3.26 BogoMIPS
Memory available: 2964k/3068k RAM, 0k/0k ROM (829k kernel code, 195k 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
Journalled Block Device driver loaded
sc1602(201): registered.
sc1602 command reg: 0xa00000
sc1602 data reg: 0xa00008
h8_adc(191): registered.
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 0x200000: 00 02 cb 03 1c 92
eth0: NE1000 found at 0x200000, using IRQ 17.
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
hda: probing with STATUS(0x50) instead of ALTSTATUS(0x3f)
hda: IBM-IC25N030ATCS04-0, ATA DISK drive
hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x3f)
hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x3f)

uClinux用HD2010/05/25 09:18

ブート用の2.5インチのHDDの準備が完了しました。
手元にあったHITACHI製Travelstar 30GB(IC25N030ATCS04-0)を使用しました。
ファイルシステムの作成結果は以下の通りです。


[root@localhost root]# mkfs.ext3 /dev/sda1
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
3662848 inodes, 7325632 blocks
366281 blocks (5.00%) reserved for the super user
First data block=0
224 block groups
32768 blocks per group, 32768 fragments per group
16352 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 23 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

toolchain missing2010/05/21 11:49

Win2kのHEWで開発したソースをWinXPの新しくインストールしたHEWに移したところエラーが発生しました。以下のようなメッセージです。

Toolchain 'Hitachi H8S,H8/300 Standard Toolchain'version
'7.0.0.0'is missing from the following project(s)

There is no compatible toolchain. Build functionality will not be available.

調べたところWinXPに該当Toolchainが無いためのエラーです。Hewのバージョンと最新Toolchainバージョンは以下の通りでした。
Win2k: Hew 4.06.00.047 Toolchain 7.0.0
WinXP: Hew 4.07.00.007 Toolchain 6.2.2

WinXPに「Toolchain 7.0.0」をインストールしたかったのですが、探しきれませんでした。仕方が無いのでWin2kの物をWinXPにコピーしたらエラーが解消です。

Hewの最新版を入れたのにToolchainがなぜ最新版(7.0.0)にならないかとか、何時の間にWin2kが新しいToolchain(7.0.0)になったのとか、Toolchainの更新の仕方がなぜどこにも載っていないなどの疑問のがありますが、まずは良かったです。 (^^)

Toolchainのバージョン確認
ツール|アドミニストレーション

Toolchainの保存先
c:\program files\renesas\hew\tools\renesas\h8

インターフェース誌6月号2010/05/05 20:35

この連休に合わせてSH-2Aを勉強しようと、この雑誌を購入しましたが、結果としてEAGLEに掛かり切りになり、全く触らないまま終わりました。FPGAとかH8/SXとかやりたい事が色々ありますが、なかなか進みません。 (^^;
なにやらCQ出版の術中に嵌ったようにも思えます。 (^^)

インターフェース誌6月号
http://www.kumikomi.net/interface/contents/201006.php

ADコンバータ2010/04/26 16:34

ADコンバータが動作しました。
テスターで測った数値と表示される数値が違いますが、まあいいか。 (^^;

--------------------------
Linux version 2.4.31-uc0 (root@localhost) (gcc version 3.4.3) #9 2010年 4月 26?T
uClinux H8/300H
Target Hardware: AE-3068
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: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line: console=ttySC1,38400n81 nfsroot=192.168.0.26:/tftpboot/nfstvirtual vector at 0x00fffd20
Calibrating delay loop... 3.26 BogoMIPS
Memory available: 3008k/3113k RAM, 0k/0k ROM (783k kernel code, 198k 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
sc1602(201): registered.
sc1602 command reg: 0xa00000
sc1602 data reg: 0xa00008
h8_adc(191): registered.
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 0x200000:<4>eth0: interrupt from stopped card
00 02 cb 03 1c 92
eth0: NE1000 found at 0x200000, using IRQ 17.
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 0.0.0.0, my address is 192.168.0.28
IP-Config: Complete:
device=eth0, addr=192.168.0.28, mask=255.255.255.0, gw=192.168.0.1,
host=192.168.0.28, domain=, nis-domain=(none),
bootserver=0.0.0.0, rootserver=192.168.0.26, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.26
Looking up port of RPC 100005/1 on 192.168.0.26
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 32k freed (0x4ce000 - 0x4d5000)
?Welcome to
____ _ _
/ __| ||_|
_ _| | | | _ ____ _ _ _ _
| | | | | | || | _ \| | | |\ \/ /
| |_| | |__| || | | | | |_| |/ \
| ___\____|_||_|_| |_|\____|\_/\_/
| |
|_|

Akizukidenshi/AE-3068 (aki3069net) port.
For further information check:
http://www.uclinux.org/
init: Failed to open /etc/inittab.# thttpd -p 80 -d /var/www -c /cgi-bin/* &
[1] 15
#
--------------------------

LCD表示2010/04/26 13:38

LCDの表示が可能になりました。

--------------------------
Linux version 2.4.31-uc0 (root@localhost) (gcc version 3.4.3) #8 2010年 4月 26?T
uClinux H8/300H
Target Hardware: AE-3068
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: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line: console=ttySC1,38400n81 nfsroot=192.168.0.26:/tftpboot/nfstvirtual vector at 0x00fffd20
Calibrating delay loop... 3.26 BogoMIPS
Memory available: 3008k/3114k RAM, 0k/0k ROM (782k kernel code, 197k 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
sc1602(201): registered.
sc1602 command reg: 0xa00000
sc1602 data reg: 0xa00008
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 0x200000:<4>eth0: interrupt from stopped card
00 02 cb 03 1c 92
eth0: NE1000 found at 0x200000, using IRQ 17.
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 0.0.0.0, my address is 192.168.0.28
IP-Config: Complete:
device=eth0, addr=192.168.0.28, mask=255.255.255.0, gw=192.168.0.1,
host=192.168.0.28, domain=, nis-domain=(none),
bootserver=0.0.0.0, rootserver=192.168.0.26, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.26
Looking up port of RPC 100005/1 on 192.168.0.26
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 32k freed (0x4ce000 - 0x4d5000)
?Welcome to
____ _ _
/ __| ||_|
_ _| | | | _ ____ _ _ _ _
| | | | | | || | _ \| | | |\ \/ /
| |_| | |__| || | | | | |_| |/ \
| ___\____|_||_|_| |_|\____|\_/\_/
| |
|_|

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

init: Failed to open /etc/inittab.#
# echo >/dev/sc1602
# echo -n "Hello,world" >/dev/sc1602
--------------------------

4M版uClinux起動2010/04/22 15:43

mfill -b 0x400000 -l 0x1e1000 -p 0x00 -1
を追加したら起動できました。 (^^)
良かった良かった。

----------------------------------

RedBoot> ip_address -l 192.168.0.211 -h 192.168.0.26
IP: 192.168.0.211/255.255.255.0, Gateway: 192.168.0.1
Default server: 192.168.0.26
RedBoot> mfill -b 0x400000 -l 0x1e1000 -p 0x00 -1
RedBoot> load -v linux_nfsroot.elf
Using default protocol (TFTP)
Entry point: 0x00400004, address range: 0x003fff8c-0x004d6a24
RedBoot> exec -c "console=ttySC1,38400n81 nfsroot=192.168.0.26:/tftpboot/nfsroot"
Now booting linux kernel:
Entry Address 0x00400000
Cmdline : console=ttySC1,38400n81 nfsroot=192.168.0.26:/tftpboot/nfsroot
Linux version 2.4.31-uc0 (root@localhost) (gcc version 3.4.3) #5 2010年 4月 22日 木曜日 15:02:48 JST

uClinux H8/300H
Target Hardware: AE-3068
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: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line: console=ttySC1,38400n81 nfsroot=192.168.0.26:/tftpboot/nfsroot
virtual vector at 0x00fffd20
Calibrating delay loop... 3.26 BogoMIPS
Memory available: 3008k/3115k RAM, 0k/0k ROM (781k 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 0x200000:<4>eth0: interrupt from stopped card
00 02 cb 03 1c 92
eth0: NE1000 found at 0x200000, using IRQ 17.
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 0.0.0.0, my address is 192.168.0.28
IP-Config: Complete:
device=eth0, addr=192.168.0.28, mask=255.255.255.0, gw=192.168.0.1,
host=192.168.0.28, domain=, nis-domain=(none),
bootserver=0.0.0.0, rootserver=192.168.0.26, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.26
Looking up port of RPC 100005/1 on 192.168.0.26
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)
/>
----------------------------------

恐れていた事2010/04/22 15:24

Kernel panic: No init found. Try passing init= option to kernel.
を検索してみました。

以下の対処をしても駄目でした。
http://uclinux.quake4.jp/read.php?FID=2&TID=63

こっちの話になるのでしょうか?
こうなると、elf形式だと駄目とかで対処しきれなくなりますね。 (^^;
http://uclinux.quake4.jp/read.php?FID=2&TID=107
Google
WWW このブログ内