User Tools

Site Tools


installing_gputils_and_sdcc_on_debian_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
installing_gputils_and_sdcc_on_debian_linux [2008/12/03 14:17]
napierzaza created
installing_gputils_and_sdcc_on_debian_linux [2011/07/26 06:34]
oswaldojackson
Line 1: Line 1:
 +====== Installing GPUtils and SDCC on Debian ======
 Linux can be simpler or harder than other platforms. Linux can be simpler or harder than other platforms.
 +
 +===== Install the binaries (AKA the easy version =====
  
 In it's easiest form depending on what type of PIC you programming,​ you may only have to issue the following commands. ​ In it's easiest form depending on what type of PIC you programming,​ you may only have to issue the following commands. ​
  
-[code] +  ​# apt-get install sdcc 
-# apt-get install sdcc +  # apt-get install gputils
-# apt-get install gputils +
-[/code]+
  
 Then all you need to do from there is issue the make command while in the folder with the .asm'​s. Then all you need to do from there is issue the make command while in the folder with the .asm'​s.
  
-[code] 
-# make 
-[/code] 
  
-However, if you're compiling a SID firmware and you have Debian ​etc or even Ubuntu in Dapper ​or earlier, you probably have gpasm-0.13.4 which does not have the ability to compile code for the PIC 18f4685. You can check what version you're using by issuing the below command.+  # make 
 +===== Compile GPUtils (AKA the harder version) ===== 
 + 
 +However, if you're compiling a SID firmware and you have Debian ​Etch or earlier, you probably have gpasm-0.13.4 which does not have the ability to compile code for the PIC 18f4685. You can check what version you're using by issuing the below command
 + 
 +  # gpasm --version 
 + 
 +If your version is too old you probably can't just install a newer version, as the newer version is only available for Lenny and is not compatible with the older Etch (or what have you). I used gpasm-0.13.6 and it successfully built the newest Midibox SID code without a hitch. This means that what we must do is compile and install from the source code. Follow the link below and follow the link for the most recent version. As of this writing the most current version was for "​Lenny"​ and is 0.13.6. Go to the page and on the right you will see a link for the source under the heading "​Download Source Package gputils:"​ Download the "​gputils_0.13.6.orig.tar.gz"​ and not the other two, as they are un-needed. 
 + 
 +http://​packages.debian.org/​search?​keywords=gputils 
 + 
 +Once you have the package on your Linux system issue the command to unpack the source code, move into the new directory and build the package. Then you'll be presented with a new .deb package ready for installing on your system.
  
-[code] +  # tar -xf gputils_0.13.6.orig.tar 
-gpasm --version +  cd gputils_0.13.6 
-[/code]+  # dpkg-buildpackage ​-rfakeroot -b 
 +  # cd .. 
 +  # dpkg -i gputils_0.13.6-1_i386.deb
  
-If your version is too old you probably can't just install a newer version, as the newer version is only available for Lenny and is not compatible with the older Etch (or what have you). I used gpasm-0.13.6 and it successfully built the newest Midibox SID code without a hitch. This means that what we must do is compile and install from the source code. Follow the link below and follow the link for the most recent version. As of this writing the most current version was for "​Lenny"​ and is 0.13.6+Now just go to your mios folder ​and issue the make command as usual.
  
-[http://packages.debian.org/​search?​keywords=gputils]+  # cd ~/user/mios_sid_RC25 
 +  # make
  
 +Note: The biggest issues you'll have with this HowTo is that there are certain dependencies in building these sorts of things that you will have to install. Sometimes it will say that it can't without something specific like "​bison",​ which you can easily install using "​apt-get install bison";​ but other times it only references a binary inside a package of a DIFFERENT name. This means that you'll have to search around a bit, maybe using "​apt-cache search foo" or maybe also on the internet to figure out what package you need to install.
  
 +[[http://​customcollegeessays.com/​index.php|college essay]]
  
installing_gputils_and_sdcc_on_debian_linux.txt · Last modified: 2011/07/27 15:45 by digineural