*** tpb has joined #litex | 00:00 | |
*** Degi has quit IRC | 00:29 | |
*** Degi has joined #litex | 00:30 | |
Finde | that's awesome scanakci | 01:23 |
---|---|---|
Finde | must've been a long simulation | 01:24 |
*** CarlFK has quit IRC | 01:53 | |
*** CarlFK has joined #litex | 02: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 #litex | 03:20 | |
Skip | self.register_mem("emulator_ram", self.mem_map["emulator_ram"], self.emulator_ram.bus, size) | 03:28 |
Skip | I 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 |
Skip | After loading linux ramfs, etc (which takes forever at 115200) I get | 03:30 |
Skip | [LXTERM] Booting the device. | 03:30 |
Skip | and then garbage. | 03:30 |
Skip | I'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 out | 03:36 |
john_k[m] | You just showed the line but now what python was complaining about | 03:37 |
john_k[m] | * You just showed the line but not what python was complaining about | 03:37 |
scanakci | thanks @Finde, @somlo | 03:51 |
scanakci | it roughly takes 2 hours until asking for username/password | 03:52 |
scanakci | Typing username, password is really painful. I gave up and decide to switch to the FPGA | 03:53 |
scanakci | One 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 |
scanakci | I am using an outdated version, maybe the most recent version will convert it properly :) | 03:55 |
*** anuejn_ has joined #litex | 04:33 | |
*** vup2 has joined #litex | 04:34 | |
*** vup has quit IRC | 04:40 | |
*** anuejn has quit IRC | 04:40 | |
*** Claude has quit IRC | 04:40 | |
*** HoloIRCUser2 has joined #litex | 05:30 | |
*** HoloIRCUser1 has quit IRC | 05:34 | |
*** Skip has quit IRC | 06:35 | |
*** HoloIRCUser1 has joined #litex | 07:07 | |
*** HoloIRCUser2 has quit IRC | 07:09 | |
*** xobs has quit IRC | 08:39 | |
*** david-sawatzke[m has quit IRC | 08:39 | |
*** abeljj[m] has quit IRC | 08:39 | |
*** sajattack[m] has quit IRC | 08:39 | |
*** synaption[m] has quit IRC | 08:39 | |
*** disasm[m] has quit IRC | 08:39 | |
*** john_k[m] has quit IRC | 08:39 | |
*** xobs has joined #litex | 08:52 | |
*** futarisIRCcloud has quit IRC | 09:05 | |
*** synaption[m] has joined #litex | 09:34 | |
*** sajattack[m] has joined #litex | 09:34 | |
*** abeljj[m] has joined #litex | 09:34 | |
*** disasm[m] has joined #litex | 09:34 | |
*** david-sawatzke[m has joined #litex | 09:34 | |
*** john_k[m] has joined #litex | 09:34 | |
_florent_ | Great scanakci for Linux on BlackParrot, please open an issue if you found something wrong in the simulation | 09: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 hardware | 09:35 |
_florent_ | scanakci: that could be the next step before running on real hardware | 09:35 |
*** Claude has joined #litex | 09: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_binary | 09: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.md | 10:10 |
tpb | Title: 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 soon | 10:34 |
*** proteusguy has joined #litex | 10:58 | |
somlo | scanakci: 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 try | 11:30 |
*** lambda has quit IRC | 11:41 | |
*** lambda has joined #litex | 11:44 | |
*** lambda has joined #litex | 11:47 | |
*** skip has joined #litex | 12:10 | |
*** ilesser has joined #litex | 12:21 | |
*** vup2 is now known as vup | 12:23 | |
*** ilesser has quit IRC | 13:18 | |
*** sorear has quit IRC | 13:50 | |
*** sorear has joined #litex | 13:52 | |
*** CarlFK has quit IRC | 15:37 | |
*** CarlFK has joined #litex | 17:21 | |
*** futarisIRCcloud has joined #litex | 17:31 | |
*** skip has quit IRC | 17:38 | |
scanakci | somlo: 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 #litex | 17:57 | |
*** HoloIRCUser has joined #litex | 18:10 | |
*** HoloIRCUser1 has quit IRC | 18:13 | |
somlo | scanakci: 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/o | 18:48 |
somlo | scanakci: here's what I changed in bbl: https://github.com/riscv/riscv-pk/compare/master...gsomlo:gls-litex-devel | 18:50 |
tpb | Title: Comparing riscv:master...gsomlo:gls-litex-devel · riscv/riscv-pk · GitHub (at github.com) | 18:50 |
somlo | you may find the UART patch useful (unless I misunderstood what the problem is) :) | 18:50 |
scanakci | oh 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 |
scanakci | Thanks for pointing me that. I was about to investigate how to support Litex uart | 18:51 |
somlo | you'll need to pass a DTB (or compile one in, like I do) for BBL, which includes a description of the uart | 18:54 |
*** Skip has quit IRC | 19:01 | |
*** futarisIRCcloud has quit IRC | 19:41 | |
*** Skip has joined #litex | 19:46 | |
*** FFY00 has quit IRC | 20:10 | |
*** FFY00 has joined #litex | 20:11 | |
*** CarlFK has quit IRC | 20:30 | |
*** HoloIRCUser1 has joined #litex | 22:06 | |
*** HoloIRCUser has quit IRC | 22:06 | |
*** darren099 has joined #litex | 23:15 | |
*** HoloIRCUser has joined #litex | 23:33 | |
*** HoloIRCUser1 has quit IRC | 23:36 | |
*** CarlFK has joined #litex | 23:37 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!