Here is a recap of what I did to get dev-img-1.5 working on my C760:
I initially failed to use the image_setup.sh script correctly and had to manually delete multiple incorrect lines from /etc/fstab. I ended up having to do the configuration manually.
I originally did not understand the reason for having a /mnt/dev
mount point that is different from "/home/zaurus/develop
" in the image_setup.sh script. Why not just mount the "dev_img-1.5" file directly to "/home/zaurus/develop"? The answer is at the end.
Here are the steps that I had to use to get the compiler working on my Sharp ROM on my Zaurus SL-C760's SD card:
Unzip the dev-img-1.5.zip file to /mnt/card
Execute the commands:cd /home/zaurusmkdir developsu root
Add the following line to "/etc/fstab":
/usr/mnt.rom/card/dev_img-1.5 /home/zaurus/develop cramfs auto,loop 0 0
(still as the root user, while your current directory is /home/zaurus)
Add the following line to ".bashrc":
(to stop being the root user)exit
(to exit the terminal program and go back into Qtopia)
Go back in the terminal so that the new .bashrc can take effect.
("/home/zaurus/develop/bin" should appear in the path, otherwise edit .bashrc again)su root compiler_setup.sh exit
(to stop being the root user)
The compiler_setup.sh script is located in /home/zaurus/develop/bin
Try to compile a "Hello, World!" program.
I find that /home/zaurus/develop
does not automatically mount on a reboot. I keep having to "su root; mount develop; exit".
I learned today that a program called autoconf
is hard-coded to look in "/mnt/dev/bin
" for a file that is in "/home/zaurus/develop/bin
". That means that you have to execute commands like:su root
ln -s /home/zaurus/develop dev
to link /mnt/dev