Porting Bitbake & Linux

markopa - July 12, 2010

Hi all, In few week we will receive our custom board from production services. I have to start porting uBoot to our platform and also I have to start adopt some linux drivers to suit our platform characteristics. Before starting a more articulated discussion could somebody shortly describe how to take out uBoot from the bb build process modify the needed files and then re-integrate our custom uBoot to the bb process ? Marko
Share this

Comments

Porting Bitbake & Linux

I would assume the most forward way would be to take a u-boot already done that is close to your platform, run bitbake -c patch <u-boot-recipe>. The results should live in $(bitbake -e <u-boot-recipe> | grep ^S=). Take that as your starting point. Make what ever changes you need to make and generate a patch from the orginial. Copy <u-boot-recipe> to u-boot-<board name>.bb Add it to your custom directory and add the patch for your changes to the new u-boot recipe. From there I think you should be golden.

Porting Bitbake &#38; Linux

I've also assumed something like that. At least this should be the final result. However in the developing process I plan to copy the uboot supplied by MV which should reside in $(bitbake -e <u-boot-recipe> | grep ^S=) and build it manually. When the port will be done I plan to make patches against what is supplied by MV and build our final uboot through the bitbake process. Does this make sense to you ? Marko

Porting Bitbake &#38; Linux

Yup. Sounds reasonable to me.