On Thu, Jul 4, 2013 at 5:32 PM, Andreas Fritiofson
<[email protected]> wrote:
>
> On Thu, Jul 4, 2013 at 9:32 PM, [email protected] <[email protected]>
> wrote:
>>
>> I'm using an Olimex ARM-USB-OCD. Target is a MIPS based router chip?
>> openocd seems to be working, it is just painfully slow. It took 15
>> minutes to download uboot.
>>
>> > load_image /home/apps/u-boot/uboot.bin 0x80200000 bin
>> 99772 bytes written at address 0x80200000
>> downloaded 99772 bytes in 900.955444s (0.108 KiB/s)
>>
>>
>>
>> source [find interface/arm-usb-ocd.cfg]
>
>
> For one thing, you should be using the ftdi adapter driver instead of the
> ft2232. If you configured OpenOCD with --enable-ftdi, it's a simple matter
> of sourcing interface/ftdi/olimex-arm-usb-ocd.cfg instead.
I switched that.
>
> But for this level of (non-)performance, there's a bigger problem than the
> adapter driver. Post a -d3 debug log and we'll try to see where all the time
> is spent.
>
> What is at 0x80200000? At 0x80040000? Is it slow if you load something to
> the latter (make sure not to overlap with the working area)? How about
> dump_image reads?
>
> Also make sure you're using a recent enough openocd, including any relevant
> pending MIPS patches in gerrit (I have no idea what's relevant, though).
I am built from source. I had to add this patch to get it working at all.
Those 18 dummy regs don't seem to be needed anymore.
diff --git a/src/target/mips32.c b/src/target/mips32.c
index d649901..8705ebc 100644
--- a/src/target/mips32.c
+++ b/src/target/mips32.c
@@ -92,7 +92,7 @@ static struct mips32_core_reg
mips32_core_reg_list_arch_info[MIPS32NUMCOREREGS]
/* number of mips dummy fp regs fp0 - fp31 + fsr and fir
* we also add 18 unknown registers to handle gdb requests */
-#define MIPS32NUMFPREGS (34 + 18)
+#define MIPS32NUMFPREGS (34)
static uint8_t mips32_gdb_dummy_fp_value[] = {0, 0, 0, 0};
>
> I have no experience with MIPS but if I understand correctly, there are
> different methods to access memory. Is the fastest one available in use?
I am new too MIPS too.
Reads are slow...
mdw 0x80000198 200
Take 20 seconds.
mww 0x80000198 200 0
is instant
register dump is instant
This has a lot about using OpenOCD on MIPs that I don't really understand.
http://openocd.sourceforge.net/doc/doxygen/html/targetmips.html
>
> /Andreas
>
--
Jon Smirl
[email protected]
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel