Tuesday, 2020-04-14

*** tpb has joined #litex00:00
*** Degi has quit IRC00:29
*** Degi has joined #litex00:30
Findethat's awesome scanakci01:23
Findemust've been a long simulation01:24
*** CarlFK has quit IRC01:53
*** CarlFK has joined #litex02:04
john_k[m]Is there a good example of how to using litex software libraries to create a loadable binary?02:42
john_k[m]* Is there a good example of how to use litex software libraries to create a loadable binary?02:43
john_k[m]Skip: what’s the actual error?03:14
*** awordnot has joined #litex03:20
Skipself.register_mem("emulator_ram", self.mem_map["emulator_ram"], self.emulator_ram.bus, size)03:28
SkipI think I got past that.  It seems that emulator_ram wasn't in emulator_ram.  I added it and now it builds, but I can't get linux to boot.03:29
SkipAfter loading linux ramfs, etc (which takes forever at 115200) I get03:30
Skip[LXTERM] Booting the device.03:30
Skipand then garbage.03:30
SkipI'll bang on it more tomorrow.  I'm brand new to litex so I have little clue, but at least it's doing *something* !03:31
john_k[m]I meant what is the error that python spits out03:36
john_k[m]You just showed the line but now what python was complaining about03:37
john_k[m]* You just showed the line but not what python was complaining about03:37
scanakcithanks @Finde, @somlo03:51
scanakciit roughly takes 2 hours until asking for username/password03:52
scanakciTyping username, password is really painful. I gave up and decide to switch to the FPGA03:53
scanakciOne thing that I observe is that LiteX converts the bbl into a memory file a little bit wrong. For a reason, first 1024 lines of memory file is wrong and I needed to manually modify the memory file.03:54
scanakciI am using an outdated version, maybe the most recent version will convert it properly :)03:55
*** anuejn_ has joined #litex04:33
*** vup2 has joined #litex04:34
*** vup has quit IRC04:40
*** anuejn has quit IRC04:40
*** Claude has quit IRC04:40
*** HoloIRCUser2 has joined #litex05:30
*** HoloIRCUser1 has quit IRC05:34
*** Skip has quit IRC06:35
*** HoloIRCUser1 has joined #litex07:07
*** HoloIRCUser2 has quit IRC07:09
*** xobs has quit IRC08:39
*** david-sawatzke[m has quit IRC08:39
*** abeljj[m] has quit IRC08:39
*** sajattack[m] has quit IRC08:39
*** synaption[m] has quit IRC08:39
*** disasm[m] has quit IRC08:39
*** john_k[m] has quit IRC08:39
*** xobs has joined #litex08:52
*** futarisIRCcloud has quit IRC09:05
*** synaption[m] has joined #litex09:34
*** sajattack[m] has joined #litex09:34
*** abeljj[m] has joined #litex09:34
*** disasm[m] has joined #litex09:34
*** david-sawatzke[m has joined #litex09:34
*** john_k[m] has joined #litex09:34
_florent_Great scanakci for Linux on BlackParrot, please open an issue if you found something wrong in the simulation09:34
_florent_scanakci: it's now also possible to run the simulation with LiteDRAM and with a DRAM model that could match the configuration you are going to use on hardware09:35
_florent_scanakci: that could be the next step before running on real hardware09:35
*** Claude has joined #litex09:36
_florent_scanakci: imagine you want to run a configuration similar to the Arty board, you can do: litex_sim --with-sdram --sdram-module=MT48LC16M16 --sdram-data-width=16 --sdram-init=your_binary09:38
_florent_john_k[m]: if you want to create firmware and load if to the SoC, you could have a look at: https://github.com/litex-hub/fpga_101/blob/master/lab004/README.md10:10
tpbTitle: fpga_101/README.md at master · litex-hub/fpga_101 · GitHub (at github.com)10:10
john_k[m]Thanks florent, I’ll have a look soon10:34
*** proteusguy has joined #litex10:58
somloscanakci: I use `riscv64-unknown-linux-gnu-objcopy -O binary bbl boot.bin` after building the bbl blob, that then loads fine on litex (at least with rocket). Not sure that's your problem, but worth a try11:30
*** lambda has quit IRC11:41
*** lambda has joined #litex11:44
*** lambda has joined #litex11:47
*** skip has joined #litex12:10
*** ilesser has joined #litex12:21
*** vup2 is now known as vup12:23
*** ilesser has quit IRC13:18
*** sorear has quit IRC13:50
*** sorear has joined #litex13:52
*** CarlFK has quit IRC15:37
*** CarlFK has joined #litex17:21
*** futarisIRCcloud has joined #litex17:31
*** skip has quit IRC17:38
scanakcisomlo: thanks. This actually fixed the issue on the simulation. I could simulate boot.bin directly after using objcopy. On FPGA, I was getting traps before now I do not.  I cannot print sth to the screen, yet. I am asked to add a host mmio device to make it work.17:41
scanakci_florent_: that is actually really nice feature to have. If Linux does not boot up on FPGA, I think I will update my LiteX to try this feature.17:43
*** Skip has joined #litex17:57
*** HoloIRCUser has joined #litex18:10
*** HoloIRCUser1 has quit IRC18:13
somloscanakci: I'm not sure I follow the "print to screen" issue -- I had to modify bbl to support the litex UART, then used `CONFIG_HVC_RISCV_SBI=y` to have linux trap into bbl for console i/o18:48
somloscanakci: here's what I changed in bbl: https://github.com/riscv/riscv-pk/compare/master...gsomlo:gls-litex-devel18:50
tpbTitle: Comparing riscv:master...gsomlo:gls-litex-devel · riscv/riscv-pk · GitHub (at github.com)18:50
somloyou may find the UART patch useful (unless I misunderstood what the problem is) :)18:50
scanakcioh sorry for the confusion. You are absolutely correct :)18:51
somlo(of course, it may be possible to support the litex uart natively in the linux kernel, but I figured I had more urgent problems to deal with first :) )18:51
scanakciThanks for pointing me that. I was about to investigate how to support Litex uart18:51
somloyou'll need to pass a DTB (or compile one in, like I do) for BBL, which includes a description of the uart18:54
*** Skip has quit IRC19:01
*** futarisIRCcloud has quit IRC19:41
*** Skip has joined #litex19:46
*** FFY00 has quit IRC20:10
*** FFY00 has joined #litex20:11
*** CarlFK has quit IRC20:30
*** HoloIRCUser1 has joined #litex22:06
*** HoloIRCUser has quit IRC22:06
*** darren099 has joined #litex23:15
*** HoloIRCUser has joined #litex23:33
*** HoloIRCUser1 has quit IRC23:36
*** CarlFK has joined #litex23:37

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