Just bought a piece of salted fish in development board, relatively old for 14 years, SOC is imx6solo, kernel 3.10, uboot2009, ready to transplant a relatively new uboot
Get to the next git nxp they maintain uboot, URL http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git
Select brance imx_v2016.03_4.1.15_2.0_ga of, git too slow, direct download rel_imx_4.1.15_1.2.0_ga.tar.bz2 source package.
Makefile to change CROSS_COMPILE
make riotboard_defconfig
make -j8
appear
riotboard/rel_imx_4.1.15_1.2.0_ga/arch/arm/imx-common/cpu.c:199: undefined reference to `uclass_get_device'
View the profile is not defined CONFIG_DM is associated drive model, because this board is to maintain the uboot, so we changed the version
Warehouse addresses https://gitlab.denx.de/u-boot/u-boot/tree/v2016.09
The compiler passed, tf card downloaded to start no response, no serial output. Middle double-checked many ways, the ultimate success starts with two questions
1. Programming command dd iflag = dsync oflag = dsync if = u-boot.imx of = / dev / sdb seek = 2
seek = blocks: blocks skipped blocks from beginning of output file before starting copying
uboot.imx = ivt + dcd + uboot.bin
Soc imx when activated by the sd, u-boot.imx have a 0x400 offset, that is 1024 bytes, sd card 512Byte a sector, two sectors is skipped, the third sector programming
Mogao Qing seek the definition of the beginning, I have been using the seek = 3 ....
2. DIP switch
Manual screenshot
Focus here, this is the boot options SD calories behind. . . .
This is found in the online search to a pdf
Adjusted smooth start
Tune owners son luck is really very important, this development board really do not have much information on the country, and all the 3.x.
There is a small detail that is a u-boot.imx above with the necessary data (e.g., memory initialization) before normal uboot.bin, wherein the data uboot own tools implemented ./tool/imximage want DCD, etc. are stored in /board/xxx/xxx.cfg inside, but not at this development board .cfg, and in the / configs / riotboard_defconfig specified CONFIG_SYS_EXTRA_OPTIONS = "IMX_CONFIG = board / boundary / nitrogen6x / nitrogen6s1g. cfg, MX6S, DDR_MB = 1024, ENV_IS_IN_MMC "
That nitrogen6s board, view and found a BOOT_FROM spi, modified to sd. Later tests even the spi can also start, no in-depth study.