aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add more debugginghistory/modem_1519_0020_lsusbDenis 'GNUtoo' Carikli2019-09-122-7/+22
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Many debugging laterDenis 'GNUtoo' Carikli2019-09-124-43/+89
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Adapt for GNU/LinuxDenis 'GNUtoo' Carikli2019-09-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to make the development and testing faster. Currently under GNU/Linux we get the following: # ipc-test [ipc] Starting generic modem boot [ipc] Opened modem image device [ipc] Mapped modem image data to memory [ipc] Turned the modem off 0 0 [ipc] Turned the modem on [ipc] Opened modem boot device [ipc] Wrote ATAT in ASCII [ipc] Read chip id (0x16) [ipc] Wrote PSI header [ipc] Wrote PSI, CRC is 0xc8 [ipc] Wrote PSI CRC (0xc8) [ipc] Read PSI CRC ACK [ipc] Read PSI ACK [ipc] Sent XMM626 HSIC PSI [ipc] Wrote EBL size [ipc] Wrote EBL, CRC is 0xb5 [ipc] Wrote EBL CRC (0xb5) [ipc] Sent XMM626 HSIC EBL [ipc] Read port config [ipc] Sent XMM626 HSIC port config [ipc] Sent XMM626 HSIC SEC start [ipc] Sent XMM626 HSIC firmware [ipc] ipc_nv_data_path_check: nv_data path: /efs/nv_data.bin [ipc] ipc_nv_data_path_check: nv_data size: 2097152 [ipc] Checked nv_data path [ipc] Checked nv_data md5 path [ipc] Calculated nv_data md5: 50e04bd1ae13445977f3aec356ada08d [ipc] Read nv_data md5: 50e04bd1ae13445977f3aec356ada08d [ipc] Checked nv_data backup path [ipc] Loaded nv_data [ipc] Sent XMM626 HSIC nv_data [ipc] Sent XMM626 HSIC SEC end [ipc] Sent XMM626 HSIC HW reset [ipc] Waited for host wake [ipc] Waited for link connected /dev/umts_ipc: -1 2 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 /dev/umts_ipc: -1 19 Opening failed Note that the modem firmware needs to be on a partition. Pointing GENERIC_MODEM_IMAGE_DEVICE to a file instead of a block device ends up in the modem not booting. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Android: tools: dynamically link to libsamsung-ipcDenis 'GNUtoo' Carikli2019-09-121-5/+2
| | | | | | | | | | | | | | | | | There is no point of bundling a copy of libsamsung-ipc in the tools. It's also counter-intuitive as developers do expect the tools to be able to test the same libsamsung-ipc that is used by the system and not a separate copy. Without that we also have some compilation issue with ipc-modem. external/libsamsung-ipc/samsung-ipc/rfs.c:55: error: undefined reference to 'MD5_Init' external/libsamsung-ipc/samsung-ipc/rfs.c:56: error: undefined reference to 'MD5_Update' external/libsamsung-ipc/samsung-ipc/rfs.c:57: error: undefined reference to 'MD5_Update' external/libsamsung-ipc/samsung-ipc/rfs.c:58: error: undefined reference to 'MD5_Final' Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* more debuggingDenis 'GNUtoo' Carikli2019-09-122-1/+4
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* ipc_client_open: Check for client->handlersDenis 'GNUtoo' Carikli2019-09-121-2/+9
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* sync file_data_write with file_data_readDenis 'GNUtoo' Carikli2019-09-122-12/+34
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* file_data_read: add loggingDenis 'GNUtoo' Carikli2019-09-126-29/+50
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* ipc_nv_data_md5_calculate: print errorsDenis 'GNUtoo' Carikli2019-09-121-9/+13
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Add crude debugging for nv_data_pathDenis 'GNUtoo' Carikli2019-09-122-14/+30
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Add generic modemSimon Shields2019-09-126-0/+492
| | | | | GNUtoo@cyberdimension.org: [rebase, fixes and cleanups] Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* xmm626: modify to work on mainlineSimon Shields2019-09-123-75/+90
| | | | | GNUtoo@cyberdimension.org: [rebase, fixes and cleanups] Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* xmm616, xmm626: move them in their own modem subdirectoryDenis 'GNUtoo' Carikli2019-09-1215-22/+22
| | | | | | | This improves clarity as it separate the devices (smartphones and tablets) from the modems. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: n5100: silence unused variable warningsDenis 'GNUtoo' Carikli2019-09-121-8/+12
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* tools: get rid of unused variablesDenis 'GNUtoo' Carikli2019-09-122-4/+0
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Silence warning about implicit declaration asprintfDenis 'GNUtoo' Carikli2019-09-123-0/+3
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* rfs.c: silence uninitialized variable warningDenis 'GNUtoo' Carikli2019-09-121-1/+1
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* rfs.c: get rid of unused variablesDenis 'GNUtoo' Carikli2019-09-121-1/+0
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: aries: silence unused variable warningsDenis 'GNUtoo' Carikli2019-09-121-7/+12
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: fix strncmp useDenis 'GNUtoo' Carikli2019-09-121-1/+1
| | | | | | | Here the code tries to match for "Hardware", and strncmp returns 0 if there is a match, not 8. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Android: also build as a shared libarryDenis 'GNUtoo' Carikli2019-09-101-12/+47
| | | | | | | | | | | | | | | | | On Android, libsamsung-ipc is dynamically linked to libcrypto. However libsamsung-ril uses libsamsung-ipc as a static library. Without that fix, on Android 9, linking libsamsung-ril to libsamsung-ipc fails with the following errors: rfs.c:50: error: undefined reference to 'MD5_Init' rfs.c:51: error: undefined reference to 'MD5_Update' rfs.c:52: error: undefined reference to 'MD5_Update' rfs.c:53: error: undefined reference to 'MD5_Final' Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: fix strncmp lengthDenis 'GNUtoo' Carikli2019-09-061-1/+1
| | | | | | | | The external input comes from the kernel's /proc/cpuinfo, so this should not have been exploitable. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Acked-by: Fil Bergamo <fil.bergamo@riseup.net>
* devices: galaxys2: silence unused variable warningsDenis 'GNUtoo' Carikli2019-07-241-8/+12
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: maguro: silence unused variable warningsDenis 'GNUtoo' Carikli2019-07-241-8/+12
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: i9300: silence unused variable warningsDenis 'GNUtoo' Carikli2019-07-241-7/+12
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: piranha: silence unused variable warningsDenis 'GNUtoo' Carikli2019-07-241-8/+12
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: n7100: silence unused variable warningsDenis 'GNUtoo' Carikli2019-07-241-8/+12
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: crespo: silence unused variable warningsDenis 'GNUtoo' Carikli2019-07-241-8/+13
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: xmm616: get rid of unused variablesDenis 'GNUtoo' Carikli2019-07-241-1/+0
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* tools: silence unused variable warningsDenis 'GNUtoo' Carikli2019-07-242-6/+12
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* ipc.c: get rid of unused variablesDenis 'GNUtoo' Carikli2019-07-241-1/+0
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* add support for n5100Wolfgang Wiedmeyer2019-06-186-0/+471
| | | | | | | Code is mirrored from n7100 device support. Only the radio image path is different. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* support new codename and board name for piranhaWolfgang Wiedmeyer2019-06-182-1/+11
| | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* Add some missing headersPaul Kocialkowski2016-02-024-0/+4
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* tools: nv_data-md5 tool for calculating (salted) nv_data md5Paul Kocialkowski2016-02-024-0/+74
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* aries: The gprs iface may be requested before it's activatedreplicant-4.2-0004Paul Kocialkowski2014-12-271-19/+3
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc_utils: ipc_data_dump string escapereplicant-4.2-0003Paul Kocialkowski2014-11-151-2/+14
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* gprs: Unknown fieldsPaul Kocialkowski2014-11-101-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* libsamsung-ipc version 0.3.1Paul Kocialkowski2014-11-022-1/+14
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* gitignore: Binaries from toolsPaul Kocialkowski2014-11-021-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* svc: String headerPaul Kocialkowski2014-11-021-0/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Ignore the autotools INSTALL filePaul Wise2014-11-021-0/+1
|
* Fix crash in modemctrl after a failed bootstrapPaul Wise2014-11-021-1/+1
|
* Properly handle errors bootstrapping modemPaul Wise2014-11-021-2/+6
|
* Drop the INSTALL file and let autotools copy it inPaul Wise2014-11-021-365/+0
|
* tools: Autotools intermediates cleanupPaul Kocialkowski2014-09-072-456/+0
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* tools: Proper arguments to ipc_client_pollPaul Kocialkowski2014-08-284-2/+458
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* libsamsung-ipc version 0.3.0Paul Kocialkowski2014-08-072-1/+122
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* External fds polling supportPaul Kocialkowski2014-08-0712-33/+129
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* xmm626: Check modem status on read and writePaul Kocialkowski2014-08-061-2/+12
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>