Monday, 2021-02-01

*** tpb has joined #litex00:00
*** hansfbaier has quit IRC00:21
*** hansfbaier has joined #litex00:23
*** lf_ has joined #litex00:40
*** lf has quit IRC00:40
*** ambro718 has quit IRC01:25
shorneecpix5 looks nice, maybe its time for an upgrade.  I need more than 256mb ram for glibc development/testing01:35
*** lkcl has quit IRC02:11
*** lkcl has joined #litex02:58
*** shorne has quit IRC03:04
somloshorne: just be extra gentle with the micro-usb connector :)03:18
*** Degi_ has joined #litex03:34
*** Degi has quit IRC03:35
*** Degi_ is now known as Degi03:35
*** peeps[zen] has joined #litex04:26
*** peepsalot has quit IRC04:27
*** shorne has joined #litex05:10
*** Bertl_oO is now known as Bertl_zZ05:22
*** tucanae47 has quit IRC06:44
*** tucanae47 has joined #litex06:44
*** levi has quit IRC06:45
*** levi has joined #litex06:46
*** _whitelogger has quit IRC07:54
*** _whitelogger has joined #litex07:56
*** hansfbaier has quit IRC07:57
*** hansfbaier has joined #litex08:00
*** hansfbaier has quit IRC08:06
*** hansfbaier has joined #litex08:08
*** hansfbaier has left #litex08:10
*** hansfbaier1 has joined #litex08:24
*** hansfbaier1 has quit IRC08:27
*** hansfbaier has joined #litex08:28
*** hansfbaier has quit IRC08:29
*** hansfbaier has joined #litex08:30
*** hansfbaier has joined #litex08:32
*** hansfbaier has quit IRC08:34
*** hansfbaier has joined #litex08:36
*** hansfbaier has quit IRC08:57
*** hansfbaier has joined #litex08:58
*** hansfbaier has left #litex09:01
*** ambro718 has joined #litex09:17
*** ambro718 has quit IRC09:56
*** ambro718 has joined #litex09:56
*** x56 has quit IRC11:07
*** x56 has joined #litex11:09
*** Bertl_zZ is now known as Bertl12:02
*** peeps[zen] is now known as peepsalot12:32
somloanyone with a working ecpix5 interested in trying the linux-on-litex-rocket bitstream and boot.bin (should load via either sdcard or tftp)? http://mirror.ini.cmu.edu/ecpix5.tar.xz13:12
*** Zguig has joined #litex13:50
ZguigHi somlo, I saw your misadventures with the USB connectors... I'm sorry for this. There is no way to sold back the connector? Or maybe try to see with the suppliers if they can give another to you...13:52
ZguigI will load and check your code on my board13:52
zypsomlo, if the usb signals weren't getting through and then the connector fell off way too easily, it sounds like a manufacturing defect, not soldering the connectors properly13:58
zypI'd expect a warranty replacement in your case13:59
ZguigLooks good somlo :)14:04
ZguigExecuting booted program at 0x8000000014:04
Zguig--============= Liftoff! ===============--14:04
Zguigbbl loader14:04
Zguig              vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv14:04
Zguig                  vvvvvvvvvvvvvvvvvvvvvvvvvvvv14:04
zypI'm speaking from experience, I've had similar problems on stuff I've made, e.g: https://bin.jvnv.net/file/Kg4JE.JPG (pins 1 and 4 are not making contact)14:04
Zguigrrrrrrrrrrrrr       vvvvvvvvvvvvvvvvvvvvvvvvvv14:04
Zguigrrrrrrrrrrrrrrrr      vvvvvvvvvvvvvvvvvvvvvvvv14:04
Zguigrrrrrrrrrrrrrrrrrr    vvvvvvvvvvvvvvvvvvvvvvvv14:04
Zguigrrrrrrrrrrrrrrrrrr    vvvvvvvvvvvvvvvvvvvvvvvv14:04
Zguigrrrrrrrrrrrrrrrrrr    vvvvvvvvvvvvvvvvvvvvvvvv14:04
Zguigrrrrrrrrrrrrrrrr      vvvvvvvvvvvvvvvvvvvvvv14:04
Zguigrrrrrrrrrrrrr       vvvvvvvvvvvvvvvvvvvvvv14:04
Zguigrr                vvvvvvvvvvvvvvvvvvvvvv14:04
Zguigrr            vvvvvvvvvvvvvvvvvvvvvvvv      rr14:04
Zguigrrrr      vvvvvvvvvvvvvvvvvvvvvvvvvv      rrrr14:04
Zguigrrrrrr      vvvvvvvvvvvvvvvvvvvvvv      rrrrrr14:04
Zguigrrrrrrrr      vvvvvvvvvvvvvvvvvv      rrrrrrrr14:04
Zguigrrrrrrrrrr      vvvvvvvvvvvvvv      rrrrrrrrrr14:04
Zguigrrrrrrrrrrrr      vvvvvvvvvv      rrrrrrrrrrrr14:04
zypnice14:04
Zguig[    0.000000] SBI specification v0.1 detected14:04
Zguig[    0.000000] software IO TLB: mapped [mem 0x000000009f7fa000-0x000000009f7fa800] (0MB)14:04
Zguig[    0.000000] riscv: ISA extensions acdfim14:04
Zguig[    0.000000] riscv: ELF capabilities acdfim14:04
Zguig[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*3276814:04
Zguig[    0.000000] pcpu-alloc: [0] 014:04
Zguig[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 12852014:04
Zguig[    0.000000] Kernel command line: earlycon=sbi console=hvc0 swiotlb=noforce14:04
Zguig[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)14:04
Zguig[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)14:04
Zguig[    0.000000] Sorting __ex_table...14:04
Zguig[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off14:04
Zguig[    0.000000] Memory: 499924K/522240K available (3765K kernel code, 3988K rwdata, 2048K rodata, 2880K init, 269K bss, 22316K reserved, 0K cma-reserved)14:04
Zguig[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=114:04
Zguig[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 014:04
Zguig[    0.000000] riscv-intc: 64 local interrupts mapped14:04
Zguig[    0.000000] plic: interrupt-controller@c000000: mapped 4 interrupts with 1 handlers for 2 contexts.14:04
Zguig[    0.000000] random: get_random_bytes called from start_kernel+0x39e/0x556 with crng_init=014:04
somloZguig: thanks! did it make it all the way to the busybox shell ?14:07
ZguigYep14:08
Zguig# ifconfig14:08
Zguig# ls /etc14:08
Zguiginittab14:08
Zguig# ifconfig -a14:08
Zguigeth0      Link encap:Ethernet  HWaddr E6:E7:4C:CC:20:7014:08
Zguig          BROADCAST MULTICAST  MTU:1500  Metric:114:08
Zguig          RX packets:0 errors:0 dropped:0 overruns:0 frame:014:08
Zguig          TX packets:0 errors:0 dropped:0 overruns:0 carrier:014:08
Zguig          collisions:0 txqueuelen:100014:08
Zguig          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)14:08
Zguig          Interrupt:214:08
Zguiglo        Link encap:Local Loopback14:08
Zguig          LOOPBACK  MTU:65536  Metric:114:08
Zguig          RX packets:0 errors:0 dropped:0 overruns:0 frame:014:08
Zguig          TX packets:0 errors:0 dropped:0 overruns:0 carrier:014:08
Zguig          collisions:0 txqueuelen:100014:08
Zguig          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)14:08
somloawesome, thanks! I'll update linux-on-litex-rocket to include this14:08
ZguigCongrats!14:09
ZguigI used OpenOCD to load the firmware and have copied the image on SDCard14:10
Zguigopenocd -f Research/litex/litex-boards/litex_boards/prog/openocd_ecpix5.cfg -c 'transport select jtag; init; svf ./Téléchargements/ecpix5/ecpix5.svf; exit'14:10
somloZguig: which of the two USB ports (usb-c, micro-usb) are you using for the console and/or programming?14:10
Zguigmicro USB...14:11
ZguigFrom what is written here: http://docs.lambdaconcept.com/ecpix-5/features/debug.html14:11
tpbTitle: Debug ECPIX-5 Documentation documentation (at docs.lambdaconcept.com)14:11
ZguigOnly micro usb is able to be used14:12
ZguigOr the external JTAG14:12
ZguigHaven't tested the external JTAG yet, but I took the JTAG serial board from Lambda concept with the board in case of14:12
ZguigDo you have an equivalent?14:13
ZguigIf you wantI can try with this also14:13
zypsomlo, micro-usb goes to the onboard ftdi for debug, usb-c is connected directly to the fpga14:15
somloZguig, zyp: https://imgur.com/a/DGuIvSL14:18
tpbTitle: Imgur: The magic of the Internet (at imgur.com)14:18
somlothe pads pointed to by the arrow should have been "melted" against the connector better than they were, to keep it in place, which was apparently not the case :(14:19
zypyeah14:19
zypI'd say that's a defect14:19
somloI should follow-up my email to lambdaconcepts to send them this image, in support of my "I didn't abuse the board" claim :)14:20
geertusomlo: just needs a little bit of hot air? ;-)14:20
zypshould be reasonably easy to hotair it back14:20
somlogeertu: I'm not set up to fix this on my end, unfortunately. But it'd be great if the vendor could fix it and restock it, or send it back to me, or whatever :)14:21
somloit's really a very nice idea, hopefully it can be sorted out14:21
ZguigI would also say that this is a defect in the board, seems on your picture that the only soldering point were the two small pins14:22
zypI'm really not a fan of the sockets without mechanical tabs going into holes in the board14:22
zypand I don't get why they didn't go with usb-c for the debug port too14:23
geertuzyp: yeah, it has more pins to hold the connector (in case you forget to solder the tabs ;)14:24
zypha14:24
ZguigIt seems related to the chipset used which is USB2 https://ftdichip.com/products/ft2232hq/14:25
tpbTitle: FT2232HQ - FTDI (at ftdichip.com)14:25
zypthere's no reason to not use usb-c for usb2, there's even a bunch of simplified usb-c sockets on the market that only implements the pins used by usb-214:27
Zguigbut then no way to have usb 3 speed, isn't it?14:35
ZguigMaybe just wanted to keep the logic usb micro => usb2 et usb c => usb3?14:36
Zguigor maybe it is not related at all and it is only the manufacturers that did this association?14:37
zypit's not related at all, usb-c can do anything14:39
somloupdated https://github.com/litex-hub/linux-on-litex-rocket (and the pinned issue with pre-built blobs) for ecpix5; Zguig, thanks again for running the tests!14:56
*** Bertl is now known as Bertl_oO16:03
*** Bertl_oO is now known as Bertl17:03
*** Zguig has quit IRC17:43
zypsomlo, this actually looks like a design mistake: https://bin.jvnv.net/file/Rohhx.jpg17:58
zypsocket is pulled a bit too far back, the flange is designed to protrude past the board edge17:58
*** david-sawatzke[m has quit IRC18:10
*** david-sawatzke[m has joined #litex18:24
*** kgugala has quit IRC19:11
*** nickoe has joined #litex19:15
nickoehello19:15
nickoeI am looking at https://github.com/timvideos/litex-buildenv/wiki/Using19:16
nickoeSeeing https://github.com/timvideos/litex-buildenv/blob/master/platforms/basys3.py it looks like there is a migen platform def for the basys319:16
nickoeand some kind of soc definition in https://github.com/timvideos/litex-buildenv/blob/master/targets/basys3/base.py19:17
nickoeBut how do I build that, just sourcing the env and doing make gateware does not work.19:17
nickoeI used, export PLATFORM=basys3; source litex-buildenv/scripts/enter-env.sh and get a console: (LX P=basys3 C=vexriscv)19:18
nickoefrom what path should I be able to do "make gateware"?19:20
mithronickoe: In the litex-buildenv directory19:28
nickoemm, ok19:30
nickoeI think it did synth something19:30
nickoebut make gateware-load (not make load as on the wiki) fails19:31
nickoeembedded:startup.tcl:26: Error: Can't find board/digilent_basys3.cfg19:31
nickoefrom openocd19:31
nickoeI guess19:31
nickoemithro: Do I need to set the CPU for he basys3 board, or is the default of vexriscv ok?19:35
mithrodefault should be fine19:35
mithronickoe: Log a bug about the openocd error19:35
nickoemithro: and this is the correct repo? https://github.com/timvideos/litex-buildenv19:36
nickoemithro: I used the one specifed on https://symbiflow-examples.readthedocs.io/en/latest/building-examples.html for flash ing before19:38
tpbTitle: Building example designs SymbiFlow examples documentation (at symbiflow-examples.readthedocs.io)19:38
nickoeshare/openocd/scripts/board/digilent_arty.cfg19:38
nickoeand that is available in the ocd checked out19:38
nickoeok, usin that cfg it did flash and I see the litex19:42
nickoebios19:42
nickoemithro: v19:52
nickoemithro: https://github.com/timvideos/litex-buildenv/issues/63719:52
nickoehow does that flterm work?  I did  make firmware-load and it is stuck at "[FLTERM] v2.4-29-g47d3b15 Starting..."19:56
mithronickoe: Hit enter?19:56
nickoethen what?19:57
mithronickoe: Did a prompt appear?19:57
nickoeyes19:57
nickoeis there supposed to be some other firmware running than in the "bios?19:57
mithroDid you load some other firmware?19:57
nickoeI just did make firmware-load19:58
mithronickoe: Type "serialload" possible then?19:58
nickoehttps://dpaste.com/5DE66S2UZ19:59
tpbTitle: dpaste: 5DE66S2UZ (at dpaste.com)19:59
mithronickoe: This is documented at https://github.com/timvideos/litex-buildenv/wiki/HowTo-FuPy-on-a-Digilent-Arty-A7 for example19:59
mithronickoe: That log shows you as having typed `make firmware-connect-basys3`not `make firmware-load` ?19:59
nickoeoh, well, I don't see any difference anyway20:00
mithro`make firmware-load` will load firmware when it sees the serialboot prompt20:00
nickoemm20:01
nickoehere you go https://dpaste.com/C8EEKSR4Q20:01
tpbTitle: dpaste: C8EEKSR4Q (at dpaste.com)20:01
nickoeIt still sort of errors.20:01
nickoemithro:  I am not really sure what to expect, but that looks like something is not quite right to me20:03
mithronickoe: Can you log an bug about the `[FLTERM] Unable to open kernel image (request ignored).: No such file or directory` line?20:03
mithronickoe: Can you check to see if `build/basys3_base_vexriscv/software/firmware/firmware.bin`exists?20:05
mithroLooks like there is some confusing about if the firmware you are using is the stub firmware or not20:07
nickoefile ./build/basys3_base_vexriscv/software/stub/firmware.bin20:07
nickoe./build/basys3_base_vexriscv/software/stub/firmware.bin: data20:07
mithronickoe: stub != firmware (yes there is firmware called stub and firmware called firmware)20:07
nickoe??20:07
nickoeWhat do do to make it run some firmwarE?20:08
mithroTry "export FIRMWARE=stub" and then `make firmware-load` again20:09
nickoeif I dod that and type serialboot then it looks like it is doing stuff, at lesat it is showing some progress in the form of a percentage.20:10
nickoe[FLTERM] Received firmware download request from the device.20:10
nickoe[FLTERM] Uploading kernel (7848 bytes)...20:10
nickoe44%20:10
nickoemithro: is that "stub" fw supposed to do anything?20:11
mithroIt's only a little more advanced than the bios -- I think you can toggle LEDs and stuff20:12
nickoeI don't get a console20:12
nickoeit is just like this, even if I hit enter a couple of times, https://dpaste.com/66QCEYGNN20:13
tpbTitle: dpaste: 66QCEYGNN (at dpaste.com)20:13
*** flammit_ has joined #litex20:18
*** pdp7_ has joined #litex20:18
nickoemithro: So what to do now?20:18
mithronickoe: Sounds like there might be a gateware / firmware mismatch or some other issue20:18
nickoeIs it correct that it should use stub fw?20:19
mithronickoe: I don't know if anyone has been using the basys3 much20:19
mithroGenerally the stub firmware is used on boards which don't have external DDR memory20:20
nickoeok, and I guess that is true in this case with the basys3.20:20
mithroGenerally the basys3 isn't a great fit for the type of things that LiteX-BuildEnv tends to target...20:21
nickoeI don't need a big softcpu, just a small one to run a bit of code on to be able to interface with serial for example and write to a few regs.20:23
mithronickoe: That is what the stub firmware does20:23
nickoebut how can I figure out why it does not run?20:23
nickoeI am using vivado 2020.2 btw20:24
*** pdp7 has quit IRC20:26
*** flammit has quit IRC20:26
*** pdp7_ is now known as pdp720:26
*** flammit_ is now known as flammit20:26
*** kgugala has joined #litex20:32
nickoemithro: Should I be able to run the micropython interpreter fw on the basys3?20:35
nickoeit does not seem to create build/basys3_base_vexriscv/software/micropython when building with make firmware and I have export FIRMWARE=micropython20:36
mithronickoe: I'm unclear what is being used as the "main memory" on the basys3 -- as it doesn't have external DDR or the big SP RAM blocks that the ice40up5k has...20:36
mithronickoe: https://github.com/timvideos/litex-buildenv/wiki/HowTo-FuPy-on-a-Digilent-Arty-A720:37
nickoethe only diffrence on that seems to be that it sets TARGET, is that required?20:38
mithronickoe: You have to use the `./scripts/build-micropython.sh`20:38
mithronickoe: As the micropython build system is outside the normal litex-buildenv system20:39
nickoemm, ok, I would have dhough that the download-env-sh script would take care of that when sourced20:39
nickoeinto an env with the FIRMWARE=micropython20:39
nickoemithro: it errors with https://dpaste.com/5895SX24T20:41
tpbTitle: dpaste: 5895SX24T (at dpaste.com)20:41
nickoe(LX P=basys3 C=vexriscv F=micropython) [nickoe@x280-arch litex-buildenv]$ ./scripts/build-micropython.sh  .... that is20:41
mithronickoe: I can't see enough of the output to confirm that you are running what I expect20:42
nickoebut at least there is that micropython build folder and a subsequent make firmware-load and serialboot seems to do something20:42
nickoemithro: Output of what?20:43
mithroIn that above pastebin20:43
nickoeright now it appears to flash a min from the micropython folder flterm --port=/dev/ttyUSB1 --kernel=build/basys3_base_vexriscv/software/micropython/firmware.bin --speed=11520020:43
nickoe[FLTERM] v2.4-29-g47d3b15 Starting...20:43
nickoes20:43
nickoeCommand not found20:43
nickoelitex>20:43
nickoelitex> serialboot20:43
nickoeBooting from serial...20:43
nickoePress Q or ESC to abort boot completely.20:43
nickoesL5DdSMmkekro20:43
nickoe[FLTERM] Received firmware download request from the device.20:43
nickoe[FLTERM] Uploading kernel (218752 bytes)...20:43
nickoe2%20:43
nickoewopps20:43
nickoeI meant to paste https://dpaste.com/CM532M73Y20:43
tpbTitle: dpaste: CM532M73Y (at dpaste.com)20:43
mithroI expect it'll fail20:44
nickoemithro: Sorry, but I am not sure what output you are refferint to for the tail of the output of  ./scripts/build-micropython.s20:45
nickoe*reffering20:45
nickoeoh, referring :D20:45
nickoeif just I could spell20:45
*** futarisIRCcloud has quit IRC20:46
mithroGiven the current state of things the basys is just *not* a good platform to be used here -- There are just too many things on the basys board that do not work like every other platform20:46
nickoeWhy is it that different?20:47
nickoeOr rather, what makes it that different?20:47
mithronickoe: I'm unclear what is being used as the "main memory" on the basys3 -- as it doesn't have external DDR or the big SP RAM blocks that the ice40up5k has... <------20:48
nickoemithro: it appers to use flash, https://github.com/timvideos/litex-buildenv/blob/master/targets/basys3/base.py#L84-L9120:49
nickoeAs far as I understand it.20:49
nickoeI have this board as well, https://www.enclustra.com/en/products/fpga-modules/mars-ax3/ , but I am waiting for a JTAG for it20:50
tpbTitle: Enclustra FPGA Solutions | Mars AX3 | Xilinx Artix-7 28nm FPGA Module | 7A35T | 7A50T | 7A100T (at www.enclustra.com)20:50
nickoeMaybe I could do more in simulation for that somehow?20:51
mithronickoe: The Arty A7 is the best / most well tested platform for a beginner who wants to use Xilinx Artix-720:51
nickoeyeah, well, but unfortunately I don't have one of those :(20:52
nickoesame issue with that as you predicted.21:20
somlozyp: thanks, that makes sense... either way, I emailed my picture and story to the folks at lambdaconcepts, we'll see if/when they get back to me21:23
nickoemithro: the AX3 appears to have a XC7A35T-1CSG324I21:24
nickoesomlo: Story?21:24
nickoenot sure what the -1 before the CSG means.21:31
zypspeed grade 121:31
nickoexc7a35tcsg324-1  ... but that is the same -1 as the notation used in prjxray-db?21:32
nickoehttps://github.com/SymbiFlow/prjxray-db/tree/master/artix7/xc7a35tcsg324-1 ?21:32
zypthat sounds likely21:32
nickoeok21:32
somlonickoe: not a very exciting story -- I ended up damaging the micro-usb port on my ecpix5 due to some weak soldering done by the PCB shop that ended up fabricating the board22:07
nickoemm, shite happens22:08
zypsomlo, looking at it, I won't be surprised if mine ends up suffering the same fate22:14
daveshahYep tabs on mine look a bit ropey too22:15
nickoeis it surface mount only?22:15
daveshahyeah22:21
daveshahwhich can be OK if done properly (e.g. the icebreakers)22:21
nickoeare the pads too small on the ecpix5?22:22
daveshahlooks like the solder just didn't attach well for some reason22:23
zypdaveshah, because the socket is not located properly, the flange should have been past the board edge: https://bin.jvnv.net/file/Rohhx.jpg22:23
nickoeugh22:24
nickoewould have been nicer with usb c :D22:24
zypabsolutely22:24
nickoeeven if just usb 2.022:24
zypthat's why they make 14-pin usb-c sockets22:25
nickoejust remember to connect both "sides" of the d+ and d- lines on the board22:25

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!