configs/qemu_cskyXXX_virt: new defconfig
authorGuo Ren <ren_guo@c-sky.com>
Thu, 13 Jun 2019 15:14:30 +0000 (23:14 +0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 2 Aug 2019 21:42:51 +0000 (23:42 +0200)
Add C-SKY defconfig for QEMU virt machine.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
.gitlab-ci.yml
DEVELOPERS
board/qemu/csky/linux-ck610.config.fragment [new file with mode: 0644]
board/qemu/csky/linux-ck807.config.fragment [new file with mode: 0644]
board/qemu/csky/linux-ck810.config.fragment [new file with mode: 0644]
board/qemu/csky/linux-ck860.config.fragment [new file with mode: 0644]
board/qemu/csky/readme.txt [new file with mode: 0644]
configs/qemu_csky610_virt_defconfig [new file with mode: 0644]
configs/qemu_csky807_virt_defconfig [new file with mode: 0644]
configs/qemu_csky810_virt_defconfig [new file with mode: 0644]
configs/qemu_csky860_virt_defconfig [new file with mode: 0644]

index dd351fc54555d30ac16c9ef5805d989a0c1c4cf7..09c979fe7f631c371529f9275cf7c1b4d734a3e6 100644 (file)
@@ -250,6 +250,10 @@ qemu_aarch64_virt_defconfig: { extends: .defconfig }
 qemu_arm_versatile_defconfig: { extends: .defconfig }
 qemu_arm_versatile_nommu_defconfig: { extends: .defconfig }
 qemu_arm_vexpress_defconfig: { extends: .defconfig }
+qemu_csky610_virt_defconfig: { extends: .defconfig }
+qemu_csky807_virt_defconfig: { extends: .defconfig }
+qemu_csky810_virt_defconfig: { extends: .defconfig }
+qemu_csky860_virt_defconfig: { extends: .defconfig }
 qemu_m68k_mcf5208_defconfig: { extends: .defconfig }
 qemu_m68k_q800_defconfig: { extends: .defconfig }
 qemu_microblazebe_mmu_defconfig: { extends: .defconfig }
index 5b8d962ac87fdaaf995490271d9f75e2a87c0579..b50b2ad30fe981a4330bf1ebd6328fe0badfc7c5 100644 (file)
@@ -978,7 +978,9 @@ F:  package/reaver/
 N:     Guo Ren <ren_guo@c-sky.com>
 F:     arch/Config.in.csky
 F:     board/csky/
+F:     board/qemu/csky
 F:     configs/csky_*
+F:     configs/qemu_csky*
 
 N:     Gustavo Pimentel <gustavo.pimentel@synopsys.com>
 F:     configs/arm_juno_defconfig
diff --git a/board/qemu/csky/linux-ck610.config.fragment b/board/qemu/csky/linux-ck610.config.fragment
new file mode 100644 (file)
index 0000000..d80d0ee
--- /dev/null
@@ -0,0 +1,5 @@
+CONFIG_COMPILE_TEST=y
+CONFIG_CPU_CK610=y
+CONFIG_CPU_PM_WAIT=y
+CONFIG_CSKY_APB_INTC=y
+CONFIG_GX6605S_TIMER=y
diff --git a/board/qemu/csky/linux-ck807.config.fragment b/board/qemu/csky/linux-ck807.config.fragment
new file mode 100644 (file)
index 0000000..b6974f0
--- /dev/null
@@ -0,0 +1,5 @@
+CONFIG_COMPILE_TEST=y
+CONFIG_CPU_CK807=y
+# CONFIG_CPU_HAS_FPU is not set
+CONFIG_CPU_PM_WAIT=y
+CONFIG_CSKY_APB_INTC=y
diff --git a/board/qemu/csky/linux-ck810.config.fragment b/board/qemu/csky/linux-ck810.config.fragment
new file mode 100644 (file)
index 0000000..50fa1f4
--- /dev/null
@@ -0,0 +1,5 @@
+CONFIG_COMPILE_TEST=y
+CONFIG_CPU_CK810=y
+# CONFIG_CPU_HAS_FPU is not set
+CONFIG_CPU_PM_WAIT=y
+CONFIG_CSKY_APB_INTC=y
diff --git a/board/qemu/csky/linux-ck860.config.fragment b/board/qemu/csky/linux-ck860.config.fragment
new file mode 100644 (file)
index 0000000..e8f6af1
--- /dev/null
@@ -0,0 +1,9 @@
+CONFIG_COMPILE_TEST=y
+CONFIG_CPU_CK860=y
+# CONFIG_CPU_HAS_FPU is not set
+CONFIG_CPU_PM_WAIT=y
+CONFIG_SMP=y
+CONFIG_HOTPLUG_CPU=y
+CONFIG_CSKY_APB_INTC=y
+CONFIG_CSKY_MPINTC=y
+CONFIG_CSKY_MP_TIMER=y
diff --git a/board/qemu/csky/readme.txt b/board/qemu/csky/readme.txt
new file mode 100644 (file)
index 0000000..89d68aa
--- /dev/null
@@ -0,0 +1,12 @@
+Run with qemu:
+
+For ck860 smp:
+ qemu-system-cskyv2 -M virt -cpu ck860 -smp 2 -nographic -kernel vmlinux
+
+For ck810/ck807:
+ qemu-system-cskyv2 -M virt -nographic -kernel vmlinux
+
+For ck610:
+ qemu-system-cskyv1 -M virt -nographic -kernel vmlinux
+
+The login prompt will appear in the terminal that started Qemu. Username is root and no password.
diff --git a/configs/qemu_csky610_virt_defconfig b/configs/qemu_csky610_virt_defconfig
new file mode 100644 (file)
index 0000000..f337bd7
--- /dev/null
@@ -0,0 +1,16 @@
+# Architecture
+BR2_csky=y
+BR2_ck610=y
+
+# System
+BR2_TARGET_ROOTFS_INITRAMFS=y
+
+# linux kernel header, the same version with linux kernel
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0.12"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/csky/linux-ck610.config.fragment"
diff --git a/configs/qemu_csky807_virt_defconfig b/configs/qemu_csky807_virt_defconfig
new file mode 100644 (file)
index 0000000..c4a10b8
--- /dev/null
@@ -0,0 +1,16 @@
+# Architecture
+BR2_csky=y
+BR2_ck807=y
+
+# System
+BR2_TARGET_ROOTFS_INITRAMFS=y
+
+# linux kernel header, the same version with linux kernel
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0.12"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/csky/linux-ck807.config.fragment"
diff --git a/configs/qemu_csky810_virt_defconfig b/configs/qemu_csky810_virt_defconfig
new file mode 100644 (file)
index 0000000..56efe8a
--- /dev/null
@@ -0,0 +1,16 @@
+# Architecture
+BR2_csky=y
+BR2_ck810=y
+
+# System
+BR2_TARGET_ROOTFS_INITRAMFS=y
+
+# linux kernel header, the same version with linux kernel
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0.12"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/csky/linux-ck810.config.fragment"
diff --git a/configs/qemu_csky860_virt_defconfig b/configs/qemu_csky860_virt_defconfig
new file mode 100644 (file)
index 0000000..9ec8f63
--- /dev/null
@@ -0,0 +1,16 @@
+# Architecture
+BR2_csky=y
+BR2_ck860=y
+
+# System
+BR2_TARGET_ROOTFS_INITRAMFS=y
+
+# linux kernel header, the same version with linux kernel
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0.12"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/csky/linux-ck860.config.fragment"