00:00
tpb has quit [Remote host closed the connection]
00:00
tpb has joined #litex
01:38
<
jevinskie[m] >
It’s a good idea though! The litex peripherals would probably be pretty simple to add to qemu
03:52
Degi_ has joined #litex
03:53
Degi has quit [Ping timeout: 260 seconds]
03:53
Degi_ is now known as Degi
04:49
Martoni42 has joined #litex
04:51
Coldberg has quit [Ping timeout: 265 seconds]
05:36
<
sajattack[m] >
my friend wants to write some way of trapping ethernet on the litex board and forwarding it out to the host pc over pcie
05:37
<
sajattack[m] >
and same for storage
06:15
Melkhior has quit [Quit: Leaving]
06:24
Melkhior has joined #litex
06:36
<
jevinskie[m] >
A stream multiplexer would be cool to let you use *bone and Ethernet etc over one litepcie stream
06:40
<
sajattack[m] >
yeah
06:42
Martoni42 has quit [Ping timeout: 252 seconds]
10:48
Coldberg has joined #litex
11:01
<
keesj >
buildroot is pretty good (designed) to be able to cross compile. What is the reason to run it in qemu ?
11:35
Coldberg has quit [Ping timeout: 245 seconds]
12:51
futarisIRCcloud has joined #litex
13:40
TMM_ has joined #litex
18:07
Martoni42 has joined #litex
19:01
Martoni42 has quit [Ping timeout: 245 seconds]
19:52
pftbest has quit [Remote host closed the connection]
20:07
pftbest has joined #litex
20:12
pftbest has quit [Ping timeout: 252 seconds]
21:17
pftbest has joined #litex
21:17
pftbest has quit [Remote host closed the connection]
21:27
tpw_rules has quit [Ping timeout: 250 seconds]
21:27
tpw_rules has joined #litex
21:33
pftbest has joined #litex
21:37
pftbest has quit [Ping timeout: 260 seconds]
21:59
Coldberg has joined #litex
22:12
<
jevinskie[m] >
Anybody know how to keep quartus from optimizing away my signals? /* synthesize keep */ doesn’t work and the sdc constraints for the Ethernet clock nets fail (the port name would work but I don’t want to hack that)
22:12
<
sajattack[m] >
<keesj> "buildroot is pretty good (..." <- for me it would be to check if things are hardware bugs or software bugs
22:13
<
sajattack[m] >
also is there anything special about allocating heap memory in linux-litex? This rust code is segfaulting, and more complicated rust code is giving a malloc error
22:13
<
tpb >
Title: hastebin (at hastebin.com)
22:13
<
jevinskie[m] >
Does rust still do stack probing?
22:14
<
sajattack[m] >
maybe?
22:14
<
sajattack[m] >
dunno
22:15
<
sajattack[m] >
if I use a static str instead of a heap string it's totally fine
22:17
<
jevinskie[m] >
This is a Linux binary not bare metal?
22:17
<
jevinskie[m] >
Oh then that’s just weird =\
22:18
<
sajattack[m] >
yes it's std linux
22:18
<
tpb >
Title: hastebin (at hastebin.com)
22:18
<
sajattack[m] >
I'm just using -Zbuild-std flag on the riscv32gc-unknown-linux-gnu target
22:19
<
jevinskie[m] >
epc is program counter? 0x9 would seem to be a kernel addr no? Or is it a 3/1 GB split?
22:20
<
jevinskie[m] >
But the fault addr is page zero…
22:23
<
jevinskie[m] >
Google fu for cause 0xf is failing, I guess that needs some code spelunking and maybe riscv manual to decode -_-
22:23
<
sorear >
i think it is 3/1, look at the libc load address on the first line...
22:23
<
jevinskie[m] >
Good point!
22:24
<
sorear >
table 3.6, mcause values, "15 Store/AMO page fault"
22:26
<
sorear >
you've pretty clearly got a null pointer deref but without symbols it's hard to say more, do you have a working gdb
22:26
<
jevinskie[m] >
I’m glad we have a human encyclopedia here, thanks :)
22:29
<
sajattack[m] >
I tried to play with gdb the other day but it seems my gateware doesn't have the debug port compiled in?
22:29
<
sajattack[m] >
is there a litex flag to build that?
22:29
<
sorear >
you don't need a special gateware to run a native linux build of gdb
*in* the riscv environment
22:30
<
sajattack[m] >
well I don't have that either
22:30
<
sorear >
you would need one for tethered debugging, but that's not very useful with linux
22:30
<
sajattack[m] >
is it easy to add gdb to the buildroot?
22:31
<
sorear >
if it isn't that should be fixed
22:31
<
sajattack[m] >
I only see binutils in the menuconfig
22:32
<
sajattack[m] >
I guess I'll try to cross-compile it
22:35
Coldberg has quit [Remote host closed the connection]
22:35
Coldberg has joined #litex
22:45
<
jevinskie[m] >
Does buildroot binutils include gdb? Gdb source lives in the binutils git repo at least
22:45
<
sajattack[m] >
don't think so
22:45
<
jevinskie[m] >
crosstool-ng can build it for you easily :)
22:51
<
sajattack[m] >
ugh it's complaining because I don't have GMP for rv32
22:52
<
sajattack[m] >
guess I'll give crosstool a go
23:02
<
sajattack[m] >
I installed crosstool and ctl-ng menuconfig doesn't have a riscv option
23:05
geertu has quit [Ping timeout: 260 seconds]
23:05
<
sajattack[m] >
gotta run and buy coffee filters before the coffee shop closes, I'll be back in under an hour probably
23:17
alainlou has joined #litex
23:21
geertu has joined #litex
23:24
<
jevinskie[m] >
Did you enable experimental targets? It might not yet be in the packaged version in your is
23:52
<
sajattack[m] >
thanks
23:52
<
sajattack[m] >
it's building now