Re: [OpenOCD-devel] Marvell ARMADA 370

2014-05-08 Thread Greg Ungerer
Hi Paul, On 17/04/14 16:36, Paul Fertser wrote: > On Thu, Apr 17, 2014 at 04:14:10PM +1000, Greg Ungerer wrote: >>> Probably posting full logs might provide additional clues. >> >> Happy to do that. I was reluctant because they are kinda large. >> Will follow up this email with a good log generate

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-16 Thread Paul Fertser
Hi, On Thu, Apr 17, 2014 at 04:30:38PM +1000, Greg Ungerer wrote: > Attached is "-d 3" logs for a successful run using openocd 0.7.0, > and a fail with openocd 0.8.0 rc1. Those are very interesting. First thing to note is that you're using old deprecated ft2232 driver with 0.7.0 and the new ftdi

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-16 Thread Paul Fertser
On Thu, Apr 17, 2014 at 04:14:10PM +1000, Greg Ungerer wrote: > > Probably posting full logs might provide additional clues. > > Happy to do that. I was reluctant because they are kinda large. > Will follow up this email with a good log generated from 0.7.0 > and a bad log from 0.8.0-rc1. Alterna

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-16 Thread Greg Ungerer
Hi Paul, On 17/04/14 15:23, Paul Fertser wrote: > Hi Greg, > > On Wed, Apr 16, 2014 at 04:02:56PM +1000, Greg Ungerer wrote: >> On 11/04/14 15:41, Paul Fertser wrote: >>> On Fri, Apr 11, 2014 at 03:25:18PM +1000, Greg Ungerer wrote: I just tried using a git head of openocd, and it seems to n

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-16 Thread Paul Fertser
Hi Greg, On Wed, Apr 16, 2014 at 04:02:56PM +1000, Greg Ungerer wrote: > On 11/04/14 15:41, Paul Fertser wrote: > > On Fri, Apr 11, 2014 at 03:25:18PM +1000, Greg Ungerer wrote: > >> I just tried using a git head of openocd, and it seems to not work as > >> well as my older openocd on this target.

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-15 Thread Greg Ungerer
Hi Lionel, On 14/04/14 19:47, Lionel Ains wrote: > Lionel Ains writes: >> I tried the script above (adapting >> tools/openocd/platforms/armada/armada370.tcl to my >> tcl/target/armada370.cfg), and matching the JTAG probe I use. >> However, it seems to fail initializing when it meets the line 32 i

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-15 Thread Greg Ungerer
Hi Lionel, On 12/04/14 01:10, Lionel Ains wrote: > Greg Ungerer writes: >> In terms of adapter setup I had: >> >> reset_config trst_and_srst >> adapter_nsrst_delay 200 >> jtag_ntrst_delay 200 >> adapter_khz 1000 >> >> I am using an Amontec JTAGkey. >> >> I just tried using a git head of o

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-15 Thread Greg Ungerer
Hi Paul, On 11/04/14 15:41, Paul Fertser wrote: > On Fri, Apr 11, 2014 at 03:25:18PM +1000, Greg Ungerer wrote: >> I just tried using a git head of openocd, and it seems to not work as >> well as my older openocd on this target. >> >> Although I can still connect, I can't access memory, getting er

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-14 Thread Lionel Ains
Lionel Ains writes: > Hi Greg, > > I tried the script above (adapting > tools/openocd/platforms/armada/armada370.tcl to my > tcl/target/armada370.cfg), and matching the JTAG probe I use. > However, it seems to fail initializing when it meets the line 32 in > armada370.cfg, namely "dap apsel 1":

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-11 Thread Paul Fertser
On Fri, Apr 11, 2014 at 03:10:32PM +, Lionel Ains wrote: > Greg Ungerer writes: > I am using an olimex-arm-usb-ocd-h probe, with adapter_khz 5000. I am not > sure this JTAG probe actually supports the Armada 370. Particular adapter model doesn't matter, it's working on a layer low enough to b

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-11 Thread Lionel Ains
Greg Ungerer writes: > > In terms of adapter setup I had: > > reset_config trst_and_srst > adapter_nsrst_delay 200 > jtag_ntrst_delay 200 > adapter_khz 1000 > > I am using an Amontec JTAGkey. > > I just tried using a git head of openocd, and it seems to not work as > well as my older

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-10 Thread Paul Fertser
On Fri, Apr 11, 2014 at 03:25:18PM +1000, Greg Ungerer wrote: > I just tried using a git head of openocd, and it seems to not work as > well as my older openocd on this target. > > Although I can still connect, I can't access memory, getting errors like: ... Can you please provide -d3 log for tha

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-10 Thread Greg Ungerer
Hi Paul, On 09/04/14 16:09, Paul Fertser wrote: > On Wed, Apr 09, 2014 at 03:56:35PM +1000, Greg Ungerer wrote: >> On 09/04/14 14:10, Paul Fertser wrote: >>> On Wed, Apr 09, 2014 at 10:35:30AM +1000, Greg Ungerer wrote: I doesn't really feel totally right to me. The mmu on and off states

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-10 Thread Greg Ungerer
Hi Lionel, On 11/04/14 01:50, Lionel Ains wrote: >> Let me add one more thing. >> >> Also I should point out that this is the process I use on boards with >> completely empty flash. If the board already has a boot loader installed >> then I generally don't do the "meminit" call, only the "loaduboo

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-10 Thread Lionel Ains
Greg Ungerer writes: > > Hi Lionel, > > Let me add one more thing. > > Also I should point out that this is the process I use on boards with > completely empty flash. If the board already has a boot loader installed > then I generally don't do the "meminit" call, only the "loaduboot". > Re-run

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-08 Thread Paul Fertser
On Wed, Apr 09, 2014 at 03:56:35PM +1000, Greg Ungerer wrote: > On 09/04/14 14:10, Paul Fertser wrote: > > On Wed, Apr 09, 2014 at 10:35:30AM +1000, Greg Ungerer wrote: > >> I doesn't really feel totally right to me. The mmu on and off states > >> are a pain to deal with (thus the HACK section abov

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-08 Thread Greg Ungerer
Hi Paul, On 09/04/14 14:10, Paul Fertser wrote: > On Wed, Apr 09, 2014 at 10:35:30AM +1000, Greg Ungerer wrote: >> I doesn't really feel totally right to me. The mmu on and off states >> are a pain to deal with (thus the HACK section above which relies on >> running the CPU BOOTrom code again). Bu

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-08 Thread Paul Fertser
Hi Greg, On Wed, Apr 09, 2014 at 10:35:30AM +1000, Greg Ungerer wrote: > I doesn't really feel totally right to me. The mmu on and off states > are a pain to deal with (thus the HACK section above which relies on > running the CPU BOOTrom code again). But none the less this manages > to load and r

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-08 Thread Greg Ungerer
Hi Lionel, Let me add one more thing. On 09/04/14 10:35, Greg Ungerer wrote: > On 08/04/14 21:16, Lionel Ains wrote: >> It seems you got a working procedure for running a U-Boot RAM image sent via >> JTAG. I could find your script in the oocd sources (under >> http://sourceforge.net/p/openocd/cod

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-08 Thread Greg Ungerer
Hi Lionel, On 08/04/14 21:16, Lionel Ains wrote: > It seems you got a working procedure for running a U-Boot RAM image sent via > JTAG. I could find your script in the oocd sources (under > http://sourceforge.net/p/openocd/code/ci/v0.8.0-rc1/tree/tcl/target/armada370.cfg). > But can you please als

Re: [OpenOCD-devel] Marvell ARMADA 370

2014-04-08 Thread Lionel Ains
Greg Ungerer writes: > > On 08/10/13 22:18, Peter Stuge wrote: > > Greg Ungerer wrote: > >> The script is the following. It is pretty simple. > > > > Maybe you could push a commit to gerrit? Please see the HACKING file > > in the source tree for detailed instructions. > > Yeah, sure thing. > >

Re: [OpenOCD-devel] Marvell ARMADA 370

2013-10-08 Thread Greg Ungerer
On 08/10/13 22:18, Peter Stuge wrote: > Greg Ungerer wrote: >> The script is the following. It is pretty simple. > > Maybe you could push a commit to gerrit? Please see the HACKING file > in the source tree for detailed instructions. Yeah, sure thing. Regards Greg -

Re: [OpenOCD-devel] Marvell ARMADA 370

2013-10-08 Thread Peter Stuge
Greg Ungerer wrote: > The script is the following. It is pretty simple. Maybe you could push a commit to gerrit? Please see the HACKING file in the source tree for detailed instructions. Thanks! //Peter -- October Webi

Re: [OpenOCD-devel] Marvell ARMADA 370

2013-10-08 Thread Greg Ungerer
Hi Thomas, On 08/10/13 18:53, Thomas Petazzoni wrote: > On Tue, 27 Aug 2013 14:11:40 +1000, Greg Ungerer wrote: > >> The most immediate reason for this comes back to code in src/target/armv7a.c, >> function armv7a_read_ttbcr(), which does this: >> >> if (armv7a->armv7a_mmu.ttbr1_used == 1

Re: [OpenOCD-devel] Marvell ARMADA 370

2013-10-08 Thread Thomas Petazzoni
Dear Greg Ungerer, On Tue, 27 Aug 2013 14:11:40 +1000, Greg Ungerer wrote: > The most immediate reason for this comes back to code in src/target/armv7a.c, > function armv7a_read_ttbcr(), which does this: > > if (armv7a->armv7a_mmu.ttbr1_used == 1) { > LOG_INFO("SVC access

Re: [OpenOCD-devel] Marvell ARMADA 370

2013-08-26 Thread Greg Ungerer
On 19/08/13 11:27, Greg Ungerer wrote: > On 16/08/13 23:16, Greg Ungerer wrote: >> On 16/08/13 22:48, Philip Craig wrote: >>> On Fri, Aug 16, 2013 at 10:40 PM, Greg Ungerer wrote: Has anyone used openocd on the Marvell ARAMADA 370 SoC? I have a Globalscale Mirabox and am trying to g

Re: [OpenOCD-devel] Marvell ARMADA 370

2013-08-18 Thread Greg Ungerer
On 16/08/13 23:16, Greg Ungerer wrote: > On 16/08/13 22:48, Philip Craig wrote: >> On Fri, Aug 16, 2013 at 10:40 PM, Greg Ungerer wrote: >>> Has anyone used openocd on the Marvell ARAMADA 370 SoC? >>> >>> I have a Globalscale Mirabox and am trying to get JTAG debugging working >>> on it. I am usin

Re: [OpenOCD-devel] Marvell ARMADA 370

2013-08-16 Thread Greg Ungerer
Hi Phil, On 16/08/13 22:48, Philip Craig wrote: > Hi Greg, > > On Fri, Aug 16, 2013 at 10:40 PM, Greg Ungerer wrote: >> Hi All, >> >> Has anyone used openocd on the Marvell ARAMADA 370 SoC? >> >> I have a Globalscale Mirabox and am trying to get JTAG debugging working >> on it. I am using an Amon

Re: [OpenOCD-devel] Marvell ARMADA 370

2013-08-16 Thread Philip Craig
Hi Greg, On Fri, Aug 16, 2013 at 10:40 PM, Greg Ungerer wrote: > Hi All, > > Has anyone used openocd on the Marvell ARAMADA 370 SoC? > > I have a Globalscale Mirabox and am trying to get JTAG debugging working > on it. I am using an Amontec jtagkey, and have some basic functionality > working. Bu

[OpenOCD-devel] Marvell ARMADA 370

2013-08-16 Thread Greg Ungerer
Hi All, Has anyone used openocd on the Marvell ARAMADA 370 SoC? I have a Globalscale Mirabox and am trying to get JTAG debugging working on it. I am using an Amontec jtagkey, and have some basic functionality working. But I can't access the bus in any way without getting errors like this: >