From 3ace1ddd76b9c04f3ed23883de6279b4485612e8 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 29 May 2023 21:31:09 +0300 Subject: start trying to boot on visionfive 2 + Not bootable quite yet. Among other things, I couldn't get the current starfive u-boot fork to boot, so try adding support for booting with precompiled u-boot via the `go` command. Initial testing with qemu shows that this should be possible, and if it works, might be useful in the (far) future with other slightly janky SBCs. Also, NS16550 is 8250-based, and I'm really only using the base 8250, so rename and add visionfive 2 uart to list of compatibles. Visionfive 2 is still completely untested. --- arch/riscv64/kernel/vmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch/riscv64/kernel') diff --git a/arch/riscv64/kernel/vmem.c b/arch/riscv64/kernel/vmem.c index d0cac2c..235884b 100644 --- a/arch/riscv64/kernel/vmem.c +++ b/arch/riscv64/kernel/vmem.c @@ -427,7 +427,8 @@ stat_t populate_kvmem(struct vmem *b) size_t flags = VM_V | VM_R | VM_W | VM_X | VM_G; for (size_t i = KSTART_PAGE; i < IO_PAGE; ++i) b->leaf[i] = (struct vmem *)to_pte( - get_ram_base() + TOP_PAGE_SIZE * (i - KSTART_PAGE), flags); + get_ram_base() + TOP_PAGE_SIZE * (i - KSTART_PAGE), + flags); /* map in IO region */ map_io_dbg(b); -- cgit v1.3