Lines Matching +full:- +full:clint

1 Microchip PolarFire SoC Icicle Kit (``microchip-icicle-kit``)
5 SiFive's E51 plus four U54 cores and many on-chip peripherals and an FPGA.
8 https://www.microsemi.com/product-directory/soc-fpgas/5498-polarfire-soc-fpga
11 https://www.microsemi.com/existing-parts/parts/152514
14 -----------------
16 The ``microchip-icicle-kit`` machine supports the following devices:
20 * Core Level Interruptor (CLINT)
21 * Platform-Level Interrupt Controller (PLIC)
22 * L2 Loosely Integrated Memory (L2-LIM)
30 ------------
32 The ``microchip-icicle-kit`` machine can start using the standard -bios
34 HSS loads the second stage bootloader U-Boot from an SD card. Then a kernel
35 can be loaded from U-Boot. It also supports direct kernel booting via the
36 -kernel option along with the device tree blob via -dtb. When direct kernel
38 like U-Boot or OS kernel directly.
43 of subnodes should match QEMU's ``-smp`` option
44 * The /memory reg size should match QEMU’s selected ram_size via ``-m``
45 * Should contain a node for the CLINT device with a compatible string
51 -bios -kernel -dtb payload
64 -----------
67 that can be booted by the ``microchip-icicle-kit`` machine, type the following
70 .. code-block:: bash
72 $ export CROSS_COMPILE=riscv64-linux-
73 $ cp boards/mpfs-icicle-kit-es/def_config .config
74 $ make BOARD=mpfs-icicle-kit-es
79 .. code-block:: bash
81 …$ wget ftp://ftpsoc.microsemi.com/outgoing/core-image-minimal-dev-icicle-kit-es-sd-20201009141623.…
82 $ gunzip core-image-minimal-dev-icicle-kit-es-sd-20201009141623.rootfs.wic.gz
83 $ qemu-img resize core-image-minimal-dev-icicle-kit-es-sd-20201009141623.rootfs.wic 4G
87 .. code-block:: bash
89 $ qemu-system-riscv64 -M microchip-icicle-kit -smp 5 \
90 -bios path/to/hss.bin -sd path/to/sdcard.img \
91 -nic user,model=cadence_gem \
92 -nic tap,ifname=tap,model=cadence_gem,script=no \
93 -display none -serial stdio \
94 -chardev socket,id=serial1,path=serial1.sock,server=on,wait=on \
95 -serial chardev:serial1
101 .. code-block:: bash
103 $ minicom -D unix\#serial1.sock
105 HSS output is on the first serial port (stdio) and U-Boot outputs on the
106 second serial port. U-Boot will automatically load the Linux kernel from
110 ------------------
114 use '-kernel' for direct kernel booting just like other RISC-V machines do.
117 used to boot an S-mode payload like U-Boot or OS kernel directly.
119 For example, the following commands show building a U-Boot image from U-Boot
122 .. code-block:: bash
124 $ export CROSS_COMPILE=riscv64-linux-
129 .. code-block:: bash
131 $ qemu-system-riscv64 -M microchip-icicle-kit -smp 5 -m 2G \
132 -sd path/to/sdcard.img \
133 -nic user,model=cadence_gem \
134 -nic tap,ifname=tap,model=cadence_gem,script=no \
135 -display none -serial stdio \
136 -kernel path/to/u-boot/build/dir/u-boot.bin \
137 -dtb path/to/u-boot/build/dir/u-boot.dtb
141 * Check the "stdout-path" property in the /chosen node in the DTB to determine
143 to the second serial port, change to use "-serial null -serial stdio".
144 * The default U-Boot configuration uses CONFIG_OF_SEPARATE hence the ELF image
145 ``u-boot`` cannot be passed to "-kernel" as it does not contain the DTB hence
146 ``u-boot.bin`` has to be used which does contain one. To use the ELF image,
149 .. _HSS: https://github.com/polarfire-soc/hart-software-services