2014-06-29 16:31:24 -04:00
|
|
|
# alt64
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
Alternative Everdrive64 menu
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
Kuroneko!
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
:\ /; _
|
|
|
|
; \___/ ; ; ;
|
|
|
|
,:-"' `"-:. / ;
|
|
|
|
_ /,---. ,---.\ _ _; /
|
|
|
|
_:>(( | ) ( | ))<:_ ,-""_,"
|
|
|
|
\````` `````/""""",-""
|
|
|
|
'-.._ v _..-' )
|
|
|
|
/ ___ ____,.. \
|
|
|
|
/ / | | | ( \. \
|
|
|
|
ctr / / | | | | \ \
|
|
|
|
`" `" `" `"
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
nyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyan
|
2014-06-29 01:10:11 -04:00
|
|
|
|
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
`alt64` is an open source menu for [Everdrive64](http://krikzz.com/). It was
|
|
|
|
originally written by saturnu, and released on the
|
|
|
|
[Everdrive64 forum](http://krikzz.com/forum/index.php?topic=816.0).
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
## Building
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
If you want to build the menu, you need an n64 toolchain. We'll use the
|
|
|
|
toolchain recommended by libdragon, with some updated versions.
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
### Dependencies
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
* [libdragon](https://github.com/parasyte/libdragon)
|
|
|
|
* [libmikmod-n64](https://github.com/parasyte/libmikmod-n64)
|
|
|
|
* [libmad-n64](https://github.com/parasyte/libmad-n64)
|
2014-08-22 20:10:06 -04:00
|
|
|
* [libyaml](http://pyyaml.org/wiki/LibYAML)
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
### Build the Toolchain
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
*You may skip this step if it's already installed.*
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
Clone the `libdragon` repo and create a directory for the build.
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
```bash
|
|
|
|
$ git clone https://github.com/parasyte/libdragon.git
|
|
|
|
$ mkdir libdragon/build_gcc
|
|
|
|
$ cp libdragon/tools/build libdragon/build_gcc
|
|
|
|
$ cd libdragon/build_gcc
|
|
|
|
```
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
Modify the `build` script to set your installation path. Here is the default:
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
```bash
|
|
|
|
# EDIT THIS LINE TO CHANGE YOUR INSTALL PATH!
|
|
|
|
export INSTALL_PATH=/usr/local/mips64-elf
|
|
|
|
```
|
2014-06-29 01:10:11 -04:00
|
|
|
|
2014-06-29 16:31:24 -04:00
|
|
|
Build it! This can take an hour or more.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ ./build
|
|
|
|
```
|
|
|
|
|
|
|
|
### Configure your Environment
|
|
|
|
|
|
|
|
Add the following environment variable to your `~/.bash_profile` or `~/.bashrc`
|
|
|
|
Be sure to use the same path that you configured in the build script!
|
|
|
|
|
|
|
|
```bash
|
|
|
|
export N64_INST=/usr/local/mips64-elf
|
|
|
|
```
|
|
|
|
|
|
|
|
### Build `libdragon`
|
|
|
|
|
|
|
|
Make sure you are in the `libdragon` top-level directory, and make sure `libpng`
|
|
|
|
is installed:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ make && make install
|
|
|
|
$ make tools && make tools-install
|
|
|
|
```
|
|
|
|
|
|
|
|
### Build `libmikmod`
|
|
|
|
|
|
|
|
Clone `libmikmod-n64` and build:
|
|
|
|
|
|
|
|
```bash
|
2014-08-10 02:11:30 -04:00
|
|
|
$ git clone https://github.com/parasyte/libmikmod-n64.git
|
2014-06-29 16:31:24 -04:00
|
|
|
$ cd libmikmod-n64
|
|
|
|
$ make
|
|
|
|
$ make install
|
|
|
|
```
|
|
|
|
|
|
|
|
### Build `libmad-n64`
|
|
|
|
|
|
|
|
Clone `libmad-n64` and build, be sure to set the path according to your
|
|
|
|
toolchain installation path:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ git clone https://github.com/parasyte/libmad-n64.git
|
|
|
|
$ cd libmad-n64
|
2014-08-22 20:10:06 -04:00
|
|
|
$ export PATH=$PATH:$(N64_INST)/bin
|
2014-06-29 16:31:24 -04:00
|
|
|
$ CFLAGS="-march=vr4300 -mtune=vr4300 -mno-extern-sdata" \
|
2014-08-22 20:10:06 -04:00
|
|
|
LDFLAGS="-L$(N64_INST)/lib" LIBS="-lc -lnosys" \
|
2014-06-29 16:31:24 -04:00
|
|
|
./configure --host=mips64-elf --disable-shared \
|
2014-08-22 20:10:06 -04:00
|
|
|
--prefix=$(N64_INST) --enable-speed --enable-fpm=mips
|
|
|
|
$ make
|
|
|
|
$ make install
|
|
|
|
```
|
|
|
|
|
|
|
|
### Build `libyaml`
|
|
|
|
|
|
|
|
Download libyaml 0.1.6 and build, be sure to set the path according to your
|
|
|
|
toolchain installation path:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ hg clone https://bitbucket.org/xi/libyaml
|
|
|
|
$ cd libyaml
|
|
|
|
$ hg update 0.1.6
|
|
|
|
$ ./bootstrap
|
|
|
|
$ export PATH=$PATH:$(N64_INST)/bin
|
|
|
|
$ CFLAGS="-std=gnu99 -march=vr4300 -mtune=vr4300" \
|
|
|
|
LDFLAGS="-L$(N64_INST)/lib -Tn64ld.x" \
|
|
|
|
LIBS="-ldragon -lc -ldragonsys -lnosys" \
|
|
|
|
./configure --host=mips64-elf --prefix=$(N64_INST)
|
2014-06-29 16:31:24 -04:00
|
|
|
$ make
|
|
|
|
$ make install
|
|
|
|
```
|
|
|
|
|
|
|
|
### Build `alt64`
|
|
|
|
|
|
|
|
Finally, we can clone `alt64` and build it!
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ git clone https://github.com/parasyte/alt64.git
|
|
|
|
$ make
|
|
|
|
```
|
|
|
|
|
|
|
|
If it all worked, you will find `OS64.v64` in the `alt64` top-level directory.
|