On Fri, Aug 31, 2012 at 12:38 PM, Bair, Richard <[email protected]> wrote: > 1) In the downloaded BSP tree the command grep -R CONFIG_TOOLCHAIN= * | less > yields the following....I don't see a defconfig file but surmise the imx51.cf > and similar are representative of the BSP setup: > > config/profile/swang-poc.config:CONFIG_TOOLCHAIN="freescale-powerpc-linux-gnu-4.1-69.i686.rpm" > config/profile/swang.config:CONFIG_TOOLCHAIN="freescale-powerpc-linux-gnu-4.1-69.i686.rpm" > config/platform/imx/imx25_3stack.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx31ads.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx35_updater.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx31_3stack.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx28_updater.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx51.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx27ads.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx51_3stack.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx35_3stack.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx6q.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx233.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx51_updater.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx37_3stack.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx28.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx25_updater.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > config/platform/imx/imx233_updater.cf:CONFIG_TOOLCHAIN="gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm" > > 2) In the CVS tree the ../config/platform/imx/.config file I see: > # > # Toolchain selection. > # > CONFIG_TOOLCHAIN_ARMEABI_GLIBC1=y > # CONFIG_TOOLCHAIN_ARMEABI_CUSTOM is not set > CONFIG_TOOLCHAIN="tc-fsl-x86lnx-armeabi-nptl-4.1.2-3.i386.rpm" > CONFIG_TOOLCHAIN_PATH="/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi" > CONFIG_TOOLCHAIN_PREFIX="arm-none-linux-gnueabi-" > CONFIG_TOOLCHAIN_CFLAGS="-O2 -fsigned-char -mfloat-abi=softfp -mfpu=vfp" > > So there is definitely a difference. To reconcile, should I change the BSP > tree *.cf files to reflect the path > /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3? This is what is > actually in the /opt tree. Or, do I need to change the versions of gcc I > have installed?
I suggest updating userspace/toolchain.lkc. gcc-4.1.2-glibc-2.5-nptl-3 is defined by TOOLCHAIN_ARMEABI_GLIBC1 in this file. You can add a TOOLCHAIN_ARMEABI_GLIBC2 and follow the same layout. This way you can get an option to choose which you want to use. Found a pdf that describes this for imx, but it just replaces the tool-chain instead of putting in parallel: http://elk.informatik.fh-augsburg.de/gnublin-cdrom/Linux/L2.6.35_10.12.01_SDK_docs/Release_Notes_About_Adding_New_Toolchain_To_Ltib.pdf > Thanks, > Rich > > > > ====================== > Hi Richard, > > My guess is that the cross compiler you're using is not the one needed > to build this compiler. Can you compare the CONFIG_TOOLCHAIN entries in > the Freescale supplied BSP in the platform preconfig file: > config/platform/_target_/defconfig against the > config/platform/_target_/.config file that your BSP project will have > generated. > > Regards, Stuart > > On 31/08/12 01:59, Bair, Richard wrote: >> 1) Thanks for the input. Right now I'm merely in learning mode but >> understand your inputs regarding engaging freescale. >> >> 2) I'm close using this recipe but not quite there yet. From your steps: >> a) Complete >> b) I haven't seen an error regarding spec files so no action (yet) >> c) Complete...I copied all pkgs from BSP into /opt/tlib/pkgs >> >> After performing these steps, I've been trying to use: Platform="Frescale >> iMX Reference Boards", Development="imx5x", Package Profile="preconfig (Min >> profile)", Board="mx53_loco" and kernel="2.6.35_imx" for a build and u-boot >> builds but the kernel build stops with the text below. I'm researching the >> error message presently but no path forward just yet. >> >> ------------8<------------------------- >> # configuration written to .config >> # >> + [ -f arch/arm/configs/imx5_defconfig ] >> + diff -q ./.config arch/arm/configs/imx5_defconfig >> Files ./.config and arch/arm/configs/imx5_defconfig differ >> + cp -f ./.config >> /home/rich/imx53/ltib/config/platform/imx/imx5_defconfig.dev >> + [ -n ] >> + [ %{kernel_series} = 2.4 ] >> + make ARCH=arm HOSTCC=ccache /usr/bin/gcc -B/usr/bin// uImage >> scripts/kconfig/conf -s arch/arm/Kconfig >> CHK include/linux/version.h >> UPD include/linux/version.h >> CHK include/generated/utsrelease.h >> UPD include/generated/utsrelease.h >> HOSTCC scripts/kallsyms >> HOSTCC scripts/pnmtologo >> HOSTCC scripts/conmakehash >> HOSTCC scripts/genksyms/genksyms.o >> SHIPPED scripts/genksyms/lex.c >> HOSTCC scripts/bin2c >> SHIPPED scripts/genksyms/parse.h >> CC scripts/mod/empty.o >> SHIPPED scripts/genksyms/keywords.c >> HOSTCC scripts/mod/mk_elfconfig >> SHIPPED scripts/genksyms/parse.c >> HOSTCC scripts/genksyms/lex.o >> HOSTCC scripts/genksyms/parse.o >> Assembler messages: >> Error: unknown architecture `armv7-a' >> >> Error: unrecognized option -march=armv7-a >> make[2]: *** [scripts/mod/empty.o] Error 1 >> make[2]: *** Waiting for unfinished jobs.... >> HOSTLD scripts/genksyms/genksyms >> make[1]: *** [scripts/mod] Error 2 >> make[1]: *** Waiting for unfinished jobs.... >> make: *** [scripts] Error 2 >> error: Bad exit status from /home/rich/imx53/ltib/tmp/rpm-tmp.3229 (%build) >> >> >> RPM build errors: >> Bad exit status from /home/rich/imx53/ltib/tmp/rpm-tmp.3229 (%build) >> Build time for kernel-2.6.35: 5 seconds >> >> Failed building kernel-2.6.35 >> >> >> >> >> ================= >> Hi Richard, >> >> Referring to this and your earlier question. Here's some advice. >> >> Before you start any of this you have to figure out whether or not anything >> you want to use is legally restricted by Freescale. I assume you have copy >> of their BSP. If so then you have all the parts you need to achieve this in >> your local environment. If you wanted to get this into the public CVS, >> you'd have to check with Freescale. Ideally you'd get them to push the >> platform out (at least the GPP content). Alternatively if someone >> authoritative there says it's okay to publicly distribute all components of >> that BSP, and you can get that CC'd to the list, then it would be possible >> to include this on the public project (not withstanding time available to do >> it). >> >> Note: they can't place restrictions on any GPL (etc) code they have released >> to you in the ISO image (for example u-boot/kernel patches). What they can >> restrict though is any of their original content that is not covered by a >> license that allows you free public re-distribution. Sorry I can't be more >> definitive, but I'm not a lawyer and it really does depend what's in there >> (I don't know). Aside from the legal side of it, out of courtesy it's best >> to email them and try to get them to help you. I doubt they're really >> trying to restrict things, I suspect it's more a question of it not being on >> their radar to get stuff pushed out. >> >> To integrate the new platform you need to: >> >> * Add the config/platform/_imx53_ platform to a current CVS copy of the >> LTIB sources >> >> * Add any new global spec files into the appropriate dist/lfs-5.1/xxx/ >> area. You can tell which ones may be missing when you try to build the BSP, >> it will complain that it can't find the spec file if it's missing >> >> * Add any missing BSP content to /opt/freescale/pkgs. To figure out >> what GPP/PPP content you're missing run the command: ./ltib --dltest it >> will tell you what is not on the GPP. You can then copy the missing files >> from your BSP ISO image (pkgs directory) to /opt/freescale/pkgs (or >> /opt/ltib/pkgs, they're both in the search path). >> >> Regards, Stuart >> >> >> >> >> _______________________________________________ >> LTIB home page: http://ltib.org >> >> Ltib mailing list >> [email protected] >> https://lists.nongnu.org/mailman/listinfo/ltib > > > _______________________________________________ > LTIB home page: http://ltib.org > > Ltib mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/ltib _______________________________________________ LTIB home page: http://ltib.org Ltib mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/ltib
