@@ -12,14 +12,15 @@ Supported devices
12
12
-----------------
13
13
14
14
The ``virt `` machine supports:
15
- - Gpex host bridge
16
- - Ls7a RTC device
17
- - Ls7a IOAPIC device
18
- - ACPI GED device
19
- - Fw_cfg device
20
- - PCI/PCIe devices
21
- - Memory device
22
- - CPU device. Type: la464.
15
+
16
+ * Gpex host bridge
17
+ * Ls7a RTC device
18
+ * Ls7a IOAPIC device
19
+ * ACPI GED device
20
+ * Fw_cfg device
21
+ * PCI/PCIe devices
22
+ * Memory device
23
+ * CPU device. Type: la464.
23
24
24
25
CPU and machine Type
25
26
--------------------
@@ -39,23 +40,15 @@ can be accessed by following steps.
39
40
40
41
.. code-block :: bash
41
42
42
- ./configure --disable-rdma --prefix=/usr \
43
- --target-list=" loongarch64-softmmu" \
44
- --disable-libiscsi --disable-libnfs --disable-libpmem \
45
- --disable-glusterfs --enable-libusb --enable-usb-redir \
46
- --disable-opengl --disable-xen --enable-spice \
47
- --enable-debug --disable-capstone --disable-kvm \
48
- --enable-profiler
43
+ ./configure --target-list=" loongarch64-softmmu"
49
44
make -j8
50
45
51
46
(2) Set cross tools:
52
47
53
48
.. code-block :: bash
54
49
55
50
wget https://github.com/loongson/build-tools/releases/download/2022.09.06/loongarch64-clfs-6.3-cross-tools-gcc-glibc.tar.xz
56
-
57
51
tar -vxf loongarch64-clfs-6.3-cross-tools-gcc-glibc.tar.xz -C /opt
58
-
59
52
export PATH=/opt/cross-tools/bin:$PATH
60
53
export LD_LIBRARY_PATH=/opt/cross-tools/lib:$LD_LIBRARY_PATH
61
54
export LD_LIBRARY_PATH=/opt/cross-tools/loongarch64-unknown-linux-gnu/lib/:$LD_LIBRARY_PATH
@@ -74,13 +67,9 @@ Note: To build the release version of the bios, set --buildtarget=RELEASE,
74
67
.. code-block :: bash
75
68
76
69
git clone https://github.com/loongson/linux.git
77
-
78
70
cd linux
79
-
80
71
git checkout loongarch-next
81
-
82
72
make ARCH=loongarch CROSS_COMPILE=loongarch64-unknown-linux-gnu- loongson3_defconfig
83
-
84
73
make ARCH=loongarch CROSS_COMPILE=loongarch64-unknown-linux-gnu- -j32
85
74
86
75
Note: The branch of linux source code is loongarch-next.
0 commit comments