I am trying to build openfirmware for an Allwinner A13 board so it can have a means to call an OS. I had follow the instructions on the Wiki on my Fedora 23 x64 KDE machine, while i think i have the gnu toolchain properly installed, i just get a massive ammount of errors.
That's what i get after make -i...
[madscientist@localhost arm]$ cd mmp2 [madscientist@localhost mmp2]$ ls addrs.fth config.fth fw.bth make-sdkit.sh physaddr.fth sdkit.fth timer.fth apbc.fth ddr_elpida_512m.fth galcore.fth mdma.fth pmua.fth sdkit.sh twsi.fth boardgpio.fth devices.fth gpio.fth mfpr.fth probemem.fth sdregs.fth twsi-node.fth boardtwsi.fth dma.fth hash.fth mmp2.bth random.fth showirqs.fth twsi-package.fth boot.fth draminit.fth hwaddrs.fth mmuon.fth rawboot.fth soc-config.fth uart.fth build dramrecal.fth initmmu.fth ntim_mmp2_nand_cforth_ddr_elpida_512m.fth rootnode.fth socregs.fth ulpiphy.fth cforth.bth dsi.fth irq.fth ntim_mmp2_nand_ofw_ddr_elpida_512m.fth rtc.fth sp.bth virtaddr.fth clocks-complex.fth fast-scroll.patch keypad.fth ntim_mmp2_nand_ofwonly_ddr_elpida_512m.fth sdhcimmp2.fth spimaster.fth wakeups.fth clockset.fth fuse.fth lcdcfg.fth ntim_mmp2_nand_uboot_ddr_elpida_512m.fth sdkit-arm sspspi.fth watchdog.fth clocks.fth fusepgm.fth lcd.fth ofw.bth sdkit-arm.tgz thermal.fth [madscientist@localhost mmp2]$ cd build [madscientist@localhost build]$ make make[1]: Entering directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux' cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/wrapper.c -o wrapper.o In file included from /usr/include/features.h:389:0, from /usr/include/stdio.h:27, from ../../../forth/wrapper/wrapper.c:55: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:56: recipe for target 'wrapper.o' failed make[1]: *** [wrapper.o] Error 1 make[1]: Leaving directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux' Makefile:25: recipe for target '../../../x86/Linux/forth' failed make: *** [../../../x86/Linux/forth] Error 2 [madscientist@localhost build]$ make -i make[1]: Entering directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux' cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/wrapper.c -o wrapper.o In file included from /usr/include/features.h:389:0, from /usr/include/stdio.h:27, from ../../../forth/wrapper/wrapper.c:55: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:56: recipe for target 'wrapper.o' failed make[1]: [wrapper.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/logger.c -o logger.o In file included from /usr/include/features.h:389:0, from /usr/include/stdio.h:27, from ../../../forth/wrapper/logger.c:16: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:56: recipe for target 'logger.o' failed make[1]: [logger.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/adler32.c -o adler32.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/zutil.h:22, from ../../../forth/wrapper/zip/adler32.c:8: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'adler32.o' failed make[1]: [adler32.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/compress.c -o compress.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/compress.c:9: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'compress.o' failed make[1]: [compress.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/crc32.c -o crc32.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/zutil.h:22, from ../../../forth/wrapper/zip/crc32.c:29: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'crc32.o' failed make[1]: [crc32.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/deflate.c -o deflate.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/zutil.h:22, from ../../../forth/wrapper/zip/deflate.h:16, from ../../../forth/wrapper/zip/deflate.c:52: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'deflate.o' failed make[1]: [deflate.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/trees.c -o trees.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/zutil.h:22, from ../../../forth/wrapper/zip/deflate.h:16, from ../../../forth/wrapper/zip/trees.c:37: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'trees.o' failed make[1]: [trees.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/zutil.c -o zutil.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/zutil.h:22, from ../../../forth/wrapper/zip/zutil.c:8: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'zutil.o' failed make[1]: [zutil.o] Error 1 (ignored) cc -m32 -o forth wrapper.o logger.o adler32.o compress.o crc32.o deflate.o inflate.o trees.o zutil.o cc: error: wrapper.o: No such file or directory cc: error: logger.o: No such file or directory cc: error: adler32.o: No such file or directory cc: error: compress.o: No such file or directory cc: error: crc32.o: No such file or directory cc: error: deflate.o: No such file or directory cc: error: trees.o: No such file or directory cc: error: zutil.o: No such file or directory Makefile:43: recipe for target 'forth' failed make[1]: [forth] Error 1 (ignored) make[1]: Leaving directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux' ./build ofw.rom ./build: line 85: /home/madscientist/Desktop/openfirmware/cpu/x86/Linux/forth: No such file or directory Makefile:22: recipe for target 'ofw.rom' failed make: [ofw.rom] Error 127 (ignored) sed: can't read ../../build/*.tag: No such file or directory sed: can't read *.tag: No such file or directory [madscientist@localhost build]$https://www.openfirmware.info/Building_OFW_for_ARM
Is something else i can do on my system looking towards building the binary? Do i have to install x86 32bit libraries or something else? Respect the Allwinner A13, is is the best choice for using this firmware or should i try something else?
On 16/12/16 15:06, madscientist wrote:
I am trying to build openfirmware for an Allwinner A13 board so it can have a means to call an OS. I had follow the instructions on the Wiki on my Fedora 23 x64 KDE machine, while i think i have the gnu toolchain properly installed, i just get a massive ammount of errors.
That's what i get after make -i...
[madscientist@localhost arm]$ cd mmp2 [madscientist@localhost mmp2]$ ls addrs.fth config.fth fw.bth make-sdkit.sh physaddr.fth sdkit.fth timer.fth apbc.fth ddr_elpida_512m.fth galcore.fth mdma.fth pmua.fth sdkit.sh twsi.fth boardgpio.fth devices.fth gpio.fth mfpr.fth probemem.fth sdregs.fth twsi-node.fth boardtwsi.fth dma.fth hash.fth mmp2.bth random.fth showirqs.fth twsi-package.fth boot.fth draminit.fth hwaddrs.fth mmuon.fth rawboot.fth soc-config.fth uart.fth build dramrecal.fth initmmu.fth ntim_mmp2_nand_cforth_ddr_elpida_512m.fth rootnode.fth socregs.fth ulpiphy.fth cforth.bth dsi.fth irq.fth ntim_mmp2_nand_ofw_ddr_elpida_512m.fth rtc.fth sp.bth virtaddr.fth clocks-complex.fth fast-scroll.patch keypad.fth ntim_mmp2_nand_ofwonly_ddr_elpida_512m.fth sdhcimmp2.fth spimaster.fth wakeups.fth clockset.fth fuse.fth lcdcfg.fth ntim_mmp2_nand_uboot_ddr_elpida_512m.fth sdkit-arm sspspi.fth watchdog.fth clocks.fth fusepgm.fth lcd.fth ofw.bth sdkit-arm.tgz thermal.fth [madscientist@localhost mmp2]$ cd build [madscientist@localhost build]$ make make[1]: Entering directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux' cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/wrapper.c -o wrapper.o In file included from /usr/include/features.h:389:0, from /usr/include/stdio.h:27, from ../../../forth/wrapper/wrapper.c:55: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:56: recipe for target 'wrapper.o' failed make[1]: *** [wrapper.o] Error 1 make[1]: Leaving directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux' Makefile:25: recipe for target '../../../x86/Linux/forth' failed make: *** [../../../x86/Linux/forth] Error 2 [madscientist@localhost build]$ make -i make[1]: Entering directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux' cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/wrapper.c -o wrapper.o In file included from /usr/include/features.h:389:0, from /usr/include/stdio.h:27, from ../../../forth/wrapper/wrapper.c:55: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:56: recipe for target 'wrapper.o' failed make[1]: [wrapper.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/logger.c -o logger.o In file included from /usr/include/features.h:389:0, from /usr/include/stdio.h:27, from ../../../forth/wrapper/logger.c:16: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:56: recipe for target 'logger.o' failed make[1]: [logger.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/adler32.c -o adler32.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/zutil.h:22, from ../../../forth/wrapper/zip/adler32.c:8: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'adler32.o' failed make[1]: [adler32.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/compress.c -o compress.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/compress.c:9: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'compress.o' failed make[1]: [compress.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/crc32.c -o crc32.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/zutil.h:22, from ../../../forth/wrapper/zip/crc32.c:29: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'crc32.o' failed make[1]: [crc32.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/deflate.c -o deflate.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/zutil.h:22, from ../../../forth/wrapper/zip/deflate.h:16, from ../../../forth/wrapper/zip/deflate.c:52: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'deflate.o' failed make[1]: [deflate.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/trees.c -o trees.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/zutil.h:22, from ../../../forth/wrapper/zip/deflate.h:16, from ../../../forth/wrapper/zip/trees.c:37: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'trees.o' failed make[1]: [trees.o] Error 1 (ignored) cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/zutil.c -o zutil.o In file included from /usr/include/features.h:389:0, from /usr/include/sys/types.h:25, from ../../../forth/wrapper/zip/zconf.h:364, from ../../../forth/wrapper/zip/zlib.h:34, from ../../../forth/wrapper/zip/zutil.h:22, from ../../../forth/wrapper/zip/zutil.c:8: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. Makefile:59: recipe for target 'zutil.o' failed make[1]: [zutil.o] Error 1 (ignored) cc -m32 -o forth wrapper.o logger.o adler32.o compress.o crc32.o deflate.o inflate.o trees.o zutil.o cc: error: wrapper.o: No such file or directory cc: error: logger.o: No such file or directory cc: error: adler32.o: No such file or directory cc: error: compress.o: No such file or directory cc: error: crc32.o: No such file or directory cc: error: deflate.o: No such file or directory cc: error: trees.o: No such file or directory cc: error: zutil.o: No such file or directory Makefile:43: recipe for target 'forth' failed make[1]: [forth] Error 1 (ignored) make[1]: Leaving directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux' ./build ofw.rom ./build: line 85: /home/madscientist/Desktop/openfirmware/cpu/x86/Linux/forth: No such file or directory Makefile:22: recipe for target 'ofw.rom' failed make: [ofw.rom] Error 127 (ignored) sed: can't read ../../build/*.tag: No such file or directory sed: can't read *.tag: No such file or directory [madscientist@localhost build]$ https://www.openfirmware.info/Building_OFW_for_ARM
Is something else i can do on my system looking towards building the binary? Do i have to install x86 32bit libraries or something else? Respect the Allwinner A13, is is the best choice for using this firmware or should i try something else?
Hi there,
Unfortunately I don't think we have any active maintainers for openfirmware (mainly at the moment the discussion is based upon OpenBIOS), however seeing that you are using -m32 and the gnu/stubs-32.h error message a quick search takes me to the link below:
http://stackoverflow.com/questions/7412548/error-gnu-stubs-32-h-no-such-file...
This suggests that you are missing the libc i386 headers for the build, so hopefully installing those will get you further.
ATB,
Mark.