Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
make on raspberry
2013-04-18, 10:40
Post: #2
RE: make on raspberry
(2013-04-18 09:08)Viator Wrote:  I tried setting up ipxe on a raspberry PI. The way I use ipxe requires me to build the boot images on the raspberry but I get several errors (all the same, but for different objects) when running make. I do not want to boot the raspberry using ipxe, I just want to generate the files to boot a standard PC.
Code:
[BUILD] bin/__divdi3.o
cc1: error: bad value (i386) for -march switch
cc1: error: unrecognized command line option ‘-mpreferred-stack-boundary=2’
cc1: error: unrecognized command line option ‘-mregparm=3’
cc1: error: unrecognized command line option ‘-mrtd’
cc1: error: unrecognized command line option ‘-m32’
make: *** [bin/__divdi3.o] Error 1

You'll need to install a cross-compiling build of gcc which is capable of building x86 binaries. Once you've done this, you can then build iPXE by adding something like "CROSS_COMPILE=i386-linux-gnu-" to the make command line.

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
make on raspberry - Viator - 2013-04-18, 09:08
RE: make on raspberry - mcb30 - 2013-04-18 10:40
RE: make on raspberry - Viator - 2013-04-18, 14:00
RE: make on raspberry - Aigor - 2013-04-25, 18:30
RE: make on raspberry - Viator - 2013-04-26, 07:48
RE: make on raspberry - Aigor - 2013-04-26, 10:06



User(s) browsing this thread: 1 Guest(s)