blob: 25df63ff14b9e78f8d969c93c251d3c4d2d61414 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
.. SPDX-License-Identifier: GPL-2.0+
Microchip PolarFire SoC Video Kit
==================================
RISC-V PolarFire SoC
--------------------
The PolarFire SoC is the 4+1 64-bit RISC-V SoC from Microchip.
The Video Kit development platform is based on PolarFire SoC and capable
of running Linux.
Mainline support
----------------
The support for following drivers are already enabled:
1. NS16550 UART Driver.
2. Microchip Clock Driver.
3. Cadence MACB ethernet driver for networking support.
4. Cadence MMC Driver for eMMC/SD support.
5. Microchip I2C Driver.
.. include:: mpfs_build_boot.rst
Microchip boot-flow
~~~~~~~~~~~~~~~~~~~
HSS with OpenSBI (M-Mode) -> U-Boot (S-Mode) -> Linux (S-Mode)
Build the HSS (Hart Software Services) - Microchip boot-flow
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
(Note: HSS git repo is at https://github.com/polarfire-soc/hart-software-services)
1. Configure
.. code-block:: none
make BOARD=mpfs-video-kit config
Alternatively, copy the default config for Microchip boot-flow.
.. code-block:: none
cp boards/mpfs-video-kit/def_config .config
2. make BOARD=mpfs-video-kit
3. In the Default subdirectory, the standard build will create hss.elf and
various binary formats (hss.hex and hss.bin).
The FPGA design will use the hss.hex or hss.bin.
.. include:: mpfs_design_hss.rst
Custom boot-flow
~~~~~~~~~~~~~~~~
HSS without OpenSBI (M-Mode) -> OpenSBI (M-Mode) -> U-Boot (S-Mode) -> Linux (S-Mode)
Build OpenSBI
'''''''''''''
1. Get the OpenSBI source
.. code-block:: none
git clone https://github.com/riscv/opensbi.git
cd opensbi
2. Build
.. code-block:: none
make PLATFORM=generic FW_PAYLOAD_PATH=<u-boot-directory>/u-boot.bin
FW_FDT_PATH=<u-boot-directory>/dts/upstream/src/riscv/microchip/mpfs-sev-kit-.dtb
3. Output "fw_payload.bin" file available at
"<opensbi-directory>/build/platform/generic/firmware/fw_payload.bin"
Build the HSS (Hart Software Services)- Custom boot-flow
''''''''''''''''''''''''''''''''''''''''''''''''''''''''
(Note: HSS git repo is at https://github.com/polarfire-soc/hart-software-services)
1. Configure
.. code-block:: none
make BOARD=mpfs-video-kit config
Alternatively, copy the default custom config for Custom boot-flow.
.. code-block:: none
cp boards/mpfs-video-kit/def_config_custom .config
2. make BOARD=mpfs-video-kit
3. In the Default subdirectory, the standard build will create hss.elf and
various binary formats (hss.hex and hss.bin).
The FPGA design will use the hss.hex or hss.bin.
.. include:: mpfs_common.rst
|