diff --git a/.gitmodules b/.gitmodules index 419e437ac5cb82d32798f0661eec52b7dfa695d9..12e9afe582e74f4dfa485903f0e570204fdbfaa6 100644 --- a/.gitmodules +++ b/.gitmodules @@ -114,3 +114,6 @@ ignore = all path = boards/ppc64/powernv/bsp url = https://gitee.com/tinylab/qemu-ppc64-powernv +[submodule "boards/riscv64/tiny-riscv-box/bsp"] + path = boards/riscv64/tiny-riscv-box/bsp + url = https://gitee.com/tinylab/tiny-riscv-box.git diff --git a/boards/riscv64/tiny-riscv-box/Makefile b/boards/riscv64/tiny-riscv-box/Makefile new file mode 100755 index 0000000000000000000000000000000000000000..c79a7ff1de1fb22673ae1d1d642d35cd64711603 --- /dev/null +++ b/boards/riscv64/tiny-riscv-box/Makefile @@ -0,0 +1,20 @@ +# Copyright (C) 2020 Wu Zhangjin +# _BASE: 1, virt; 2, real; 3: virt+real +_BASE := 2 +ARCH := riscv +XARCH := riscv64 +CPU ?= cv1800b +SMP ?= 1 +MEM ?= 64MB +LINUX ?= v5.10.4 + +SERIAL ?= ttyS0 + +ROOTDEV_LIST := /dev/mmcblk0 +ROOTDEV ?= /dev/mmcblk0 +FSTYPE ?= ext4 + +ORIIMG ?= arch/$(ARCH)/boot/Image +KIMAGE ?= $(BSP_KERNEL)/$(LINUX)/Image + +CCORI := mirrors.edge.kernel.org diff --git a/boards/riscv64/tiny-riscv-box/README.md b/boards/riscv64/tiny-riscv-box/README.md new file mode 100644 index 0000000000000000000000000000000000000000..cc52f9a5bfee8b12f72757b7421851d779f74c4a --- /dev/null +++ b/boards/riscv64/tiny-riscv-box/README.md @@ -0,0 +1,8 @@ + +# TinyLab Riscv Box Usage + +## Basic Usage + +Use the following command to compile kernel: + + $ make kernel diff --git a/boards/riscv64/tiny-riscv-box/bsp b/boards/riscv64/tiny-riscv-box/bsp new file mode 160000 index 0000000000000000000000000000000000000000..3ada334bc770d70527d6b940e57e88021b5d4922 --- /dev/null +++ b/boards/riscv64/tiny-riscv-box/bsp @@ -0,0 +1 @@ +Subproject commit 3ada334bc770d70527d6b940e57e88021b5d4922