Skip to content

Instantly share code, notes, and snippets.

@nathanrossi
Created October 31, 2018 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanrossi/9f1c2d876622f69386684a2242787e60 to your computer and use it in GitHub Desktop.
Save nathanrossi/9f1c2d876622f69386684a2242787e60 to your computer and use it in GitHub Desktop.
OE runqemu litex micropython
nathanbuild@arty-lm32# runqemu arty-lm32 slirp
runqemu - INFO - Running MACHINE=arty-lm32 bitbake -e...
runqemu - INFO - Continuing with the following parameters:
KERNEL: []
MACHINE: [arty-lm32]
FSTYPE: [none]
ROOTFS: []
CONFFILE: [/storage/nathan/build/testing/tmp-newlib/deploy/images/arty-lm32/litex-fupy-image-arty-lm32-20181031154922.qemuboot.conf]
runqemu - INFO - Port forward: hostfwd=tcp::2222-:22 hostfwd=tcp::2323-:23
runqemu - INFO - Running /storage/nathan/build/testing/tmp-newlib/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-litex/qemu-system-lm32 -net nic,netdev=net0,macaddr=52:54:00:12:35:02 -netdev user,id=net0,net=192.168.100.0/24,host=192.168.100.100,dhcpstart=192.168.100.50,hostfwd=tcp::2222-:22,hostfwd=tcp::2323-:23,tftp=/storage/nathan/build/testing/tmp-newlib/deploy/images/arty-lm32 -nographic -serial mon:stdio -bios /storage/nathan/build/testing/tmp-newlib/deploy/images/arty-lm32/bios-arty-lm32.bin -drive if=mtd,format=qcow2,file=/storage/nathan/build/testing/tmp-newlib/deploy/images/arty-lm32/litex-fupy-image-qemu.qcow2 -global litex_ssi.spiflash=n25q128a13 -machine litex -m 256
bitbang_ssi: init(cpol:0, cpha:0, size:8)
Resetting PC to: 0x0
__ _ __ _ __
/ / (_) /____ | |/_/
/ /__/ / __/ -_)> <
/____/_/\__/\__/_/|_|
SoC BIOS / CPU: LM32 / 100MHz
(c) Copyright 2012-2018 Enjoy-Digital
(c) Copyright 2007-2018 M-Labs Limited
Built Oct 31 2018 15:31:06
BIOS CRC passed (285eda3c)
Initializing SDRAM...
SDRAM now under software control
Best read bitslip: 0
Read delays scan:
m0: 00000000000000000000000000000000
m1: 00000000000000000000000000000000
Read delays: 1:32-33 0:32-33 completed
SDRAM now under hardware control
Memtest OK
Booting from serial...
Press Q or ESC to abort boot completely.
sL5DdSMmkekro
Timeout
Booting from flash...
Error: Invalid flash boot image length 0x00000000
Booting from network...
Local IP : 192.168.100.50
Remote IP: 192.168.100.100
Fetching from: UDP/69
Successfully downloaded 241724 bytes from boot.bin over TFTP
Unable to download cmdline.txt over TFTP
No command line parameters found
Unable to download initrd.bin over TFTP
No initial ramdisk found
Executing booted program at 0x40000000
MicroPython v1.9.4-530-ge1202f397b on 2018-10-31; litex with lm32
>>> print("hello world")
hello world
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment