# Pastebin jqxvUnv1 $ ./scripts/build-qemu.sh Platform: opsis Target: base (default: video) 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/opsis_base_or1k//qemu + case $CPU in + QEMU_CPU=or32 + QEMU_ARCH=or32-softmmu + '[' '!' -d build/opsis_base_or1k//software/include/generated ']' + '[' '!' -f build/opsis_base_or1k//qemu/Makefile ']' + OLD_DIR=/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware + cd build/opsis_base_or1k//qemu + make -j8 + cd /home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware + '[' '!' -d build/opsis_base_or1k//software/linux/firmware.fbi ']' + make build/opsis_base_or1k//software/linux/firmware.fbi mkdir -p build/opsis_base_or1k/ time python -u ./make.py --platform=opsis --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/opsis_base_or1k//output.20171014-232502.log; (exit ${PIPESTATUS[0]}) make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/opsis_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/opsis_base_or1k/software/libcompiler_rt' make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/opsis_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/opsis_base_or1k/software/libbase' make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/opsis_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/opsis_base_or1k/software/libnet' make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/opsis_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/opsis_base_or1k/software/bios' make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/opsis_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/opsis_base_or1k/software/uip' make[1]: Entering directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/opsis_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/opsis_base_or1k/software/include/../..//software/firmware/version_data.h ] [ -e /home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/opsis_base_or1k/software/include/../..//software/firmware/version_data.c ] make[1]: Leaving directory '/home/jimmo/src/github.com/timvideos/HDMI2USB-litex-firmware/build/opsis_base_or1k/software/firmware' real 0m0.978s user 0m0.900s sys 0m0.087s python -m litex.soc.tools.mkmscimg -f build/opsis_base_or1k//software/linux/firmware.bin -o build/opsis_base_or1k//software/linux/firmware.fbi + QEMU_IMAGE_FILE=build/opsis_base_or1k//image-gateware+bios+linux.bin.4qemu + /usr/bin/env python mkimage.py --output-file=build/opsis_base_or1k//image-gateware+bios+linux.bin.4qemu --override-gateware=none --force-image-size=true --override-firmware=build/opsis_base_or1k//software/linux/firmware.fbi Gateware @ 0x00000000 ( 0 bytes) Skipped - Xilinx FPGA Bitstream BIOS @ 0x00200000 ( 26060 bytes) build/opsis_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 @ 0x00208000 ( 3714532 bytes) build/opsis_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 10932764 bytes (83 Megabits, 10.43 Megabytes) Total space 16777216 bytes (128 Megabits, 16.00 Megabytes) Flash image: build/opsis_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/opsis_base_or1k//qemu/qemu-img convert -f raw build/opsis_base_or1k//image-gateware+bios+linux.bin.4qemu -O qcow2 -S 16M build/opsis_base_or1k//qemu.qcow2 + grep -q 'ROM_BASE 0x00000000' build/opsis_base_or1k//software/include/generated/mem.h + echo 'Platform has BIOS ROM, adding BIOS' Platform has BIOS ROM, adding BIOS + EXTRA_ARGS+=("-bios $BIOS_FILE") + grep -q SPIFLASH_BASE build/opsis_base_or1k//software/include/generated/mem.h ++ grep spiflash_model platforms/opsis.py ++ sed '-es/[^"]*"//' '-es/".*$//' + SPIFLASH_MODEL=n25q128 + '[' -z n25q128 ']' + EXTRA_ARGS+=("-drive if=mtd,format=qcow2,file=$TARGET_BUILD_DIR/qemu.qcow2,serial=$SPIFLASH_MODEL") + grep -q ETHMAC_BASE build/opsis_base_or1k//software/include/generated/csr.h ++ grep spiflash_model platforms/opsis.py ++ sed '-es/[^"]*"//' '-es/".*$//' + SPIFLASH_MODEL=n25q128 + echo n25q128 n25q128 + build/opsis_base_or1k//qemu/or32-softmmu/qemu-system-or32 -M litex -nographic -nodefaults -monitor pty -serial stdio -bios build/opsis_base_or1k//software/bios/bios.bin -drive if=mtd,format=qcow2,file=build/opsis_base_or1k//qemu.qcow2,serial=n25q128 char device redirected to /dev/pts/1 (label compat_monitor0) bitbang_ssi: init(cpol:0, cpha:0, size:8) Using spiflash type n25q128 : m25p80_realize: Binding to IF_MTD drive Resetting PC to: 0x0 : reset_memory: Reset done. LiteX SoC BIOS (or1k) (c) Copyright 2012-2017 Enjoy-Digital (c) Copyright 2007-2017 M-Labs Limited Built Oct 14 2017 23:23:18 BIOS CRC passed (c1e4abbc) 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... Executing booted program at 0x40000000 Compiled-in FDT at c02beb40 Linux version 4.14.0-rc2-g6aeca043f (jimmo@jimmo-x240) (gcc version 5.4.0 (GCC)) #2 Sat Oct 14 23:01:31 AEDT 2017 CPU: OpenRISC-0 (revision 0) @50 MHz -- dcache disabled -- icache disabled -- dmmu: 64 entries, 1 way(s) -- immu: 64 entries, 1 way(s) -- additional features: -- power management -- timer setup_memory: Memory: 0x40000000-0x44000000 Setting up paging and PTEs. map_ram: Memory: 0x40000000-0x44000000 On node 0 totalpages: 139264 free_area_init_node: node 0, pgdat c02a4c68, node_mem_map c3bb6000 Normal zone: 544 pages used for memmap Normal zone: 0 pages reserved Normal zone: 139264 pages, LIFO batch:15 itlb_miss_handler va:c000219c pa:4000219c (boot:c02a81c4) dtlb_miss_handler va:c0002000 pa:40002000 (boot:c02a8118) OpenRISC Linux -- http://openrisc.io pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: [0] 0 Built 1 zonelists, mobility grouping on. Total pages: 138720 Kernel command line: earlycon earlyprintk debug keep_bootcon earlycon: litex_uart_a0 at MMIO 0xe0001000 (options '') bootconsole [litex_uart_a0] enabled debug: skip boot console de-registration. PID hash table entries: 4096 (order: 1, 16384 bytes) Dentry cache hash table entries: 262144 (order: 7, 1048576 bytes) Inode-cache hash table entries: 131072 (order: 6, 524288 bytes) Sorting __ex_table... Memory: 55832K/1114112K available (2368K kernel code, 115K rwdata, 224K rodata, 920K init, 78K bss, 1058280K reserved, 0K cma-reserved) mem_init_done ........................................... NR_IRQS: 32, nr_irqs: 32, preallocated irqs: 0 clocksource: openrisc_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 38225208935 ns Console: colour dummy device 80x25 console [tty0] enabled 100.00 BogoMIPS (lpj=500000) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 4096 (order: 1, 16384 bytes) Mountpoint-cache hash table entries: 4096 (order: 1, 16384 bytes) devtmpfs: initialized clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 256 (order: -2, 3072 bytes) i2c-core: driver [dummy] registered clocksource: Switched to clocksource openrisc_timer workingset: timestamp_bits=30 max_order=13 bucket_order=0 romfs: ROMFS MTD (C) 2007 Red Hat, Inc. random: fast init done io scheduler noop registered io scheduler cfq registered (default) io scheduler kyber registered gpio-mockup: probe of gpio-mockup failed with error -22 litex console: port=c039e17c; port->mapbase=e0001000 e0001000.serial: ttyS0 at MMIO 0xe0001000 (irq = 2, base_baud = 0) is a litex_uart console [ttyS0] enabled dummy-irq: no IRQ given. Use irq=N i2c-core: driver [at24] registered slram: not enough parameters. i2c /dev entries driver i2c-core: driver [i2c-slave-eeprom] registered Freeing unused kernel memory: 920K This architecture does not have kernel memory protection. unexpected IRQ trap at vector 00 unexpected IRQ trap at vector 00