[Replicant] libsamsung-ipc on xmm6160 and ste m5730

Jonathan Bakker xc-racer2 at live.ca
Sun Mar 29 20:05:08 UTC 2020


Awesome!

Good to know that there are plans to have a consistent coding style.  I agree that the Linux code style makes sense for libsamsung-ipc

I have managed to get fourkbomb's kernel driver interface working on s5pv210.  I don't know what its status is on exynos 4412 devices, but I did have to make some changes to the core parts to get it to function properly (notably the tx workqueue was never being called, multiple messages in the same packet were parsed incorrectly, and HDLC_END wasn't being sent).  My tree is at https://github.com/xc-racer99/linux/commits/modem-v2 with the libsamsung-ipc userspace code at https://github.com/xc-racer99/libsamsung-ipc/commits/mainline-xmm6160 (only change was to the max packet size to read as some of the RFS packets were too big to read with fourkbomb's buffer size).  ipc-modem appears to work properly and register on the network with both xmm6160 and ste m5730

Jonathan

On 2020-03-27 11:26 p.m., Denis 'GNUtoo' Carikli wrote:
> On Wed, 11 Mar 2020 16:39:02 -0700
> Jonathan Bakker <xc-racer2 at live.ca> wrote:
> 
>> The LVM partitions are setup by the updater.sh
>> (https://git.replicant.us/replicant/device_samsung_aries-common/tree/updater.sh)
>> which is run in the updater-script when installing the zip.  Note
>> that on install from stock (BML partitions from Samsung) it does some
>> odd stuff, such as writing the kernel and then rebooting, before it
>> is then completed (now with MTD partitions) and the LVM is setup.
> Thanks a lot!
> 
> I've done the LVM commands by hand and then after rebooting I could
> install Replicant 4.2 0004 again. Right now it's stuck on the Replicant
> boot logo but this shouldn't be a big issue to fix if it doesn't
> eventually finish booting.
> 
>> Is there are a consistent coding style for Replicant projects?
> There isn't as it's made of many different repositories that comes from
> different projects with different coding style.
> 
> However we are thinking of choosing some coding styles for the software
> we have to maintain like libsamsung-ipc or for various utilities in
> python.
> 
> For libsamsung-ipc I think that using Linux code style makes sense for
> several reasons:
> - As we a have similar workflow and we could reuse the tools it uses
>   like checkpatch.pl.
> - Several Replicant contributors (me included) also have to touch the
>   Linux kernel in one way or another, so it's good to have a consistent
>   code style. It could also make review easier if we manage to find the
>   time to try to upstream the modem driver in Linux.
> - Given that oFono has something that looks a bit like the Linux driver
>   model, it probably has a similar code style too.
> 
> However we need to convert all the code to that code style, which means
> that there will again be massive changes and a huge diff because of
> that.
> 
> References:
> -----------
> [1]https://git.replicant.us/replicant/device_samsung_aries-common/tree/updater.sh#n185
> 
> Denis.
> 


More information about the Replicant mailing list