ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] imx53 QSB on Ubuntu 12.04


From: Mike Goins
Subject: Re: [Ltib] imx53 QSB on Ubuntu 12.04
Date: Thu, 30 Aug 2012 07:48:36 -0400

> 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

The other option, which is what I did, and it seemed to work without problems.

Treat your local copy as a project in your favorite IDE.

Set up this project using the
address@hidden:/sources/ltib as the source.

Pull in changes and resolve conflicts.  There should be few as the cvs
versions of the base folder, bin, and config not from your platform
should be authoritative.  If package versions are in conflict these
can be resolved by overriding in platform/XXXXX/packages.lkc.
toolchain.lkc may need some work if they are using one not already
there. packages.lkc and pkg_map(-mx?) should be straight forward.


Getting your own ltib up-to-date will be big step forward in your own
maintenance of ltib as Freescale rarely updates the ltib in their bsps
and users are forever stuck in some ancient version.   It may even
provide some incentive for Freescale if you go back to them and show
them that you've brought part of their bsp up-to-date with the working
public version and they just may give the go ahead for releasing it
publicly.



> On 30/08/12 02:29, Bair, Richard wrote:
>
> ********************************************************************************************************************
> 1) This is the uboot error I get by just copying the imx directory to the
> CVS tree:
>
> Processing: u-boot
> ====================
> Build path taken because: no prebuilt rpm,
> Testing network connectivity for gpp
> OK GPP: is available
> Try u-boot-2009.08.tar.bz2.md5 from the GPP
> 21:04:08 URL:http://bitshrine.org/gpp/u-boot-2009.08.tar.bz2.md5 [56/56] ->
> "u-boot-2009.08.tar.bz2.md5" [1]
> Try u-boot-2009.08.tar.bz2 from the GPP
> 21:05:06 URL:http://bitshrine.org/gpp/u-boot-2009.08.tar.bz2
> [8736849/8736849] -> "u-boot-2009.08.tar.bz2" [1]
> Try u-boot-v2009.08-imx_11.09.01.tar.bz2.md5 from the GPP
> http://bitshrine.org/gpp/u-boot-v2009.08-imx_11.09.01.tar.bz2.md5:
> 21:05:06 ERROR 404: Not Found.
> Try u-boot-v2009.08-imx_11.09.01.tar.bz2 from the GPP
> http://bitshrine.org/gpp/u-boot-v2009.08-imx_11.09.01.tar.bz2:
> 21:05:07 ERROR 404: Not Found.
> Can't get: u-boot-v2009.08-imx_11.09.01.tar.bz2 at ./ltib line 834.
>
>
> f_buildrpms() returned an error, exiting
> traceback:
>  main:580
>
>
> Started: Wed Aug 29 21:01:27 2012
> Ended:   Wed Aug 29 21:05:07 2012
> Elapsed: 220 seconds
>
> VERSION          : 11.4.1
> CVS_VERSION      : $Revision: 1.88 $ (Savannah)
> PLATFORM         : imx51
> GNUTARCH         : arm
> TOOLCHAIN        : tc-fsl-x86lnx-armeabi-nptl-4.1.2-3.i386.rpm
> TOOLCHAIN_CFLAGS : -O2 -fsigned-char -mfloat-abi=softfp -mfpu=vfp
>
> These packages failed to build:
> u-boot
>
> ********************************************************************************************************************
> 2) Next I copy from BSP packages directory (uboot and kernel files) to the
> CVS tree (Sources) and I u-boot appear to build and the kernel bulds for
> quite some time prior to failing with the following message:
>
> 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....
>   HOSTCC  scripts/genksyms/parse.o
>   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.3262 (%build)
>
>
> RPM build errors:
>     Bad exit status from /home/rich/imx53/ltib/tmp/rpm-tmp.3262 (%build)
> Build time for kernel-2.6.35: 361 seconds
>
> Failed building kernel-2.6.35
>
>
> f_buildrpms() returned an error, exiting
> traceback:
>  main:580
>
>
> Started: Wed Aug 29 21:20:06 2012
> Ended:   Wed Aug 29 21:27:19 2012
> Elapsed: 433 seconds
>
> VERSION          : 11.4.1
> CVS_VERSION      : $Revision: 1.88 $ (Savannah)
> PLATFORM         : imx51
> GNUTARCH         : arm
> TOOLCHAIN        : tc-fsl-x86lnx-armeabi-nptl-4.1.2-3.i386.rpm
> TOOLCHAIN_CFLAGS : -O2 -fsigned-char -mfloat-abi=softfp -mfpu=vfp
>
> These packages failed to build:
> kernel-2.6.35
>
> Build Failed
>
>
>
>
> On Wed, Aug 29, 2012 at 1:47 PM, Bair, Richard
> <address@hidden> wrote:
>
> Hello and thanks for reading!
>
> I'm new to the imx53 QSB and that processor family in general.  I have two
> questions/issues:
>
> ITEM 1
> ======
> I've successfully installed the CVS update of LTIB on Ubuntu 12.04 based on
> support from this list.  I was able to successfully build uboot and a
> 2.6.22-mx kernel selecting one of the supported platforms (imx31 ads).
>
> The issue I have is that the platform for the imx53 is not available by
> default in the CVS and that's my current target.  I've been somewhat
> successful getting the imx53 and im5x "menu items" to appear when I copy
> from the BSP tree to the CVS tree.  Specifically, I copy:
>
> /home/rich/imx53/L2.6.35_11.09.01_ER/L2.6.35_11.09.01_ER_source/ltib/config/platform/imx
>
> to the CVS build tree.  Again, this allows me to pick "imx Reference Boards"
> and an "im5x" platform when I run ./ltib.  However, typically uboot will
> build and the kernel will fail (I'll post the message later today).
>
> a) Is there a process for integrating imx53 BSP support into the main CVS?
> How?
>
> The integration may have to come from Freescale due to license
> restrictions.  Even if you wanted to integrate it, you may not be
> allowed to distribute it [to us].   Now that Freescale requires a
> login to get to their bsp's, I would not give out whatever I
> downloaded unless I had specific permission to do so (that's just me).
>   Stuart may be able to provide some more insight to the process if
> one exists.
>
>
> b) I also request support on the error message (again, will post near-term)
>
> ITEM 2
> ======
> Once I have built /rootfs, is there a script for copying to the uSD card?
> So far I've only created the uSD card using the windows application:
> MCIMX535-START-R-BSP-11-09_C.exe.
>
> You may have to dig into your bsp package but for my board there were
> instructions on how to format and copy files-systems to flash, sd or
> hd.   i've use one called /root/diskinit-1.2.sh.  Generally these type
> of short scripts either tftp the disk image or mount the host nfs
> share and the contents are simply copied.  Nothing special about it.
>
>
> Any advice you could offer would be appreciated.
>
> Thanks,
> Rich
>
>
>
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/ltib
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]