#navi(contents-page-name): No such page: Wpa

Wireless Projector Adapter Development

WPA root-fs size 見積

診断プログラム

診断手順

  1. NFSサーバの準備
    # ifconfig eth1 192.168.103.1
    # /etc/init.d/nfs restart
  2. WPAの準備
    1. WMS搭載モデルの追加設定
      # killall decoder
      # iwconfig eth0 essid default channel 1
    2. 共通設定
      # ifconfig eth0 192.168.103.2
      # portmap
      # mount 192.168.103.1:/home/nfs /mnt/nfs
      # cd /mnt/nfs/h/WpaDiag
  3. 診断*1
    # ./image_test
プログラム名引数機能
wpa_init1-4画面解像度を1)VGA 2)SVGA 3)XGA 4)SXGAに設定
wpa_cls0-3, 5対応するフレームバッファを0クリア
wpa_modaddr reg32MMIO_base + addr番地のレジスタをreg32にセット
wpa_mod2addrMMIO_base + addr番地の値を表示
wpa_viewfb 0/1fb番のフレームバッファを 0)非表示 1)表示
wpa_vctlx y scaleビデオプレーンの表示位置と縦横の倍率
wpa_actltlx tly brx bryアルファプレーンの表示領域設定
wpa_cap0 or 1キャプチャの有効化・無効化
wpa_vidtuneVGAのタイミング調整
wpa_draw0-3 image.ppmfb番のフレームバッファにppmファイルを表示
image_testビットマップの貼り付けとディスプレイタイミングのテスト
gpio_testLEDとボタンスイッチの連動,ついでにディップスイッチのテスト

Corega

Ethernet controller: PCI device 1259:a11e (rev 16).
make ARCH=sh CROSS_COMPILE=sh4-linux- zImage

WPAのシリアルコンソールからファイルをやり取りする方法

WPAは"X-MODEM"プロトコルを使用したファイル転送(受信のみ)ができます。 ファイル転送するためには、ターミナルが"X-MODEM"プロトコルを使用できなければなりません。ちなみに転送速度は遅いです。 :)

WPAのROOT-FSについて

wpaのroot-fsはMTDデバイス(FLASH-ROM)上にあります。現在(2004-11-12)wpaのkernelがMTDデバイス上で使えるファイルシステムとしてサポートしているのは、JFFS2とCRAMFSの2つです。FLASH上にROOTFSを置く場合、一度ROOTFSのイメージを作って、ターゲットに書き込む必要があります。 以下のやり方で、イメージを作成し、ICEでrootfs領域に書き込んでください。

VWeb謎のコツ

ks2k

WPA ipl & zImage アップデート方法

areaaddresssizedeviceerasesizefile
ipl0x00000000-0x00020000128Kbyte/dev/mtdblock016Kbytesh-stub.bin(バイナリ形式でないとダメ)
zImage0x00020000-0x001200001Mbyte/dev/mtdblock1128KbytezImage(サイズは1Mbyteまで)
rootfs0x00120000-0x00fe000015M-256Kbyte/dev/mtdblock2128Kbyteアップデートは無理(多分…)
reserved0x00fe0000-0x01000000128kbyte/dev/mtdblock316Kbyte-

VWeb VW2010 WIN32 SDK2の使い方

フォーマット推奨設定
MPEG-1TS 352x240 1.5Mbps
MPEG-2TS 704x480 3.0Mbps
MPEG-4TS 704x480 1.0Mbps

WPA root-fs を R/Wモードにする

# mount -o remount,rw /
(copyなどする)
# sync
# mount -o remount,ro /

USB to UART Bridge

Since no serial port is available,

  1. Install Silicon Laboratories' CP201EK USB to UART bridge
    # tar zxvf cardinal-redhat9-V0_81a.tar.gz
    # ./load_mcci_usb
  2. Plug USB cable and trun on the board
  3. Connect /dev/ttyUSB0 without Initialization
    minicom -o
  4. z to boot a kernel from a ROM

For Windows, after installation of the USB to UART Bridge,
connect a COM port generated by the bridge through Tera Term Pro.

SXGA Modemodeline

Horizontal Total1850
Horizontal Sync Width130
Horizontal Sync start1280
Vertical Total1330
Vertical Sync Height2
Vertical Sync start1320

SM501 frame buffers and their memory address

are shown in the following table. The MMIO base address of the WPA is 0xa7e00000.

PriorityNameAddressNodeDescriptions
0Panel Plane0xa40c0000/dev/fb0Primary Graphics, image display
2Video Plane 00xa4340000/dev/fb1Video, videos from a ZV port
2Video Plane 10xa45c0000
3Video Alpha Plane0xa4840000/dev/fb2Video Alpha, image display
4Alpha Plane0xa4ac0000/dev/fb3Alpha, image display
1Panel Cursor Plane0xa4d40000/dev/fb4Primary Cursor, not used
0CRT Plane0xa4d50000/dev/fb5Secondary Graphics, not used
1CRT Cursor Plane0xa4fd0000/dev/fb6Secondary 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.

Sample register settings

are shown in the following table.

