Saturday, 2023-09-02

*** tpb <[email protected]> has joined #litex00:00
*** j4cbo <j4cbo!sid186930@2a03:5180:f:1::2:da32> has quit IRC (Server closed connection)00:40
*** j4cbo <[email protected]> has joined #litex00:40
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)01:00
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has joined #litex01:01
*** Degi <[email protected]> has quit IRC (Ping timeout: 245 seconds)01:17
*** Degi <[email protected]> has joined #litex01:17
*** Emantor <[email protected]> has quit IRC (Quit: ZNC - http://znc.in)01:20
*** Emantor <[email protected]> has joined #litex01:21
*** gruetzkopf <gruetzkopf!~quassel@wireguard/tunneler/gruetzkopf> has quit IRC (Server closed connection)01:31
*** gruetzkopf <gruetzkopf!~quassel@wireguard/tunneler/gruetzkopf> has joined #litex01:31
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)03:05
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has joined #litex03:05
*** tumbleweed <tumbleweed!~stefanor@ubuntu/member/tumbleweed> has quit IRC (Server closed connection)03:25
*** tumbleweed <tumbleweed!~stefanor@ubuntu/member/tumbleweed> has joined #litex03:26
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)05:09
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has joined #litex05:10
*** shorne <[email protected]> has quit IRC (Read error: Connection reset by peer)05:35
*** hrberg_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)05:42
*** hrberg <[email protected]> has joined #litex05:45
*** shorne <[email protected]> has joined #litex05:46
*** zyp <[email protected]> has quit IRC (Server closed connection)06:42
*** zyp <[email protected]> has joined #litex06:42
*** lexano <[email protected]> has quit IRC (Ping timeout: 246 seconds)07:09
*** shorne <[email protected]> has quit IRC (Read error: Connection reset by peer)07:22
*** shorne <[email protected]> has joined #litex07:22
*** lexano <[email protected]> has joined #litex07:23
*** mlaga97_ <mlaga97_!~quassel@user/mlaga97> has quit IRC (Server closed connection)07:52
*** mlaga97 <mlaga97!~quassel@user/mlaga97> has joined #litex07:52
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)09:19
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has joined #litex09:19
josuahThis happened to me in another context the same day (yesterday)10:58
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)11:24
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has joined #litex11:24
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)13:29
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has joined #litex13:29
*** indy <[email protected]> has quit IRC (Ping timeout: 248 seconds)14:08
*** marker5a <[email protected]> has joined #litex14:26
*** tpw_rules <[email protected]> has quit IRC (Server closed connection)14:27
*** tpw_rules <[email protected]> has joined #litex14:27
marker5aHello everyone... relatively n00b here... newish to FPGAs and newer to Litex.  I've got an Alchitry Cu board and I'm trying to load firmware onto my setup.  I created an SoC using my base.py (https://pastebin.com/xfmU6E3g).  When I run base.py --build --flash, it flashes fine and I can modify memory to toggle LEDs and send data out over UART, so that all seems good.  I wrote a simple c program that literally sets the led register to a value of 1... quikc and14:32
marker5a dirty (https://pastebin.com/YN5H9cv3).14:32
marker5aI run litex_term --kernel=firmware/firmware.bin /dev/ttyUSB1 --safe (have to do safe otherwise I get CRC error) and I get liftoff but it doesn't do anything.  I tried some other examples to run a console in firmware but it's not working.  My guess is that the firmware is being loaded maybe into the wrong address and I'm not really sure where to start poking around, so I'm sort of looking for pointers to help get this thing rolling14:32
marker5aalso, just to clarify, I did also try running the examples from the litex-boards repo/folder.  I did a ./alchitry_cu.py --build --cpu-type=picorv32 --flash in the targets folder of litex-boards, then ran make in the demo folder of litex but modified the build direcotry to point to the alchitry_cu build directory in the litex-boards repo and I get similar behavior... it shows iftoff but nothing after14:43
marker5aand if this is suited for a github issue, I can go that route too, just don't like unneccesarily flooding github... would rather flood irc :)14:48
*** unkraut <[email protected]> has quit IRC (Server closed connection)15:00
*** unkraut <[email protected]> has joined #litex15:00
*** indy_ <[email protected]> has joined #litex15:01
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)15:34
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has joined #litex15:34
josuahHello marker5a16:57
josuahdo you have access to the bootloader?17:01
josuahmem_list and mem_dump can help to check the addresses and make sure the content is the expected one17:01
josuahHow did you build the firmware? You might have a firmware.map file that contains the description of the memories configured in the linker script.17:03
josuahhttps://pastebin.com/xfmU6E3g line 180: prog.flash(bios_flash_offset, f"{build_dir}/../../firmware/firmware.bin")17:06
tpbTitle: #!/usr/bin/env python3## This file is part of LiteX-Boards.## Copyrigh - Pastebin.com (at pastebin.com)17:06
josuahhere you could keep that on, and configure another address instead of `bios_flash_offset`, then simply check, with the bios/bootloader, that the memory is there and has the right data17:07
josuahthen, once you are there, you would know the full memory map, and would be able to check that this memory map matches your firmware.map17:08
josuahYou can also compare the bios.elf and firmware.elf's memory map with objdump17:09
josuahs/objdump/readelf -a/17:09
josuahwishing you luck, let us know how it goes!17:10
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)17:10
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has joined #litex17:10
*** shorne <[email protected]> has quit IRC (Read error: Connection reset by peer)18:31
*** shorne <[email protected]> has joined #litex18:36
mithroBTW People here might find the blog at https://chipsandcheese.com/ interesting19:09
tpbTitle: Chips and Cheese – The Devil is in the Details (at chipsandcheese.com)19:09
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)19:15
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has joined #litex19:15
josuahmithro: thank you for this heirloom! feel free to keep them coming :)19:46
*** nickoe41 <nickoe41!~nickoe21@2a06:4004:21c3::cf9> has joined #litex20:17
*** nickoe21 <nickoe21!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Ping timeout: 246 seconds)20:21
*** alanvgreen <[email protected]> has quit IRC (Server closed connection)20:21
*** alanvgreen <[email protected]> has joined #litex20:21
marker5aThanks @josuah, I'll go through those items and see if I can figure out what's going on... appreciate the info.  Unfortunately, I'll have to dig in tomorrow but if I find something that seems useful, I'll report back here and on github... thanks for your time!22:06
*** nickoe41 <nickoe41!~nickoe21@2a06:4004:21c3::cf9> has quit IRC (Quit: Client closed)22:21
*** nickoe41 <nickoe41!~nickoe41@2a06:4004:21c3::cf9> has joined #litex22:21
*** gurki <gurki!~gurki@user/gurki> has quit IRC (Server closed connection)22:33
*** gurki <gurki!~gurki@user/gurki> has joined #litex22:33
josuahmarker5a: feel free to ask here some more as you go :)22:48

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