|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Debian templates for dsPIC build toolchain 2.05Hi everybody,
I finally got around to patching Microchip's C30 version 2.05 to build and operate nicely on Debian. This means people should be able to compile code for the 24F, 24H and 33F devices now. I'm still only using the 30F family myself, (actually only the 30F3013 these days). Basic instructions: Unzip the attached file, which gives you three directories. For each directory you want to build: fill in the "upstream" subdirectory appropriately, then run "dpkg-buildpackage -rfakeroot -b". Where to get the upstream bits: pic30-gcc: <http://ww1.microchip.com/downloads/en/DeviceDoc/mplabc30v2_05.tgz> pic30-binutils: <http://ww1.microchip.com/downloads/en/DeviceDoc/mplabalc30v2_05.tgz> pic30-support (optional, non-free): Copy over the include, lib and support directories from a Windows install of MPLAB C30, as well as the file c30_device.info. If you don't use the pic30-support package, grab the file c30_device.info from the binutils or gcc tarballs and copy it to /usr/share/pic30-support/. I've patched the binutils so they won't complain if c30_device.info is missing, but if you're using GCC rather than pure assembly you should probably install c30_device.info. If people have any questions, I'll be around next week, but then away until the second week of January. cheers, John --------------------------------------------------------------------- To unsubscribe, e-mail: gnupic-unsubscribe@... For additional commands, e-mail: gnupic-help@... |
|
|
Re: Debian templates for dsPIC build toolchain 2.05On 12/15/06, John Steele Scott <john@...> wrote:
> Hi everybody, > > I finally got around to patching Microchip's C30 version 2.05 to build and > operate nicely on Debian. This means people should be able to compile code > for the 24F, 24H and 33F devices now. I'm still only using the 30F family > myself, (actually only the 30F3013 these days). > > Basic instructions: Unzip the attached file, which gives you three > directories. For each directory you want to build: fill in the "upstream" > subdirectory appropriately, then run "dpkg-buildpackage -rfakeroot -b". > > Thanks. I could build the pic30-binutils and pic30-support package but I am having a problem building the pic30-gcc package (the build process looks okay). make[2]: Leaving directory `/home/mcuee/Desktop/dsPIC/pic30-deb-templates-2.05/pic30-gcc-2.05/build_dir/objs/libiberty' make[1]: Leaving directory `/home/mcuee/Desktop/dsPIC/pic30-deb-templates-2.05/pic30-gcc-2.05/build_dir/objs' # remove some non-cross stuff that will clash with other packages # and shuffle things about as required. rm -rf debian/pic30-gcc/usr/include rm -rf debian/pic30-gcc/usr/info rm -rf debian/pic30-gcc/usr/share/locale rm debian/pic30-gcc/usr/lib/*a rm debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1* rm: cannot remove `debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1*': No such file or directory make: *** [install-stamp] Error 1 I am using Ubuntu 6.10. Regards, Xiaofan --------------------------------------------------------------------- To unsubscribe, e-mail: gnupic-unsubscribe@... For additional commands, e-mail: gnupic-help@... |
|
|
Re: Debian templates for dsPIC build toolchain 2.05On 12/15/06, Xiaofan Chen <xiaofanc@...> wrote:
> On 12/15/06, John Steele Scott <john@...> wrote: > > Hi everybody, > > > > I finally got around to patching Microchip's C30 version 2.05 to build and > > operate nicely on Debian. This means people should be able to compile code > > for the 24F, 24H and 33F devices now. I'm still only using the 30F family > > myself, (actually only the 30F3013 these days). > > > > Basic instructions: Unzip the attached file, which gives you three > > directories. For each directory you want to build: fill in the "upstream" > > subdirectory appropriately, then run "dpkg-buildpackage -rfakeroot -b". > > > > > > Thanks. I could build the pic30-binutils and pic30-support package but > I am having a problem building the pic30-gcc package (the build process > looks okay). > > rm debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1* > rm: cannot remove `debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1*': > No such file or directory > make: *** [install-stamp] Error 1 > > I am using Ubuntu 6.10. Slightly changing the rules file solved the problem. File pic30-deb-templates-2.05/pic30-gcc-2.05/debian/rules: rm debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1* --> rm debian/$(package)/$(man1dir)/cpp.1* rm debian/$(package)/$(man1dir)/gcov.1* By the way, Piklab has integrated C30 support (wine or native). The following is the build log with the default C30 test project for Piklab. /usr/bin/pic30-elf-gcc -mcpu=30F2010 -I/usr/pic30-elf/include/ -S -g test_c.c /usr/bin/pic30-elf-as -g -a=test.lst -otest.o -I/usr/share/pic30-support/inc/ -p30F2010 test.s /usr/bin/pic30-elf-as -g -a=test_c.lst -otest_c.o -I/usr/share/pic30-support/inc/ test_c.s /usr/bin/pic30-elf-ld -Map test_c.map -otest_c.elf -L/usr/pic30-elf/lib/ -T/usr/share/pic30-support/gld/p30f2010.gld test_c.o test.o /usr/bin/pic30-elf-bin2hex test_c.elf *** Success *** Regards, Xiaofan --------------------------------------------------------------------- To unsubscribe, e-mail: gnupic-unsubscribe@... For additional commands, e-mail: gnupic-help@... |
|
|
Re: Debian templates for dsPIC build toolchain 2.05Xiaofan Chen wrote:
>> Thanks. I could build the pic30-binutils and pic30-support package but >> I am having a problem building the pic30-gcc package (the build process >> looks okay). >> >> rm debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1* >> rm: cannot remove `debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1*': >> No such file or directory >> make: *** [install-stamp] Error 1 >> >> I am using Ubuntu 6.10. > > Slightly changing the rules file solved the problem. > File pic30-deb-templates-2.05/pic30-gcc-2.05/debian/rules: > > rm debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1* > --> > rm debian/$(package)/$(man1dir)/cpp.1* > rm debian/$(package)/$(man1dir)/gcov.1* Thanks for reporting this. I've applied your fix to my rules file. Edgy uses dash as it's /bin/sh, so bash brace expansion cannot be taken for granted. I'm still using dapper here. cheers, John --------------------------------------------------------------------- To unsubscribe, e-mail: gnupic-unsubscribe@... For additional commands, e-mail: gnupic-help@... |
|
|
Re: Debian templates for dsPIC build toolchain 2.05Hello everybody, particulary mister J. Scott,
I have recently tried to follow your instructions below. All has nearly well worked, but precisely at the end of the compilations, it appeared the scriptic error message "/usr/bin/dpkg-buildpackage: 212: fakeroot: not found". Can you help me please; what means the number 212 ?, a line's number ? ... . For more detailled informations, see please the attached file "résultats_dpkg-buildpackge.doc". Sincerely yours, Yves Perret. r%C3%A9sultats_dpkg-buildpackge.doc |
|
|
Re: Debian templates for dsPIC build toolchain 2.05yperret schreef:
> "/usr/bin/dpkg-buildpackage: 212: fakeroot: not found". apt-get install fakeroot -- Met vriendelijke groetjes - Jan Wagemakers - ... My other computer is a Sun Javastation Krups <http://javastation.is.dreaming.org> --------------------------------------------------------------------- To unsubscribe, e-mail: gnupic-unsubscribe@... For additional commands, e-mail: gnupic-help@... |
|
|
Re: Debian templates for dsPIC build toolchain 2.05Jan Wagemakers escribió:
> yperret schreef: > > >> "/usr/bin/dpkg-buildpackage: 212: fakeroot: not found". >> > > apt-get install fakeroo That's the power of debian... is so direct when one gets used to it. :-) --------------------------------------------------------------------- To unsubscribe, e-mail: gnupic-unsubscribe@... For additional commands, e-mail: gnupic-help@... |
| Free embeddable forum powered by Nabble | Forum Help |