[meta-freescale] Does anybody know of a quick way to migrate an IMX6 BSP from dora to daisy?
Stephen.Munnings at nuvation.com
Thu Jun 19 07:02:03 PDT 2014
I am working on a commercial project.
We have been using Yocto for the build tools (branch - dora) and including a Qt application as part of the process.
We have designed a custom board based on the IMX6 (single) processor and fairly close to the wandboard in general - so we could use Wandboards as the evaluation and early development tools.
As part of the wrap-up of the project, I am (re)creating the build environment for our project.
I decided (as an experiment) to try and move the project forward to the daisy branch - which should have been relatively painless.
After getting over a few (minor) hurdles, when all seemed to be going quite well, I hit the killer...
Our custom u-boot was developed with 2013.10 (seems to be the "standard" for branch dora)
When I tried to get our u-boot compiled in daisy, it switched to version 2014.01 - shouldn't be much of a problem.
This is when I discovered that our <board>.c file craps out all over the place because Freescale (I assume it is Freescale) changed all the pin PAD names (well maybe not all, but a large enough number) in the standard include files that are part of Uboot 2014.10. They are in .../arch/arm/include/asm/arch-mx6/*.h
Over and above that, they did not keep the old names for compatibility!
Does somebody have a utility that I can run the source code through to convert all the old names to the new names? If they do, I would love to know about it.
I estimate that there are at least 45 different PAD names that were changed, and to fix this problem, I have to go through and manually scan the old and new include files, decide which old names match to which new names, and then make all the edit changes in the source files (and hope I did not screw this up somewhere).
I am guessing that the folks at Wandboard.org had to navigate all this pain too.
Some of the changes seemed particularly arbitrary. Changing Uart pin names from ..._TXD to ..._TXDATA, and similarly for RXD, for example.
I can only guess what this is likely to do to my Linux kernel code. (I think they use common include files at some point).
I didn't even try to go down that road yet.
I guess I could set up one of my yocto layers to go back to using 2013.10 version of u-boot and the previous version of Linux - with liberal copies of recipes, etc., from the dora branch.
Either of these alternatives just uses too much time (costly time), though.
Does anybody know a quick way through this mess, or should I just stick to dora?
My guess is that sticking to dora is the way (for now).
Does anybody know why developers would go through all the painful work of changing all those names in the include files, and then have to change all the .c files to match, and finally, make other developer's .c files need to go through the same transformation?
It seems to have been a really short-sighted move by whoever did it.
However, there are sometimes other (good) reasons to do this kind of thing that nobody ever finds out about.
Sr. Design Engineer | NUVATION ENGINEERING
stephen.munnings at nuvation.com<mailto:stephen.munnings at nuvation.com> | www.nuvation.com<http://www.nuvation.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the meta-freescale