Michele Di Giorgio | e5d1d82 | 2016-02-09 16:17:47 +0000 | [diff] [blame] | 1 | /* target.config */ |
| 2 | /* */ |
| 3 | /* Configuration file to specify target parameters such as: the */ |
| 4 | /* kind of platform/board, and login credentials. */ |
| 5 | /* */ |
| 6 | /* NOTE: all commented parameters are optional and report their */ |
| 7 | /* default value. */ |
| 8 | |
Patrick Bellasi | 0f8ac68 | 2015-10-12 11:29:40 +0100 | [diff] [blame] | 9 | { |
Patrick Bellasi | 83aaf5c | 2016-01-22 10:57:22 +0000 | [diff] [blame] | 10 | /* Platform */ |
| 11 | /* - linux : accessed via SSH connection */ |
| 12 | /* - android : accessed via ADB connection */ |
| 13 | /* - host : run on the local host */ |
| 14 | "platform" : "linux", |
Patrick Bellasi | 0f8ac68 | 2015-10-12 11:29:40 +0100 | [diff] [blame] | 15 | |
Patrick Bellasi | 83aaf5c | 2016-01-22 10:57:22 +0000 | [diff] [blame] | 16 | /* Board */ |
| 17 | /* Currently supported boards are: */ |
Chris Redpath | 16a0fc4 | 2016-04-27 16:00:44 +0100 | [diff] [blame] | 18 | /* juno : target is a JUNO board */ |
| 19 | /* juno2 : target is a JUNO board, with mainline Hwmon */ |
| 20 | /* tc2 : target is a TC2 board */ |
| 21 | /* If your Juno board /sys/class/hwmon/hwmon0/energy?_name is */ |
| 22 | /* of the form BOARD_*_ENERGY, then you need 'juno2'. */ |
| 23 | /* Otherwise 'juno' is sufficient. In either case, lisa uses */ |
| 24 | /* devlib's 'juno' target definition to talk to the board. */ |
Patrick Bellasi | 83aaf5c | 2016-01-22 10:57:22 +0000 | [diff] [blame] | 25 | /* Leave commented if your board is not listed above */ |
| 26 | "board" : "juno", |
Patrick Bellasi | 0f8ac68 | 2015-10-12 11:29:40 +0100 | [diff] [blame] | 27 | |
Patrick Bellasi | 83aaf5c | 2016-01-22 10:57:22 +0000 | [diff] [blame] | 28 | /* Target IP or MAC address */ |
| 29 | "host" : "192.168.0.20", |
Patrick Bellasi | 0f8ac68 | 2015-10-12 11:29:40 +0100 | [diff] [blame] | 30 | |
Michele Di Giorgio | 7ceb2f0 | 2016-03-07 10:28:50 +0000 | [diff] [blame] | 31 | /* Target Android device ID */ |
| 32 | //"device" : "00b1346f0878ccb1", |
| 33 | |
Patrick Bellasi | 83aaf5c | 2016-01-22 10:57:22 +0000 | [diff] [blame] | 34 | /* Login username (has to be sudo enabled) */ |
| 35 | "username" : "root", |
Patrick Bellasi | 0f8ac68 | 2015-10-12 11:29:40 +0100 | [diff] [blame] | 36 | |
Patrick Bellasi | 83aaf5c | 2016-01-22 10:57:22 +0000 | [diff] [blame] | 37 | /* Login credentials */ |
Michele Di Giorgio | e5d1d82 | 2016-02-09 16:17:47 +0000 | [diff] [blame] | 38 | /* You can specify either a password or keyfile */ |
Patrick Bellasi | 83aaf5c | 2016-01-22 10:57:22 +0000 | [diff] [blame] | 39 | "password" : "", |
Patrick Bellasi | 274c8f1 | 2015-10-13 15:10:05 +0100 | [diff] [blame] | 40 | // "keyfile" : "/complete/path/of/your/keyfile", |
| 41 | |
Patrick Bellasi | 83aaf5c | 2016-01-22 10:57:22 +0000 | [diff] [blame] | 42 | /* RT-App Calibration */ |
| 43 | /* Keep commented to do calibration at first run on a target. */ |
| 44 | /* Then, replace the values with the ones reported for your */ |
| 45 | /* specific target in the console logging messages */ |
| 46 | // "rtapp-calib" : { |
| 47 | // "0": 354, "1": 138, "2": 138, "3": 363, "4": 355, "5": 357 |
| 48 | // }, |
| 49 | |
Patrick Bellasi | b69fa52 | 2015-10-13 16:10:28 +0100 | [diff] [blame] | 50 | /* FTFP Image server */ |
Patrick Bellasi | 83aaf5c | 2016-01-22 10:57:22 +0000 | [diff] [blame] | 51 | /* This is the folder from where the target gets kernel/DTB */ |
| 52 | /* images at each boot. */ |
| 53 | /* The path of images to be deployed are specified by the */ |
| 54 | /* experiments configuration (e.g. tests/eas/rfc_eas.json) */ |
Patrick Bellasi | b69fa52 | 2015-10-13 16:10:28 +0100 | [diff] [blame] | 55 | "tftp" : { |
| 56 | "folder" : "/var/lib/tftpboot", |
| 57 | "kernel" : "kern.bin", |
| 58 | "dtb" : "dtb.bin" |
| 59 | }, |
| 60 | |
Patrick Bellasi | 62152a5 | 2016-01-29 10:31:37 +0000 | [diff] [blame] | 61 | /* Devlib modules to enable/disbale for all the experiments */ |
Patrick Bellasi | 4e2673a | 2016-01-29 10:27:45 +0000 | [diff] [blame] | 62 | "modules" : [], |
Patrick Bellasi | 62152a5 | 2016-01-29 10:31:37 +0000 | [diff] [blame] | 63 | "exclude_modules" : [], |
Patrick Bellasi | 1e384c9 | 2015-11-05 16:48:51 +0000 | [diff] [blame] | 64 | |
Patrick Bellasi | 77d0172 | 2015-12-04 11:15:00 +0000 | [diff] [blame] | 65 | /* Binary tools to install by default for all experiments */ |
Michele Di Giorgio | 58a1b37 | 2016-04-25 13:09:27 +0100 | [diff] [blame] | 66 | /* Currently available tools: */ |
| 67 | /* - binaries under ./tools/<ARCH>/ */ |
| 68 | /* where <ARCH> is one of the supported target */ |
| 69 | /* architectures */ |
| 70 | /* - shell scripts under './tools/scripts/ */ |
Patrick Bellasi | 77d0172 | 2015-12-04 11:15:00 +0000 | [diff] [blame] | 71 | "tools" : [], |
Patrick Bellasi | 1e384c9 | 2015-11-05 16:48:51 +0000 | [diff] [blame] | 72 | |
Michele Di Giorgio | e5d1d82 | 2016-02-09 16:17:47 +0000 | [diff] [blame] | 73 | /* Wait time before trying to access the target after reboot */ |
| 74 | // "ping_time" : "15", |
| 75 | |
Michele Di Giorgio | 691cbfe | 2016-02-15 12:46:06 +0000 | [diff] [blame] | 76 | /* Maximum time to wait after rebooting the target */ |
Michele Di Giorgio | da58c39 | 2016-02-11 12:27:41 +0000 | [diff] [blame] | 77 | // "reboot_time" : "120", |
| 78 | |
Patrick Bellasi | 83aaf5c | 2016-01-22 10:57:22 +0000 | [diff] [blame] | 79 | /* List of test environment features to enable */ |
| 80 | /* no-kernel : do not deploy kernel/dtb images */ |
| 81 | /* no-reboot : do not force reboot the target at each */ |
| 82 | /* configuration change */ |
| 83 | /* debug : enable debugging messages */ |
Patrick Bellasi | 1904cb0 | 2016-01-22 14:42:17 +0000 | [diff] [blame] | 84 | "__features__" : "no-kernel no-reboot" |
Patrick Bellasi | 0f8ac68 | 2015-10-12 11:29:40 +0100 | [diff] [blame] | 85 | } |