Reloading U-Boot Using a JTAG Programmer |
|
In case you have accidentially erased U-Boot in the NAND Flash of the i.MX 6ULL SOM, perform the following steps to reload U-Boot:
- Install the latest openocd-0.10.0 to the host.
- Connect to the i.MX 6ULL SOM serial console using a terminal application.
- Connect JTAG between P3 on the IMX6ULL-SOM-BSB development host and the host.
- On the host, run openocd as root (imx6ull.cfg, imx6ull-som.cfg, mfg-jtag.cfg):
$ openocd -l /dev/null -f imx6ull-som.cfg & telnet localhost 4444
- Load the u-boot-dtb.imx image to the SOM. Run at the openocd prompt:
reset init halt load_image u-boot-dtb.imx 0x877ff400 resume 0x87800000
- At this point, you should have U-Boot running in the target console.
- Stop at the U-Boot prompt, configure networking and install the Emcraft release kernel, DTB and rootfs.ubi images using update, dtbupdate and rootfsupdate U-Boot macros.
- Boot the board to the shell prompt with run bootcmd.
- At the shell prompt, run:
kobs-ng init -x --search_exponent=1 -v /u-boot.imx
Sometimes openocd gets stuck on JTAG errors. Turn everything on and off and retry.
|