OffsetValueDescription
0x000100x2ed547c0
0x000140x05126734
0x000080x00ff0000GPIO 31:0 Control
0x0000c0x00000000GPIO 63:32 Control
0x000380x00021877Current Gate
0x000400x00021877Power Mode 0 Gate
0x000480x00021877Power Mode 1 Gate
0x8001c0x00000000Panel Plane TL Location
0x800500x00000000Video Plane TL Location
0x800900x00000000Video Alpha TL Location
0x8010c0x00000000Alpha Plane TL Location
0x800400x00016203Video Display Control
0x800800x00010001Video Alpha Display Control
0x801000x00010001Alpha Display Control
0x802000x00010000CRT Display Control
0x900000x000022d1Capture Control
0x900040x001000b4Capture Clipping
0x900080x01e00280Chapture Size
0x900180x00000004Capture FIFO Control
XGA Kernel
0x9000c0x046c0000Capture Buffer 0 Address
0x900100x04840000Capture Buffer 1 Address
SXGA Kernel (experimental)
0x9000c0x00340000Capture Buffer 0 Address
0x900100x005c0000Capture Buffer 1 Address
VGA
0x000440x10090101Power Mode 0 Clock
0x0004C0x10090101Power Mode 1 Clock
0x800000x07013101Panel Display Control
0x800140x02800000Panel FB Width
0x800180x01e00000Panel FB Height
0x800240x033f027fPanel Horizontal Total
0x800280x004a028bPanel Horizontal Sync
0x8002c0x020c01dfPanel Vertical Total
0x800300x000201e9Panel Vertical Sync
0x800580x00000000Video Scale
0x800480x05000500Video FB Width
0x800100x05000500Panel FB Offset/Window Width
0x800880x05000500Video Alpha FB Offset/Window Width
0x801080x05000500Alpha FB Offset/Window Width
0x900140x00000500Capture Buffer Offset
0x800200x01df027fPanel Plane BR Location
0x800540x01df027fVideo Plane BR Locatoin
0x800940x01df027fVideo Alpha BR Location
0x801100x01df027fAlpha Plane BR Location
Bob
0x800580x08000000Video Scale
0x900000x000022b1Capture Control
SVGA
0x000440x08090101Power Mode 0 Clock
0x0004C0x08090101Power Mode 1 Clock
0x800000x07010101Panel Display Control
0x800140x03200000Panel FB Width
0x800180x02580000Panel FB Height
0x800240x040f031fPanel Horizontal Total
0x800280x00770357Panel Horizontal Sync
0x8002c0x02990257Panel Vertical Total
0x800300x0005027cPanel Vertical Sync
0x800580x0ccc0cccVideo Scale
0x800480x06400640Video FB Width
0x800100x06400640Panel FB Offset/Window Width
0x800880x06400640Video Alpha FB Offset/Window Width
0x801080x06400640Alpha FB Offset/Window Width
0x900140x00000640Capture Buffer Offset
0x800200x0257031fPanel Plane BR Location
0x800540x0257031fVideo Plane BR Locatoin
0x800940x0257031fVideo Alpha BR Location
0x801100x0257031fAlpha Plane BR Locatoin
Bob
0x800580x06670cccVideo Scale
0x900000x000022b1Capture Control
XGA
0x000440x01090101Power Mode 0 Clock
0x0004C0x01090101Power Mode 1 Clock
0x800000x07013101Panel Display Control
0x800140x04000000Panel FB Width
0x800180x03000000Panel FB Height
0x800240x052f03ffPanel Horizontal Total
0x800280x00870417Panel Horizontal Sync
0x8002c0x032502ffPanel Vertical Total
0x800300x00050302Panel Vertical Sync
0x800580x0a000a00Video Scale
0x800480x08000800Video FB Width
0x800100x08000800Panel FB Offset/Window Width
0x800880x08000800Video Alpha FB Offset/Window Width
0x801080x08000800Alpha FB Offset/Window Width
0x900140x00000800Capture Buffer Offset
0x800200x02ff03ffPanel Plane BR Location
0x800540x02ff03ffVideo Plane BR Locatoin
0x800940x02ff03ffVideo Alpha BR Location
0x801100x02ff03ffAlpha Plane BR Location
Bob
0x800580x05000a00Video Scale
0x900000x000022b1Capture Control
SXGA (experimental)
0x000440x00090101Power Mode 0 Clock
0x0004C0x00090101Power Mode 1 Clock
0x800000x07013101Panel Display Control
0x800140x05000000Panel FB Width
0x800180x04000000Panel FB Height
0x800240x06a704ffPanel Horizontal Total
0x800280x01600514Panel Horizontal Sync
0x8002c0x043403ffPanel Vertical Total
0x800300x001a0400Panel Vertical Sync
0x800580x07800780Video Scale
0x800480x0a000a00Video FB Width
0x800100x0a000a00Panel FB Offset/Window Width
0x800880x0a000a00Video Alpha FB Offset/Window Width
0x801080x0a000a00Alpha FB Offset/Window Width
0x900140x00000800Capture Buffer Offset
0x800200x03ff04ffPanel Plane BR Location
0x800540x03ff04ffVideo Plane BR Locatoin
0x800940x03ff04ffVideo Alpha BR Location
0x801100x03ff04ffAlpha Plane BR Location
Bob
0x800580x03c00800Video Scale
0x900000x000022b1Capture Control

*1 WMS搭載モデルXGAの例です。initの使い方はプログラム詳細を参照

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS