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.

58 lines
2.1KB

  1. # Z80-MBC2
  2. The Z80-MBC2[1] combines a Z80 and an ATMEGA32A to provide a
  3. CP/m capable computing environment. It features a SD card
  4. bootloader which makes running Collapse OS on it rather simple.
  5. In this recipe, we're going to run Collapse OS on the Z80-MBC2,
  6. interfacing through its serial port. We're going to use the
  7. MBC's API to implement BLK on the SD card.
  8. # Gathering parts
  9. * A Z80-MBC2 computer with its SD card module and a properly
  10. flashed "IOS" on the ATMega32A.
  11. * A FTDI-to-TTL cable to connect to the serial port.
  12. # Building the binary
  13. Running "make" in arch/z80/z80mbc2 will yield "os.bin" which is
  14. what we want.
  15. # Running on the Z80-MBC2
  16. Mount the SD card on your modern computer and copy "os.bin" as
  17. "autoboot.bin", overwriting the binary that was previously
  18. there.
  19. We also have to copy the blkfs over. This is done by using IOS'
  20. drive system. Each "DSxNyy.DSK" file on the card is a drive,
  21. each drive has 512 track of 32 sectors of 512 bytes, so one
  22. drive is plenty for our needs. Collapse OS hardcodes drive 0.
  23. Each drive is part of a set. IOS theoretically supports up to 10
  24. sets, but the binary shipped by default only accepts 4. You have
  25. to overwrite an existing set. I used set 3. So, copy "blkfs" to
  26. file "DS3N00.DSK". If you want, you can change the name of the
  27. set by changing the contents of "DS3NAM.DAT".
  28. Put back the SD card in the Z80-MBC2 and power it up by
  29. connecting the FTDI adapter to it (red: VCC, black: GND, green:
  30. TX, white: RX).
  31. The FTDI adapter will show up as something like "ttyUSB0" (or
  32. "ttyU0" on OpenBSD). Connect to it with "screen" or "cu" or
  33. whatever you like. Baud rate of the Z80-MBC2 appears to be
  34. hardcoded to 115200.
  35. Then, enable IOS program selection by holding RESET and USER at
  36. the same time, wait 2 seconds, releasing RESET, wait 2 seconds,
  37. releasing USER. You should then be given a 1-8 choice.
  38. You begin by selecting the proper disk set, which is through
  39. choice 8, then you select the Autoboot binary through choice 4.
  40. You are now in Collapse OS.
  41. [1]: https://hackaday.io/project/159973-z80-mbc2-a-4-ics-homebrew-z80-computer