Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
00bd1453
Commit
00bd1453
authored
Feb 01, 2017
by
Paul Sokolovsky
Browse files
zephyr/README: Describe many gotchas of networked builds.
parent
28185bb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
zephyr/Makefile
View file @
00bd1453
...
...
@@ -90,6 +90,9 @@ $(Z_SYSGEN_H):
minimal
:
$(MAKE)
BOARD
=
$(BOARD)
CONF_FILE
=
prj_minimal.conf
CFLAGS_EXTRA
=
'-DMP_CONFIGFILE="<mpconfigport_minimal.h>"'
FROZEN_DIR
=
qemu-minimal
:
$(MAKE)
-f
Makefile.zephyr
BOARD
=
$(BOARD)
CONF_FILE
=
prj_minimal.conf
QEMU_NET
=
0 run
# Clean Zephyr things too
clean
:
z_clean
...
...
zephyr/README.md
View file @
00bd1453
...
...
@@ -49,8 +49,20 @@ qemu_cortex_m3):
make qemu
With the default configuration, networking is now enabled, so you need to
follow instructions in https://wiki.zephyrproject.org/view/Networking-with-Qemu
to setup host side of TAP/SLIP networking. If you get error like:
could not connect serial device to character backend 'unix:/tmp/slip.sock'
it's a sign that you didn't followed instructions above. If you would like
to just run it quickly without extra setup, see "minimal" build below.
For deploying/flashing a firmware on a real board, follow Zephyr
documentation for a given board.
documentation for a given board (mind again that networking is enabled
for the build, so you should be aware of known issues for a particular
board; for example, frdm_k64f requires Ethernet cable connected to both
board and host or it will hang/crash on startup).
Quick example
...
...
@@ -93,3 +105,8 @@ default over time.
To make a minimal build:
make BOARD=<board> minimal
To run a minimal build in QEMU without requiring TAP networking setup
run the following after you built image with the previous command:
make BOARD=<qemu_x86|qemu_cortex_m3> qemu-minimal
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment