UC-SGT でリモートシリアル

SheevaPlug

エレコムのUSB シリアルケーブル UC-SGTを刺してみた。

認識

UC-SGT を刺すと、、、
Jan 29 23:17:01 debian kernel: usb 1-1: new full speed USB device using orion-ehci and address 2
Jan 29 23:17:01 debian kernel: usb 1-1: configuration #1 chosen from 1 choice
Jan 29 23:17:01 debian kernel: USB Serial support registered for pl2303
Jan 29 23:17:01 debian kernel: pl2303 1-1:1.0: pl2303 converter detected
Jan 29 23:17:02 debian kernel: usb 1-1: pl2303 converter now attached to ttyUSB0
Jan 29 23:17:02 debian kernel: usbcore: registered new interface driver pl2303
Jan 29 23:17:02 debian kernel: pl2303: Prolific PL2303 USB to serial adaptor driver
なんか、すんなり認識した。

screen

目的は、シリアルコンソール。screen を実行する
root@debian:~# screen /dev/ttyUSB0 115200
-bash: screen: command not found
root@debian:~# 
ない。インストールする。
root@debian:~# apt-get install screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  gettext-base iso-codes python-apt python-central python-newt screen-profiles
  update-motd update-notifier-common
Suggested packages:
  isoquery python-apt-dbg python-gtk2 python-vte python-newt-dbg
  screen-profiles-extras
The following NEW packages will be installed:
  gettext-base iso-codes python-apt python-central python-newt screen
  screen-profiles update-motd update-notifier-common
0 upgraded, 9 newly installed, 0 to remove and 9 not upgraded.
Need to get 2947kB of archives.
After this operation, 14.6MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ports.ubuntu.com jaunty/main gettext-base 0.17-6ubuntu2 [67.7kB]
Get:2 http://ports.ubuntu.com jaunty/main iso-codes 3.6-1 [1774kB]
Get:3 http://ports.ubuntu.com jaunty/main python-central 0.6.11ubuntu7 [45.4kB]
Get:4 http://ports.ubuntu.com jaunty/main python-apt 0.7.9~exp2ubuntu10 [343kB]
Get:5 http://ports.ubuntu.com jaunty/main update-motd 1.11.1 [8092B]
Get:6 http://ports.ubuntu.com jaunty/main python-newt 0.52.2-11.3ubuntu3 [40.4kB]
Get:7 http://ports.ubuntu.com jaunty/main screen 4.0.3-11ubuntu4 [615kB]
Get:8 http://ports.ubuntu.com jaunty/main screen-profiles 1.44-0ubuntu1 [31.7kB]
Get:9 http://ports.ubuntu.com jaunty/main update-notifier-common 0.76.7 [21.1kB]
Fetched 2947kB in 44s (66.2kB/s)
Selecting previously deselected package gettext-base.
(Reading database ... 12242 files and directories currently installed.)
Unpacking gettext-base (from .../gettext-base_0.17-6ubuntu2_armel.deb) ...
Selecting previously deselected package iso-codes.
Unpacking iso-codes (from .../iso-codes_3.6-1_all.deb) ...
Selecting previously deselected package python-central.
Unpacking python-central (from .../python-central_0.6.11ubuntu7_all.deb) ...
Selecting previously deselected package python-apt.
Unpacking python-apt (from .../python-apt_0.7.9~exp2ubuntu10_armel.deb) ...
Selecting previously deselected package update-motd.
Unpacking update-motd (from .../update-motd_1.11.1_all.deb) ...
Selecting previously deselected package python-newt.
Unpacking python-newt (from .../python-newt_0.52.2-11.3ubuntu3_armel.deb) ...
Selecting previously deselected package screen.
Unpacking screen (from .../screen_4.0.3-11ubuntu4_armel.deb) ...
Selecting previously deselected package screen-profiles.
Unpacking screen-profiles (from .../screen-profiles_1.44-0ubuntu1_all.deb) ...
Adding `diversion of /usr/bin/screen to /usr/bin/screen.real by screen-profiles'
Selecting previously deselected package update-notifier-common.
Unpacking update-notifier-common (from .../update-notifier-common_0.76.7_all.deb) ...
Setting up gettext-base (0.17-6ubuntu2) ...

Setting up iso-codes (3.6-1) ...
Setting up python-central (0.6.11ubuntu7) ...

Setting up python-apt (0.7.9~exp2ubuntu10) ...

Setting up update-motd (1.11.1) ...

Setting up python-newt (0.52.2-11.3ubuntu3) ...

Setting up screen (4.0.3-11ubuntu4) ...

Setting up screen-profiles (1.44-0ubuntu1) ...
Setting up update-notifier-common (0.76.7) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@debian:~# 
再度実行する
root@debian:~# screen /dev/ttyUSB0 115200

Select a screen profile:
  1. plain
  2. ubuntu-light
  3. ubuntu-dark
  4. ubuntu-black

Choose 1- 4 [1]: 1

Run "screen" to activate
RS-232C ケーブルで、 TS-WXL につないで、電源ON
CPU =  MV78

Checking DATA BUS OK!
Checking ADDRESS BUS OK!

Checking DATA BUS
Checking ADDRESS BUS
BUFFALO U-BOOT Start !!!
 ** LOADER **
 ** BUFFALO BOARD: DB-MV78100-A-BP LE (CFG_ENV_ADDR=fff80000)


U-Boot 1.1.4 (Nov 17 2009 - 16:31:13) Marvell version: 3.3.5
Buffalo Version: 2.07-1.00

U-Boot code: 00600000 -> 0066FFF0  BSS: -> 00684D30

Soc: MV78100 A0 (DDR2)
CPU running @ 800Mhz L2 running @ 266Mhz
SysClock = 400Mhz , TClock = 166Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 19 tRCD=5
DRAM CS[0] base 0x00000000   size 512MB
DRAM Total size 512MB  64bit width
[512kB@fff80000] Flash: 512 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:
	:
	:
できた。

ちなみに、screen は CTRL-A \ で抜ける

用途

Sheeva Plug をサーバの横に置いておいて
UC-SGT + シリアルケーブルでつないでおくと
ネットワークでアクセスできなくなってもシリアルからログインできる。
ま、そんな環境が必要な人はそう多くないだろうが。。。。

シリアルコンソールでなくても、RS-232C で制御する機器であれば、 そのそばに Sheeva Plug を置いておくと、 地球の裏側からでも制御できる。

Twitter にもつぶやいたが、 玄柴(Sheeva Plug)は コントローラとして使ってこそ本領を発揮すると思う




←(前のページ)
「1月下旬少数入荷決定しました」
当月のハックの記録
SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ
(次のページ)→
SCON-KIT/Pro でリモートシリアル

Copyright (C) 2003-2010 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市