Heinrich Schuchardt | e43a266 | 2025-04-24 14:13:12 +0200 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | |
| 3 | DeepComputing Framework Motherboard (FLM13V01) |
| 4 | ============================================== |
| 5 | |
| 6 | The DeepComputing Framework motherboard (FLM13V01) can be combined with a |
| 7 | 13 inch Framework laptop chassis to provide a complete laptop. |
| 8 | |
| 9 | U-Boot for the board uses the same binaries as the VisionFive 2 board. |
| 10 | Currently only serial console output is supported by mainline U-Boot. |
| 11 | |
| 12 | Building |
| 13 | -------- |
| 14 | |
| 15 | Setup the cross compilation environment variable: |
| 16 | |
| 17 | .. code-block:: bash |
| 18 | |
| 19 | export CROSS_COMPILE=riscv64-linux-gnu- |
| 20 | |
| 21 | The M-mode software OpenSBI provides the supervisor binary interface (SBI) and |
| 22 | is responsible for the switch to S-Mode. It is a prerequisite for building |
| 23 | U-Boot. Support for the JH7110 was introduced in OpenSBI 1.2. It is recommended |
| 24 | to use a current release. |
| 25 | |
| 26 | .. code-block:: bash |
| 27 | |
| 28 | git clone https://github.com/riscv/opensbi.git |
| 29 | cd opensbi |
| 30 | make PLATFORM=generic FW_TEXT_START=0x40000000 FW_OPTIONS=0 |
| 31 | export OPENSBI="$(pwd)/build/platform/generic/firmware/fw_dynamic.bin" |
| 32 | |
| 33 | Now build U-Boot SPL and main U-Boot. |
| 34 | |
| 35 | .. code-block:: bash |
| 36 | |
| 37 | cd <U-Boot-dir> |
| 38 | make starfive_visionfive2_defconfig |
| 39 | make |
| 40 | |
| 41 | This will generate the U-Boot SPL image (spl/u-boot-spl.bin.normal.out) as well |
| 42 | as the FIT image (u-boot.itb) with OpenSBI, U-Boot, and device-trees. |
| 43 | |
| 44 | Device-tree selection |
| 45 | --------------------- |
| 46 | |
| 47 | The product ID stored in the board EEPROM is used by U-Boot SPL to select the |
| 48 | right configuration and device-tree from the u-boot.itb FIT image. |
| 49 | |
| 50 | Furthermore if variable $fdtfile has not been saved in the environment it is |
| 51 | set based on the product ID to *starfive/jh7110-deepcomputing-fml13v01.dtb*. |
| 52 | |
| 53 | To overrule this default the variable can be set manually and saved in the |
| 54 | environment |
| 55 | |
| 56 | .. code-block:: console |
| 57 | |
| 58 | setenv fdtfile my_device-tree.dtb |
| 59 | env save |
| 60 | |
| 61 | Power switch |
| 62 | ------------ |
| 63 | |
| 64 | A tiny power switch is located in right upper corner of the board. |
| 65 | |
| 66 | Open case detection |
| 67 | ------------------- |
| 68 | |
| 69 | The board has an open case detection switch. Red lights will flash and the |
| 70 | board will not boot if the switch is not held down. |
| 71 | |
| 72 | UART |
| 73 | ---- |
| 74 | |
| 75 | UART 0 is exposed via the side channel contacts SBU1 and SBU2 of the lower, |
| 76 | right USB C connector. A USB C cable and a breakout board are needed for |
| 77 | physical access. It depends on the cable orientation on which of SBU1 and SBU2 |
| 78 | you will find RX and TX. The signal voltage is 3.3 V. The baud rate is 115200. |
| 79 | |
| 80 | .. include:: jh7110_common.rst |