QorIQ Linux SDK v2.0-1703 kernel compilation issues

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QorIQ Linux SDK v2.0-1703 kernel compilation issues

13,518 Views
debduttabanerje
Contributor III

Hi,

I have installed the QorIQ Linux SDK v2.0-1703 in the installation folder of QorIQ-SDK-V2.0-20160527-yocto.

I am compiling for T1042D4RDB-64b. The build- "bitbake fsl-image-full" is successful and all the images are generated.

However, I cannot customize Linux Kernel. After installing the source, I fail at kernel config:

bitbake -c menuconfig virtual/kernel.

I get these errors

ERROR: Function failed: do_configure (log file is located at /home/debdutta/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/work/t1042d4rdb_64b-fsl-linux/linux-qoriq/4.1-r0/temp/log.do_configure.18093)
ERROR: Logfile of failure stored in: /home/debdutta/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/work/t1042d4rdb_64b-fsl-linux/linux-qoriq/4.1-r0/temp/log.do_configure.18093
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| cp: cannot stat '/home/debdutta/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/work/t1042d4rdb_64b-fsl-linux/linux-qoriq/4.1-r0/git/arch/powerpc/configs/corenet64_fmanv3l_smp_defconfig': Too many levels of symbolic links
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/debdutta/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/work/t1042d4rdb_64b-fsl-linux/linux-qoriq/4.1-r0/temp/log.do_configure.18093)
ERROR: Task 4 (/home/debdutta/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 285 tasks of which 284 didn't need to be rerun and 1 failed.
No currently running tasks (285 of 286)

Summary: 1 task failed:
/home/debdutta/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb, do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

I have noted that the kernel source is a symlink:

tmp/work/t1042d4rdb_64b-fsl-linux/linux-qoriq/4.1-r0/git -> /home/debdutta/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/work-shared/t1042d4rdb-64b/kernel-source

I think this is creating [roblem.

8 Replies

3,441 Views
魏传奇
Contributor I

hi,Debdutta Banerjee

did  you meet this error issue when you executed the file host-prepare.sh?

root@t1040d4rdb:~# cd QorIQ-SDK-V2.0-20160527-yocto/
root@t1040d4rdb:~/QorIQ-SDK-V2.0-20160527-yocto# ./sources/meta-freescale/scripts/host-prepare.sh 

Error: Unsupported Distribution, Exit
thanks
0 Kudos
Reply

3,441 Views
debduttabanerje
Contributor III

No I did not face this problem.

0 Kudos
Reply

3,441 Views
Pavel
NXP Employee
NXP Employee

Please apply the following patch to fix it:

http://git.freescale.com/git/cgit.cgi/yocto/meta-nxp-npi.git/commit/?h=jethro-sdk-v2.0-ga-17.03

 

Attached file contains corrected linux-qoriq_4.1.bbappend file. Path for this file is the following:

/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1703/recipes-kernel/linux$ ls

linux-qoriq_4.1.bbappend


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

3,441 Views
r_o_
Contributor I

The patch by Pavel worked for me (LS1021, fsl-toolchain).

When I was trying to build fsl-toolchain, I saw the following error.

--------------------

$ bitbake fsl-toolchain

Loading cache: 100% |###########################################| ETA:  00:00:00
Loaded 3442 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.28.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-fsl-linux-gnueabi"
MACHINE           = "ls1021atwr"
DISTRO            = "fsl-qoriq"
DISTRO_VERSION    = "2.0"
TUNE_FEATURES     = "arm armv7a vfp neon callconvention-hard cortexa7"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        
meta-yocto-bsp    = "HEAD:9a211a4a2c1bfcb292dc97d8dcac149bca9e3f1b"
meta-oe           
meta-multimedia   
meta-gnome        
meta-networking   
meta-perl         
meta-python       
meta-ruby         
meta-filesystems  
meta-webserver    
meta-xfce         = "HEAD:dc5634968b270dde250690609f0015f881db81f2"
meta-freescale    = "HEAD:7facbdb726e2dda0515e084c2066a4b8dd99c6d2"
meta-freescale-internal = "HEAD:4829293f807e35a1111e79763294fc8b98b97810"
meta-freescale-extra = "HEAD:bee911b027e0480b034674d0ddee3fcb06d2e985"
meta-virtualization = "HEAD:042425c1d98bdd7e44a62789bd03b375045266f5"
meta-java         = "HEAD:8b776ac68f9af4596be3824152bcf0bc6b67fa1d"
meta-openstack    
meta-openstack-aio-deploy
meta-openstack-compute-deploy
meta-openstack-compute-test-config
meta-openstack-controller-deploy
meta-openstack-controller-test-config
meta-openstack-qemu
meta-openstack-swift-deploy
meta-cloud-services = "HEAD:d8bc0d92d0f741e2ea1e6d3d9bc6b7a091d03cfb"
meta-security     = "HEAD:f9367e71f923fc7d2fb600208e2b97535ea41777"
meta-linaro-toolchain = "HEAD:10b71bed9cfe76baa22c72806ff814cf85c2f73b"
meta-nxp-npi-1703 = "jethro-sdk-v2.0-ga-17.03:d8f8d3a5d3ee18f881466938b847cef9b08c4a35"

NOTE: Preparing RunQueue
NOTE: Checking sstate mirror object availability (for 497 objects)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_configure (log file is located at /home/xxx/Work/QorIQ-SDK/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/ls1021atwr-fsl-linux-gnueabi/linux-qoriq/4.1-r0/temp/log.do_configure.117644)
ERROR: Logfile of failure stored in: /home/xxx/Work/QorIQ-SDK/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/ls1021atwr-fsl-linux-gnueabi/linux-qoriq/4.1-r0/temp/log.do_configure.117644
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| cp: cannot stat '/home/xxx/Work/QorIQ-SDK/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/ls1021atwr-fsl-linux-gnueabi/linux-qoriq/4.1-r0/git/arch/arm/configs/ls1021a_defconfig': Too many levels of symbolic links
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/xxx/Work/QorIQ-SDK/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/ls1021atwr-fsl-linux-gnueabi/linux-qoriq/4.1-r0/temp/log.do_configure.117644)
ERROR: Task 1979 (/home/xxx/Work/QorIQ-SDK/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 776 tasks of which 661 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /home/xxx/Work/QorIQ-SDK/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb, do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
$

--------------------

Looking into the error message, it seemed that circular references of symbolic links was created during the bitbake.

--------------------

$ ls -l /home/xxx/Work/QorIQ-SDK/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/ls1021atwr-fsl-linux-gnueabi/linux-qoriq/4.1-r0/
total 20
...
lrwxrwxrwx  1 xxx xxx  114  7月  8 13:12 git -> /home/xxx/Work/QorIQ-SDK/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work-shared/ls1021atwr/kernel-source
...

$ ls -l /home/xxx/Work/QorIQ-SDK/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work-shared/ls1021atwr
total 12
...
lrwxrwxrwx  1 xxx xxx  134  7月  8 13:20 kernel-source -> /home/xxx/Work/QorIQ-SDK/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/ls1021atwr-fsl-linux-gnueabi/linux-qoriq/4.1-r0/git

--------------------

It is correct that 'git' is a symbolic link, but kernel-source should be a real kernel source tree.

During the bitbake, it was replaced by a symbolic link and circular references was created.

I applied the patch and did bitbake fsl-toolchain again, then the error was resolved.

0 Kudos
Reply

3,441 Views
vijaykumardesai
Contributor II

I also tried the same solution, but in my case the circular symlink still exists. Did you clean [the build folder] and do a build from scratch again or just just did bitbake fsl-toolchain?

0 Kudos
Reply

3,441 Views
shamanth_kudali
Contributor II

Yes. We need to clear the entire tmp folder using the below command from the build_<target> folder.

I got the same error. Manually changed the file suggested by the above patch.

Rerunning the bitbake fsl-toolchain command doesn't work here.  Gives the same error.

So then I ran the below rm command and ran the bitbake fsl-toolchain command.
And all the tasks successfully completed.


rm -rf tmp/
 

P.S. It takes a lot of time to complete all tasks.

0 Kudos
Reply

3,441 Views
steffendedekind
Contributor II

For my case (LS1043ARDB, LS1046ARDB) the provided patch also do not work - there are still the same license Problems during "bitbake fsl-image-minmal".

I sovled it by manually copying the needed license files to their target folders. For some packages it is possible to create empty EULA files to get the expected md5sum in the build log. Using the expected md5sum makes it easy to find the correct needed file in the sources. Here is what helped me out so far (for ls1043ardb build, but also works with ls1046ardb):

tmp/work/ls1043ardb-fsl-linux/rcw/git-r0/license-destdir/rcw/generic_Freescale-EULA tmp/work/ls1043ardb-fsl-linux/rcw/git-r0/git/EULA
cp tmp/work/aarch64-fsl-linux/fm-ucode/git-r1/git/Freescale-Binary-EULA tmp/work/aarch64-fsl-linux/fm-ucode/git-r1/git/EULA

0 Kudos
Reply

3,441 Views
debduttabanerje
Contributor III

Well , I applied the above patch, but now this step  fails:

bitbake -c patch virtual/kernel

WARNING: Failed to fetch URL git://git.freescale.com/ppc/sdk/linux.git;nobranch=1, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
fatal: unable to connect to git.freescale.com:
git.freescale.com[0: 192.88.156.202]: errno=Connection refused


ERROR: Function failed: Fetcher failure for URL: 'git://git.freescale.com/ppc/sdk/linux.git;nobranch=1'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/debdutta/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/work/t1042d4rdb_64b-fsl-linux/linux-qoriq/4.1-r0/temp/log.do_fetch.21697
ERROR: Task 2 (/home/debdutta/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb, do_fetch) failed with exit code '1'

So I cant get the kernel source. Seems there is some problem in fetching it from the above repository. However, I can see the "git.freescale.com" from my internet browser. (attached screenshot)Screenshot from 2017-05-02 11-54-48.png

0 Kudos
Reply