4 Replies Latest reply on Jul 3, 2017 1:23 PM by Intel Corporation

    Error openjdk-8 build Edison image 20160606

    francknos

      Hi ,

       

      I open a new thread which help me to build the edison image (I hope...)

       

      I have download the original source here Build Your Own Yocto* Poky Image:

       

      I have follow the BSP instruction to build my image (install essential)

      To build my image I make these steps:

       

      In poky folder :

       

      source oe-init-build-env ../build-edison
      

       

      So I jump to the build-edison directory

       

      bitbake edison-image
      

       

      So the compilation start...

      And My first error is openjdk-8_60b27-2.5.4.bb

       

      ERROR: Fetcher failure for URL: 'http://hg.openjdk.java.net/jdk8u/jdk8u60/hotspot/archive/10ad4b9d79f9.tar.bz2;name=hotspot;unpack=false'. Checksum mismatch!

      File: '/home/franck/Bureau/edison-20160606/build_edison/downloads/10ad4b9d79f9.tar.bz2' has md5 checksum c1e2f328c03f07134dbf2fc7e1866942 when cf3ae34a7a4f1aec5fb8a895e3ebf2e4 was expected

      File: '/home/franck/Bureau/edison-20160606/build_edison/downloads/10ad4b9d79f9.tar.bz2' has sha256 checksum 21f83083dfa15edc4a53e1659df8ef7cb63f293b603a7f3f5a7eaee141ac3e57 when a95c0a8a20a90f387096dc37d52e4d1e42e5ac9da3c48fbe264d2fd5d79e9ae0 was expected

      If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:

      SRC_URI[hotspot.md5sum] = "c1e2f328c03f07134dbf2fc7e1866942"

      SRC_URI[hotspot.sha256sum] = "21f83083dfa15edc4a53e1659df8ef7cb63f293b603a7f3f5a7eaee141ac3e57"

      Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

       

       

      ERROR: Function failed: Fetcher failure for URL: 'http://hg.openjdk.java.net/jdk8u/jdk8u60/hotspot/archive/10ad4b9d79f9.tar.bz2;name=hotspot;unpack=false'. Unable to fetch URL from any source.

      ERROR: Logfile of failure stored in: /home/franck/Bureau/edison-20160606/build_edison/tmp/work/core2-32-poky-linux/openjdk-8-jre/60b27-2.5.4-r0.1/temp/log.do_fetch.30482

      ERROR: Task 1325 (/home/franck/Bureau/edison-20160606/build_edison/../poky/meta-java/recipes-core/openjdk/openjdk-8_60b27-2.5.4.bb, do_fetch) failed with exit code '1'

      There is a problem with checksum I think.

       

      Someone can help me to build one edison image?

       

      Thanks

        • 1. Re: Error openjdk-8 build Edison image 20160606
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hello francknos,

          Thanks for reaching out!

          The following steps have been tested by a couple of users and myself in https://communities.intel.com/thread/111630:

          Make sure you are using Ubuntu 14.04 (I tested this steps on kernel version 4.4.0-38-generic) and have the following versions of Git, tar, and Python:
           
          Git 1.7.8 or greater
          tar 1.24 or greater
          Python 2.7.3 or greater excluding Python 3.x, which is not supported.
           
          Install all the dependencies with the command:
           
          sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
               build-essential chrpath socat libsdl1.2-dev xterm
           
          Download and unzip iot-devkit-yp-poky-edison-20160606.zip (http://iotdk.intel.com/src/3.5/edison/iot-devkit-yp-poky-edison-20160606.zip).
           
          Go to iot-devkit-yp-poky-edison-20160606/poky/meta-intel-edison/meta-intel-edison-distro/recipes-core/images/edison-image.bb  and comment or delete the following lines:
           
          IMAGE_INSTALL += "iotkit-comm-js"
          IMAGE_INSTALL += "iotkit-comm-c-dev"
           
          Go to http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/commit/recipes-core/icedtea/openjdk-7-03b147/sigsegv.patchid=97f81e65843dd1e01c55cae528fd766dd13a265d
           
          Download the patch and unzip it.
           
          Go to iot-devkit-yp-poky-edison-20160606/poky/meta-java/recipes-core/ant and delete the file called ant-native_1.8.1.bb, replace it with the file with the same name found in <path_to_downloaded_and_unzipped_patch>/meta-java-master/recipes-core/ant/.
           
          Go to iot-devkit-yp-poky-edison-20160606/poky/meta-java/recipes-core/icedtea/ and delete the file called icedtea7-native_2.1.3.bb, replace it with the file with the same name found in <path_to_downloaded_and_unzipped_patch>/meta-java-master/recipes-core/icedtea/.
           
          Go to iot-devkit-yp-poky-edison-20160606/poky/meta-java/recipes-core/icedtea/openjdk-7-03b147/ and delete the file fix-checksums.patch, replace it with the file with the same name found in <path_to_downloaded_and_unzipped_patch>/meta-java-master/recipes-core/icedtea/openjdk-7-03b147/.
           
          Go to iot-devkit-yp-poky-edison-20160606/poky/meta-intel-iot-devkit/recipes-connectivity/bacnet-stack and open the file called bacnet-stack_0.8.2.bb. Look for the line:
           
          SRC_URI = "http://sourceforge.net/projects/bacnet/files/bacnet-stack/bacnet-stack-${PV}/bacnet-stack-${PV}.tgz \
           
          And change it for:
           
          SRC_URI = "https://svwh.dl.sourceforge.net/project/bacnet/bacnet-stack/bacnet-stack-0.8.2/bacnet-stack-0.8.2.tgz \
           
          Then follow the usual steps:
           
          cd iot-devkit-yp-poky-edison-20160606/poky/
          source oe-init-build-env ../build_edison/
          bitbake edison-image u-boot
          ../poky/meta-intel-edison/utils/flash/postBuild.sh .
          zip -r toFlash.zip toFlash

          If you have issues building the image, you can also check https://communities.intel.com/thread/111630, on the latter pages, a user provided new ways to build the image with newer kernels and some other add-ons. If, on the other hand you'd like to continue trying with these sources and have issues, please post the error message and we'll try to help you.

          I hope this information helps you,
          Pedro M.

          • 2. Re: Error openjdk-8 build Edison image 20160606
            francknos

            Hi,

            This time I can compile but I don't know why ?? I have make the same step.

             

            But when I run postbuild.sh I have some error I don't know if is important ?

             

            franck@franck-VirtualBox:~/Bureau/edison-20160606/build_edison$ ../poky/meta-intel-edison/utils/flash/postBuild.sh

            stat: impossible d'évaluer '/home/franck/Bureau/edison-20160606/poky/build/tmp/deploy/images/edison/edison-image-edison.ext4': Aucun fichier ou dossier de ce type

            ../poky/meta-intel-edison/utils/flash/postBuild.sh: ligne 30: / 1048576 : erreur de syntaxe : opérande attendue (le symbole erroné est "/ 1048576")

            EDISON_ROOTFS_MB = 1536, IMAGE_SIZE_MB =

            ../poky/meta-intel-edison/utils/flash/postBuild.sh: ligne 35 : [: 1536 : opérateur unaire attendu

            cp: impossible d'évaluer '/home/franck/Bureau/edison-20160606/poky/build/tmp/deploy/images/edison/edison-image-edison.hddimg': Aucun fichier ou dossier de ce type

            cp: impossible d'évaluer '/home/franck/Bureau/edison-20160606/poky/build/tmp/deploy/images/edison/u-boot-edison.img': Aucun fichier ou dossier de ce type

            cp: impossible d'évaluer '/home/franck/Bureau/edison-20160606/poky/build/tmp/deploy/images/edison/u-boot-edison.bin': Aucun fichier ou dossier de ce type

            cp: impossible d'évaluer '/home/franck/Bureau/edison-20160606/poky/build/tmp/deploy/images/edison/u-boot-envs': Aucun fichier ou dossier de ce type

            1+0 enregistrements lus

            1+0 enregistrements écrits

            4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0349896 s, 120 MB/s

            1+0 enregistrements lus

            1+0 enregistrements écrits

            4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0354459 s, 118 MB/s

            1+0 enregistrements lus

            1+0 enregistrements écrits

            4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,00855278 s, 490 MB/s

            1+0 enregistrements lus

            1+0 enregistrements écrits

            4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0108659 s, 386 MB/s

            1+0 enregistrements lus

            1+0 enregistrements écrits

            4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0242176 s, 173 MB/s

            1+0 enregistrements lus

            1+0 enregistrements écrits

            4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,00706141 s, 594 MB/s

            1+0 enregistrements lus

            1+0 enregistrements écrits

            4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0176969 s, 237 MB/s

            cp: impossible d'évaluer '/home/franck/Bureau/edison-20160606/poky/build/tmp/deploy/images/edison/edison-image-edison.ext4': Aucun fichier ou dossier de ce type

            cp: impossible d'évaluer '/home/franck/Bureau/edison-20160606/poky/build/tmp/deploy/images/edison/vmlinux': Aucun fichier ou dossier de ce type

            cp: impossible d'évaluer '/home/franck/Bureau/edison-20160606/poky/build/tmp/deploy/images/edison/u-boot-edison.bin': Aucun fichier ou dossier de ce type

            find: «/home/franck/Bureau/edison-20160606/poky/build/tmp/work/edison-poky-linux/u-boot»: Aucun fichier ou dossier de ce type

            Error : ota_update.scr creation failed, mkimage tool not found

             

            Where I can find the toFlash directory ? I haven't this directory.

             

            How can I flash my intel ?

            • 3. Re: Error openjdk-8 build Edison image 20160606
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Sometimes, there are issues with the servers where the BSP is trying to collect the packages required for the process, this might be what happened with you. However, if you were able to build the image it's all good.

              I don't have a built image at this moment, so I can't go and look for the path right now. However, the image must have create a file called flashall.sh. In order to search for the path where image was built use the command find /home/franck/Bureau/edison-20160606/ -name flashall.sh.

              I don't remember receiving any errors with postBuild.sh, but I'm not entirely sure. So, try to see if the image was create successfully by searching for its path with the command above. Verify that all the files that should be there are indeed there. If everything looks good, you can go ahead and try to flash the image but if there is something odd, you might want to build the image again just to make sure you don't run into any problems when trying to use your board the next time.

              Let me know how it goes.
              Pedro M.

              • 4. Re: Error openjdk-8 build Edison image 20160606
                Intel Corporation
                This message was posted on behalf of Intel Corporation

                Hello francknos,

                Do you have any updates about this?

                Pedro M.