AliOS Things LwIP Porting Guide - Shaofa/AliOS-Things-Certification-Manual GitHub Wiki

EN| 中文

Content


AliOS Things provides LwIP protocol stack, and developers can complete the porting work according to the following steps.

1 Porting of NIC driver

Porting code of NIC driver can refer to Code example. It mainly concerns the following function modification :

  static void low_level_init(struct netif *netif);
  static err_t low_level_output(struct netif *netif, struct pbuf *p);
  static struct pbuf *low_level_input(struct netif *netif);

When the modification is completed, source code needs to be stored in its corresponding platform.

2 Porting related to platform

Porting code related to platform can refer to Code example. The definition mainly includes type definition, size end setting and memory alignment.

If the reference implementation is consistent with your target implementation, you can copy and store it in corresponding platform.

3 Porting related to LwIP

Porting code related to LwIP can refer to Code example.

If the reference configuration is consistent with yours, you can copy and store it in corresponding platform.

4 Porting with OS

Porting with OS has been completed in AliOS Things, and developers can use it directly. Implement code.

5 Modification of compilation script

After completing the above modifications, you need to modify the related Makefile in corresponding platform. Implement code

⚠️ **GitHub.com Fallback** ⚠️