howto create boot.scr from boot.cmd with yocto

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

howto create boot.scr from boot.cmd with yocto

9,986 次查看
floriankoenig
Contributor II

Hi,

i want to create a boot.scr file.  I added  to SRC_URI = "file://boot.cmd"  and placed the file boot.cmd into the folder  meta-my-uboot/recipes-bsp/u-boot/files .

Then i added  UBOOT_ENV = "boot"  and UBOOT_ENV_SUFFIX = "scr" into my local.conf.  

But that is not enough, it complains about not finding  ${S}/boot.scr   ??

Do i need to add a  do_compile()  function to build the boot.scr from boot.cmd with mkimage ??  I really think this feature is already integrated into yocto , or?

thanks for help

标签 (1)
0 项奖励
回复
4 回复数

7,193 次查看
nhatthanh_xp
Contributor I

Sorry for any-inconvenient.

But I have same this issue with iMX6ULL.

So, Do yo have a solution to build "boot.scr" from Yocto project ??

 

Thanks,

Thanh Luong 

0 项奖励
回复

7,325 次查看
jimmychan
NXP TechSupport
NXP TechSupport

this may useful for you.

https://community.nxp.com/docs/DOC-95046 

0 项奖励
回复

7,326 次查看
floriankoenig
Contributor II

hi,

thanks but it seemed that i need to insert extra lines like:

do_compile_append() {

   ${WORKDIR}/recipe-sysroot-native/usr/bin/mkimage -C none -A arm -T script -d ${WORKDIR}/boot.cmd ${WORKDIR}/${UBOOT_ENV_BINARY}

}

then it builds from a boot.cmd file the boot.scr file.

Very sad, i thought that yocto could still handle that, or i dont know how to activate it ??    

The next problem is now, how to copy the boot.scr file to the sdcard image ?? When i use  IMAGE_BOOT_FILES = "boot.scr"   inside   build/conf/local.conf  nothing happens, even if the boot.scr file is located in  build/tmp/deploy/images/imx6qsabresd  directory ?

0 项奖励
回复

7,326 次查看
floriankoenig
Contributor II

When i use a do_compile()  function to build with mkimage the boot.scr , it complains about   not finding u-boot-sd.imx ?   

0 项奖励
回复