|
| 1 | +.. zephyr:board:: milkv_duos |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +See https://milkv.io/duo-s |
| 7 | + |
| 8 | +Supported Features |
| 9 | +================== |
| 10 | + |
| 11 | +.. zephyr:board-supported-hw:: |
| 12 | +
|
| 13 | +Programming and Debugging |
| 14 | +************************* |
| 15 | + |
| 16 | +Prepare a TF card and follow the instructions in the `official SDK`_ to build |
| 17 | +and flash the image. |
| 18 | + |
| 19 | +After that, you will get a ``fip.bin`` file at the root of the TF card, where |
| 20 | +the RTOS image is packed. |
| 21 | + |
| 22 | +The following steps demonstrate how to build the blinky sample and update the |
| 23 | +``fip.bin`` file on the TF card. |
| 24 | + |
| 25 | +.. zephyr-app-commands:: |
| 26 | + :zephyr-app: samples/basic/blinky |
| 27 | + :board: milkv_duos/sg2000/c906_1 |
| 28 | + :goals: build flash |
| 29 | + :flash-args: --fiptool /path/to/duo-buildroot-sdk/fsbl/plat/cv181x/fiptool.py --fip-bin /path/to/tfcard/fip.bin |
| 30 | + |
| 31 | +Eject the TF card and insert it into the board. Power on the board and you will |
| 32 | +see the LED blinking. |
| 33 | + |
| 34 | +.. note:: |
| 35 | + |
| 36 | + Notes for the official buildroot SDK |
| 37 | + |
| 38 | + 1. The Linux running on the big core uses UART0 (A16/A17) for the console, |
| 39 | + while to avoid conflict, the Zephyr application (in the default board |
| 40 | + configuration) uses UART2 (A19/A18). |
| 41 | + 2. Pin multiplexing can be handled either by U-Boot or Zephyr. To utilize |
| 42 | + Zephyr's pin multiplexing, enable :kconfig:option:`CONFIG_PINCTRL` and |
| 43 | + recompile U-Boot without the `PINMUX configs`_. Note that U-Boot boots |
| 44 | + several seconds after Zephyr. |
| 45 | + |
| 46 | +.. _official SDK: |
| 47 | + https://github.com/milkv-duo/duo-buildroot-sdk |
| 48 | + |
| 49 | +.. _PINMUX configs: |
| 50 | + https://github.com/milkv-duo/duo-buildroot-sdk/blob/develop/build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvi_board_init.c |
0 commit comments