4.13.3.41. ZII VF610 Based Boards¶
4.13.3.41.1. Building Barebox¶
To build Barebox for ZII VF610 based boards do the following:
make ARCH=arm CROSS_COMPILE=<ARM toolchain prefix> mrproper
make ARCH=arm CROSS_COMPILE=<ARM toolchain prefix> zii_vf610_dev_defconfig
make ARCH=arm CROSS_COMPILE=<ARM toolchain prefix>
4.13.3.41.2. Uploading Barebox via JTAG¶
Barebox can be bootstrapped via JTAG using OpenOCD (latest master) as follows:
cd barebox
Documentation/boards/imx/zii-vf610-dev/bootstrap.sh
A custom OpenOCD binary and options can be specified as follows:
OPENOCD="../openocd/src/openocd -s ../openocd/tcl " \
Documentation/boards/imx/zii-vf610-dev/bootstrap.sh
4.13.3.41.3. Writing Barebox to NVM¶
With exception of Dev boards, all of ZII’s VF610 based boards should come with eMMC. To permanently write Barebox to it do:
barebox_update -t eMMC -y barebox.img
This should also automatically configure your board to boot that image. Note that the original ZII stack’s bootloader in eMMC should be left intact. Barebox is configured to be programmed to one of the MMC boot partitions, whereas the original bootloader is located in user partition.
To restore the board to booting using the original bootloader do:
detect mmc0
mmc0.boot=disabled