[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v4 01/30] target/loongarch: Update README
|
From: |
Xiaojuan Yang |
|
Subject: |
[RFC PATCH v4 01/30] target/loongarch: Update README |
|
Date: |
Sat, 8 Jan 2022 04:13:50 -0500 |
Mainly introduce how to run the softmmu
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
target/loongarch/README | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/target/loongarch/README b/target/loongarch/README
index d5780c5918..337ba55f33 100644
--- a/target/loongarch/README
+++ b/target/loongarch/README
@@ -72,6 +72,31 @@
./qemu-loongarch64 /opt/clfs/usr/bin/pwd
...
+- Softmmu emulation
+
+ Add support softmmu emulation support in the following series patches.
+ Mainly emulate a virt 3A5000 board and ls7a bridge that is not exactly
+ the same as the host. Kernel code and uefi code is on the github.
+ All required binaries can get from github for test.
+
+ 1.Download kernel and the cross-tools.(vmlinux)
+
+ https://github.com/loongson/linux/tree/loongarch-next
+
https://github.com/loongson/build-tools/releases/latest/download/loongarch64-clfs-20211202-cross-tools.tar.xz
+
+ 2.Download uefi code.(loongarch_bios.bin)
+
+ https://github.com/loongson/edk2/tree/LoongArch
+ https://github.com/loongson/edk2-platforms
+
+ 3.Download the clfs-system and make a ramdisk with busybox.(ramdisk)
+
+ 4.Run with command,eg:
+
+ ./build/qemu-system-loongarch64 -m 4G -smp 4 --cpu Loongson-3A5000
--machine loongson3-ls7a -kernel ./vmlinux -initrd ./ramdisk -append
"root=/dev/ram console=ttyS0,115200 rdinit=/sbin/init loglevel=8" -monitor
tcp::4000,server,nowait -nographic
+
+The vmlinux, ramdisk and uefi binary loongarch_bios.bin can get from :
+ git clone https://github.com/yangxiaojuan-loongson/qemu-binary
- Note.
We can get the latest LoongArch documents or LoongArch tools at
https://github.com/loongson/
--
2.27.0
- Re: [RFC PATCH v4 06/30] target/loongarch: Add MMU support for LoongArch CPU., (continued)
- [RFC PATCH v4 08/30] target/loongarch: Add LoongArch IOCSR instruction, Xiaojuan Yang, 2022/01/08
- [RFC PATCH v4 11/30] target/loongarch: Add LoongArch interrupt and exception handle, Xiaojuan Yang, 2022/01/08
- [RFC PATCH v4 04/30] target/loongarch: Implement qmp_query_cpu_definitions(), Xiaojuan Yang, 2022/01/08
- [RFC PATCH v4 05/30] target/loongarch: Add constant timer support, Xiaojuan Yang, 2022/01/08
- [RFC PATCH v4 01/30] target/loongarch: Update README,
Xiaojuan Yang <=
- [RFC PATCH v4 13/30] target/loongarch: Add gdb support., Xiaojuan Yang, 2022/01/08
- [RFC PATCH v4 15/30] hw/loongarch: Add support loongson3-ls7a machine type., Xiaojuan Yang, 2022/01/08
- [RFC PATCH v4 19/30] hw/intc: Add LoongArch ls7a msi interrupt controller support(PCH-MSI), Xiaojuan Yang, 2022/01/08
- [RFC PATCH v4 17/30] hw/loongarch: Add LoongArch ipi interrupt support(IPI), Xiaojuan Yang, 2022/01/08
- [RFC PATCH v4 21/30] hw/loongarch: Add irq hierarchy for the system, Xiaojuan Yang, 2022/01/08