samples: net: lwm2m_client: Use Ethernet in QEMU Cortex-M3
By default, qemu_coxtex_m3 target selected SLIP driver as a network backend. This requires some unstandard tool (tunslip6), which are error prone and might not necessary work. Ethernet backend work equally well as in native_posix so use the same for both. Change the default emulation platform from X86 to Cortex-M3 because it supports Ethernet by default. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
This commit is contained in:
parent
cad8ae7597
commit
03fd995fd5
2 changed files with 7 additions and 3 deletions
|
@ -24,7 +24,7 @@ The source code for this sample application can be found at:
|
|||
Requirements
|
||||
************
|
||||
|
||||
- :ref:`networking_with_qemu`
|
||||
- :ref:`networking_with_eth_qemu`, :ref:`networking_with_qemu` or :ref:`networking_with_native_posix`
|
||||
- Linux machine
|
||||
- Leshan Demo Server (https://eclipse.org/leshan/)
|
||||
|
||||
|
@ -62,8 +62,8 @@ Build the lwm2m-client sample application like this:
|
|||
:compact:
|
||||
|
||||
The easiest way to setup this sample application is to build and run it
|
||||
via QEMU using the default configuration :file:`prj.conf`.
|
||||
This requires a small amount of setup described in :ref:`networking_with_qemu`.
|
||||
as native POSIX application or as a QEMU target using the default configuration :file:`prj.conf`.
|
||||
This requires a small amount of setup described in :ref:`networking_with_eth_qemu`, :ref:`networking_with_qemu` and :ref:`networking_with_native_posix`.
|
||||
|
||||
Download and run the latest build of the Leshan Demo Server:
|
||||
|
||||
|
|
4
samples/net/lwm2m_client/boards/qemu_cortex_m3.conf
Normal file
4
samples/net/lwm2m_client/boards/qemu_cortex_m3.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
CONFIG_NET_L2_ETHERNET=y
|
||||
CONFIG_ETH_DRIVER=y
|
||||
CONFIG_ETH_STELLARIS=y
|
||||
CONFIG_NET_QEMU_ETHERNET=y
|
Loading…
Add table
Add a link
Reference in a new issue