From e12dc64a63a4c27f279e263ceb1020e60b643b82 Mon Sep 17 00:00:00 2001 From: hustccc <1276675421@qq.com> Date: Wed, 4 Nov 2020 07:43:08 +0900 Subject: [PATCH] change something --- Makefile | 2 +- README.md | 6 +++--- kernel/main.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 09ab40b..f1ad5d8 100644 --- a/Makefile +++ b/Makefile @@ -100,7 +100,7 @@ qemu: build image = $T/kernel.bin k210 = $T/k210.bin -k210-serialport := /dev/ttyUSB1 +k210-serialport := /dev/ttyUSB0 k210: build @riscv64-unknown-elf-objcopy $T/kernel --strip-all -O binary $(image) diff --git a/README.md b/README.md index 71c0aea..22bf029 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ First you need to connect your k210 board to your PC. And check the USB port: >\$ ls /dev/ | grep USB -In my situation it will be `ttyUSB1` +In my situation it will be `ttyUSB0` >\$ cd xv6-k210 >\$ mkdir target @@ -33,8 +33,8 @@ may help you: [maixpy-doc](https://maixpy.sipeed.com/zh/get_started/env_install_ + Page Table + Timer interrupt + S mode extern interrupt -+ receive uarths message -+ read and write data in sd card ++ Receive uarths message ++ Read and write data in sd card ## What I'm doing Try to port file system. diff --git a/kernel/main.c b/kernel/main.c index 8eb7a72..46c73aa 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -52,12 +52,12 @@ main(unsigned long hartid, unsigned long dtb_pa) __sync_synchronize(); started = 1; - // scheduler(); + scheduler(); } else { // hart 1 - printf("hart %d enter main()...\n", hartid); + // printf("hart %d enter main()...\n", hartid); } while (1) {