Hi all,
I'm hoping someone can tell me whats wrong or why I can't build OpenFirmware rev 795.
I'm trying to follow the instructions at http://www.openfirmware.info/Open_Firmware#Build_Open_Firmware but they're not working. I keep getting errors when running 'make'.
I have tried modifying the configuration as the above site suggests, and I've also tried without making any changes at all, both fail with the same error at the same place.
My primary goal right now is to simply play with coreboot and OpenFirmware in qemu, then I might consider trying it on some real hardware.
Any help is appreciated.
make[1]: Entering directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/wrapper.c -o wrapper.o cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/logger.c -o logger.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/zipmem.c -o zipmem.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/deflate.c -o deflate.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/trees.c -o trees.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/bits.c -o bits.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/util.c -o util.o cc -c -m32 -O0 -fpic ../../../forth/wrapper/zip/inflate.c -o inflate.o cc -m32 -o forth wrapper.o logger.o zipmem.o deflate.o trees.o bits.o util.o inflate.o make[1]: Leaving directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' make[1]: Entering directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/build' make -C ../Linux ../build/inflate.bin make[2]: Entering directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' objcopy -O binary inflate.o ../build/inflate.bin make[2]: Leaving directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' make[1]: Leaving directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/build' ./build ofw.c32 --- Rebuilding reset.di --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../reset.bth --- Rebuilding start.di --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../start.bth --- Rebuilding kernel.dic --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../kernel.bth --- Saving kernel.dic --- --- Rebuilding tools.dic --- Cmd: ${HOSTDIR}/x86forth ${BP}/cpu/x86/build/kernel.dic ../tools.bth --- Saving tools.dic --- --- Rebuilding basefw.dic --- Cmd: ${HOSTDIR}/x86forth ${BP}/cpu/x86/build/tools.dic ../basefw.bth
--- Saving basefw.dic --- --- Rebuilding bootsec.hex --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../bootsec.bth 1fe 1f0 400 400 --- Rebuilding fw.img --- Cmd: ${HOSTDIR}/x86forth ${BP}/cpu/x86/build/basefw.dic ../fw.bth
${BP}/cpu/x86/pc/biosload/rmenter.fth:152: >off ? make: *** [ofw.c32] Error 1
Yeah, I broke the biosload build. I discovered that yesterday but haven't had time to check in the fix. I'll do it in a few minutes.
Robert Davidson wrote:
Hi all,
I'm hoping someone can tell me whats wrong or why I can't build OpenFirmware rev 795.
I'm trying to follow the instructions at http://www.openfirmware.info/Open_Firmware#Build_Open_Firmware but they're not working. I keep getting errors when running 'make'.
I have tried modifying the configuration as the above site suggests, and I've also tried without making any changes at all, both fail with the same error at the same place.
My primary goal right now is to simply play with coreboot and OpenFirmware in qemu, then I might consider trying it on some real hardware.
Any help is appreciated.
make[1]: Entering directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/wrapper.c -o wrapper.o cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/logger.c -o logger.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/zipmem.c -o zipmem.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/deflate.c -o deflate.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/trees.c -o trees.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/bits.c -o bits.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/util.c -o util.o cc -c -m32 -O0 -fpic ../../../forth/wrapper/zip/inflate.c -o inflate.o cc -m32 -o forth wrapper.o logger.o zipmem.o deflate.o trees.o bits.o util.o inflate.o make[1]: Leaving directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' make[1]: Entering directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/build' make -C ../Linux ../build/inflate.bin make[2]: Entering directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' objcopy -O binary inflate.o ../build/inflate.bin make[2]: Leaving directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' make[1]: Leaving directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/build' ./build ofw.c32 --- Rebuilding reset.di --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../reset.bth --- Rebuilding start.di --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../start.bth --- Rebuilding kernel.dic --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../kernel.bth --- Saving kernel.dic --- --- Rebuilding tools.dic --- Cmd: ${HOSTDIR}/x86forth ${BP}/cpu/x86/build/kernel.dic ../tools.bth --- Saving tools.dic --- --- Rebuilding basefw.dic --- Cmd: ${HOSTDIR}/x86forth ${BP}/cpu/x86/build/tools.dic ../basefw.bth
--- Saving basefw.dic --- --- Rebuilding bootsec.hex --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../bootsec.bth 1fe 1f0 400 400 --- Rebuilding fw.img --- Cmd: ${HOSTDIR}/x86forth ${BP}/cpu/x86/build/basefw.dic ../fw.bth
${BP}/cpu/x86/pc/biosload/rmenter.fth:152: >off ? make: *** [ofw.c32] Error 1
I just fixed the problem below with checkin 943.
Do you really need to build from rev 795 ? That's pretty old. I can probably help you better if you bump up to the current rev.
Also, if it would help your evaluation, I could give you a binary image that works with VirtualBox. The source for that version isn't ready for checkin yet, but the binary seems to be working pretty nicely
Robert Davidson wrote:
... ${BP}/cpu/x86/pc/biosload/rmenter.fth:152: >off ? make: *** [ofw.c32] Error 1
Hi Mitch,
Mitch Bradley wrote:
I just fixed the problem below with checkin 943. Do you really need to build from rev 795 ? That's pretty old. I can probably help you better if you bump up to the current rev.
The only reason I was trying to build rev 795 was because thats what yesterdays SVN checkout gave me, so I assumed it was the latest.
Revision 943 biosload builds out of the box but not after I've changed the config a little. When I change config.fth in openfirmware/cpu/x86/pc/biosload and comment out the "create syslinux-loaded" line and uncomment the "create linuxbios-loaded" line, it generates an error as below:
make make[1]: Entering directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/wrapper.c -o wrapper.o cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/logger.c -o logger.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/zipmem.c -o zipmem.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/deflate.c -o deflate.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/trees.c -o trees.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/bits.c -o bits.o cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/util.c -o util.o cc -c -m32 -O0 -fpic ../../../forth/wrapper/zip/inflate.c -o inflate.o cc -m32 -o forth wrapper.o logger.o zipmem.o deflate.o trees.o bits.o util.o inflate.o make[1]: Leaving directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' make[1]: Entering directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/build' make -C ../Linux ../build/inflate.bin make[2]: Entering directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' objcopy -O binary inflate.o ../build/inflate.bin make[2]: Leaving directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/Linux' make[1]: Leaving directory `/usr/src/coreboot/build-qemu/openfirmware/cpu/x86/build' ./build ofw.c32 --- Rebuilding reset.di --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../reset.bth --- Rebuilding start.di --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../start.bth --- Rebuilding kernel.dic --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../kernel.bth --- Saving kernel.dic --- --- Rebuilding tools.dic --- Cmd: ${HOSTDIR}/x86forth ${BP}/cpu/x86/build/kernel.dic ../tools.bth --- Saving tools.dic --- --- Rebuilding basefw.dic --- Cmd: ${HOSTDIR}/x86forth ${BP}/cpu/x86/build/tools.dic ../basefw.bth
--- Saving basefw.dic --- --- Rebuilding bootsec.hex --- Cmd: ${HOSTDIR}/forth ${HOSTDIR}/../build/builder.dic ../bootsec.bth 1fe 1f0 400 400 --- Rebuilding fw.img --- Cmd: ${HOSTDIR}/x86forth ${BP}/cpu/x86/build/basefw.dic ../fw.bth
${BP}/cpu/x86/pc/biosload/rmenter.fth:187: pm-cs ? make: *** [ofw.c32] Error 1
openfirmware@openfirmware.info