Yocto U-Boot modification

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

Yocto U-Boot modification

6,203 次查看
durmus
Contributor IV

Hi everyone,

Recently, We've received my custom i.MX6 board based on SabreSD and struggling with board bring-up.

We've decided to use Yocto to build everything (u-boot, initramfs, kernel) for MfgTool. (I'm very new to this)

I've downloaded sources for the dizzy release and built images with fsl-image-mfgtool-initramfs for mx6qsabresd.

Now I need to make some modificiations (such as, changing SPI CS pin, adjusting some voltages of PMIC, etc) in U-Boot and re-built the image.

I have modified the source code;

fsl-community-bsp/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/u-boot-imx-mfgtool/2013.04-r0/git/board/freescale/mx6qsabresd.c

and run the bitbake command

$: bitbake u-boot-imx-mfgtool -c compile

But basically it says that nothing has changed and out of xxx number of tasks, no task needed to be run.

I'm not sure if what I did is a correct way of doing this. Any help is appreciated.

Thanks in advance.

Durmus

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

2,755 次查看
mounikareddy22
Contributor I

Hi,

I using yocto sdk 2.0 to compile/build u-boot and linux images for T4240RDB.

When I run "bitbake -c compile -f virtual/kernel" command, i'm getting

"QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb.do_compile is tainted from a forced run"

I tried to clean and build, still the issue exists.

I'm using following commands to build linux:

1. bitbake -c cleansstate virtual/kernel
2. bitbake -c patch virtual/kernel
3. bitbake -c menuconfig virtual/kernel
4. bitbake -c compile -f virtual/kernel
5. bitbake virtual/kernel
6. bitbake fsl-image-kernelitb

Please help me to move forward and let me know if the procedure followed is correct or not.

Thanks & Regards,

Mounika Reddy

0 项奖励
回复

2,756 次查看
saurabh206
Senior Contributor III

Hi

Durmus

Try to run bitbake -f -c compile u-boot-imx

Thanks

Saurabh

0 项奖励
回复

2,756 次查看
durmus
Contributor IV

Hi Saurabh,

Thanks for your answer. I had tried that as well, but to no avail. Moreover, it had given a warning, something like

...u-boot-imx-mfgtool.bb.do_build is tainted from a forced run


And then I had to $: bitbake u-boot-imx-mfgtool -c cleanall

and re-run $: bitbake u-boot-imx-mfgtool and I was where I had started.



0 项奖励
回复

2,756 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Yocto is not intended to be used to package development. It´s intended to be an image builder, a rootfs creator.

I recommend you to set the meta-toolchain and use it to compie the u-boot source code you just moidified.

Task #7 - Create the toolchain

I hope that helps.