README 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. xv6_rpi_port is based on MIT xv6 (http://pdos.csail.mit.edu/6.828/2012/v6.html).
  2. It is ported from x86 to armv6 in Raspberry Pi (RPI). The rpi port follows
  3. the coding style of xv6 as much as possible to hide the architectural
  4. differences between x86 and armv6. The port is not for multiprocessor yet
  5. as RPI has only a single processor.
  6. ACKNOWLEDGEMENTS
  7. xv6_rpi_port is inspired by MIT xv6 and Alex Chadwick's Baking Pi
  8. Tutorials (http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/).
  9. Most architecture-independent code is directly from MIT xv6 though sometimes
  10. minor adjustments were done to explicitly initialize data structures.
  11. Some C code such as the GPU driver is based on the understanding of
  12. Alex Chadwick's assembly code.
  13. Some code for mmu and trap handling is based on the understanding of the
  14. Plan 9 bcm port (http://plan9.bell-labs.com/sources/plan9/sys/src/9/bcm/),
  15. though the assembly code was completely rewritten.
  16. David Welch's RPI code (https://github.com/dwelch67/raspberrypi) is also
  17. inspiring for trap handling and uart driver.
  18. If you spot errors or suggest improvements, please send email to
  19. Zhiyi Huang ([email protected]).
  20. Building xv6_rpi_port:
  21. Suppose you have checked out the source with:
  22. $ git clone https://github.com/zhiyihuang/xv6_rpi_port.git
  23. On an RPI installed with Raspbian, type 'make' to make 'kernel.img'.
  24. Copy 'kernel.img' to /boot with a different name:
  25. # cp kernel.img /boot/kernel-xv6.img
  26. Comment out the entry 'kernel=kernel_36y.img' and add a new entry
  27. 'kernel=kernel-xv6.img' to /boot/config.txt.
  28. Reboot the machine.
  29. Building xv6 user programs and FS (You don't need this step if you
  30. don't change the user programs):
  31. cd uprogs
  32. make initcode
  33. make fs.img
  34. copy 'initcode' and 'fs.img' to the directory 'source'