Skip to content

Mac68k Quickstart Guide

andy diller edited this page Feb 12, 2024 · 10 revisions

Current Status: ChrisT design, BenK boards booting multiple Macs. Date: Feb 2024

Current Status: Hand built boards Date: Nov 2023

Error codes

Class Code    Sub Code
F = Exception    
    0001 Bus error
    0002 Address error
    0003 Illegal instruction
    0004 Zero divide
    0005 Check instruction
    0006 Traps instruction
    0007 Privilege violation
    0008 Trace
    0009 Line 1010
    000A Line 1111
    000B Other exception
    000C Nothing
    000D NMI (normal indication)
    0064 Couldnt Read System File into Memory 

Build Notes

Andy's Notes:

FujiNet Pico Mac68k

- Linux Ubuntu
- Git
- clone fujinet-platform Io
	 81  git clone https://github.com/FujiNetWIFI/fujinet-platformio.git
   
All code will be put into a dir called 'code'


$ mkdir -p ~/code

Install req. packages:

$ sudo apt-get -y install build-essential gcc-arm-none-eabi curl wget python3.10-venv python3-pip libusb-1.0-0-dev cmake pkg-config


###################################
# PIO SDK SETUP

curl -fsSL -o get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py

python3 get-platformio.py

	... Creating a virtual environment at /home/[yourHome]/.platformio/penv



###################################
# PICO SDK SETUP

- install PICO SDK
	https://github.com/raspberrypi/pico-sdk/archive/refs/tags/1.5.1.tar.gz

$ wget https://github.com/raspberrypi/pico-sdk/archive/refs/tags/1.5.1.tar.gz
$ tar xvf pico-sdk-1.5.1.tar.gz -C ~/code/


cat << EOF >> ~/.profile
# added for Fujinet PIO and PICO dev
export PATH=$PATH:$HOME/.local/bin:~/.platformio/penv/bin
export PICO_SDK_PATH=~/code/pico-sdk-1.5.1/
EOF

source ~/.profile


###################################
# Test Env

$ pio --version
PlatformIO Core, version 6.1.11


###################################
# PICO Connect and Uploading


Connect to PICO board

$ pip3 install adafruit-ampy
$ sudo addgronup dillera dialout
/dev/ttyACM0


ampy --port /dev/ttyACM0 ls

### Build PIO FujiNet

cd pico/mac
 rm CMakeCache.txt
 rm -rf CMakeFiles
 cmake .
 make

[ should have commands.uf2 file ]
[ Drop that on the mounted PICO USB drive ]

Clone this wiki locally