change something
This commit is contained in:
parent
bd1c01cdf9
commit
e12dc64a63
2
Makefile
2
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)
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue