診断手順
# ifconfig eth1 192.168.103.1 # /etc/init.d/nfs restart
# killall decoder # iwconfig eth0 essid default channel 1
# ifconfig eth0 192.168.103.2 # portmap # mount 192.168.103.1:/home/nfs /mnt/nfs # cd /mnt/nfs/h/WpaDiag
# ./image_test
プログラム名 | 引数 | 機能 |
---|---|---|
wpa_init | 1-4 | 画面解像度を1)VGA 2)SVGA 3)XGA 4)SXGAに設定 |
wpa_cls | 0-3 | 対応するフレームバッファを0クリア |
wpa_mod | addr reg32 | MMIO_base + address番地のレジスタをvalueにセット |
wpa_mod2 | addr | MMIO_base + address番地の値を表示 |
wpa_view | 0-3 0/1 | fb番のフレームバッファを 0)非表示 1)表示 |
wpa_vctl | x y scale | ビデオプレーンの表示位置と縦横の倍率 |
wpa_actl | tlx tly brx bry | アルファプレーンの表示領域設定 |
wpa_cap | 0 or 1 | キャプチャの有効化・無効化 |
wpa_vidtune | VGAのタイミング調整 | |
wpa_draw | 0-3 image.ppm | fb番のフレームバッファにppmファイルを表示 |
image_test | ビットマップの貼り付けとディスプレイタイミングのテスト | |
gpio_test | LEDとボタンスイッチの連動,ついでにディップスイッチのテスト |
WPAは"X-MODEM"プロトコルを使用したファイル転送(受信のみ)ができます。
ファイル転送するためには、ターミナルが"X-MODEM"プロトコルを使用できなければなりません。ちなみに転送速度は遅いです。
(target) #cd /tmp 書き込みできるところに移動 #rx (filename) 受信するファイル名を指定し、rx コマンドを実行 targetは待ち受け状態となるので、 ここで、送信側(host側から)、"X-MODEM"プロトコルでファイルを送信する。 やり方は使用しているターミナルによって違うので、省略。
wpaのroot-fsはMTDデバイス(FLASH-ROM)上にあります。現在(2004-11-12)wpaのkernelがMTDデバイス上で使えるファイルシステムとしてサポートしているのは、JFFS2とCRAMFSの2つです。FLASH上にROOTFSを置く場合、一度ROOTFSのイメージを作って、ターゲットに書き込む必要があります。 以下のやり方で、イメージを作成し、ICEでrootfs領域に書き込んでください。
#mkfs.jffs2 -r (root-dir) -p (padding) -e (erase-size) -o (output file) #mkfs.jffs2 -r rootfs/ -p -e 0x20000 -o jffs2fs.img
#mkcramfs (root-dir) (output file) #mkcramfs rootfs/ cramfs.img
#cp (ipl or zImage file) /dev/mtdblockN (iplの場合mtdblock0 zImageの場合mtdblock1)
area | address | size | device | erasesize | file |
---|---|---|---|---|---|
ipl | 0x00000000-0x00020000 | 128Kbyte | /dev/mtdblock0 | 16Kbyte | sh-stub.bin(バイナリ形式でないとダメ) |
zImage | 0x00020000-0x00120000 | 1Mbyte | /dev/mtdblock1 | 128Kbyte | zImage(サイズは1Mbyteまで) |
rootfs | 0x00120000-0x00fe0000 | 15M-256Kbyte | /dev/mtdblock2 | 128Kbyte | アップデートは無理(多分…) |
reserved | 0x00fe0000-0x01000000 | 128kbyte | /dev/mtdblock3 | 16Kbyte | - |
encoder.exe option_files\enc_mp2ts_ntsc_03m.ini foo.mpg video_input_device=0xc40242
decoder.exe option_files\dec_mp2ts_ntsc.ini foo.mpg
フォーマット | 推奨設定 |
---|---|
MPEG-1 | TS 352x240 1.5Mbps |
MPEG-2 | TS 704x480 3.0Mbps |
MPEG-4 | TS 704x480 1.0Mbps |
# mount -o remount,rw / (copyなどする) # sync # mount -o remount,ro /
Since no serial port is available,
# tar zxvf cardinal-redhat9-V0_81a.tar.gz # ./load_mcci_usb
minicom -o
For Windows, after installation of the USB to UART Bridge,
connect a COM port generated by the bridge through Tera Term Pro.
Horizontal Total | 1850 |
Horizontal Sync Width | 130 |
Horizontal Sync start | 1280 |
Vertical Total | 1330 |
Vertical Sync Height | 2 |
Vertical Sync start | 1320 |
are shown in the following table. The MMIO base address of the WPA is 0xa7e00000.
Priority | Name | Address | Node | Descriptions |
---|---|---|---|---|
0 | Panel Plane | 0xa40c0000 | /dev/fb0 | Primary Graphics, image display |
2 | Video Plane 0 | 0xa4340000 | /dev/fb1 | Video, videos from a ZV port |
2 | Video Plane 1 | 0xa45c0000 | ||
3 | Video Alpha Plane | 0xa4840000 | /dev/fb2 | Video Alpha, image display |
4 | Alpha Plane | 0xa4ac0000 | /dev/fb3 | Alpha, image display |
1 | Panel Cursor Plane | 0xa4d40000 | /dev/fb4 | Primary Cursor, not used |
0 | CRT Plane | 0xa4d50000 | /dev/fb5 | Secondary Graphics, not used |
1 | CRT Cursor Plane | 0xa4fd0000 | /dev/fb6 | Secondary Cursor, not used |
The Panel/CRT resolution is changed through register settings. It should be noted that Linux frame buffer-related information such as vinfo and finfo is no longer reliable except for the default resolution. A Panel/CRT timing signal should be turned off during the resolution change to avoid inappropriate timing signals.
The video alpha plane is disabled when a video plane is disabled. On the other hand, the alpha plane is independent of the video plane. Each buffer has a display priority. Priority 0 means the bottom layer, while priority 4 means the top layer.
are shown in the following table.
Offset | Value | Description |
---|---|---|
0x00010 | 0x2ed547c0 | |
0x00014 | 0x05126734 | |
0x00008 | 0x00ff0000 | GPIO 31:0 Control |
0x0000c | 0x00000000 | GPIO 63:32 Control |
0x00038 | 0x00021877 | Current Gate |
0x00040 | 0x00021877 | Power Mode 0 Gate |
0x00048 | 0x00021877 | Power Mode 1 Gate |
0x8001c | 0x00000000 | Panel Plane TL Location |
0x80050 | 0x00000000 | Video Plane TL Location |
0x80090 | 0x00000000 | Video Alpha TL Location |
0x8010c | 0x00000000 | Alpha Plane TL Location |
0x80040 | 0x00016203 | Video Display Control |
0x80080 | 0x00010001 | Video Alpha Display Control |
0x80100 | 0x00010001 | Alpha Display Control |
0x80200 | 0x00010000 | CRT Display Control |
0x90000 | 0x000022d1 | Capture Control |
0x90004 | 0x001000b4 | Capture Clipping |
0x90008 | 0x01e00280 | Chapture Size |
0x90018 | 0x00000004 | Capture FIFO Control |
XGA Kernel | ||
0x9000c | 0x046c0000 | Capture Buffer 0 Address |
0x90010 | 0x04840000 | Capture Buffer 1 Address |
SXGA Kernel (experimental) | ||
0x9000c | 0x00340000 | Capture Buffer 0 Address |
0x90010 | 0x005c0000 | Capture Buffer 1 Address |
VGA | ||
0x00044 | 0x10090101 | Power Mode 0 Clock |
0x0004C | 0x10090101 | Power Mode 1 Clock |
0x80000 | 0x07013101 | Panel Display Control |
0x80014 | 0x02800000 | Panel FB Width |
0x80018 | 0x01e00000 | Panel FB Height |
0x80024 | 0x033f027f | Panel Horizontal Total |
0x80028 | 0x004a028b | Panel Horizontal Sync |
0x8002c | 0x020c01df | Panel Vertical Total |
0x80030 | 0x000201e9 | Panel Vertical Sync |
0x80058 | 0x00000000 | Video Scale |
0x80048 | 0x05000500 | Video FB Width |
0x80010 | 0x05000500 | Panel FB Offset/Window Width |
0x80088 | 0x05000500 | Video Alpha FB Offset/Window Width |
0x80108 | 0x05000500 | Alpha FB Offset/Window Width |
0x90014 | 0x00000500 | Capture Buffer Offset |
0x80020 | 0x01df027f | Panel Plane BR Location |
0x80054 | 0x01df027f | Video Plane BR Locatoin |
0x80094 | 0x01df027f | Video Alpha BR Location |
0x80110 | 0x01df027f | Alpha Plane BR Location |
Bob | ||
0x80058 | 0x08000000 | Video Scale |
0x90000 | 0x000022b1 | Capture Control |
SVGA | ||
0x00044 | 0x08090101 | Power Mode 0 Clock |
0x0004C | 0x08090101 | Power Mode 1 Clock |
0x80000 | 0x07010101 | Panel Display Control |
0x80014 | 0x03200000 | Panel FB Width |
0x80018 | 0x02580000 | Panel FB Height |
0x80024 | 0x040f031f | Panel Horizontal Total |
0x80028 | 0x00770357 | Panel Horizontal Sync |
0x8002c | 0x02990257 | Panel Vertical Total |
0x80030 | 0x0005027c | Panel Vertical Sync |
0x80058 | 0x0ccc0ccc | Video Scale |
0x80048 | 0x06400640 | Video FB Width |
0x80010 | 0x06400640 | Panel FB Offset/Window Width |
0x80088 | 0x06400640 | Video Alpha FB Offset/Window Width |
0x80108 | 0x06400640 | Alpha FB Offset/Window Width |
0x90014 | 0x00000640 | Capture Buffer Offset |
0x80020 | 0x0257031f | Panel Plane BR Location |
0x80054 | 0x0257031f | Video Plane BR Locatoin |
0x80094 | 0x0257031f | Video Alpha BR Location |
0x80110 | 0x0257031f | Alpha Plane BR Locatoin |
Bob | ||
0x80058 | 0x06670ccc | Video Scale |
0x90000 | 0x000022b1 | Capture Control |
XGA | ||
0x00044 | 0x01090101 | Power Mode 0 Clock |
0x0004C | 0x01090101 | Power Mode 1 Clock |
0x80000 | 0x07013101 | Panel Display Control |
0x80014 | 0x04000000 | Panel FB Width |
0x80018 | 0x03000000 | Panel FB Height |
0x80024 | 0x052f03ff | Panel Horizontal Total |
0x80028 | 0x00870417 | Panel Horizontal Sync |
0x8002c | 0x032502ff | Panel Vertical Total |
0x80030 | 0x00050302 | Panel Vertical Sync |
0x80058 | 0x0a000a00 | Video Scale |
0x80048 | 0x08000800 | Video FB Width |
0x80010 | 0x08000800 | Panel FB Offset/Window Width |
0x80088 | 0x08000800 | Video Alpha FB Offset/Window Width |
0x80108 | 0x08000800 | Alpha FB Offset/Window Width |
0x90014 | 0x00000800 | Capture Buffer Offset |
0x80020 | 0x02ff03ff | Panel Plane BR Location |
0x80054 | 0x02ff03ff | Video Plane BR Locatoin |
0x80094 | 0x02ff03ff | Video Alpha BR Location |
0x80110 | 0x02ff03ff | Alpha Plane BR Location |
Bob | ||
0x80058 | 0x05000a00 | Video Scale |
0x90000 | 0x000022b1 | Capture Control |
SXGA (experimental) | ||
0x00044 | 0x00090101 | Power Mode 0 Clock |
0x0004C | 0x00090101 | Power Mode 1 Clock |
0x80000 | 0x07013101 | Panel Display Control |
0x80014 | 0x05000000 | Panel FB Width |
0x80018 | 0x04000000 | Panel FB Height |
0x80024 | 0x06a704ff | Panel Horizontal Total |
0x80028 | 0x01600514 | Panel Horizontal Sync |
0x8002c | 0x043403ff | Panel Vertical Total |
0x80030 | 0x001a0400 | Panel Vertical Sync |
0x80058 | 0x07800780 | Video Scale |
0x80048 | 0x0a000a00 | Video FB Width |
0x80010 | 0x0a000a00 | Panel FB Offset/Window Width |
0x80088 | 0x0a000a00 | Video Alpha FB Offset/Window Width |
0x80108 | 0x0a000a00 | Alpha FB Offset/Window Width |
0x90014 | 0x00000800 | Capture Buffer Offset |
0x80020 | 0x03ff04ff | Panel Plane BR Location |
0x80054 | 0x03ff04ff | Video Plane BR Locatoin |
0x80094 | 0x03ff04ff | Video Alpha BR Location |
0x80110 | 0x03ff04ff | Alpha Plane BR Location |
Bob | ||
0x80058 | 0x03c00800 | Video Scale |
0x90000 | 0x000022b1 | Capture Control |