Friday, June 02, 2006

Using an assembler code with ham in Linux

I have done a small code in ARM assembler for the game boy.
The program has to contain at minimum these lines:


.globl _start
_start:




And here are the steps to use it properly.



  1. Compile the source code:


    arm-thumb-elf-as prog.s -o prog.o -gdwarf2


    The option: -gdwarf2 is used to inform that we want a debug version

  2. Link the file:


    arm-thumb-elf-ld prog.o -o prog.elf




  3. Run the debugger:


    arm-thumb-elf-insight prog.elf




  4. Now, you have to open an other console, and type the command:


    vba -Gtcp


    It is used to inform that the emulator will hear on port 55555 the code sent by insight.


  5. You just have now to set the target settings with target: Remote/TCP, Hostname is blank and Port is 55555.

  6. Now you just have to connect to target, download and run...

libpng.so.2 on dapper

When I tried to use vba. I got the error:


***: error while loading shared libraries: libpng.so.2:
cannot open shared object file: No such file or directory


To avoid this error:

  1. Install libpn3:


    sudo apt-get install libpng3



  2. And rename it to libpng2:


    sudo ln -s /usr/lib/libpng.so.3 /usr/lib/libpng.so.2



Thursday, June 01, 2006

Mp3 not working in Dapper

Proprietary codecs are by default not installed in Lunix. Event if you installed them in Breezy, it will not work in Dapper, they seem to be deleted. To install it, simply run the command:



sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-gl
gstreamer0.10-plugins-base gstreamer0.10-plugins-good
gstreamer0.10-plugins-ugly



It should work after...

Migrate from Breezy Badger to Dapper Drake

To upgrade your system. Simply run:



gksudo "update-manager -d"



And follow the instructions.