1) Install KOS Source:
https://dcemulation.org/index.php?title ... S_on_Linux
git clone git://git.code.sf.net/p/cadcdev/kallistios /opt/toolchains/dc/kos
cd /opt/toolchains/dc/kos/utils/dc-chain
sh download.sh
sh unpack.sh
make erase=1
cp /opt/toolchains/dc/kos/doc/environ.sh.sample /opt/toolchains/dc/kos/environ.sh
source /opt/toolchains/dc/kos/environ.sh
cd /opt/toolchains/dc/kos
make
2) Install KOS-Ports Source:
https://dcemulation.org/index.php?title ... S_on_Linux
git clone --recursive git://git.code.sf.net/p/cadcdev/kos-ports /opt/toolchains/dc/kos-ports
sh /opt/toolchains/dc/kos-ports/utils/build-all.sh
3) Install gdb (Sources:
https://dreamcast.wiki/Building_the_req ... evelopment and
https://forums.sonicretro.org/index.php ... nux.38824/)
cd /opt/toolchains/dc/kos/utils/dc-chain
make gdb
4) Remove all unnecessary files after the toolchain build (Source:
https://dreamcast.wiki/Building_the_req ... evelopment)
cd /opt/toolchains/dc/kos/utils/dc-chain
./cleanup.sh
5) Build dcload-ip & dc-tool (Source:
https://github.com/sizious/dcload-ip)
git clone
https://github.com/sizious/dcload-ip.git /opt/toolchains/dc/dcloadip
cd /opt/toolchains/dc/dcloadip
(edit /opt/toolchains/dc/dcloadip/Makefile.cfg to your preferences/settings. Defaults are OK (DHCP is now the default))
source /opt/toolchains/dc/kos/environ.sh
make
make install (installs dc-tool-ip to /opt/toolchains/dc/bin)
(To burn a cd with dcloadip:)
cd /opt/toolchains/dc/dcloadip/make-cd
sudo apt install wodim (wodim replaces cdrecord)
wodim -scanbus (shows the device triplet to fill in the makefile in the next step)
(edit Makefile to fill in your CD writer triplet dev=0,0,0 -> dev=4,0,0 for my 'PIONEER ' 'BD-RW BDR-208M' '1.10')
(insert a blank cd-r into your writer)
make
(To give always the same IP address to your BBA on Ubuntu 19.10: (prerequisite is that you run a DHCP server of course))
sudo cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.confbackup
sudo nano /etc/dhcp/dhcpd.conf
add something like this into your subnet (with the MAC address of your BBA, and the desired IP address):
host dcbba1 {
hardware ethernet 00:B0:D1:04:2C:4B;
fixed-address 192.168.0.2;
}
sudo systemctl restart isc-dhcp-server.service
6) Install GLdc (aka OpenGL 1.2 instead of KOS's default libGL with OpenGL 1.1)
git clone
https://gitlab.com/simulant/GLdc.git /opt/toolchains/dc/kos/addons/GLdc
cd /opt/toolchains/dc/kos/addons/GLdc
source /opt/toolchains/dc/kos/environ.sh
(I had to manually edit the Makefile & move "GL/version.h" to the first OBJS to compile, otherwise I got an error in the next step. Issue #64 logged:
https://gitlab.com/simulant/GLdc/-/issues/64)
make defaultall
7) Install ALdc2 (core OpenAL 1.1)
git clone
https://gitlab.com/simulant/aldc2.git /opt/toolchains/dc/kos/addons/ALdc2
cd /opt/toolchains/dc/kos/addons/ALdc2
source /opt/toolchains/dc/kos/environ.sh
make defaultall