The SDK includes a readme file, but, it doesn't gave all the details for the installation, and the compilation procces can display some errors, so im making this guide for those that see error in compilation.
Step 1. Creating opt folder
First we need to create the opt folder on the HDD. If it exists, simply skip this step.
Open the Shell and type:
Step 2. Giving permissions to opt folder
Open a shell and type:
Do right-click to opt folder and click Properties. Go to permissions tab, select in ALL the listboxs Create and delete files.
Close nautilus and the shell.
Step 3. Unzipping and copying all the files
Open a shell and type:
Click File->Open and open your SDK zip.
Now unzip the SDK to this folder and change the folder name to ds2sdk.
Copy the /opt/ds2sdk/gcc/mipsel-4.1.2-nopic.tar.bz2 to /opt and unzip it with:
.
Now you should have these folders:
Step 4. Setting up permissions
Open a shell and type:
Go to opt folder
Do right-click on ds2sdk folder and select Properties. Open Permissions tab, select in ALL the listboxs Create and delete files.
Now click Apply Permissions to enclosed files
Do the same with mipsel-4.1.2-nopic.
Create and delete files.
Close nautilus and the shell.
Step 5. Adding enviroment variables
Now open a Shell and write:
It will open gEdit window and a file. Go to the end of file and add these lines:
Save the file and close gedit. Close the sell. Important: If you don't close the shell the changes wouldn't be applyed correctly.
Step 6. Compiling the example
Open a shell and type:
Type
and wait.
It shouldn't display any error. If any error is displayed re-start this tutorial.
Note: If you see the line “../tools/makeplug: Permission denied” do this:
Step 7. Copying the plugin to the FlashCard
Pluging your MicroSD reader with Supercard MicroSD.
Rename the files plugintest.plg, plugintest.bmp and plugintest.ini to a diferent name and copy all to _dstwoplug in your MicroSD.
Step 1. Creating opt folder
First we need to create the opt folder on the HDD. If it exists, simply skip this step.
Open the Shell and type:
Code:
sudo mkdir /opt
Step 2. Giving permissions to opt folder
Open a shell and type:
Code:
sudo nautilus /
Close nautilus and the shell.
Step 3. Unzipping and copying all the files
Open a shell and type:
Code:
sudo file-roller
Now unzip the SDK to this folder and change the folder name to ds2sdk.
Copy the /opt/ds2sdk/gcc/mipsel-4.1.2-nopic.tar.bz2 to /opt and unzip it with:
Code:
sudo file-roller
Now you should have these folders:
Step 4. Setting up permissions
Open a shell and type:
Code:
sudo nautilus /
Do right-click on ds2sdk folder and select Properties. Open Permissions tab, select in ALL the listboxs Create and delete files.
Now click Apply Permissions to enclosed files
Do the same with mipsel-4.1.2-nopic.
Create and delete files.
Close nautilus and the shell.
Step 5. Adding enviroment variables
Now open a Shell and write:
Code:
sudo gedit /home/user/.bashrc
Code:
export PATH=$PATH:/opt/mipsel-4.1.2-nopic/bin
Step 6. Compiling the example
Open a shell and type:
Code:
cd /opt/ds2sdk/example
Code:
sudo make
It shouldn't display any error. If any error is displayed re-start this tutorial.
Note: If you see the line “../tools/makeplug: Permission denied” do this:
Code:
sudo chmod 777 /opt/ds2sdk/tools/makeplug
Step 7. Copying the plugin to the FlashCard
Pluging your MicroSD reader with Supercard MicroSD.
Rename the files plugintest.plg, plugintest.bmp and plugintest.ini to a diferent name and copy all to _dstwoplug in your MicroSD.