Project

General

Profile

TestingInfrastructure » History » Version 30

Denis 'GNUtoo' Carikli, 01/16/2020 12:20 AM

1 1 Denis 'GNUtoo' Carikli
h1. TestingInfrastructure
2
3 18 Denis 'GNUtoo' Carikli
h2. Applications that can be used to do some testing on the device
4
5
* https://f-droid.org/wiki/page/org.zeroxlab.zeroxbenchmark
6
7 5 Denis 'GNUtoo' Carikli
h2. Projects and/or hardware that can be used to do functional testing
8 1 Denis 'GNUtoo' Carikli
9
h3. Lava
10
11 7 Denis 'GNUtoo' Carikli
"Lava":https://www.linaro.org/engineering/projects/lava/ can be used to do functional tests on real hardware. It can be easily installed on PureOS, an FSDG compliant GNU/Linux distribution.
12 4 Denis 'GNUtoo' Carikli
13 23 Denis 'GNUtoo' Carikli
h3. Labgrid
14
15 24 Denis 'GNUtoo' Carikli
"Labgrid":https://labgrid.readthedocs.io/en/latest/ has features similar to Lava but it is probably easier to learn because it's probably way easier to get started with it.
16 23 Denis 'GNUtoo' Carikli
17 5 Denis 'GNUtoo' Carikli
h3. OsmoGSMTester
18 3 Denis 'GNUtoo' Carikli
19 6 Denis 'GNUtoo' Carikli
The "OsmoGSMTester project":https://osmocom.org/projects/osmo-gsm-tester is able to be interfaced with the Android RIL through ofono and can emulate a GSM network with the help of a compatible GSM base station or SDR.
20 3 Denis 'GNUtoo' Carikli
21 22 Denis 'GNUtoo' Carikli
22
This "presentation from 2019":https://media.ccc.de/v/osmodevcon2019-119-osmo-gsm-tester-e-gprs-test-setup has many insights on what kind of issue we might expect in interfacing it with smartphones.
23
24 5 Denis 'GNUtoo' Carikli
h3. Simtrace2
25 3 Denis 'GNUtoo' Carikli
26 1 Denis 'GNUtoo' Carikli
The "Simtrace 2 project":https://osmocom.org/projects/simtrace2/wiki can be used, along with SIM card readers to programmatically feed a SIM card to a smartphone. This can be used to run test on real networks.
27 7 Denis 'GNUtoo' Carikli
28
h2. Replicant supported devices and testing
29
30
h3. Requirements
31
32 8 Denis 'GNUtoo' Carikli
* Antenna connector for the modem
33 10 Denis 'GNUtoo' Carikli
* The ability to control the device buttons in order to be able to programmatically power on and off the device, and trigger boots into the bootloader and recovery
34 11 Denis 'GNUtoo' Carikli
* Optionally a way to connect to the serial port, programmatically
35 1 Denis 'GNUtoo' Carikli
36 11 Denis 'GNUtoo' Carikli
h3. Galaxy S2 (I9100)
37 7 Denis 'GNUtoo' Carikli
38 9 Denis 'GNUtoo' Carikli
* The Galaxy S2 (I9100) has:
39 1 Denis 'GNUtoo' Carikli
** An antenna connector
40 10 Denis 'GNUtoo' Carikli
** The SOC serial port that is accessible behind the USB connector at a low voltage
41 12 Denis 'GNUtoo' Carikli
** A full size mini-sim (easier to interface with)
42
43 13 Denis 'GNUtoo' Carikli
Holding the smartphone in place:
44
* The smartphone could either be screwed on a metallic surface or an external case could be screwed on a metallic surface enabling the smartphone not to move.
45 1 Denis 'GNUtoo' Carikli
46 13 Denis 'GNUtoo' Carikli
SIM cards:
47 14 Denis 'GNUtoo' Carikli
* Simtrace 2 "lacks screw holes":https://osmocom.org/issues/3711 so a way must be found to make sure that it doesn't move as it uses flex cables to interface with the SIM socket of the smartphone. That may be fixed in a subsequent hardware revision.
48 1 Denis 'GNUtoo' Carikli
49 13 Denis 'GNUtoo' Carikli
Serial port and USB:
50 1 Denis 'GNUtoo' Carikli
51 13 Denis 'GNUtoo' Carikli
Buttons:
52 12 Denis 'GNUtoo' Carikli
53 13 Denis 'GNUtoo' Carikli
Battery:
54
55
Antenna connector and GSM tower or SDR:
56 15 Denis 'GNUtoo' Carikli
The Galaxy S2 (I9100) has two antenna connectors:
57
* One internal connector, TODO: find the connector type
58
* One external connector, TODO: Find the connector type
59 16 Denis 'GNUtoo' Carikli
60
h4. Example setup
61
62 21 Denis 'GNUtoo' Carikli
See also the links inside the [[Serial_port]] article for more background on how to get serial port access on devices like the Galaxy SIII (i9300) or the Galaxy S2 (i9100).
63 20 Denis 'GNUtoo' Carikli
64 17 Denis 'GNUtoo' Carikli
!i9100.jpg!
65
66 19 Denis 'GNUtoo' Carikli
See https://git.replicant.us/contrib/GNUtoo/test-infrastructure.git for the source of the file.
67
68 25 Denis 'GNUtoo' Carikli
h4. Using a device without a battery.
69 1 Denis 'GNUtoo' Carikli
70 25 Denis 'GNUtoo' Carikli
* "How to use a Galaxy SIII without a battery":https://techblog.jeppson.org/2017/12/revive-old-samsung-galaxy-s3/ : It doesn't look very safe to do that as the phone is probably not expecting 5V on the battery connector but it gives some idea of the peak tolerances.
71
72 30 Denis 'GNUtoo' Carikli
* The i9305 could probably work at lower voltages like 3.3V through the battery connector, but it would require testing it. In that case it might also be a good idea to test it in all configurations (all hardware features being used, cpuburn etc).
73 29 Denis 'GNUtoo' Carikli
74 28 Denis 'GNUtoo' Carikli
* The 4 pin 'FPC' style battery connector available from amazon, marketed as being for the 'S4 value edition i9515' (https://amazon.de/gp/product/B0813JBW8S) is capable of contacting the i9300's battery.