Giter Site home page Giter Site logo

xv6-k210's Introduction

This repo has been move to here

xv6-k210's People

Contributors

atomheartcoder avatar electronspark avatar sktt1ryze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xv6-k210's Issues

关于双核启动进程调度的问题

您好,我在使用双核模式运行代码时,初始化了8个测试进程观察双核内的进程调度,出现两个问题:1. 调度不会按照进程的pid顺序进行(该问题在单核上也会出现),2.双核只有一个核心会出现进程调度行为。以下是我的截图。请问是什么原因导致的呢?
image
image
谢谢!

关于xv6中的per-process pagetable以及寄存器satp

最近在看以及在做lab3(也就是pagetable)相关的内容了。其中有一点我不是很明白。xv6会给每一个process分配一个pagetable放在PCB(struct proc)中,那么操作系统切进程的时候是会将PCB中的pagetable载入到satp中吗?否则我实在是想不通如何将虚拟地址映射到一块与进程有关的物理地址上去。riscv-book中貌似没有专门讲到这个问题。

关于sdcard_test()中一个可能的bug

刚刚检查了一下sdcard_test()中相关的操作,发现sdcard_test()(src/sdcard.c)中存在一个可能的bug。代码中大量的使用sizeof(buffer)sizeof(pre_buffer)来表示buffer和pre_buffer数据区的长度。这两个数据区的长度理论上应该是4096B(4KB),但是如果使用sizeof运算符的话,得到的结果则应该是指针的长度。因为bufferpre_buffer都是uint8*类型的,使用sizeof运算符得到的应该是它们的类型的长度,而非所期望的4KB。

userinit()无法通过

试着编译并跑了一下代码,发现每次都会在userinit()(main.c: 38)处panic。再进一步地追下去,发现是userinit()最后的release()失败了。似乎是代码中的某处修改了cpu->noff,导致无法正常地解锁。各位有什么头绪吗?(苦笑)

关于xv6实验"Lab: System calls"中的一点问题

https://pdos.csail.mit.edu/6.828/2020/labs/syscall.html
关于其中的第二个实验"Sysinfo",在实现struct sysinfo赋值的代码中为什么一定要使用copyout()函数来实现?用户代码调用sysinfo()的syscall时不是已经将一个struct sysinfo指针作为参数传入了吗?为什么这里不能像普通的C语言代码那样简单地使用这个传入的指针进行赋值?

copyout()函数的原型为int copyout(pagetable_t pagetable, uint64 dstva, char *src, uint64 len),从参数名来看似乎是使用到了虚拟地址。是说因为用户态传入的struct sysinfo指针使用的是虚拟地址所以无法直接在内核中访问吗?

请教 k210 接收键盘输入出错

你好,小白用户请教一个问题。我在虚拟机中用Ubuntu18连接了k210开发版, 运行了make run命令,可以一直显示tick的输出,但是之后我按一下键盘,会报错而且不能回显按键,我在你项目 img/ s_extern_interrupt.png 最下面看到你的是可以显示键盘输出的 :“received ***”。 想问这个是什么原因,该如何处理呢?感谢!
error2

日志链接

该 issure 用于记录同学们的日志链接,方便大家学习交流。

enter ISP mode failed

image

[INFO] COM Port Selected Manually:  /dev/ttyUSB0 
[Errno 16] could not open port /dev/ttyUSB0: [Errno 16] Device or resource busy: '/dev/ttyUSB0'
Makefile:121: recipe for target 'run' failed
make: *** [run] Error 1
lzp@lzp:~/vmsha/k210-test1$ ls /dev/ | grep USB
ttyUSB0
lzp@lzp:~/vmsha/k210-test1$ make run
0+1 records in
0+1 records out
45156 bytes (45 kB, 44 KiB) copied, 0.00175343 s, 25.8 MB/s
[INFO] COM Port Selected Manually:  /dev/ttyUSB0 
[INFO] Default baudrate is 115200 , later it may be changed to the value you set. 
[INFO] Trying to Enter the ISP Mode... 
._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Greeting fail, check serial port ([ERROR] No vaild Kendryte K210 found in Auto Detect, Check Your Connection or Specify One by`-p /dev/ttyUSB0`  )
Makefile:121: recipe for target 'run' failed
make: *** [run] Error 1
lzp@lzp:~/vmsha/k210-test1$ 

可以帮我看看是什么问题吗?同学的cpu是intel的,一下就可以
我的是AMD的一直是这样,另外一个同学是AMD的也是这样。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.