hi, Igorpadykov
Because of our image created by freertos project like "hello world", and we would like to use mfgtool to program into GD flash(GD25q32CSIGR).
Following is my step to recompile mfgtool.
Using below command to get mfgtool package
bitbake fsl-image-mfgtool-initramfs
- Modify spi-nor.c located in tmp/work/imx6ull14x14evklevk-poky-linux-gnueabi/mfgtool-linux-imx/4.1.15-r0/git/drivers/mtd/spi-no as below/* GigaDevice */
{ "gd25q32", INFO(0xc84016, 0, 64 * 1024, 64, SECT_4K) }, - Modify sf_params.c located in tmp/work/imx6ull14x14evk-poky-linux-gnueabi/u-boot-imx-mfgtool/2016.03-r0/git/drivers/mtd/spi as below.
#ifdef CONFIG_SPI_FLASH_GIGADEVICE /* GIGADEVICE */
{"GD25Q32", 0xc84016, 0x0, 64 * 1024, 64, RD_NORM, SECT_4K}
- Modify mx6ullevk.h located in tmp/work/imx6ull14x14evk-poky-linux-gnueabi/u-boot-imx-mfgtool/2016.03-r0/git/include/configs as below. #define CONFIG_SPI_FLASH_STMICRO ==> #define CONFIG_SPI_FLASH_GIGADEVICE
$ bitbake -c compile -f linux-mfgtool
- $ bitbake fsl-image-mfgtool-initramfs
After finishing all steps, it doesn't create any new deploy files in deploy-u-boot-imx-mfgtool and deploy-meftool-linux.
Did I do something wrong? So it can't create new deploy files.
I try to update these deploy files to mfgtool folder as below to support program image into GD flash(GD25q32CSIGR).
mfgtools_sdcard\Profiles\Linux\OS Firmware\firmware