_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://libera.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
<cr1901> shorne: That's pretty good uptime
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #litex
Degi_ has joined #litex
Degi has quit [Ping timeout: 252 seconds]
Degi_ is now known as Degi
<shorne> darn, now after rebuilding linux wont boot, debug time
Martoni42 has joined #litex
<jevinskie[m]> I hate that! Same thing here, left a litex project for a month and now I’m driving conflicting values to a signal
<shorne> ok, it boots now, I am trying to boot the rootfs off the sdcard and it doesn't seem to like that maybe, let me try something else
<_florent_> shorne: nice for the uptime! Sorry to hear something broke, I don't think we made changes to the gateware in the last 2-3 months that could explain this, but if you can find a commit that still works and one that no longer works, I can look at this.
<_florent_> jevinskie[m]: Can you give more information? On which core do you have a driving conflict?
<sajattack[m]> I don't know what I did (probably screwed up my buildroot somehow) but opensbi reports the proper 8 core imafdc and linux (/proc/cpuinfo) reports a single ima core
<sajattack[m]> any ideas what I broke within buildroot?
<sajattack[m]> it's also reporting 55MB of RAM instead of 1GB
<jevinskie[m]> Oh this was my own design, not in litex core. I’ve since fixed the issue :)
<jevinskie[m]> One thing I can report is a build error in toolchain selection when switching from cpu-type != None to None. Was confusing at first but I know the automatic build refresh is a WIP
<jevinskie[m]> It was a bug in my altera jtag primitive addition to jtag.py. It works with ftdi adapters but my main goal is to get it working with usb blaster since so many are built in (e.g. DECA w/o another serial port). The timing seems to be off since it is sensitive to clones (that are still valid JTAG, just slow/weird) and jtag clock. Hopefully this breakout adapter for my saleae probe will help me find the root cause
<tpb> Title: Album — Postimages (at postimg.cc)
Martoni42 has quit [Ping timeout: 252 seconds]
<shorne> _florent_: nothing broke, I was playing with my dts and boot.json, I got it working now
<shorne> strange thing... my boot.json loads a boot.bin, or1k-mor1kx.dtb, rootfs.cpio.gz
<shorne> If I removed the rootfs.cpio.gz the boot fails
<shorne> if I add back a dummy file.. i.e. dummy-rootfs.cpio.gz with "dummy" in the content it works
<shorne> something strange with the boot loader... but I got it working
<shorne> 32-bit OpenRISC CPU with MMU integrated in a LiteX SoC
<shorne> Swap: 1907 0 1907
<shorne> Mem: 248 4 230 0 12 237
<shorne> total used free shared buff/cache available
<shorne> # free -m
<shorne> now I have a lot of free memory because I am not using ram disk
<shorne> and boot time is about 6 seconds until network service come up, no time wasted unpacking the rootfs
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex
<_florent_> shorne: ok good
<_florent_> jevinskie[m]: I'll look at the build issue with cpu_type = None, I think I also saw it this week
Martoni42 has joined #litex
Martoni42 has quit [Ping timeout: 260 seconds]
Coldberg has quit [Ping timeout: 260 seconds]
Martoni42 has joined #litex
Coldberg has joined #litex
Coldberg has quit [Ping timeout: 260 seconds]
Martoni42 has quit [Ping timeout: 252 seconds]
Coldberg has joined #litex
pauluzs has quit [Ping timeout: 256 seconds]
Coldberg has quit [Ping timeout: 260 seconds]
pauluzs has joined #litex
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex
peeps[zen] has joined #litex
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
peepsalot has quit [Ping timeout: 252 seconds]
Martoni42 has joined #litex
michalsieron has joined #litex
peepsalot has joined #litex
peeps[zen] has quit [Ping timeout: 252 seconds]
michalsieron has quit [Remote host closed the connection]
<Melkhior> sajattack[m]: Yes I was compiling natively - and yes I cross-compiled binutils & gcc to create the native tools. I also had to copy includes & some other stuff from a buildroot intermediate directory to the micro-sd card (which I use for boot & root)
<Melkhior> I use a somewhat patched GCC to test stuff (e.g. https://github.com/riscv-collab/riscv-gcc/pull/267 )
Martoni42 has quit [Ping timeout: 252 seconds]
Coldberg has joined #litex
<sajattack[m]> how big is the final compiler? I don't have external storage
<Melkhior> sajattack[m]: quite significant - too much to sensibly fit in a RAM-based filssystem. Plan B is to NFS-mount it, but you need Ethernet...
<Melkhior> There's some sort of ethernet-over-pcie available from Xilinx, but I don't think there's something similar for Litex
<sajattack[m]> yeah that's what I need
<sajattack[m]> that or some kind of breakout for the gpio on this thing to sd card
<sajattack[m]> or turn it into a pcie master and have it access my nvme xD
<sajattack[m]> directstorage
pftbest has quit [Read error: Connection reset by peer]
pftbest has joined #litex
<sajattack[m]> <sajattack[m]> "I don't know what I did (..." <- I think this was because I didn't update my dtb
pftbest has quit [Read error: Connection reset by peer]
pftbest has joined #litex
<sajattack[m]> is there a way to run our litex buildroot in qemu? I think it would be faster than litex sim
<sajattack[m]> I tried this and a few different variations of the same but just got no output
<sajattack[m]> sudo qemu-system-riscv32 -nographic -machine virt -kernel Image -append "root=/dev/vda ro console=ttyS0" -initrd rootfs.tar.gz
<sajattack[m]> ```
<sajattack[m]> ```
<sajattack[m]> also with -bios opensbi.bin
<sajattack[m]> and ttyLXU0
<jevinskie[m]> I don’t think qemu will have a tty driver for the litex console, will it? Unless you build whatever uart module QEMU emulates as well.
<sajattack[m]> I suppose not