Hi All, I am trying to debug U-Boot on i.MX27ADS booting from NAND flash with no success.
When I power-on this board the NFC should to copy 2KB of flash to internal buffer (0xD8000000) and start-up from there, but it is not happening. See my debug steps: $ arm-elf-gdb GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux". (gdb) target remote 127.0.0.1:3333 Remote debugging using 127.0.0.1:3333 0x0000008c in ?? () (gdb) break *0xD8000000 Breakpoint 1 at 0xd8000000 (gdb) monitor reset JTAG tap: imx27.bs tap/device found: 0x1b900f0f (mfg: 0x787, part: 0xb900, ver: 0x1) JTAG tap: imx27.cpu tap/device found: 0x07926121 (mfg: 0x090, part: 0x7926, ver: 0x0) target state: halted target halted in ARM state due to debug-request, current mode: Abort cpsr: 0x000000d7 pc: 0x0000030c MMU: disabled, D-Cache: disabled, I-Cache: enabled (gdb) c Continuing. There is someone here who already used OpenOCD for debugging from NAND Flash? These are the step I am following to test U-Boot booting directly from NAND flash: 1. Modify nand_spl: Insert an endless loop first in nand_spl. This will stop the nand_spl from executing any code before you have stopped the core using the debugger. To do this just edit "cpu/arm1136/start.S" and add: -_start: b reset +_start: b _start 2. Program the flash 3. Attach JTAG and reset the board and let it run 4. Stop the core 5. The core is now halted where you inserted the endless loop 6. Modify the PC to skip the endless loop 7. Single step. Thank you in advanced, Alan P.S.: I am using U-Boot from git repository: git clone git://git.denx.de/u-boot.git _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development