public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] How to convert imximage.cfg so it can be used in mkimage?
@ 2019-11-17 23:22 Winston Gao
  2019-11-19 12:12 ` Alexander Dahl
  0 siblings, 1 reply; 3+ messages in thread
From: Winston Gao @ 2019-11-17 23:22 UTC (permalink / raw)
  To: u-boot

Hi all,



I am trying to create a bootstrap image for iMX6 and the command mkimage fails like below:



$ mkimage -n imximage.cfg -T imximage -e 0x17000000 -d overlay_img bootstrap_img.bin
Error: imximage.cfg[1] - Invalid command(/*)



Further investigation shows that the error is caused by that there is c-type comments (/*...*/) in imximage.cfg file. When I remove all the c-type comments in the file, it works fine.



u-boot document does say that imximage.cfg accept comment line starting with '#' in the file. However, that file, which is coming together with u-boot source has c-type comments. I am thinking the file is involved in some u-boot compiling. How to convert that file to remove all the c-type comments automatically so it can be used in mkimage command?



Thanks,

Yan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-19 12:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-17 23:22 [U-Boot] How to convert imximage.cfg so it can be used in mkimage? Winston Gao
2019-11-19 12:12 ` Alexander Dahl
2019-11-19 12:30   ` Alexander Dahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox