*** tpb has joined #litex | 00:00 | |
*** tweakoz has joined #litex | 06:50 | |
*** Dolu1 has joined #litex | 12:26 | |
Dolu1 | Currently looking to add unaligned access support in the emulator, have it required for the ATWILC1000 in access point mode. | 12:28 |
---|---|---|
*** Dolu1 has quit IRC | 13:47 | |
*** Dolu1 has joined #litex | 16:00 | |
sorear | https://sourceware.org/ml/libc-alpha/2019-06/msg00534.html riscv32 glibc upstreaming started :D | 16:50 |
tpb | Title: Alistair Francis - [RFC v1 00/16] RISC-V glibc port for the 32-bit (at sourceware.org) | 16:50 |
daveshah | sorear: very nice | 17:18 |
daveshah | Thanks for spotting that! | 17:18 |
*** Dolu1 has quit IRC | 19:18 | |
*** Dolu1 has joined #litex | 19:30 | |
Dolu1 | Also had issues with missing libatomic.so.1: ? | 19:34 |
*** mnr has joined #litex | 20:01 | |
mnr | Hello, I'm a newbie to litex and I've started experimenting around with https://github.com/litex-hub/linux-on-litex-vexriscv. When using the prebuilt binaries from https://github.com/enjoy-digital/linux-on-litex-vexriscv-prebuilt, I can successfully run the simulation with ./sim.py. When trying to build everything myself, I'm somewhat stuck at how emulator/emulator.bin is intended to be built. | 20:16 |
mnr | emulator/Makefile refers to $(SOC_DIRECTORY), but I see nothing that would define this variable and AFAICS the README.md doesn't provide any information about that. Pointers welcome :). | 20:16 |
mnr | Hm, looks like the last line was too long and got truncated, therefore the second part again: | 20:26 |
mnr | emulator/Makefile refers to $(SOC_DIRECTORY), but I see nothing that would define this variable and AFAICS the README.md doesn't provide any information about that. Pointers welcome :). | 20:26 |
*** tweakoz has quit IRC | 20:47 | |
futarisIRCcloud | Cool. Alistair seems to be pushing a bunch of 32 bit RISC-V stuff along. Would have been nice to chat with Alistair in person. I met Palmer two days ago in person at the Sydney RISC-V Tech Symposium. | 21:05 |
*** Dolu1 has quit IRC | 21:06 | |
futarisIRCcloud | mnr: Sorry, the README.md hasn't been updated for the buildroot BR2_EXTERNAL change. https://github.com/litex-hub/linux-on-litex-vexriscv/issues/21 | 21:07 |
tpb | Title: use BR2_EXTERNAL buildroot feature · Issue #21 · litex-hub/linux-on-litex-vexriscv · GitHub (at github.com) | 21:07 |
futarisIRCcloud | mnr: Actually the commits for that change, already reference how to build the filesystem correctly. | 21:14 |
futarisIRCcloud | mnr: didn't see that you wanted to build the emulator/emulator.bin .. | 21:16 |
futarisIRCcloud | It should be where your local litex install is. | 21:19 |
futarisIRCcloud | https://github.com/enjoy-digital/litex/tree/master/litex/soc/software | 21:19 |
tpb | Title: litex/litex/soc/software at master · enjoy-digital/litex · GitHub (at github.com) | 21:19 |
mnr | futarisIRCcloud: Thanks a lot. I still appear to miss something in the big picture: I have successfully run " ./make.py --board=versa_ecp5 --build", which has built a bitstream, but doesn't seem to build the bits necessary for running the simulation. What is intended to call emulator/Makefile with the correct variables? | 21:39 |
mnr | I'm completely new to the litex build system, so sorry if I'm missing something obvious. | 21:40 |
mithro | Wow, spi flash is complicated.... | 21:41 |
mnr | emulator/Makefile defines "BUILD_DIR=../build/" and then references "$(BUILD_DIR)/software/include/generated/variables.mak", but that doesn't exist because there is a target-specific directory "versa_ecp5" below ../build. | 21:43 |
mnr | The latter then has software/include/generated/variables.mak below it. | 21:44 |
futarisIRCcloud | Try copying the files from linux-on-litex-vexriscv-prebuilt ... | 21:47 |
mnr | futarisIRCcloud: Doing that gives my a working simulation with ./sim.py; what I'm trying to understand is what I need to do to build all bits from a fresh checkout. I know how to build the kernel and the rootfs with buildroot, but the emulator binary is still a mystery to me. | 21:49 |
mnr | Is ./make.py supposed to create everything required for running ./sim.py or not? | 21:52 |
futarisIRCcloud | I think it was documented in this issue ( https://github.com/SpinalHDL/VexRiscv/issues/60#bottom ). We probably should update README.md in this repo. | 21:53 |
tpb | Title: Linux on VexRiscv · Issue #60 · SpinalHDL/VexRiscv · GitHub (at github.com) | 21:53 |
futarisIRCcloud | I'm on mobile, so I don't quite recall at the moment. | 21:53 |
daveshah | mithro: have you found SPI NAND yet? | 21:55 |
futarisIRCcloud | https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/make.py | 22:00 |
tpb | Title: linux-on-litex-vexriscv/make.py at master · litex-hub/linux-on-litex-vexriscv · GitHub (at github.com) | 22:00 |
mithro | daveshah: nope | 22:06 |
daveshah | mithro: e.g. https://www.digikey.co.uk/product-detail/en/winbond-electronics/W25N01GVZEIG-TR/W25N01GVZEIGCT-ND/7393545 | 22:10 |
tpb | Title: W25N01GVZEIG TR Winbond Electronics | Integrated Circuits (ICs) | DigiKey (at www.digikey.co.uk) | 22:11 |
daveshah | Various extra fun like bad block management | 22:11 |
mnr | futarisIRCcloud: "./make.py --board=versa_ecp5 --build" happily builds an FPGA bitstream for me, but it doesn't build everything required for running a simulation with ./sim.py. The latter fails because it cannot load "emulator/emulator.bin" which hasn't been built by make.py. A build log is available at https://paste.debian.net/hidden/bde9f0e0/ . | 22:21 |
tpb | Title: Debian Pastezone (at paste.debian.net) | 22:21 |
mnr | futarisIRCcloud: So obviously I'm missing some step, but I don't know which one, as the README.md doesn't mention anything in this regard. | 22:22 |
futarisIRCcloud | I think soc_linux might build the directory you are after. | 22:43 |
futarisIRCcloud | https://github.com/litex-hub/linux-on-litex-vexriscv/commits/master/soc_linux.py | 22:44 |
tpb | Title: History for soc_linux.py - litex-hub/linux-on-litex-vexriscv · GitHub (at github.com) | 22:44 |
futarisIRCcloud | Best to ask _florent_ in 10 hours or so. | 22:44 |
mnr | futarisIRCcloud: ok, will do. thanks a lot for your help. | 22:49 |
_florent_ | mnr: there is a step missing indeed, i'll fix that, but to build emulator.bin, you can run ./sim.py (that will fails), cd emulator, make, cd .., ./sim.py | 22:51 |
mnr | _florent_: That unfortunately doesn't work for me. Log at https://paste.debian.net/hidden/c1d5f932/ | 23:02 |
tpb | Title: Debian Pastezone (at paste.debian.net) | 23:02 |
mnr | _florent_: The make failure happes because the Makefile variables used by emulator/Makefile aren't set appropriately, but I don't know what part of the build system is supposed to set them. | 23:04 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!