--- Log opened Mon Sep 08 00:00:43 2014 | ||
poke53281 | stekern: Switched to 16bpp. scummvm is really much much faster. | 03:50 |
---|---|---|
poke53281 | I also added toppler, a jump and run game. | 03:50 |
stekern | poke53281: not really, I have never seen that. What are you compiling? Just looking at the code, the assert is of the "can't happen type", so something must have gone terribly wrong | 04:42 |
poke53281 | dunelegacy | 04:45 |
poke53281 | the funtion is in mmath.cpp | 04:45 |
stekern | hardfloat have got a lot less testing than softfloat though, so I won't be surprised if you stumble on some bugs in that area | 04:45 |
poke53281 | they try to figure out, whether an extended floating point format is used. (long double) | 04:45 |
poke53281 | No, I don't activate hard-float | 04:46 |
poke53281 | That's the point | 04:46 |
stekern | hmm, ok | 04:46 |
stekern | then that's even weirder | 04:46 |
poke53281 | No, problem. I investigate myself. I just decided to wait and ask you. | 04:47 |
poke53281 | the code breaks anyhow with an unaligned access. :) | 04:47 |
stekern | you can check from where it's called, or1k_output_bf, or1k_output_cmov or or1k_expand_int_compare | 04:48 |
stekern | as a start | 04:48 |
poke53281 | Will do the next eays | 04:51 |
poke53281 | days | 04:51 |
stekern | I wonder if a smaller testcase with just that will expose the bug | 04:55 |
poke53281 | I guess. At least for the whole function. It's kind of crazy: http://pastie.org/9535296 | 04:58 |
poke53281 | remove the "return false". That's by me | 04:59 |
stekern | yeah, I already copy-pasted the relevant parts from sf | 05:03 |
stekern | http://pastie.org/9535305 | 05:05 |
stekern | but that compiles fine for me | 05:05 |
poke53281 | with -O3 ? | 05:05 |
poke53281 | Oh sorry. Looks like, there is a -mhard-float. | 05:06 |
poke53281 | But not by me | 05:06 |
stekern | or1k-linux-musl-g++ -O3 isinf.cpp -S -o - | 05:06 |
poke53281 | add -mhard-float | 05:06 |
stekern | ok, that makes more sense then | 05:07 |
stekern | yes, then it crashes here too | 05:07 |
poke53281 | Ahh, the -mhard-float comes from sdl-config probably. | 05:07 |
poke53281 | Yes, I should remove hard-float from sdl-config | 05:08 |
stekern | but, it's kind of good that you run stuff with hard-float, exposing bugs like this ;) | 05:09 |
poke53281 | I always wonder, if the fpu we implement is really sufficient. | 05:11 |
poke53281 | E. g. division by zero exception or so. | 05:11 |
jagadeesh | hi im new to openrisc, i got led blink working from this link http://www.elec4fun.fr/2011-03-30-10-16-30/2012-08-22-20-50-31/or1200-barebox-on-de1 how can i proceed further with c program | 07:23 |
jagadeesh | sorry i am new here is there anyone could help me out | 07:26 |
stekern | jagadeesh: you'll need a toolchain with a c compiler | 07:28 |
stekern | instructions on how to build one can be found here: http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Newlib_toolchain_.28or1k-elf.29 | 07:28 |
jagadeesh | i installed the toolchain and the compiler | 07:29 |
stekern | ok, great | 07:29 |
stekern | then you just need some code to compile ;) | 07:29 |
jagadeesh | can you help me how to access gpios | 07:30 |
stekern | they are just memory mapped devices, so you access them as regular memory addresses | 07:30 |
jagadeesh | sir can u point me to some example or reference designs | 07:31 |
stekern | usually they are located at 0x91000000, so to set all 8 bits to outputs: | 07:32 |
stekern | and set them to 1 | 07:32 |
stekern | *((uint8_t *)0x91000000) = 0xff; *((uint8_t *)0x91000001) = 0xff; | 07:32 |
jagadeesh | #include <stdio.h> | 07:33 |
jagadeesh | #define writeGPIO(addr,val) (*(unsigned char*) (addr)=(val)) | 07:33 |
jagadeesh | int main () | 07:33 |
jagadeesh | { | 07:33 |
jagadeesh | writeGPIO(0x91000000,0Xff); | 07:33 |
jagadeesh | writeGPIO(0x91000000,0xaa); | 07:33 |
jagadeesh | return 0; | 07:33 |
jagadeesh | } | 07:33 |
jagadeesh | sir i tried with the above code | 07:33 |
stekern | please use http://pastie.org/ or similar | 07:33 |
jagadeesh | but i could not get it working.. please bare with me | 07:33 |
stekern | what does writeGPIO do? | 07:33 |
stekern | ah, sorry it was in what you pasted | 07:34 |
jagadeesh | http://pastie.org/9535634 | 07:34 |
stekern | you need to set them to outputs | 07:34 |
stekern | i.e.: *((uint8_t *)0x91000001) = 0xff; | 07:35 |
poke53281 | I guess, the mmu is off :) | 07:36 |
stekern | poke53281: in response to? ;) | 07:37 |
jagadeesh | sir i'm very new | 07:37 |
jagadeesh | some basic depth tutorial would help me....... i was using fusesoc to build the system | 07:38 |
stekern | http://pastie.org/9535643 | 07:38 |
stekern | to modify your program | 07:38 |
stekern | the gpio is located at address 0x91000000 and register 0 is the data register and register 1 the direction register | 07:39 |
stekern | and 1 means output and 0 input | 07:39 |
stekern | default is input, so you must set the bits connected to the gpio you want as outputs to 1 in register 1 | 07:40 |
jagadeesh | pls a example would help me | 07:41 |
jagadeesh | ok i got it working thank you stekern | 07:44 |
poke53281 | http://abstrusegoose.com/474 | 07:45 |
jagadeesh | can u give me a document for the registers info, something like a datasheet | 07:45 |
jagadeesh | How to store my oprsoc software.elf and system.sof in altera epcs memory | 08:32 |
stekern | poke53281: lol | 09:09 |
jagadeesh | O:-) | 09:19 |
stekern | jagadeesh: wait a sec and I'll dig up some notes on the subject | 09:39 |
stekern | jagadeesh: this is the commands to put linux and u-boot on the epcs of de0 nano | 09:43 |
stekern | http://pastie.org/7340535 | 09:43 |
stekern | and this is how the .cof looked like: http://oompa.chokladfabriken.org/tmp/orpsoc.cof | 09:43 |
stekern | for baremetal, skip Linux and threat the baremetal program as u-boot | 09:44 |
jagadeesh | k thank you alot | 09:45 |
jagadeesh | ill try this out | 09:45 |
olofk | Aaarrggghhh... stupid windows drivers! You are driving me crazy | 10:33 |
hesham | Does the vmlinux image (git://git.openrisc.net/stefan/linux) size only 5.4M ? | 11:29 |
hesham | Well yes, seems like it's only 5.4M size, and running on or1ksim now. Will this image run on Atlys board? | 11:32 |
stekern | hesham: yes | 11:39 |
hesham | stekern: Thanks, for or1ksim it got stuck after "Configuring loopback device" line, and when I hit "Ctrl + C" I got, "^CPlease press Enter to activate this console. (sim)" and it returns to or1ksim | 11:41 |
stekern | yes, but that's just because you are looking at the "debug output" of or1ksim, and you are not connected to the console | 11:42 |
stekern | try running 'telnet localhost 10084' from another terminal | 11:43 |
hesham | Connection refused :/ | 11:44 |
stekern | perhaps 'monitor' is a better word than 'debug output' | 11:44 |
stekern | hesham: are you running or1ksim at the same time? | 11:45 |
hesham | Well, I was not, then I ran them at the same time, and I got the command prompt, thanks stekern :) | 11:45 |
stekern | I have exactly this problem now: http://emacs.1067599.n5.nabble.com/bug-16894-24-1-Text-indentation-cursor-position-messed-up-td315464.html | 12:45 |
olofk | Are you using the gtk backend, readline or something else? | 13:32 |
stekern | I experience it in -nw mode | 13:38 |
--- Log closed Tue Sep 09 00:00:44 2014 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!