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