11 Replies Latest reply on Mar 23, 2015 6:52 PM by CMata_Intel

    Kernel build error?

    LimXian

      Hi, all

      I thoroughly followed the guide

      Intel® Edison BSP User Guide

       

      However, I got following error when I run postBuild.sh.

      Any comments are welcomed.

       

      hyon@hyon-brix-d:~/Edison/edison-src$ ./device-software/utils/flash/postBuild.sh

      1+0 records in

      1+0 records out

      4194304 bytes (4.2 MB) copied, 0.00463733 s, 904 MB/s

      1+0 records in

      1+0 records out

      4194304 bytes (4.2 MB) copied, 0.00498711 s, 841 MB/s

      1+0 records in

      1+0 records out

      4194304 bytes (4.2 MB) copied, 0.0053908 s, 778 MB/s

      1+0 records in

      1+0 records out

      4194304 bytes (4.2 MB) copied, 0.00595146 s, 705 MB/s

      1+0 records in

      1+0 records out

      4194304 bytes (4.2 MB) copied, 0.00537606 s, 780 MB/s

      1+0 records in

      1+0 records out

      4194304 bytes (4.2 MB) copied, 0.00526802 s, 796 MB/s

      1+0 records in

      1+0 records out

      4194304 bytes (4.2 MB) copied, 0.00534958 s, 784 MB/s

      1+0 records in

      1+0 records out

      4194304 bytes (4.2 MB) copied, 0.00628407 s, 667 MB/s

      cp: cannot stat ‘/home/hyon/Edison/edison-src/build/tmp/deploy/images/edison/vmlinux’: No such file or directory

      ./device-software/utils/flash/postBuild.sh: line 64: /home/hyon/Edison/edison-src/u-boot/tools/mkimage: No such file or directory

      **** Done ***

      Files ready to flash in /home/hyon/Edison/edison-src/build/toFlash/

      Run the flashall script there to start flashing.

      *************

      hyon@hyon-brix-d:~/Edison/edison-src$

        • 1. Re: Kernel build error?
          3Nigma

          What is the content of your /home/hyon/Edison/edison-src/u-boot/ folder? After a succesfull build, you aren't suppose to have this directory. Delete it and try again the postBuild script.

           

          I also get the vmlinux error, but it's no problem. It's not being used.

          • 2. Re: Kernel build error?
            LimXian

            Hi,

            according to manual of BSP, there is no mention about error message of postBuild.sh

            But why this error is happening?

            • 3. Re: Kernel build error?
              3Nigma

              Hi,

              Hard to say, but doing a "grep" inside device-software for mkimage, I found out that the output paths of it are patched by utils/0001-kernel-kernel-yocto-fix-external-src-builds-when-S-B-poky-dora.patch . Maybe setup.sh did not complete the patching process.

              • 4. Re: Kernel build error?
                CMata_Intel

                Hi LimXian

                 

                Are you still having the error message? Were you able to build the kernel?

                 

                Regards;

                CMata

                • 5. Re: Kernel build error?
                  LimXian

                  Hi, I still have same error.

                  I downloaded edison-src-ww05-15.tgz, extracted to a new folder.

                  The I followed DOC 331188-004 exactly, but still same error.

                  • 6. Re: Kernel build error?
                    LimXian

                    This is my all log for build

                     

                     

                    hyon@hyon-brix-d:~/Edison/edison-src$ time make image

                    /bin/bash -c "source out/current/poky/oe-init-build-env /home/hyon/Edison/edison-src/out/current/build ; bitbake -c cleansstate edison-image ; bitbake edison-image"

                     

                    ### Shell environment set up for builds. ###

                     

                    You can now run 'bitbake <target>'

                     

                    Common targets are:

                        core-image-minimal

                        core-image-sato

                        meta-toolchain

                        adt-installer

                        meta-ide-support

                     

                    You can also run generated qemu images with a command like 'runqemu qemux86'

                    Parsing recipes: 100% |######################################################################################################################################################################| Time: 00:00:55

                    Parsing of 919 .bb files complete (0 cached, 919 parsed). 1287 targets, 93 skipped, 0 masked, 0 errors.

                    NOTE: Resolving any missing task queue dependencies

                     

                    Build Configuration:

                    BB_VERSION        = "1.22.0"

                    BUILD_SYS         = "x86_64-linux"

                    NATIVELSBSTRING   = "Ubuntu-14.04"

                    TARGET_SYS        = "i586-poky-linux"

                    MACHINE           = "edison"

                    DISTRO            = "poky-edison"

                    DISTRO_VERSION    = "1.6.1"

                    TUNE_FEATURES     = "m32 core2"

                    TARGET_FPU        = ""

                    meta             

                    meta-yocto       

                    meta-yocto-bsp   

                    meta-edison      

                    meta-edison-distro

                    meta-edison-middleware

                    meta-edison-arduino

                    meta-edison-devtools = "<unknown>:<unknown>"

                     

                    NOTE: Preparing runqueue

                    NOTE: Executing RunQueue Tasks

                    NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.

                    Loading cache: 100% |########################################################################################################################################################################| ETA:  00:00:00

                    Loaded 1288 entries from dependency cache.

                    NOTE: Resolving any missing task queue dependencies

                     

                    Build Configuration:

                    BB_VERSION        = "1.22.0"

                    BUILD_SYS         = "x86_64-linux"

                    NATIVELSBSTRING   = "Ubuntu-14.04"

                    TARGET_SYS        = "i586-poky-linux"

                    MACHINE           = "edison"

                    DISTRO            = "poky-edison"

                    DISTRO_VERSION    = "1.6.1"

                    TUNE_FEATURES     = "m32 core2"

                    TARGET_FPU        = ""

                    meta             

                    meta-yocto       

                    meta-yocto-bsp   

                    meta-edison      

                    meta-edison-distro

                    meta-edison-middleware

                    meta-edison-arduino

                    meta-edison-devtools = "<unknown>:<unknown>"

                     

                    NOTE: Preparing runqueue

                    NOTE: Executing SetScene Tasks

                    NOTE: Executing RunQueue Tasks

                    WARNING: Failed to fetch URL http://download.savannah.gnu.org/releases/quilt/quilt-0.61.tar.gz, attempting MIRRORS if available

                    WARNING: Failed to fetch URL ftp://ftp.gmplib.org/pub/gmp-5.1.1/gmp-5.1.1.tar.bz2, attempting MIRRORS if available

                    WARNING: Failed to fetch URL http://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz, attempting MIRRORS if available

                    WARNING: Failed to fetch URL http://download.savannah.gnu.org/releases/acl/acl-2.2.52.src.tar.gz, attempting MIRRORS if available

                    WARNING: Failed to fetch URL http://zlib.net/pigz/pigz-2.3.1.tar.gz, attempting MIRRORS if available

                    WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/b/base-passwd/base-passwd_3.5.29.tar.gz, attempting MIRRORS if available

                    WARNING: Failed to fetch URL http://downloads.sourceforge.net/project/libpng/libpng16/1.6.8/libpng-1.6.8.tar.xz, attempting MIRRORS if available

                    NOTE: validating kernel config, see log.do_kernel_configcheck for details

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/udev/bin/udevadm' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/lib/systemd/systemd-random-seed' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/lib/systemd/systemd-networkd' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/lib/systemd/systemd-journald' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/lib/systemd/systemd-machined' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/lib/systemd/systemd' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/lib/systemd/systemd-localed' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/lib/systemd/systemd-shutdown' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/lib/systemd/systemd-logind' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/lib/systemd/system-generators/systemd-fstab-generator' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/bin/systemd-tmpfiles' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/bin/systemctl' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/bin/systemd-tty-ask-password-agent' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/systemd/1_213+gitAUTOINC+c9679c652b-r0/packages-split/systemd/bin/machinectl' has relocations in .text

                    WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/n/netbase/netbase_5.2.tar.gz, attempting MIRRORS if available

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/openssh/6.5p1-r0/packages-split/openssh-scp/usr/bin/scp.openssh' has relocations in .text

                    WARNING: QA Issue: ELF binary '/home/hyon/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/openssh/6.5p1-r0/packages-split/openssh-ssh/usr/bin/ssh.openssh' has relocations in .text

                    WARNING: busybox: alternative target (/etc/syslog.conf or /etc/syslog.conf.busybox) does not exist, skipping...

                    WARNING: busybox: NOT adding alternative provide /etc/syslog.conf: /etc/syslog.conf.busybox does not exist

                    WARNING: alt_link == alt_target: /etc/syslog.conf == /etc/syslog.conf

                    WARNING: Failed to fetch URL ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/dosfstools-2.11.src.tar.gz, attempting MIRRORS if available

                    WARNING: Failed to fetch URL ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.87.tar.bz2, attempting MIRRORS if available

                    WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-25.diff.gz;apply=no;name=patch, attempting MIRRORS if available

                    WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/d/dpkg/dpkg_1.17.4.tar.xz, attempting MIRRORS if available

                    WARNING: Failed to fetch URL http://ftp.de.debian.org/debian/pool/main/m/mklibs/mklibs_0.1.38.tar.gz, attempting MIRRORS if available

                    WARNING: Failed to fetch URL ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-3.01a20.tar.bz2, attempting MIRRORS if available

                    WARNING: iperf: No generic license file exists for: NewBSD in any provider

                    NOTE: Tasks Summary: Attempted 3325 tasks of which 29 didn't need to be rerun and all succeeded.

                     

                    Summary: There were 34 WARNING messages shown.

                    ./device-software/utils/flash/postBuild.sh /home/hyon/Edison/edison-src/out/current/build

                    1+0 records in

                    1+0 records out

                    4194304 bytes (4.2 MB) copied, 0.00580986 s, 722 MB/s

                    1+0 records in

                    1+0 records out

                    4194304 bytes (4.2 MB) copied, 0.00406345 s, 1.0 GB/s

                    1+0 records in

                    1+0 records out

                    4194304 bytes (4.2 MB) copied, 0.00405478 s, 1.0 GB/s

                    1+0 records in

                    1+0 records out

                    4194304 bytes (4.2 MB) copied, 0.00580029 s, 723 MB/s

                    1+0 records in

                    1+0 records out

                    4194304 bytes (4.2 MB) copied, 0.0055864 s, 751 MB/s

                    1+0 records in

                    1+0 records out

                    4194304 bytes (4.2 MB) copied, 0.00675087 s, 621 MB/s

                    1+0 records in

                    1+0 records out

                    4194304 bytes (4.2 MB) copied, 0.00701958 s, 598 MB/s

                    cp: cannot stat ‘/home/hyon/Edison/edison-src/out/current/build/tmp/deploy/images/edison/vmlinux’: No such file or directory

                    find: `/home/hyon/Edison/edison-src/u-boot': No such file or directory

                    Image Name:   Edison Updater script

                    Created:      Wed Mar  4 15:39:25 2015

                    Image Type:   PowerPC Linux Script (uncompressed)

                    Data Size:    14683 Bytes = 14.34 kB = 0.01 MB

                    Load Address: 00010000

                    Entry Point:  00010000

                    Contents:

                       Image 0: 14675 Bytes = 14.33 kB = 0.01 MB

                    **** Done ***

                    Files ready to flash in /home/hyon/Edison/edison-src/out/current/build/toFlash/

                    Run the flashall script there to start flashing.

                    *************

                     

                    real    148m38.566s

                    user    433m35.896s

                    sys    74m21.223s

                    hyon@hyon-brix-d:~/Edison/edison-src$

                    • 7. Re: Kernel build error?
                      CMata_Intel

                      Hi LimXian

                       

                      I've seen some issues with Ubuntu14...I  recommend 12.04 LTS - 64 bits.

                      Also, there are some warnings when you try to access the web, could you check your network connection?

                      Have you try to erase the files instead of using cleansstate?

                       

                      Regards;

                      CMata

                      • 8. Re: Kernel build error?
                        LimXian

                        Hi,

                        I think this is because of a bug of the postBuild script.

                        Where is the repository of the BSP?

                        • 9. Re: Kernel build error?
                          CMata_Intel

                          Hi LimXian

                           

                          You can use this repository openembedded/meta-openembedded · GitHub or you can add packages from here: Recipe reporting system -

                          You can also download the "GPL/LGPL source files" in Intel® Edison Boards and Compute Modules — Software Downloads. With these files you will be able to build the image without an Internet connection, this is an unsupported process so there are no official documents/tutorials for this but you can try it if you want to.

                           

                          Best Regards,

                          -CMata

                          • 10. Re: Kernel build error?
                            LimXian

                            Hi, Let me explain current problem.

                            Overall, everybody will meet an error message even though individual follows DOC #331188-004. I am asking to Intel employee to verify current document in clean installed machine.

                            To build a customized image for the Edison, I am reading “BSP User Guide” downloaded from http://www.intel.com/support/edison/sb/CS-035278.htm

                            In the guide, page 7, there is an error (line 8)

                            - Download the BSP source package edison-src.tgz.

                               Actually, there is nothing that has edison-src.tgz as file name.

                               Instead, there is a “edison-src-rel1-maint-rel1-ww42-14.tgz"

                               Why this document does not describe about this? Also, naming

                               convention is different as shown.

                            Also, “../device-software/utils/flash/postBuild.sh, there is an error.

                            In the “line 44”, this script tries to copy vmlinux, which does not exist

                            after “carefully” follow the DOC #331188-004.

                            My question is that

                            - Where is the github or similar repository that contains the “edison-src.tgz” files? I would like to create an issue directly on the repository.

                            • 11. Re: Kernel build error?
                              CMata_Intel

                              Hi LimXian

                               

                              Thanks for the feedback we are going to pass it to the proper team.

                              Right now, in Software Downloads the Linux source files, when you download it has the name edison-src-ww05-15.tgz have you tried with these files? It seems that you are using an older one.

                              About your issue with postBuild.sh, have you try to run the flashall.sh file in your board?

                              There isn't an official repository right now, in the meantime you can give us your feedback and we will be glad to pass it to a proper team.

                               

                              Regards;

                              CMata