Re: [coreboot] Coreboot is failing to build
Hi Ali, The build script seems to be working for me, so it might be your network connection or your environment. Currently we don't run the checksum routine again after downloading the file. We probably need to do that. My first thought is that it didn't download correctly for some reason. If you try to build again, does it try to download the libelf tarball again? If so, it didn't get properly downloaded. You might try downloading it manually and putting it in the tarballs folder. If that's not what's happening, it's probably something in your environment: - What shell is being used? ls -al /bin/sh; /bin/sh --version - What version of tar is getting run? tar --version - If you're running a less widely used OS or Distro, what are you running? Try running the buildgcc command directly with -x enabled and see what's actually getting run for the tar command: /bin/sh -x util/crossgcc/buildgcc Martin On Sun, Aug 14, 2016 at 2:12 AM, Ali H. Fardanwrote: > Greetings, > > Coreboot is failing to build after running 'make crossgcc' > this error occured when building libreboot too, could any- > one figure it out? Might be that the mirror of libelf is > outdated. > > Raiz > > user@user-ThinkPad-X200:~/Downloads/coreboot$ make crossgcc V=1 > rm -rf doxygen > make -C payloads/coreinfo clean; make -C payloads/nvramcui clean; make > -C payloads/libpayload clean; make -C payloads/external/depthcharge clean; > make -C payloads/external/SeaBIOS clean; make -C payloads/external/U-Boot > clean; make -C payloads/external/Memtest86Plus clean; make -C > payloads/external/iPXE clean; make -C payloads/external/tint clean; > rm -rf build/*.elf build/*.o .xcompile > rm -f nvramcui.elf > rm -rf doxygen > rm -f build/libpayload.a > rm -f .xcompile > rm -f > rmdir -p 2>/dev/null >/dev/null || true > rm -f .ccwrap junit_config junit_config.old > test -d > /home/user/Downloads/coreboot/payloads/external/depthcharge/depthcharge/build > && rm -rf > /home/user/Downloads/coreboot/payloads/external/depthcharge/depthcharge/build > || exit 0 > test -d seabios/out && rm -rf seabios/out || exit 0 > test -d u-boot && make -C u-boot clean || exit 0 > test -d > /home/user/Downloads/coreboot/payloads/external/Memtest86Plus/memtest86plus > && make -C > /home/user/Downloads/coreboot/payloads/external/Memtest86Plus/memtest86plus > clean || exit 0 > test -d ipxe && make -C ipxe/src veryclean || exit 0 > rm -f ipxe/ipxe.rom > test -d tint && make -C tint clean || exit 0 > rm -f build/ramstage?* build/coreboot.romstage build/coreboot.pre* > build/coreboot.bootblock build/coreboot.a > rm -rf build/bootblock?* build/romstage?* build/location.* > rm -f build/option_table.* build/crt0.S build/ldscript > rm -f build/mainboard//static.c build/mainboard//config.py > build/mainboard//static.dot > rm -f build/mainboard//crt0.s build/mainboard//crt0.disasm > rm -f build/mainboard//romstage.inc > rm -f build/mainboard//bootblock.* build/dsdt.* > rm -f build/cpu/x86/smm/smm_bin.c build/cpu/x86/smm/smm.* > build/cpu/x86/smm/smm > rm -rf build .xcompile > make -C util/crossgcc all_without_gdb SKIP_CLANG=1 > make SKIP_GDB=1 build-i386 build-x64 build-arm build-mips \ > build-riscv build-aarch64 build-power8 build-nds32le \ > build_clang build_iasl build_make > bash ./buildgcc -p i386-elf\ > -d /home/user/Downloads/coreboot/util/crossgcc/xgcc > Welcome to the coreboot cross toolchain builder v1.42 (August 11th, 2016) > > Target architecture is now i386-elf > Downloading tarballs ... > * gmp-6.1.0.tar.xz (cached) > * mpfr-3.1.4.tar.xz (cached) > * mpc-1.0.3.tar.gz (cached) > * libelf-0.8.13.tar.gz (downloading from > http://www.mr511.de/software/libelf-0.8.13.tar.gz) ..100% > * binutils-2.26.1.tar.bz2 (cached) > * gcc-5.3.0.tar.bz2 (cached) > Downloaded tarballs ... ok > Unpacking and patching ... > * libelf-0.8.13.tar.gz > > gzip: stdin: not in gzip format > tar: Child returned status 1 > tar: Error is not recoverable: exiting now > touch: cannot touch 'libelf-0.8.13/.unpack_success': No such file or > directory > make[3]: *** [build_gcc] Error 1 > make[2]: *** [build-i386] Error 2 > make[1]: *** [all_without_gdb] Error 2 > make: *** [crossgcc] Error 2 > > > -- > coreboot mailing list: coreboot@coreboot.org > https://www.coreboot.org/mailman/listinfo/coreboot -- coreboot mailing list: coreboot@coreboot.org https://www.coreboot.org/mailman/listinfo/coreboot
[coreboot] ps2 keyboard init in seabios
Hi In a few boards (at least x60, x200, google peppy and likely more) ps2 keyboard does not work consistently in seabios unless a timeout value is set (3sec default for x60), which adds a file etc/ps2-keyboard-spinup containing the max timeout value. A way to fix this to add this delay in the Kconfig of all the concerned boards. Requiring an extra file in cbfs for a board to work with a payload is less than ideal, because this is inconsistent. A simple way to fix this is to change seabios to have a non-zero timeout for ps2-keyboard init, when compiled for coreboot. diff --git a/src/hw/ps2port.c b/src/hw/ps2port.c index d5504f7..ede09f0 100644 --- a/src/hw/ps2port.c +++ b/src/hw/ps2port.c @@ -478,7 +478,8 @@ ps2_keyboard_setup(void *data) /* --- keyboard side */ /* reset keyboard and self test (keyboard side) */ -int spinupdelay = romfile_loadint("etc/ps2-keyboard-spinup", 0); +int spinupdelay = romfile_loadint("etc/ps2-keyboard-spinup", + !CONFIG_COREBOOT ? 0 : 3000); u32 end = timer_calc(spinupdelay); This solution is not a good one since if a board does not have a keyboard, this will delay the startup of 3 seconds. My idea was to add an entry to coreboot tables which tells whether or not a board has a ps2 controller. That way this information can be passed to seabios, which would then again be a more universally working binary(not relying on files in cbfs for correct behavior). Kind regard -- Arthur -- coreboot mailing list: coreboot@coreboot.org https://www.coreboot.org/mailman/listinfo/coreboot
[coreboot] Coreboot is failing to build
Greetings, Coreboot is failing to build after running 'make crossgcc' this error occured when building libreboot too, could any- one figure it out? Might be that the mirror of libelf is outdated. Raiz user@user-ThinkPad-X200:~/Downloads/coreboot$ make crossgcc V=1 rm -rf doxygen make -C payloads/coreinfo clean; make -C payloads/nvramcui clean; make -C payloads/libpayload clean; make -C payloads/external/depthcharge clean; make -C payloads/external/SeaBIOS clean; make -C payloads/external/U-Boot clean; make -C payloads/external/Memtest86Plus clean; make -C payloads/external/iPXE clean; make -C payloads/external/tint clean; rm -rf build/*.elf build/*.o .xcompile rm -f nvramcui.elf rm -rf doxygen rm -f build/libpayload.a rm -f .xcompile rm -f rmdir -p 2>/dev/null >/dev/null || true rm -f .ccwrap junit_config junit_config.old test -d /home/user/Downloads/coreboot/payloads/external/depthcharge/depthcharge/build && rm -rf /home/user/Downloads/coreboot/payloads/external/depthcharge/depthcharge/build || exit 0 test -d seabios/out && rm -rf seabios/out || exit 0 test -d u-boot && make -C u-boot clean || exit 0 test -d /home/user/Downloads/coreboot/payloads/external/Memtest86Plus/memtest86plus && make -C /home/user/Downloads/coreboot/payloads/external/Memtest86Plus/memtest86plus clean || exit 0 test -d ipxe && make -C ipxe/src veryclean || exit 0 rm -f ipxe/ipxe.rom test -d tint && make -C tint clean || exit 0 rm -f build/ramstage?* build/coreboot.romstage build/coreboot.pre* build/coreboot.bootblock build/coreboot.a rm -rf build/bootblock?* build/romstage?* build/location.* rm -f build/option_table.* build/crt0.S build/ldscript rm -f build/mainboard//static.c build/mainboard//config.py build/mainboard//static.dot rm -f build/mainboard//crt0.s build/mainboard//crt0.disasm rm -f build/mainboard//romstage.inc rm -f build/mainboard//bootblock.* build/dsdt.* rm -f build/cpu/x86/smm/smm_bin.c build/cpu/x86/smm/smm.* build/cpu/x86/smm/smm rm -rf build .xcompile make -C util/crossgcc all_without_gdb SKIP_CLANG=1 make SKIP_GDB=1 build-i386 build-x64 build-arm build-mips \ build-riscv build-aarch64 build-power8 build-nds32le \ build_clang build_iasl build_make bash ./buildgcc -p i386-elf\ -d /home/user/Downloads/coreboot/util/crossgcc/xgcc Welcome to the coreboot cross toolchain builder v1.42 (August 11th, 2016) Target architecture is now i386-elf Downloading tarballs ... * gmp-6.1.0.tar.xz (cached) * mpfr-3.1.4.tar.xz (cached) * mpc-1.0.3.tar.gz (cached) * libelf-0.8.13.tar.gz (downloading from http://www.mr511.de/software/libelf-0.8.13.tar.gz) ..100% * binutils-2.26.1.tar.bz2 (cached) * gcc-5.3.0.tar.bz2 (cached) Downloaded tarballs ... ok Unpacking and patching ... * libelf-0.8.13.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now touch: cannot touch 'libelf-0.8.13/.unpack_success': No such file or directory make[3]: *** [build_gcc] Error 1 make[2]: *** [build-i386] Error 2 make[1]: *** [all_without_gdb] Error 2 make: *** [crossgcc] Error 2 -- coreboot mailing list: coreboot@coreboot.org https://www.coreboot.org/mailman/listinfo/coreboot