-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposing the option to specify the second hard disk as a slave #354
Conversation
Did you test this? For example, by booting up an OS from one hard drive and accessing a filesystem on the other? IIRC this was not working when I tested it some time ago, and I would prefer not to expose a broken feature. |
Yes, I got As an educational OS, it oversimplifies things. The key thing it does is that it puts the kernel on a whole disk, and has the file system work on another (so that the bootloader don't need to understand the file system). That is why I needed a second disk. With this change and a few changes on the xv6 side (mostly to get around the fact that lapic does not work), I got it to work to the point that xv6's file access is done through PIO, therefore my tests do not cover the DMA capabilities. If there is a bug with DMA, I wouldn't know. |
Check this out to see it running: |
11471b9
to
ce2e794
Compare
@cshung Very cool, thanks! |
@cshung super cool~ any tutorial to boot xv6 plz? |
Fix #353
This allows a second hard disk to be connected as a slave.