So far, It's semi-built and I've enjoyed reading over some of the example code provided. The quality of the documentation in those examples is great, and I'm pretty surprised at how much I've been able to comprehend.
I think my DC toolchain is in a state where it's ready to be used. I was able to compile a few of the example projects so I should in theory be ready to try dcload-ip right? But dcload-ip seems to be missing.
I've followed the documentation at the kOS site very carefully. In fact, I read through it a couple of times to make sure I wasn't missing anything. Clearly I've messed up somewhere...
The environ.sh file I'm using is based on the example they provide. If I recall correctly I just modified the KOS_BASE assignment:
Code: Select all
export KOS_BASE="/Users/stevepdp/kallistios"
- Fetched the prerequisites via Homebrew
- Git pulled both kallistios and kos-ports repositories, and pulled each of the repos inside kos-ports too.
- Prepared /opt/toolchains directory and set up appropriate permissions so that the dc toolchain directory would write ok
- Sourced environ.sh, everything checked out
- Ran make against kallistios, it compiled ok
- Went into kos-ports and again ran make in there, all tools seemed to compile ok
- Checked /opt/toolchains/dc/, it's good and I now have the arm-eabi and sh-elf directories
- Compiled the "hello" example and have a hello.elf ready for testing on a real Dreamcast (I think...)
- Took a tar of everything, because I felt the environment was in a good state
/opt/toolchains/dc/ -- has the two directories arm-eabi and sh-elf
/Users/stevepdp/kallistios -- is KOS_BASE
/Users/stevepdp/kos-ports -- tools compiled iirc
I have an EU Dreamcast with an HIT-400 BBA adapter hooked up. Using the DC Dev R4 media, I've loaded dcload-ip (so green!), noted the IP hex and I can ping it OK.
So that's the server side of things set up, now I'm stuck as I can't seem to get the dc-tool to fire on the Mac.
If I understand environ.sh correctly, then $KOS_LOADER should evaluate to "dc-tool -x". This works when echoing the variable in iTerm2. In fact, tab completing "echo $KOS_" reveals all the variables are there. That's good.
So, dc-tool isn't firing, and it isn't referenced in $PATH. Is this where the problem is? Am I supposed to provide dc-tool myself or is it supposed to be part of the kOS distribution?
(As I'm writing this, I've just noticed that the assignment of $PATH in environ.sh is referencing /opt/toolchains/dc/bin. This directory definitely doesn't exist on my Mac. I guess that's a good place to start...
Code: Select all
export PATH="${PATH}:${KOS_CC_BASE}/bin:/opt/toolchains/dc/bin"
Thanks for your time.