Hi Paul, You can actually write the falsh via U-Boot, it has a necessary SPI flash driver. Goal here is just to put U-Boot in the RAM via JTAG., then you are good.
Yegor, >From what I see WRTNode exposes standard JTAG header, meaning that all you need to do is write a correct TCL script to set-up the CPU and RAM. I would suggest that you take a look at U-Boot procedures and see what registers it sets in order to set-up RAM correctly. You would probably end up with something like this: https://github.com/pepe2k/u-boot_mod/issues/2, and I see no reason for this not to work - unless JTAG header is not routed correctly in HW... Best regards, Drasko On Wed, Oct 28, 2015 at 10:01 AM, Yegor Yefremov <yegorsli...@googlemail.com> wrote: > Hi Paul, > > On Wed, Oct 28, 2015 at 9:31 AM, Paul Fertser <fercer...@gmail.com> wrote: >> Hi, >> >> On Wed, Oct 28, 2015 at 07:21:36AM +0100, Yegor Yefremov wrote: >>> does OpenOCD support such devices? So far I couldn't find such a target. >> >> OpenOCD can talk to many EJTAG devices so it might work with this one >> too. But just talking won't help much, see below. >> >>> I'd like to play with this device: >>> http://wiki.wrtnode.com/index.php?title=Starting and I feel safer, if >>> I can still use the system regardless of it's flash content. >> >> If you want to reprogram an SPI flash memory contents, you'll need to >> either write a driver for the target's spi controller or to access the >> IC directly. I recommend you buy a suitable SOIC clamp and use any of >> the programmers supported by flashrom (see "ISP" section on their >> wiki). > > I've also thought about such workaround, but debugging > bootloader/kernel comes in question too. I'd like to use UBIFS and as > far as I can see such WiSoCs have support for really ancient U-Boot, > that doesn't provide UBI support. The situation has changed for > AR9331, because it was included into Barebox tree, but for mt7620 I > could find nothing. > > Do you have any experience using UBIFS with SPI flashes? > > Yegor > > ------------------------------------------------------------------------------ > _______________________________________________ > OpenOCD-devel mailing list > OpenOCD-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openocd-devel ------------------------------------------------------------------------------ _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel