Date
1 - 2 of 2
Require help to build an application
Ayan Kumar Halder
Hi Users,
Greetings from a newbie. :)
I am trying to build an example using Zephyrhttps://docs.zephyrproject.org/latest/boards/arm64/fvp_baser_aemv8r/doc/index.html#references <https://docs.zephyrproject.org/latest/boards/arm64/fvp_baser_aemv8r/doc/index.html#references> for Arm-v8-R fixed virtual platform.
I am getting this error :-
ayankuma@xcbayankuma41x:/scratch/ayankuma/zephyr/zephyr$ west build -b xenvm samples/synchronization
usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')
ayankuma@xcbayankuma41x:/scratch/ayankuma/zephyr/zephyr$
Does anyone know what I am missing ?
Kind regards,
Ayan
Greetings from a newbie. :)
I am trying to build an example using Zephyrhttps://docs.zephyrproject.org/latest/boards/arm64/fvp_baser_aemv8r/doc/index.html#references <https://docs.zephyrproject.org/latest/boards/arm64/fvp_baser_aemv8r/doc/index.html#references> for Arm-v8-R fixed virtual platform.
I am getting this error :-
ayankuma@xcbayankuma41x:/scratch/ayankuma/zephyr/zephyr$ west build -b xenvm samples/synchronization
usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')
ayankuma@xcbayankuma41x:/scratch/ayankuma/zephyr/zephyr$
Does anyone know what I am missing ?
Kind regards,
Ayan
Jason Bens <jason.bens@...>
Hi,
I'm also quite new at Zephyr, but it sounds like west isn't properly detecting the extensions defined by Zephyr, or may have been configured to disallow extensions. As a first step, are you aware of the troubleshooting guide in the documentation? If not, https://docs.zephyrproject.org/latest/guides/west/troubleshooting.html#invalid-choice-build-or-flash-etc may be a good place to start. 'west build' is an extension defined by Zephyr, and doesn't come with the base west tool. There's a bit more applicable information in https://docs.zephyrproject.org/latest/guides/west/extensions.html and https://docs.zephyrproject.org/latest/guides/west/config.html.
I think this is touched on in the first link, but you could also try explicitly supplying the optional ZEPHYR_BASE argument. Your error message gives the syntax for this. This can sidestep a few configuration issues elsewhere. I had a similar issue in the past, and found that my west manifest was pointing to the wrong location after a directory move. Supplying that argument was the first indicator to the location of the error.
I'm no expert, but hopefully this helps get you running without needing to bring in the real pros,
- Jason
toggle quoted message
Show quoted text
I'm also quite new at Zephyr, but it sounds like west isn't properly detecting the extensions defined by Zephyr, or may have been configured to disallow extensions. As a first step, are you aware of the troubleshooting guide in the documentation? If not, https://docs.zephyrproject.org/latest/guides/west/troubleshooting.html#invalid-choice-build-or-flash-etc may be a good place to start. 'west build' is an extension defined by Zephyr, and doesn't come with the base west tool. There's a bit more applicable information in https://docs.zephyrproject.org/latest/guides/west/extensions.html and https://docs.zephyrproject.org/latest/guides/west/config.html.
I think this is touched on in the first link, but you could also try explicitly supplying the optional ZEPHYR_BASE argument. Your error message gives the syntax for this. This can sidestep a few configuration issues elsewhere. I had a similar issue in the past, and found that my west manifest was pointing to the wrong location after a directory move. Supplying that argument was the first indicator to the location of the error.
I'm no expert, but hopefully this helps get you running without needing to bring in the real pros,
- Jason
-----Original Message-----
From: users@... <users@...> On Behalf Of Ayan Kumar Halder
Sent: February 8, 2022 8:58 PM
To: users@...
Subject: [Zephyr-users] Require help to build an application
External Email:
Hi Users,
Greetings from a newbie. :)
I am trying to build an example using
Zephyrhttps://docs.zephyrproject.org/latest/boards/arm64/fvp_baser_aemv8r/doc/index.html#references
<https://docs.zephyrproject.org/latest/boards/arm64/fvp_baser_aemv8r/doc/index.html#references>
for Arm-v8-R fixed virtual platform.
I am getting this error :-
ayankuma@xcbayankuma41x:/scratch/ayankuma/zephyr/zephyr$ west build -b xenvm samples/synchronization
usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate') ayankuma@xcbayankuma41x:/scratch/ayankuma/zephyr/zephyr$
Does anyone know what I am missing ?
Kind regards,
Ayan
From: users@... <users@...> On Behalf Of Ayan Kumar Halder
Sent: February 8, 2022 8:58 PM
To: users@...
Subject: [Zephyr-users] Require help to build an application
External Email:
Hi Users,
Greetings from a newbie. :)
I am trying to build an example using
Zephyrhttps://docs.zephyrproject.org/latest/boards/arm64/fvp_baser_aemv8r/doc/index.html#references
<https://docs.zephyrproject.org/latest/boards/arm64/fvp_baser_aemv8r/doc/index.html#references>
for Arm-v8-R fixed virtual platform.
I am getting this error :-
ayankuma@xcbayankuma41x:/scratch/ayankuma/zephyr/zephyr$ west build -b xenvm samples/synchronization
usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate') ayankuma@xcbayankuma41x:/scratch/ayankuma/zephyr/zephyr$
Does anyone know what I am missing ?
Kind regards,
Ayan