--- Log opened Mon Oct 31 00:00:21 2016 | ||
N0xsys | ola! | 09:44 |
---|---|---|
ZipCPU | Ola! | 09:46 |
N0xsys | We are 4 students working on the openrisc. I've sent a mail to Julius and he replied me few days ago. Just wanted to see what your irc looks like ! =) | 09:51 |
ZipCPU | Welcome! | 09:53 |
ZipCPU | What platform are you working on? One of Digilent's Nexys boards? | 09:54 |
N0xsys | The de0-nano | 09:55 |
N0xsys | from terasic/altera | 09:55 |
ZipCPU | Heheh ... I figured from your screen name that you were working on a Nexys board. Silly me. | 09:55 |
N0xsys | Haha that's just my usual nickname | 09:56 |
N0xsys | Our project is for the embedded security challenge organized by NYU. This year this is about OpenRISC and when I e-mailed Julius he said he wasn't informed of that. I was quite surprised. | 09:59 |
ZipCPU | Care to tell everyone what the basic challenge is? | 10:01 |
N0xsys | The first step was to write two software attacks based on control flow integrity and/or memory corruption (ie buffer overflow). If selected, the next step is to write a countermeasure against these attacks. For the final phase, some attacks will be run on the modified architecture. | 10:05 |
ZipCPU | Hmm ... sounds like you'd need a preliminary attack just to know someone was using an OpenRISC computer in the first place. | 10:07 |
ZipCPU | Without that, the buffer overflow attack wouldn't do what you'd want it to. | 10:07 |
N0xsys | You mean to identify the target processor ? | 10:11 |
ZipCPU | Yes. | 10:13 |
N0xsys | cause for the esc you assume the target is OpenRisc | 10:13 |
ZipCPU | Is that part of the ESC criteria? If so, then never mind. | 10:14 |
N0xsys | Yes it is | 10:14 |
N0xsys | We've already been selected and we are now writing a security block to counter buffer overflow attacks =) | 10:15 |
ZipCPU | Good luck! | 10:16 |
N0xsys | Thanks! I'm really surprised OpenRISC community has not been informed of that | 10:18 |
ZipCPU | I'm sure the OpenRISC community would love to have you present your results at ORCONF next year, whether you win or not. | 10:20 |
N0xsys | I see this year the conf stands in italy. They stand usually in Europe ? | 10:31 |
Finde | seems that way | 10:38 |
ZipCPU | I've heard that the next one will be in Britain. We'll see if that rumor is correct. | 10:41 |
ZipCPU | This years conference was early October, which is probably about when the next one will be. | 10:41 |
N0xsys | That's okay for us, we are from France ;) | 10:45 |
vidya | @ZipCPU: I'm facing problem with vcd generation in simulator..The simulations seems to never end | 12:24 |
ZipCPU | Hmm ... which simulator are you using? | 12:24 |
vidya | Verilator | 12:24 |
ZipCPU | mor1kx-generic? | 12:25 |
vidya | yes..At first i tried with hello.c it worked | 12:25 |
ZipCPU | Are you returning from your main function, or calling exit? | 12:25 |
ZipCPU | The example I have that works does both: exit(0); followed by return 0; Not sure which one was necessary ... | 12:26 |
vidya | returning from main function | 12:26 |
ZipCPU | Try calling "exit(0);" instead of returning ... see if that's the bug. | 12:27 |
vidya | ok i will try | 12:27 |
vidya | Not working ! | 12:29 |
ZipCPU | Ok ... is your program not exiting? | 12:30 |
vidya | There are about 6 Program headers after loading .elf file | 12:30 |
vidya | is that usual? because initially when it worked I had only 2 Program headers | 12:31 |
ZipCPU | Not sure ... but I doubt it is your problem. | 12:31 |
vidya | simulation not exiting | 12:33 |
vidya | VCD dump started (0) TOP.orpsoc_top.mor1kx0.bus_gen.ibus_bridge: Wishbone bus IF is B3_REGISTERED_FEEDBACK TOP.orpsoc_top.mor1kx0.bus_gen.dbus_bridge: Wishbone bus IF is B3_REGISTERED_FEEDBACK | 12:33 |
vidya | stuck at this | 12:33 |
ZipCPU | Is your simulation printing anything to the screen at all? | 12:34 |
ZipCPU | Do you have a stdout/console port up and running? | 12:34 |
vidya | No | 12:34 |
ZipCPU | I had that up and running, and passed my code off to SMDwrk/SMDhome. I haven't heard back from him whether he was successful (finally) in getting it to work. | 12:35 |
ZipCPU | Perhaps he can chime in here? | 12:36 |
vidya | How will console port help? | 12:37 |
ZipCPU | What are you trying to run? Are there "printf"s at all in your program? Console port would help by allowing you to place printf's into your program to see why your program isn't exitting. | 12:38 |
ZipCPU | You're not trying to run coremark, though, are you? Just a wild guess ... ? | 12:38 |
vidya | I have written simple c code to add two integers and print it | 12:40 |
vidya | and I'm not running coremark | 12:41 |
ZipCPU | Can you paste it anywhere for others to view? | 12:41 |
vidya | #include <stdio.h> | 12:42 |
ZipCPU | How about an on-line pasting service? | 12:42 |
vidya | #include <stdlib.h> | 12:42 |
vidya | ok thanks will try that | 12:42 |
vidya | http://www.heypasteit.com/clip/32MF | 12:43 |
vidya | Can you see it? | 12:44 |
ZipCPU | Yeah... THAT's what isn't exiting? | 12:44 |
vidya | yes | 12:44 |
ZipCPU | What does "c = a b;" mean? | 12:44 |
vidya | c= a+b | 12:44 |
vidya | it didnt work in paste-it | 12:45 |
ZipCPU | Is the plus present in your code? | 12:45 |
vidya | yes | 12:45 |
ZipCPU | Sorry ... gotta run here. I'm not sure what your problem is at this point. | 12:46 |
vidya | no problem.. thanks for the help anyways | 12:47 |
kc5tja | Any ELF should have one and only one program header. | 12:48 |
kc5tja | That there are six is a problem. | 12:49 |
kc5tja | The simulation is probably executing header code as if it were program code. | 12:49 |
vidya | oh is it?how can i debug this? | 12:49 |
kc5tja | I don't know. Probably best to ask on the sw-dev Google group/mailing list. | 12:50 |
kc5tja | Oh, sorry. | 12:50 |
kc5tja | This isn't RISC-V channel. ;) | 12:51 |
kc5tja | But, I'm sure OpenRISC has a comparable mailing list you can ask on. | 12:51 |
vidya | Ok, thanku :) | 12:54 |
-!- eliask_ is now known as eliask | 20:35 | |
--- Log closed Tue Nov 01 00:00:22 2016 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!