<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.
<skip>
After loading linux ramfs, etc (which takes forever at 115200) I get
<skip>
[LXTERM] Booting the device.
<skip>
and then garbage.
<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* !
<john_k[m]>
I meant what is the error that python spits out
<john_k[m]>
You just showed the line but now what python was complaining about
<john_k[m]>
* You just showed the line but not what python was complaining about
<scanakci>
thanks @Finde, @somlo
<scanakci>
it roughly takes 2 hours until asking for username/password
<scanakci>
Typing username, password is really painful. I gave up and decide to switch to the FPGA
<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.
<scanakci>
I am using an outdated version, maybe the most recent version will convert it properly :)
anuejn_ has joined #litex
vup2 has joined #litex
vup has quit [*.net *.split]
anuejn has quit [*.net *.split]
Claude has quit [Disconnected by services]
HoloIRCUser2 has joined #litex
HoloIRCUser1 has quit [Ping timeout: 256 seconds]
skip has quit [Remote host closed the connection]
HoloIRCUser1 has joined #litex
HoloIRCUser2 has quit [Ping timeout: 246 seconds]
xobs has quit [Quit: killed]
david-sawatzke[m has quit [Quit: killed]
abeljj[m] has quit [Quit: killed]
sajattack[m] has quit [Quit: killed]
synaption[m] has quit [Quit: killed]
disasm[m] has quit [Quit: killed]
john_k[m] has quit [Quit: killed]
xobs has joined #litex
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
sajattack[m] has joined #litex
synaption[m] has joined #litex
abeljj[m] has joined #litex
disasm[m] has joined #litex
david-sawatzke[m has joined #litex
john_k[m] has joined #litex
<_florent_>
Great scanakci for Linux on BlackParrot, please open an issue if you found something wrong in the simulation
<_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
<_florent_>
scanakci: that could be the next step before running on real hardware
Claude has joined #litex
<_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
<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
lambda has quit [Quit: WeeChat 2.7.1]
lambda has joined #litex
lambda has quit [Client Quit]
lambda has joined #litex
skip has joined #litex
ilesser has joined #litex
vup2 is now known as vup
ilesser has quit [Ping timeout: 240 seconds]
sorear has quit [Ping timeout: 240 seconds]
sorear has joined #litex
CarlFK has quit [Quit: Leaving.]
CarlFK has joined #litex
futarisIRCcloud has joined #litex
skip has quit [Remote host closed the connection]
<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.
<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.
skip has joined #litex
HoloIRCUser has joined #litex
HoloIRCUser1 has quit [Ping timeout: 240 seconds]
<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
<somlo>
you may find the UART patch useful (unless I misunderstood what the problem is) :)
<scanakci>
oh sorry for the confusion. You are absolutely correct :)
<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 :) )
<scanakci>
Thanks for pointing me that. I was about to investigate how to support Litex uart
<somlo>
you'll need to pass a DTB (or compile one in, like I do) for BBL, which includes a description of the uart
skip has quit [Remote host closed the connection]
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
skip has joined #litex
FFY00 has quit [Remote host closed the connection]
FFY00 has joined #litex
CarlFK has quit [Ping timeout: 265 seconds]
HoloIRCUser has quit [Read error: Connection reset by peer]