Skip to content

Draft: zephyr-kernel: add patch to enable shell/console over USB

Francesco Pham requested to merge mrfrank/meta-zephyr:patch into oniro/kirkstone

zephyr-kernel: add patch to enable shell/console over USB (CDC ACM)

adding patch 0003-philosophers-set-overlay-to-enable-shell-console-ove.patch to enable shell-console over USB for zephyr-philosophers sample application.

currently shell and console is not working via USB, instead one have to use the UART interface and use a serial to USB cable to access the arduino shell. This is a regression because in Jasmine console over usb was working. The regression was introduced from upstream: https://github.com/zephyrproject-rtos/zephyr/pull/44023/commits/69707dfb4bd91b513fb3e1503d76265c857f18b7#diff-93ba35382d86f5dce92d22c0f8c1a2649ba17786dca3bff30c5b760cbe8b9128

Using this overlay configuration, enabling CONFIG_USB_DEVICE_STACK and calling usb_enable() we are able to access the arduino shell using the USB port of the Arduino Nano board.

This patch is only applied to the zephyr-philosophers sample application.

Relate-to: #33

Signed-off-by: Francesco Pham francesco.pham@huawei.com

Edited by Francesco Pham

Merge request reports