Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions ports/zephyr-cp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,33 @@ make BOARD=nordic_nrf7002dk
This uses Zephyr's cmake to generate Makefiles that then delegate to
`tools/cpbuild/build_circuitpython.py` to build the CircuitPython bits in parallel.

## Native simulator build container

Building the native sim requires `libsdl2-dev:i386` and other 32bit dependencies that
can cause conflicts on 64bit systems resulting in the removal of 64bit versions of critical
software such as the display manager and network manager. A Containerfile and a few scripts
are provided to set up a container to make the native sim build inside without affecting the
host system.

The container automatically mounts this instance of the circuitpython repo inside at
`/home/dev/circuitpython`. Changes made in the repo inside the container and on the host PC
will sync automatically between host and container.

To use the container file:

1. Build the container with `podman build -t zephyr-cp-dev -f native_sim_build_Containerfile .`
2. Run/Start the container by running `./native_sim_build_run_container.sh` on the host PC.
The script will automatically run or start based on whether the container has been run before.
3. Init requirements inside the container with `./native_sim_build_init_container.sh`

To delete the container and cleanup associated files:
```sh
podman ps -a --filter ancestor=zephyr-cp-dev -q | xargs -r podman rm -f
podman rmi zephyr-cp-dev
podman image prune -f
podman rm -f zcp
```

## Running the native simulator

From `ports/zephyr-cp`, run:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down Expand Up @@ -71,7 +71,7 @@ memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = true # Zephyr board has nvm
onewireio = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down Expand Up @@ -71,7 +71,7 @@ memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
onewireio = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down Expand Up @@ -71,7 +71,7 @@ memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
onewireio = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down Expand Up @@ -71,7 +71,7 @@ memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
onewireio = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down Expand Up @@ -71,7 +71,7 @@ memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
onewireio = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ i2cdisplaybus = true # Zephyr board has busio
i2cioexpander = false
i2ctarget = false
imagecapture = false
ipaddress = false
ipaddress = true # Zephyr networking enabled
is31fl3741 = false
jpegio = false
keypad = false
Expand All @@ -71,7 +71,7 @@ memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
onewireio = false
Expand Down
1 change: 1 addition & 0 deletions ports/zephyr-cp/boards/nordic/nrf7002dk/circuitpython.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ CIRCUITPY_BUILD_EXTENSIONS = ["elf"]
USB_VID=0x239A
USB_PID=0x8168
BLOBS=["nrf_wifi"]
DISABLED_MODULES=["aesio"]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down Expand Up @@ -71,7 +71,7 @@ memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
onewireio = false
Expand Down
6 changes: 3 additions & 3 deletions ports/zephyr-cp/boards/nxp/frdm_rw612/autogen_board_info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down Expand Up @@ -56,7 +56,7 @@ i2cdisplaybus = true # Zephyr board has busio
i2cioexpander = false
i2ctarget = false
imagecapture = false
ipaddress = false
ipaddress = true # Zephyr networking enabled
is31fl3741 = false
jpegio = false
keypad = false
Expand All @@ -71,7 +71,7 @@ memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
onewireio = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down Expand Up @@ -71,7 +71,7 @@ memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
onewireio = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand All @@ -24,6 +24,7 @@ audioio = false
audiomixer = false
audiomp3 = false
audiopwmio = false
audiospeed = false
aurora_epaper = false
bitbangio = false
bitmapfilter = true # Zephyr board has busio
Expand Down Expand Up @@ -62,17 +63,17 @@ keypad = false
keypad_demux = false
locale = false
lvfontio = true # Zephyr board has busio
math = false
math = true
max3421e = false
mcp4822 = false
mdns = false
memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
nvm = true # Zephyr board has nvm
onewireio = false
os = true
paralleldisplaybus = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand All @@ -24,6 +24,7 @@ audioio = false
audiomixer = false
audiomp3 = false
audiopwmio = false
audiospeed = false
aurora_epaper = false
bitbangio = false
bitmapfilter = true # Zephyr board has busio
Expand Down Expand Up @@ -62,17 +63,17 @@ keypad = false
keypad_demux = false
locale = false
lvfontio = true # Zephyr board has busio
math = false
math = true
max3421e = false
mcp4822 = false
mdns = false
memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
nvm = true # Zephyr board has nvm
onewireio = false
os = true
paralleldisplaybus = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand All @@ -24,6 +24,7 @@ audioio = false
audiomixer = false
audiomp3 = false
audiopwmio = false
audiospeed = false
aurora_epaper = false
bitbangio = false
bitmapfilter = true # Zephyr board has busio
Expand Down Expand Up @@ -62,17 +63,17 @@ keypad = false
keypad_demux = false
locale = false
lvfontio = true # Zephyr board has busio
math = false
math = true
max3421e = false
mcp4822 = false
mdns = false
memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
nvm = true # Zephyr board has nvm
onewireio = false
os = true
paralleldisplaybus = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand All @@ -24,6 +24,7 @@ audioio = false
audiomixer = false
audiomp3 = false
audiopwmio = false
audiospeed = false
aurora_epaper = false
bitbangio = false
bitmapfilter = true # Zephyr board has busio
Expand Down Expand Up @@ -62,17 +63,17 @@ keypad = false
keypad_demux = false
locale = false
lvfontio = true # Zephyr board has busio
math = false
math = true
max3421e = false
mcp4822 = false
mdns = false
memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
nvm = true # Zephyr board has nvm
onewireio = false
os = true
paralleldisplaybus = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _pixelmap = false
_stage = false
adafruit_bus_device = false
adafruit_pixelbuf = false
aesio = false
aesio = true
alarm = false
analogbufio = false
analogio = false
Expand Down Expand Up @@ -71,7 +71,7 @@ memorymap = false
memorymonitor = false
microcontroller = true
mipidsi = false
msgpack = false
msgpack = true
neopixel_write = false
nvm = false
onewireio = false
Expand Down
Loading
Loading