To convert .3dsx to .cia first we need to know if the source code of the program is available..

First download the source code,then compile it

For this open up your terminal then type the following command to setup the development environment

sudo apt-get install git curl

curl -L http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/devkitARMupdate.pl/download -o devkitARMupdate.pl

chmod +x ./devkitARMupdate.pl

sudo ./devkitARMupdate.pl /opt/devkitpro

echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc

echo "export DEVKITARM=/opt/devkitpro/devkitARM" >> ~/.bashrc

echo "export PATH=$PATH:/opt/devkitpro/devkitARM/bin" >> ~/.bashrc

source ~/.bashrc

To compile a program first goto the location of makefile which is included in a project using the cd command

For example if my program's makefile location is on desktop,I would type the following commands in the terminal:-

cd /home/(useraccount)/Desktop/

and then type in

make

You would get a .elf and .3dsx file.

We would need the elf fie to make .cia.

-----------------------------------------------------

To make a cia:-

we woud need the following tools and files:-

folder at the bottom of my post

an audio.wav file

a banner.png image dimensions 256x128

a icon.png image dimensions 40x40

NOTE:-The total size of the three files should be less than 381kb

some amount of brain

-------------------------------------------------------

step2.Put audio,banner,icon and .elf file in the folder I provided+edit the .rsf fie according to your need

Step3.Put the folder on Desktop

Step4.Run the following commands

chmod +x /home/(useraccount)/Desktop/3ds/makerom

chmod +x /home/(useraccount)/Desktop/3ds/bannertool

/home/(useraccount)/Desktop/3ds/bannertool makebanner -i /home/(useraccount)/Desktop/3ds/elf2cia/Banner.png -a /home/kartik/Desktop/3ds/elf2cia/audio.wav -o /home/(useraccount)/Desktop/3ds/banner.bnr

/home/(useraccount)/Desktop/3ds/bannertool makesmdh -s "shorttitle" -l "longtitle" -p "author" -i icon.png -o /home/(useraccount)/Desktop/3ds/elf2cia/icon.icn

/home/(useraccount)/Desktop/3ds/makerom -f cia -o /home/(useraccount)/Desktop/3ds/install-me.cia -DAPP_ENCRYPTED=false -rsf /home/(useraccount)/Desktop/3ds/*.rsf -target t -exefslogo -elf /home/(useraccount)/Desktop/3ds/*.elf -icon /home/(useraccount)/Desktop/3ds/icon.icn -banner /home/(useraccount)/Desktop/3ds/*.bnr

http://www113.zippyshare.com/v/zXlZysYQ/file.html