-!- slpz` is now known as slpz | 11:08 | |
Lampus|2 | I have very stupid question: Can I just replace onchip_ram to sdram w/b controller in minsoc? | 12:39 |
---|---|---|
juliusb | I'm no minsoc expert, but I'd say so | 12:39 |
juliusb | not sure how easy it'd be, though | 12:39 |
Lampus|2 | I have already tried it, but I set maximum (slowest) timings. Result: ERROR! WB bus error during burst write, address 0x0 (index 0x0), retrying | 12:43 |
Lampus|2 | As expected... =) | 12:45 |
juliusb | pgavin`: how's your binutils/gcc play going? | 16:45 |
pgavin` | juliusb: it's coming | 16:46 |
pgavin` | working on gcc now | 16:46 |
pgavin` | there was a relocation problem in binutils though too | 16:46 |
pgavin` | still trying to fix that | 16:46 |
pgavin` | jump targets were not being set correctly at link time | 16:47 |
pgavin` | but that might have been something I did | 16:47 |
juliusb | yes | 17:48 |
juliusb | I noticed that too! | 17:48 |
juliusb | a bit odd, some work and some down't | 17:48 |
juliusb | don't | 17:48 |
juliusb | that's the problem I was last working on | 17:49 |
juliusb | so it'd be great i you could figure out what that was | 17:49 |
juliusb | i saw it was only functions in the C, though | 17:49 |
juliusb | so maybe something weird with gcc too? | 17:49 |
pgavin` | juliusb: I think I figured it out | 18:06 |
pgavin` | it was a problem with the howtos in elf32-or1k.c | 18:06 |
juliusb | ah yeah | 18:09 |
juliusb | which one was it using? | 18:09 |
juliusb | there was serveral problems with those I found | 18:09 |
pgavin` | well | 18:10 |
pgavin` | in the howto for R_OR1K_INSN_REL_26 | 18:10 |
pgavin` | it's pcrel, but I'm pretty sure pcrel_offset needs to be true | 18:10 |
pgavin` | not entirely sure why | 18:10 |
juliusb | oh yeah | 18:11 |
pgavin` | but when prcel_offset is true, it subtracts the PC of the branch from the final value at link time | 18:11 |
pgavin` | which turned out to fix it :) | 18:11 |
juliusb | so it wasn't true, and needs to be? | 18:12 |
pgavin` | yeah, think so | 18:13 |
pgavin` | I also added 32-bit, 16-bit, and 8-bit pc-relative relocs | 18:13 |
pgavin` | but it needs to be false for those | 18:13 |
pgavin` | not entirely sure why, but it works :) | 18:13 |
juliusb | what are those relocs for? | 18:13 |
pgavin` | um | 18:13 |
pgavin` | if you do something like | 18:14 |
pgavin` | l0: .word .l1 - .l2 | 18:14 |
pgavin` | if l1 or l2 are in a different section or file, it will make a pc-rel reloc for that | 18:14 |
juliusb | oh yeah | 18:14 |
juliusb | ok | 18:14 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!