Hello, On Wed, Nov 19, 2014 at 11:27:04AM +0100, Uwe Kleine-König wrote: > Background: > I want to create a script to recover an i-MX6 by doing: > 1) setup DDR3 RAM > 2) load a bootloader (here: barebox) into RAM > 3) resume at $bootloader_start_address
Actually I'm doing something similar myself on i.MX25, with barebox too. For me doing "reset init" with "reset_config trst_and_srst" reliably resets the part to a consistent state (ARM mode). > For that to work I need to disable the MMU to get a fixed memory layout > and also to disable caches which seems to be necessary. I didn't find a > dedicated command to do that though, so I used: > > arm mcr 15 0 1 0 0 [expr [arm mrc 15 0 1 0 0] & ~0xd] > > which seems to work. But the problem now is that openocd's view about > the MMU doesn't change and so the load_image command fails with: The problem with cortex-a support is that it really receives too little love. It would be very nice if you improved the situation. I think it would be best if you added some openocd command that would enable/disable mmu so that openocd would be aware of the fact (I do not think checking MMU state on every possible occassion is a nice thing, it's better to avoid changing it behind OpenOCD's back). -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel