TestingInfrastructure » History » Version 34
Denis 'GNUtoo' Carikli, 12/31/2020 03:38 AM
| 1 | 31 | Denis 'GNUtoo' Carikli | {{<toc}} |
|---|---|---|---|
| 2 | |||
| 3 | 1 | Denis 'GNUtoo' Carikli | h1. TestingInfrastructure |
| 4 | |||
| 5 | 18 | Denis 'GNUtoo' Carikli | h2. Applications that can be used to do some testing on the device |
| 6 | |||
| 7 | * https://f-droid.org/wiki/page/org.zeroxlab.zeroxbenchmark |
||
| 8 | |||
| 9 | 5 | Denis 'GNUtoo' Carikli | h2. Projects and/or hardware that can be used to do functional testing |
| 10 | 1 | Denis 'GNUtoo' Carikli | |
| 11 | h3. Lava |
||
| 12 | |||
| 13 | 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. |
| 14 | 4 | Denis 'GNUtoo' Carikli | |
| 15 | 23 | Denis 'GNUtoo' Carikli | h3. Labgrid |
| 16 | |||
| 17 | 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. |
| 18 | 23 | Denis 'GNUtoo' Carikli | |
| 19 | 5 | Denis 'GNUtoo' Carikli | h3. OsmoGSMTester |
| 20 | 3 | Denis 'GNUtoo' Carikli | |
| 21 | 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. |
| 22 | 3 | Denis 'GNUtoo' Carikli | |
| 23 | 22 | Denis 'GNUtoo' Carikli | |
| 24 | 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. |
||
| 25 | |||
| 26 | 5 | Denis 'GNUtoo' Carikli | h3. Simtrace2 |
| 27 | 3 | Denis 'GNUtoo' Carikli | |
| 28 | 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. |
| 29 | 7 | Denis 'GNUtoo' Carikli | |
| 30 | h2. Replicant supported devices and testing |
||
| 31 | |||
| 32 | h3. Requirements |
||
| 33 | |||
| 34 | 8 | Denis 'GNUtoo' Carikli | * Antenna connector for the modem |
| 35 | 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 |
| 36 | 11 | Denis 'GNUtoo' Carikli | * Optionally a way to connect to the serial port, programmatically |
| 37 | 1 | Denis 'GNUtoo' Carikli | |
| 38 | 11 | Denis 'GNUtoo' Carikli | h3. Galaxy S2 (I9100) |
| 39 | 7 | Denis 'GNUtoo' Carikli | |
| 40 | 9 | Denis 'GNUtoo' Carikli | * The Galaxy S2 (I9100) has: |
| 41 | 1 | Denis 'GNUtoo' Carikli | ** An antenna connector |
| 42 | 10 | Denis 'GNUtoo' Carikli | ** The SOC serial port that is accessible behind the USB connector at a low voltage |
| 43 | 12 | Denis 'GNUtoo' Carikli | ** A full size mini-sim (easier to interface with) |
| 44 | |||
| 45 | 13 | Denis 'GNUtoo' Carikli | Holding the smartphone in place: |
| 46 | * 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. |
||
| 47 | 1 | Denis 'GNUtoo' Carikli | |
| 48 | 13 | Denis 'GNUtoo' Carikli | SIM cards: |
| 49 | 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. |
| 50 | 1 | Denis 'GNUtoo' Carikli | |
| 51 | 13 | Denis 'GNUtoo' Carikli | Serial port and USB: |
| 52 | 1 | Denis 'GNUtoo' Carikli | |
| 53 | 13 | Denis 'GNUtoo' Carikli | Buttons: |
| 54 | 12 | Denis 'GNUtoo' Carikli | |
| 55 | 13 | Denis 'GNUtoo' Carikli | Battery: |
| 56 | |||
| 57 | Antenna connector and GSM tower or SDR: |
||
| 58 | 15 | Denis 'GNUtoo' Carikli | The Galaxy S2 (I9100) has two antenna connectors: |
| 59 | * One internal connector, TODO: find the connector type |
||
| 60 | * One external connector, TODO: Find the connector type |
||
| 61 | 16 | Denis 'GNUtoo' Carikli | |
| 62 | h4. Example setup |
||
| 63 | |||
| 64 | 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). |
| 65 | 20 | Denis 'GNUtoo' Carikli | |
| 66 | 17 | Denis 'GNUtoo' Carikli | !i9100.jpg! |
| 67 | |||
| 68 | 19 | Denis 'GNUtoo' Carikli | See https://git.replicant.us/contrib/GNUtoo/test-infrastructure.git for the source of the file. |
| 69 | |||
| 70 | 25 | Denis 'GNUtoo' Carikli | h4. Using a device without a battery. |
| 71 | 1 | Denis 'GNUtoo' Carikli | |
| 72 | 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. |
| 73 | |||
| 74 | 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). |
| 75 | 29 | Denis 'GNUtoo' Carikli | |
| 76 | 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. |
| 77 | 32 | Denis 'GNUtoo' Carikli | |
| 78 | h2. USB modems |
||
| 79 | |||
| 80 | 34 | Denis 'GNUtoo' Carikli | When [[XMMProtocolInterfaces|trying to enable protocol tracing in modems]] we can connect the device modem (somewhat directly) to a laptop |
| 81 | 32 | Denis 'GNUtoo' Carikli | |
| 82 | Questions: |
||
| 83 | * Do we have samsung-ipc on top of the virtual UARTs? |
||
| 84 | * The cbd daemon mentioned "in the blog post about booting the Galaxy S7 modem":https://eighty-twenty.org/2020/09/10/booting-samsung-galaxy-s7-modem doesn't list UART as main link though. |
||
| 85 | * Adding the modem USB id when in debug mode (1519:0020) in a search engine shows various usb keys |
||
| 86 | * Do phones like the Galaxy SII have smasung-ipc on top of the USB link or UART links when in debug mode? |