aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-09-04 23:18:37 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-09-12 17:48:10 +0200
commit2fa0310ba8f93fb019308246ce87f5d170c2ba7b (patch)
treebb247ac95c6d799cbea1f15a9b2537e0c5e7b781
parent6d4af5f515f2f3b09bf69454687674538b0fc50c (diff)
downloadhardware_replicant_libsamsung-ipc-2fa0310ba8f93fb019308246ce87f5d170c2ba7b.tar.gz
hardware_replicant_libsamsung-ipc-2fa0310ba8f93fb019308246ce87f5d170c2ba7b.tar.bz2
hardware_replicant_libsamsung-ipc-2fa0310ba8f93fb019308246ce87f5d170c2ba7b.zip
Adapt for GNU/Linux
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>
-rw-r--r--samsung-ipc/devices/generic/generic.h2
-rw-r--r--tools/nv_data-md5.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/samsung-ipc/devices/generic/generic.h b/samsung-ipc/devices/generic/generic.h
index eb2e6ea..717d812 100644
--- a/samsung-ipc/devices/generic/generic.h
+++ b/samsung-ipc/devices/generic/generic.h
@@ -32,7 +32,7 @@
#define GENERIC_NV_DATA_OFFSET 0xA00000
#define GENERIC_NV_DATA_SIZE 0x200000
-#define GENERIC_MODEM_IMAGE_DEVICE "/dev/block/by-name/RADIO"
+#define GENERIC_MODEM_IMAGE_DEVICE "/dev/disk/by-partlabel/RADIO"
struct generic_transport_data {
int fd;
diff --git a/tools/nv_data-md5.c b/tools/nv_data-md5.c
index 78901ef..6067a26 100644
--- a/tools/nv_data-md5.c
+++ b/tools/nv_data-md5.c
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
path = argv[1];
- md5_string = ipc_nv_data_md5_calculate(path, secret, size, chunk_size);
+ md5_string = ipc_nv_data_md5_calculate(NULL, path, secret, size, chunk_size);
if (md5_string == NULL) {
fprintf(stderr, "Calculating nv_data backup md5 failed\n");
return 1;