On Mon, 14 Sep 2020 21:16:40 +0200 Denis 'GNUtoo' Carikli <[email protected]> wrote: > > if (select_secure_mode(client, boot0_fd, 0, 0, 0) < 0) > > goto exit; > > > > if (upload_chunk(client, boot0_fd, imagefd, toc, "BOOT", > > &size_boot) < 0) goto exit; > > > > if (upload_chunk(client, boot0_fd, imagefd, toc, "MAIN", > > &size_main) < 0) goto exit; > > > > if (upload_chunk(client, boot0_fd, nvfd, toc, "NV", NULL) < > > 0) goto exit; > This part looks strange: on all the other devices we support, we > load the NV modem partition inside the modem, but here you load the > nv_data.bin instead, is it intentional? With the stock RIL/cbd, is the > nv_data.bin really loaded instead of the NV partition? I am probably wrong here: The crespo (Nexus S (GT-I902x)) and aries (Galaxy S (GT-I9000)) libsamsung-ipc drivers both sends the nv_data.bin to the modem. These modems are connected to the SOC with shared memory.
On the Galaxy S, if I create a file with zeros of the same size of the nv_data.bin and replace the nv_data.bin with it, and make the checksums match, I get an nv_data.bin that is being recreated, and I end up with a bogus IMEI that I cannot change nor find in the nv_data.bin, so I really don't know if there is an NV modem partition or not for these devices. Denis.
pgpwnX1YVRCra.pgp
Description: OpenPGP digital signature
_______________________________________________ Replicant mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/replicant
