I am looking at replicating the VAR SOM MX6 recovery SD card: http://variwiki.com/index.php?title=VAR ... rd_V70plus
I have a Yocto generated image which can be flashed onto the NAND flash which is fully functional. I also have a modified u-boot image which I manually flash together with the SPL onto the NAND flash using:
$ flash_erase /dev/mtd0 0 0
$ kobs-ng init -x SPL --search_exponent=1 -v
$ flash_erase /dev/mtd1 0 0
$ nandwrite -p /dev/mtd1 u-boot.img
Taken from: http://variwiki.com/index.php?title=VAR ... ash_U-BOOT
I am looking at using my own image to perform the same functionalities as the recovery SD card image, I have therefore included the kobs-ng and flash_erase functions using the imx-kobs and mtd-utils/mtd-utils-ubifs additions within Yocto.
I included sdcard in the list of IMAGE_FSTYPES within Yocto which produces the appropriate .sdcard file which I can then write onto my SD card using dd.
The issue I have here is that it is using the default u-boot.img and SPL when booting from the SD card. I am looking to have the .sdcard file type to include my modified u-boot.img. I tried following this guide: http://www.variwiki.com/index.php?title ... le_SD_card however am not having any luck.
Do I need to include the modified u-boot and SPL files within the .sdcard output file prior to writing it onto the SD card?
Any help would be greatly appreciated.