compilation - Compiling U-BOOT bootloader on x86 -


i have download , extracted u-boot-1.1.6 on linux ubuntu. want compile source code using gcc(not targeting cross compilation embedded platform).

i tried running provided makeall makefile "powerpc-linux-gcc : not found" happening.

my understanding irrespective of platform source code should compile.

what necessary makefile , environment changes need compilation on x86?

i have taken recent code. still facing issues

i have followed following steps compile on x86. 1) make clean; 2) make coreboot-x86_config 3) ./makeall -c x86

in step 3 observed following:

ravitiwari@ravi-hp-pavilion-dv2000-gj175pa-acj:~/u-boot-2013.04$ make clean ravitiwari@ravi-hp-pavilion-dv2000-gj175pa-acj:~/u-boot-2013.04$ make coreboot-x86_config configuring coreboot-x86 - board: coreboot, options: sys_text_base=0x01110000 ravitiwari@ravi-hp-pavilion-dv2000-gj175pa-acj:~/u-boot-2013.04$ ./makeall -c x86 configuring coreboot-x86 - board: coreboot, options: sys_text_base=0x01110000 make[1]: ** [interrupts.o] error 127 make: ** [arch/x86/cpu/libx86.o] error 2 make[1]: ** [coreboot.o] error 127 make: ** [arch/x86/cpu/coreboot/libcoreboot.o] error 2 make[1]: ** [bootm.o] error 127 make: ** [arch/x86/lib/libx86.o] error 2 size: './u-boot': no such file /bin/bash: sparse: command not found make[1]: ** [interrupts.o] error 127 make: ** [arch/x86/cpu/libx86.o] error 2 make: ** waiting unfinished jobs.... /bin/bash: sparse: command not found make[1]: ** [coreboot.o] error 127 make: ** [arch/x86/cpu/coreboot/libcoreboot.o] error 2 /bin/bash: sparse: command not found make[1]: ** [bootm.o] error 127 make: ** [arch/x86/lib/libx86.o] error 2 make: internal: exiting 4 jobserver tokens available; should 3!

--------------------- summary ----------------------------  boards compiled: 1 boards errors: 1( coreboot-x86 ) 

make clean; make coreboot-x86_config; make more useful you.

in experience, u-boot built single specific embedded platform. true when host x86, have /usr/bin/gcc installed.

what stumbled on (i see running ./makeall @ top level) wants build of embedded platforms available. still build specific platforms, inherent u-boot mission. defaulted using powerpc toolchain (powerpc-linux-gcc) rather x86 toolchain. suggestion instead chooses specific x86-based platform, , builds it. see various compilation outputs @ console, showing what's going on.

makeall build, throw away build results, multiple other platforms first. .makeall -c x86 hides compilation outputs. other cpu you'd need appropriate cross compiler installed.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -