# Pastebin wGkqUHK4 $ ./scripts/build-qemu.sh Platform: mimasv2 Target: base (default: base) CPU: or1k Firmare: linux (default: firmware) + set -e + QEMU_SRC_DIR=/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/third_party/qemu-litex + '[' '!' -d /home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/third_party/qemu-litex ']' + TARGET_QEMU_BUILD_DIR=build/mimasv2_base_or1k//qemu + case $CPU in + QEMU_CPU=or32 + QEMU_ARCH=or32-softmmu + '[' '!' -d build/mimasv2_base_or1k//software/include/generated ']' + '[' '!' -f build/mimasv2_base_or1k//qemu/Makefile ']' + OLD_DIR=/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware + cd build/mimasv2_base_or1k//qemu + make -j8 + cd /home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware + '[' '!' -d build/mimasv2_base_or1k//software/linux/firmware.fbi ']' + make build/mimasv2_base_or1k//software/linux/firmware.fbi mkdir -p build/mimasv2_base_or1k/ time python -u ./make.py --platform=mimasv2 --target=base --cpu-type=or1k --iprange=192.168.100 --no-compile-gateware \ 2>&1 | tee -a /home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k//output.20171014-230939.log; (exit ${PIPESTATUS[0]}) make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/libcompiler_rt' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/libcompiler_rt' make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/libbase' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/libbase' make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/libnet' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/libnet' make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/bios' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/bios' make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/uip' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/uip' make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/firmware' bash /home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/firmware/version_data.sh /home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/firmware/version_data.sh: line 10: tempfile: command not found /home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/firmware/version_data.sh: line 11: tempfile: command not found # Check the version files exist [ -e /home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/include/../..//software/firmware/version_data.h ] [ -e /home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/include/../..//software/firmware/version_data.c ] make[1]: Leaving directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/mimasv2_base_or1k/software/firmware' real 0m0.670s user 0m0.603s sys 0m0.076s python -m litex.soc.tools.mkmscimg -f build/mimasv2_base_or1k//software/linux/firmware.bin -o build/mimasv2_base_or1k//software/linux/firmware.fbi + QEMU_IMAGE_FILE=build/mimasv2_base_or1k//image-gateware+bios+linux.bin.4qemu + /usr/bin/env python mkimage.py --output-file=build/mimasv2_base_or1k//image-gateware+bios+linux.bin.4qemu --override-gateware=none --force-image-size=true --override-firmware=build/mimasv2_base_or1k//software/linux/firmware.fbi Gateware @ 0x00000000 ( 0 bytes) Skipped - Xilinx FPGA Bitstream BIOS @ 0x00080000 ( 26208 bytes) build/mimasv2_base_or1k/software/bios/bios.bin - LiteX BIOS with CRC 18 00 00 00 18 20 00 00 18 40 00 00 18 60 00 00 18 80 00 00 18 a0 00 00 18 c0 00 00 18 e0 00 00 19 00 00 00 19 20 00 00 19 40 00 00 19 60 00 00 19 80 00 00 19 a0 00 00 19 c0 00 00 19 e0 00 00 Firmware @ 0x00088000 ( 3714532 bytes) build/mimasv2_base_or1k//software/linux/firmware.fbi - HDMI2USB Firmware in FBI format (loaded into DRAM) 00 38 ad dc 15 8b ef 87 00 00 00 40 15 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ---------------------------------------- Remaining space -2174436 bytes (-16 Megabits, -2.07 Megabytes) Total space 2097152 bytes (16 Megabits, 2.00 Megabytes) Flash image: build/mimasv2_base_or1k//image-gateware+bios+linux.bin.4qemu 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + build/mimasv2_base_or1k//qemu/qemu-img convert -f raw build/mimasv2_base_or1k//image-gateware+bios+linux.bin.4qemu -O qcow2 -S 16M build/mimasv2_base_or1k//qemu.qcow2 + grep -q 'ROM_BASE 0x00000000' build/mimasv2_base_or1k//software/include/generated/mem.h + grep -q SPIFLASH_BASE build/mimasv2_base_or1k//software/include/generated/mem.h ++ grep spiflash_model platforms/mimasv2.py ++ sed '-es/[^"]*"//' '-es/".*$//' + SPIFLASH_MODEL=m25p16 + '[' -z m25p16 ']' + EXTRA_ARGS+=("-drive if=mtd,format=qcow2,file=$TARGET_BUILD_DIR/qemu.qcow2,serial=$SPIFLASH_MODEL") + grep -q ETHMAC_BASE build/mimasv2_base_or1k//software/include/generated/csr.h ++ grep spiflash_model platforms/mimasv2.py ++ sed '-es/[^"]*"//' '-es/".*$//' + SPIFLASH_MODEL=m25p16 + echo m25p16 m25p16 + build/mimasv2_base_or1k//qemu/or32-softmmu/qemu-system-or32 -M litex -nographic -nodefaults -monitor pty -serial stdio -drive if=mtd,format=qcow2,file=build/mimasv2_base_or1k//qemu.qcow2,serial=m25p16 char device redirected to /dev/pts/5 (label compat_monitor0) bitbang_ssi: init(cpol:0, cpha:0, size:8) Using spiflash type m25p16 : m25p80_realize: Binding to IF_MTD drive Resetting PC to: 0x20080000 : reset_memory: Reset done. LiteX SoC BIOS (or1k) (c) Copyright 2012-2017 Enjoy-Digital (c) Copyright 2007-2017 M-Labs Limited Built Oct 7 2017 15:31:18 BIOS CRC passed (a760df73) Initializing SDRAM... Memtest OK Booting from serial... Press Q or ESC to abort boot completely. sL5DdSMmkekro Timer with delta zero, disabling Timeout Booting from flash... Loading 3714524 bytes from flash... CRC failed (expected 158bef87, got fed38290) No boot medium found BIOS>