iPXE discussion forum

Full Version: make on raspberry
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

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

Can anyone of the cracks help me please?

Thank you,
Thorsten
(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
(2013-04-18 10:40)mcb30 Wrote: [ -> ]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

Hi Michael!

Thank you for the answer. I assume the hard part starts now: getting a crosscompiler. Building ARM Code on a PC seems to be more common than the other way around.

Best whishes, Thorsten
(2013-04-18 14:00)Viator Wrote: [ -> ]
(2013-04-18 10:40)mcb30 Wrote: [ -> ]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

Hi Michael!

Thank you for the answer. I assume the hard part starts now: getting a crosscompiler. Building ARM Code on a PC seems to be more common than the other way around.

Best whishes, Thorsten
Try too look on crosstools, you can get many usefully information on gentoo site embedded part of it, i'v been able to build a complete gentoo distro on my gentoo 64 machine, you can use native rasp distro, but due to poor performance, compiling take long time to end, so, you can use distcc to setup a bunch of machine like "compiler cluster" in gentoo web you will find ALL the info you need, i'm not a gentoo dev or other, simply i used.
(2013-04-25 18:30)Aigor Wrote: [ -> ]Try too look on crosstools, you can get many usefully information on gentoo site embedded part of it, i'v been able to build a complete gentoo distro on my gentoo 64 machine, you can use native rasp distro, but due to poor performance, compiling take long time to end, so, you can use distcc to setup a bunch of machine like "compiler cluster" in gentoo web you will find ALL the info you need, i'm not a gentoo dev or other, simply i used.

Hello Aigor!

Thank you very much for this information. This will help me a lot.

Thorsten
(2013-04-26 07:48)Viator Wrote: [ -> ]
(2013-04-25 18:30)Aigor Wrote: [ -> ]Try too look on crosstools, you can get many usefully information on gentoo site embedded part of it, i'v been able to build a complete gentoo distro on my gentoo 64 machine, you can use native rasp distro, but due to poor performance, compiling take long time to end, so, you can use distcc to setup a bunch of machine like "compiler cluster" in gentoo web you will find ALL the info you need, i'm not a gentoo dev or other, simply i used.

Hello Aigor!

Thank you very much for this information. This will help me a lot.

Thorsten

You are Welcome Thorsten :-) i hope you can setup your environement
Reference URL's