Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Z80-MBC2
  2. The [Z80-MBC2][link] combines a Z80 and an ATMEGA32A to provide a CP/m capable
  3. computing environment. It features a SD card bootloader which makes running
  4. Collapse OS on it rather simple.
  5. ## Recipe
  6. In this recipe, we're going to run Collapse OS on the Z80-MBC2, interfacing
  7. through its serial port. We're going to use the MBC's API to implement BLK on
  8. the SD card. (the BLK part isn't done yet. TODO)
  9. ### Gathering parts
  10. * A Z80-MBC2 computer with its SD card module and a properly flashed "IOS" on
  11. the ATMega32A.
  12. * A FTDI-to-TTL cable to connect to the serial port.
  13. ### Building the binary
  14. Running `make` will yield `os.bin` which is what we want.
  15. ### Running on the Z80-MBC2
  16. Mount the SD card on your modern computer and copy `os.bin` as `autoboot.bin`,
  17. overwriting the binary that was previously there.
  18. Put back the SD card in the Z80-MBC2 and power it up by connecting the FTDI
  19. adapter to it (red: VCC, black: GND, green: TX, white: RX).
  20. The FTDI adapter will show up as something like `ttyUSB0` (or `ttyU0` on
  21. OpenBSD). Connect to it with `screen` or `cu` or whatever you like. Baud rate of
  22. the Z80-MBC2 appears to be hardcoded to 115200.
  23. Then, enable IOS program selection by holding RESET and USER at the same time,
  24. wait 2 seconds, releasing RESET, wait 2 seconds, releasing USER. You should then
  25. be given a 1-8 choice, with 4 being "Autoboot". Type 4.
  26. You are now in Collapse OS.
  27. [link]: https://hackaday.io/project/159973-z80-mbc2-a-4-ics-homebrew-z80-computer