author | Tom Sutcliffe <thomas.sutcliffe@accenture.com> |
Tue, 07 Dec 2010 17:29:09 +0000 | |
changeset 114 | ceac7084e2e5 |
parent 77 | 60f47003f4b1 |
permissions | -rw-r--r-- |
0
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
1 |
#!fshell |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
2 |
# comm.script |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
3 |
# |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
4 |
# Copyright (c) 2010 Accenture. All rights reserved. |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
5 |
# This component and the accompanying materials are made available |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
6 |
# under the terms of the "Eclipse Public License v1.0" |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
7 |
# which accompanies this distribution, and is available |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
8 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
9 |
# |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
10 |
# Initial Contributors: |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
11 |
# Accenture - Initial contribution |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
12 |
# |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
13 |
|
58
b33ec37addee
comm.script/FSHELL_AUTOSTART now launches terminalkeyboardcons on platforms that support tracecore.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
52
diff
changeset
|
14 |
variant wins && error -5 "comm.script is not supported on the emulator" |
b33ec37addee
comm.script/FSHELL_AUTOSTART now launches terminalkeyboardcons on platforms that support tracecore.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
52
diff
changeset
|
15 |
|
0
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
16 |
# NaviEngine, port next to VGA |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
17 |
variant naviengine && export ARGS "--console vt100busdevcons --console-title pdd=euart1,ldd=ecomm,port=1,rate=115200" |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
18 |
|
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
19 |
# H4, serial riser marked "J3" |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
20 |
variant h4 && export ARGS "--console vt100cons --console-title port=COMM::3,rate=115200" |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
21 |
|
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
22 |
# H6 - port marked "UART 3" |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
23 |
variant h6 && export ARGS "--console vt100busdevcons --console-title pdd=euart1,ldd=ecomm,port=7,rate=115200" |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
24 |
|
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
25 |
# Beagle board, serial riser marked RS232 P9. |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
26 |
variant beagle && export ARGS "--console vt100busdevcons --console-title port=2,rate=115200" |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
27 |
|
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
28 |
# OPP Mid-Size Prototype, requires a special USB cable with a UART bridge built into it (normally covered in heat shrink) or a "black box". |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
29 |
variant opp-mid-size && export ARGS "--console vt100busdevcons --console-title pdd=euart1,ldd=ecomm,rate=115200,port=4" |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
30 |
|
52
96bfe2624d23
Added support for QMU to sf\3tshell platform. Tested with S^4 Kernel Taster Kit ktk_s4_0.7.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
0
diff
changeset
|
31 |
# QEMU simulator - assumes you're using 2nd emulated serial port for fshell, ie with options similar to "-serial file:rdebug.txt -serial COMx" |
96bfe2624d23
Added support for QMU to sf\3tshell platform. Tested with S^4 Kernel Taster Kit ktk_s4_0.7.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
0
diff
changeset
|
32 |
variant qemu && export ARGS "--console vt100busdevcons --console-title pdd=eserial,ldd=ecomm,rate=115200,port=1" |
96bfe2624d23
Added support for QMU to sf\3tshell platform. Tested with S^4 Kernel Taster Kit ktk_s4_0.7.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
0
diff
changeset
|
33 |
|
77
60f47003f4b1
Fixed bridge USB config.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
58
diff
changeset
|
34 |
# Bridge - terminal keyboard is broken for some reason, but USB now works |
60f47003f4b1
Fixed bridge USB config.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
58
diff
changeset
|
35 |
variant -u 0x85001100 && export ARGS "--console vt100usbcons --console-title port=ACM::1,personality=1" |
60f47003f4b1
Fixed bridge USB config.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
58
diff
changeset
|
36 |
|
0
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
37 |
# Add new variants here |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
38 |
|
58
b33ec37addee
comm.script/FSHELL_AUTOSTART now launches terminalkeyboardcons on platforms that support tracecore.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
52
diff
changeset
|
39 |
|
b33ec37addee
comm.script/FSHELL_AUTOSTART now launches terminalkeyboardcons on platforms that support tracecore.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
52
diff
changeset
|
40 |
# Only try terminal keyboard if there hasn't been a better match for the hardware (and tracecore is supported) |
b33ec37addee
comm.script/FSHELL_AUTOSTART now launches terminalkeyboardcons on platforms that support tracecore.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
52
diff
changeset
|
41 |
# Therefore, this rule should stay near the bottom of the file |
b33ec37addee
comm.script/FSHELL_AUTOSTART now launches terminalkeyboardcons on platforms that support tracecore.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
52
diff
changeset
|
42 |
var ARGS not-defined && variant tracecore-support && export ARGS "--console terminalkeyboardcons --console-size 120,40" |
b33ec37addee
comm.script/FSHELL_AUTOSTART now launches terminalkeyboardcons on platforms that support tracecore.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
52
diff
changeset
|
43 |
|
0
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
44 |
# And finally, start fshell with the given configuration |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
45 |
var ARGS defined || error -5 "Variant not recognised, can't open serial connection" |
7f656887cf89
First submission to Symbian Foundation staging server.
Tom Sutcliffe <thomas.sutcliffe@accenture.com>
parents:
diff
changeset
|
46 |
fshell $ARGS & |