Hello, I would like to run nut 2.6.1 on an embeeded machine ( arm9 ) running linux and uclibc. A working gcc tool chain came with the board. How can I compile and build nut using the cross compiler tool chain ? I know that this is not a very specific question. I have however little experience with cross compiling, and I wonder where to start. A logical point would be the configure script. It however does not find the cross compiler, and I have now idea how to tell the configure script where to look for the cross compiler.... Thank you Tilman -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110717/43072c32/attachment.html>
On Jul 17, 2011, at 8:23 AM, Tilman Glotzner wrote:> Hello, > > I would like to run nut 2.6.1 on an embeeded machine ( arm9 ) > running linux and uclibc. A working gcc tool chain came with the > board. > How can I compile and build nut using the cross compiler tool chain ?Is the toolchain self-hosted? That is, can you run gcc on the board itself? (IMHO that is usually the easiest way to cross-compile.)> I know that this is not a very specific question. I have however > little experience with cross compiling, and I wonder where to start. > A logical point would be the configure script. It however does not > find the cross compiler, and I have now idea how to tell the > configure script where to look for the cross compiler....It's probably easiest to help you if you copy-and-paste some error messages that you are getting, because there are probably hundreds of ways to do this. But here's how to cross-compile NUT for Win32: ./configure --host=i586-mingw32msvc The "i586-mingw32msvc" string is the prefix for the cross-compiler. You might have a file like "arm9-eabi-none-gcc" (which should be somewhere in $PATH), so in that case I think you would use "-- host=arm9-eabi-none". -- Charles Lepple
That worked, and nut compiles and builds. Thank you Now I need to install nut in the image to be downloaded to the embeeded board. How can I set installation path ? Will the --prefix option for the configure script do the trick ? Thanks Tilman> Date: Wed, 20 Jul 2011 19:00:12 -0700 > From: nut at johnea.net > To: nut-upsuser at lists.alioth.debian.org > Subject: Re: [Nut-upsuser] cross-compiling nut > > On 07/20/2011 03:33 PM, Tilman Glotzner wrote: > > ... > > nut-2.6.1 # ./configure --host=arm-linux-gcc > > I think you just want: --host=arm-linux > > johnea > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110721/33a5e17a/attachment.html>