Sunday, 2021-09-12

*** tpb <[email protected]> has joined #litex00:00
jevinskie[m]It’s a good idea though! The litex peripherals would probably be pretty simple to add to qemu01:38
*** Degi_ <[email protected]> has joined #litex03:52
*** Degi <[email protected]> has quit IRC (Ping timeout: 260 seconds)03:53
*** Degi_ is now known as Degi03:53
*** Martoni42 <Martoni42!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has joined #litex04:49
*** Coldberg <[email protected]> has quit IRC (Ping timeout: 265 seconds)04:51
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 pcie05:36
sajattack[m]and same for storage05:37
*** Melkhior <Melkhior!~Melkhior@2a01:e0a:1b7:12a0:225:90ff:fefb:e717> has quit IRC (Quit: Leaving)06:15
*** Melkhior <Melkhior!~Melkhior@2a01:e0a:1b7:12a0:225:90ff:fefb:e717> has joined #litex06:24
jevinskie[m]A stream multiplexer would be cool to let you use *bone and Ethernet etc over one litepcie stream06:36
sajattack[m]yeah06:40
*** Martoni42 <Martoni42!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has quit IRC (Ping timeout: 252 seconds)06:42
*** Coldberg <[email protected]> has joined #litex10:48
keesjbuildroot is pretty good (designed) to be able to cross compile. What is the reason to run it in qemu ?11:01
*** Coldberg <[email protected]> has quit IRC (Ping timeout: 245 seconds)11:35
*** futarisIRCcloud <[email protected]> has joined #litex12:51
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)13:40
*** TMM_ <[email protected]> has joined #litex13:40
*** Martoni42 <Martoni42!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has joined #litex18:07
*** Martoni42 <Martoni42!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has quit IRC (Ping timeout: 245 seconds)19:01
*** pftbest <[email protected]> has quit IRC (Remote host closed the connection)19:52
*** pftbest <[email protected]> has joined #litex20:07
*** pftbest <[email protected]> has quit IRC (Ping timeout: 252 seconds)20:12
*** pftbest <[email protected]> has joined #litex21:17
*** pftbest <[email protected]> has quit IRC (Remote host closed the connection)21:17
*** tpw_rules <[email protected]> has quit IRC (Ping timeout: 250 seconds)21:27
*** tpw_rules <[email protected]> has joined #litex21:27
*** pftbest <[email protected]> has joined #litex21:33
*** pftbest <[email protected]> has quit IRC (Ping timeout: 260 seconds)21:37
*** Coldberg <[email protected]> has joined #litex21:59
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 bugs22:12
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 error22:13
sajattack[m]https://hastebin.com/uceniwicos.php22:13
tpbTitle: hastebin (at hastebin.com)22:13
jevinskie[m]Does rust still do stack probing?22:13
sajattack[m]maybe?22:14
sajattack[m]dunno22:14
sajattack[m]if I use a static str instead of a heap string it's totally fine22:15
jevinskie[m]Unclear for riscv. https://github.com/rust-lang/rust/issues/43241 hmm then it’s likely not that22:16
jevinskie[m]This is a Linux binary not bare metal?22:17
jevinskie[m]Oh then that’s just weird =\22:17
sajattack[m]yes it's std linux22:18
sajattack[m]https://hastebin.com/sajifuqifa.yaml these are the errors if you think you can glean anything 22:18
tpbTitle: hastebin (at hastebin.com)22:18
sajattack[m]I'm just using -Zbuild-std flag on the riscv32gc-unknown-linux-gnu target22:18
sajattack[m]with this linker https://github.com/riscv-software-src/riscv-gnu-toolchain22: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:19
jevinskie[m]But the fault addr is page zero…22:20
jevinskie[m]Google fu for cause 0xf is failing, I guess that needs some code spelunking and maybe riscv manual to decode -_-22:23
soreari think it is 3/1, look at the libc load address on the first line...22:23
jevinskie[m]Good point!22:23
soreartable 3.6, mcause values, "15 Store/AMO page fault"22:24
sorearyou've pretty clearly got a null pointer deref but without symbols it's hard to say more, do you have a working gdb22:26
jevinskie[m]I’m glad we have a human encyclopedia here, thanks :)22:26
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
sorearyou don't need a special gateware to run a native linux build of gdb *in* the riscv environment22:29
sajattack[m]oh22:30
sajattack[m]well I don't have that either22:30
sorearyou would need one for tethered debugging, but that's not very useful with linux22:30
sajattack[m]is it easy to add gdb to the buildroot?22:30
sorearif it isn't that should be fixed22:31
sajattack[m]I only see binutils in the menuconfig22:31
sajattack[m]I guess I'll try to cross-compile it22:32
*** Coldberg <[email protected]> has quit IRC (Remote host closed the connection)22:35
*** Coldberg <[email protected]> has joined #litex22:35
jevinskie[m]Does buildroot binutils include gdb? Gdb source lives in the binutils git repo at least22:45
sajattack[m]don't think so22:45
jevinskie[m]crosstool-ng can build it for you easily :)22:45
sajattack[m]ugh it's complaining because I don't have GMP for rv3222:51
sajattack[m]guess I'll give crosstool a go22:52
sajattack[m]I installed crosstool and ctl-ng menuconfig doesn't have a riscv option23:02
*** geertu <[email protected]> has quit IRC (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 probably23:05
*** alainlou <[email protected]> has joined #litex23:17
*** geertu <[email protected]> has joined #litex23:21
jevinskie[m]Did you enable experimental targets? It might not yet be in the packaged version in your is23:24
jevinskie[m]https://github.com/crosstool-ng/crosstool-ng/blob/master/config/arch/riscv.in23:25
sajattack[m]thanks23:52
sajattack[m]it's building now23:52

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