Skip to content

RTOS Porting #7

@hayashi-90

Description

@hayashi-90

@Bosch-SW

When porting below modules to an RTOS (especially Zephyr),

linux-iccom/include/linux/iccom.h
linux-iccom/src/iccom_socket_if.c 
linux-iccom/src/iccom.c
linux-symspi/src/symspi.c
linux-symspi/src/symspi.h

what considerations should be taken ?

Also, if there are any useful OSS references,
or any porting guides to other operating systems, could you share them ?

My understanding is below:

Part 1 of my understanding :

Since the subsystems differ between Zephyr and Linux, in practice,
it will become necessary to implement the driver from scratch in compliance with the ICCOM protocol.

Part 2 of my understanding (for each files):

linux-iccom/src/iccom_socket_if.c

  • Interacting with the API of linux-iccom/src/iccom.c and receives callbacks.

  • Since the NETLINK domain socket that iccom_socket_if.c depends on does not exist in Zephyr, it is necessary to implement a custom NETLINK-compatible socket.

  • The goal is to port iccom_socket_if.c using a NETLINK-compatible socket (mostly from scratch).

linux-iccom/src/iccom.c

  • H/W independent. Processes data reception callbacks from the transport layer and triggers the sending.

  • Implement this (mostly from scratch ).

linux-symspi/src/symspi.c

  • HW independent, mainly dependent on the OS's SPI/GPIO subsystem API.

  • Call the API SPI/GPIO subsystem of Zephyr (which is different from the Linux Kernel)

  • Implement this (mostly from scratch ).

thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions