Skip to content

interpreters/python: support build without network#3645

Open
fdcavalcanti wants to merge 1 commit into
apache:masterfrom
fdcavalcanti:feature/python-p4-tab
Open

interpreters/python: support build without network#3645
fdcavalcanti wants to merge 1 commit into
apache:masterfrom
fdcavalcanti:feature/python-p4-tab

Conversation

@fdcavalcanti

Copy link
Copy Markdown
Contributor

Summary

  • interpreters/python: support build without network

Adds options to support building when CONFIG_NET is not set.
This allows building Python for boards that do not have networking support.

Impact

Impact on user: No.

Impact on build: Allows building if CONFIG_NET is not set.

Impact on hardware: No.

Impact on documentation: No.

Impact on security: No.

Impact on compatibility: No.

Testing

Tested on M5 Stack ESP32-P4 Tab 5 board which does not have ethernet and Wi-Fi is not yet supported.
This requires changes on NuttX of this MR.

Building

  • ./tools/configure.sh -S esp32p4-tab5:python
  • Make and flash

Results

Device boots and Python is available.

*** Booting NuttX ***
tcm: lma 0x00002020 vma 0x30100000 len 0x68     (104)
dram: lma 0x00002090 vma 0x4ff00000 len 0xa5ec   (42476)
dram: lma 0x0000c684 vma 0x4ff40000 len 0x22c2c  (142380)
padd: lma 0x0002f2c8 vma 0x00000000 len 0xd50    (3408)
imap: lma 0x00030020 vma 0x40200020 len 0xc29060 (12750944)
padd: lma 0x00c59088 vma 0x00000000 len 0x6f70   (28528)
imap: lma 0x00c60000 vma 0x40000000 len 0x1f315c (2044252)
total segments stored 7
WARNING: NuttX supports ESP32-P4 chip revision > v3.0 (chip revision is v1.3).
Ignoring this error and continuing because `CONFIG_ESP32P4_SELECTS_REV_LESS_V3` is set...
THIS MAY NOT WORK! DON'T USE THIS CHIP IN PRODUCTION!

NuttShell (NSH) NuttX-10.4.0
nsh> python
Python 3.13.0 (main, Jul 15 2026, 14:31:34) [GCC 14.2.0] on nuttx
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello NuttX!")
Hello NuttX!
>>> 

Adds options to support building when CONFIG_NET is not set.
This allows building Python for boards that do not have networking support.

Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants