[yocto] Problems building yocto for Xilinx ML507 (with some tentative fixes)

Andrea Sterbini a.sterbini at tiscali.it
Sat May 11 02:09:05 PDT 2013


Updates

1) I was wrong with git.xilinx.com and git.denx.de not working ... it's 
just a HUGE download that took forever ... I have reverted my changes
2) I have been able to compile u-boot-xilinx (after some trial-error to 
generate the proper xparameters.h with XPS/XSDK, e.g. the FLASH memory 
is required)

A small fix was needed to complete u-boot-xilinx compilation ... I had 
to add
#include "xparameters.h"
to the file
board/xilinx/ppc440-generic/xilinx_ppc440_generic.c

3) I have been able to compile linux-xilinx,
but first I had to copy the file defconfig as 
linux-xilinx/3.3-r02/git/.config

Now core-image-minimal is done and I am going to try it (as soon I find 
how to build the ace)

All the best
AndreaS

On Fri 10 May 2013 08:45:33 PM CEST, Andrea Sterbini wrote:
> Found why that error
> |
> /home/andrea/src/FPGA/poky/build/tmp/work/virtex_5_ml507_powerpc_440-poky-linux/u-boot-xilinx/v2012.04.01-r17/temp/run.do_configure.10130:
> line 157:
> /home/andrea/src/FPGA/poky/build/tmp/work/virtex_5_ml507_powerpc_440-poky-linux/u-boot-xilinx/v2012.04.01-r17/git/board/xilinx/ml507/xparameters.h:
> Not a directory
>
> The u-boot downloaded from github.com/Xilinx has no
> board/xilinx/ml507/ directory but only a board/xilinx/ppc440-generic
> Now I will try the original from git://git.denx.de/u-boot.git
> (but bitbake seems to have problems fetching it)
>
> A
>
> On Fri 10 May 2013 07:51:11 PM CEST, Andrea Sterbini wrote:
>> Not yet.
>> I haven't been able to complete the complete run
>>
>>     bitbake core-image-minimal
>>
>> I moved to the meta-xilinx master branch
>> I am able to complete almost 1600 tasks of 1666 by doing (after the
>> git.xilinx.com -> github.com/Xilinx fixes)
>>
>>     bitbake core-image-minimal -k
>>
>> The error I get is
>>
>>> Build Configuration:
>>> BB_VERSION        = "1.19.0"
>>> BUILD_SYS         = "x86_64-linux"
>>> NATIVELSBSTRING   = "Fedora-18"
>>> TARGET_SYS        = "powerpc-poky-linux"
>>> MACHINE           = "virtex-5-ml507-powerpc-440"
>>> DISTRO            = "poky"
>>> DISTRO_VERSION    = "1.3+snapshot-20130510"
>>> TUNE_FEATURES     = "m32 ppc440 fpu-soft"
>>> TARGET_FPU        = "soft"
>>> meta
>>> meta-yocto
>>> meta-yocto-bsp    = "master:88a7b041fbf2583472aa9408a33dd8881223a0c1"
>>> toolchain-layer   = "master:cc0067dc0c7ea469057238db6422864d1bce311c"
>>> toolchain-layer   = "master:cd5f284730a6430d563443786c409aa6783d4b04"
>>> meta-xilinx       = "master:4f1a74f86c402e0810e84ab0588b5de2ca9ccfff"
>>> meta-angstrom     = "master:fe82cbd08eef51cd5d5a38c1cd0ed6ce7e57fb18"
>> --- a lot of diagnostic messages later
>>> ERROR: Function failed: do_configure (see
>>> /home/andrea/src/FPGA/poky/build/tmp/work/virtex_5_ml507_powerpc_440-poky-linux/u-boot-xilinx/v2012.04.01-r17/temp/log.do_configure.10130
>>>
>>> for further information)
>>> ERROR: Logfile of failure stored in:
>>> /home/andrea/src/FPGA/poky/build/tmp/work/virtex_5_ml507_powerpc_440-poky-linux/u-boot-xilinx/v2012.04.01-r17/temp/log.do_configure.10130
>>>
>>>
>>> Log data follows:
>>> | DEBUG: Executing python function sysroot_cleansstate
>>> | DEBUG: Python function sysroot_cleansstate finished
>>> | DEBUG: Executing shell function do_configure
>>> | NOTE: Replacing xparameters header to match hardware model
>>> |
>>> /home/andrea/src/FPGA/poky/build/tmp/work/virtex_5_ml507_powerpc_440-poky-linux/u-boot-xilinx/v2012.04.01-r17/temp/run.do_configure.10130:
>>>
>>> line 157:
>>> /home/andrea/src/FPGA/poky/build/tmp/work/virtex_5_ml507_powerpc_440-poky-linux/u-boot-xilinx/v2012.04.01-r17/git/board/xilinx/ml507/xparameters.h:
>>>
>>> Not a directory
>>> | ERROR: Function failed: do_configure (see
>>> /home/andrea/src/FPGA/poky/build/tmp/work/virtex_5_ml507_powerpc_440-poky-linux/u-boot-xilinx/v2012.04.01-r17/temp/log.do_configure.10130
>>>
>>> for further information)
>>> ERROR: Task 79
>>> (/home/andrea/src/FPGA/poky/meta-xilinx/recipes-bsp/u-boot/u-boot-xilinx_git.bb,
>>>
>>> do_configure) failed with exit code '1'
>>> ERROR: Function failed: do_compile (see
>>> /home/andrea/src/FPGA/poky/build/tmp/work/virtex_5_ml507_powerpc_440-poky-linux/linux-xilinx/3.3-r02/temp/log.do_compile.10129
>>>
>>> for further information)
>>> ERROR: Logfile of failure stored in:
>>> /home/andrea/src/FPGA/poky/build/tmp/work/virtex_5_ml507_powerpc_440-poky-linux/linux-xilinx/3.3-r02/temp/log.do_compile.10129
>>>
>>>
>>> Log data follows:
>>> | DEBUG: Executing shell function do_compile
>>> | NOTE: make -j 4 uImage CC=powerpc-poky-linux-gcc
>>> LD=powerpc-poky-linux-ld.bfd
>>> | scripts/kconfig/conf --silentoldconfig Kconfig
>>> | ***
>>> | *** Configuration file ".config" not found!
>>> | ***
>>> | *** Please run some configurator (e.g. "make oldconfig" or
>>> | *** "make menuconfig" or "make xconfig").
>>> | ***
>>> | make[2]: *** [silentoldconfig] Error 1
>>> | make[1]: *** [silentoldconfig] Error 2
>>> | make: *** No rule to make target `include/config/auto.conf', needed
>>> by `include/config/kernel.release'.  Stop.
>>> | make: *** Waiting for unfinished jobs....
>>> | ERROR: oe_runmake failed
>>> | ERROR: Function failed: do_compile (see
>>> /home/andrea/src/FPGA/poky/build/tmp/work/virtex_5_ml507_powerpc_440-poky-linux/linux-xilinx/3.3-r02/temp/log.do_compile.10129
>>>
>>> for further information)
>>> ERROR: Task 811
>>> (/home/andrea/src/FPGA/poky/meta-xilinx/recipes-kernel/linux/linux-xilinx_3.3.bb,
>>>
>>> do_compile) failed with exit code '1'
>>> NOTE: Tasks Summary: Attempted 1662 tasks of which 1660 didn't need
>>> to be rerun and 2 failed.
>>> Waiting for 0 running tasks to finish:
>>>
>>> Summary: 2 tasks failed:
>>> /home/andrea/src/FPGA/poky/meta-xilinx/recipes-bsp/u-boot/u-boot-xilinx_git.bb,
>>>
>>> do_configure
>>> /home/andrea/src/FPGA/poky/meta-xilinx/recipes-kernel/linux/linux-xilinx_3.3.bb,
>>>
>>> do_compile
>>> Summary: There were 2 ERROR messages shown, returning a non-zero exit
>>> code.
>>
>> All the best
>> Andrea
>>
>>
>> On Fri 10 May 2013 05:11:48 PM CEST, Elvis Dowson wrote:
>>>
>>> Hi Andrea,
>>>
>>> On May 10, 2013, at 6:02 PM, Andrea Sterbini <a.sterbini at tiscali.it>
>>> wrote:
>>>
>>>>
>>>> The problems I have found (and someway fixed) are:
>>>>
>>>> 1) when I do "bitbake meta-toolchain" I get an error complaining
>>>> that the compiler is not able to build for powerpc with FPU
>>>> Fix: I have changed the ml507 rules to include just the soft FPU
>>>
>>>
>>> I never did get soft-float to work properly with gcc-4.6 or gcc-4.7.
>>> I got soft-float to work with gcc-4.5.4.
>>>
>>> hard float fpu support worked with gcc-4.7.
>>>
>>> Were you able to boot and login to the command prompt with the
>>> generated images ?
>>>
>>> Best regards,
>>>
>>> Elvis Dowson
>>
>>
>
>





More information about the yocto mailing list