gmacario / easy-jenkins

Easily deploy a Jenkins CI/CD infrastructure via docker-compose
MIT License
35 stars 9 forks source link

docs/building-yocto-udooneo.md: Build failure #57

Closed gmacario closed 8 years ago

gmacario commented 8 years ago

From https://github.com/gmacario/easy-jenkins/blob/master/docs/building-yocto-udooneo.md:

...
Currently 2 running tasks (1301 of 1303):
0: python-2.7.9-r1 do_package_qa (pid 7285)
1: core-image-minimal-1.0-r0 do_rootfs (pid 12809)
�[137A�[J�[1;33mWARNING�[0m: �[33mQA Issue: python: /python-distutils-staticdev/usr/lib/python2.7/config/libpython2.7.a is owned by uid 0, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]�[0m
Currently 2 running tasks (1301 of 1303):
0: python-2.7.9-r1 do_package_qa (pid 7285)
1: core-image-minimal-1.0-r0 do_rootfs (pid 12809)
�[137A�[J�[1;31mERROR�[0m: �[31mError: The image creation script '/var/jenkins_home/jobs/GENIVI/jobs/build_yocto_udooneo/workspace/gdp-src-build/tmp-glibc/work/udooneo-oe-linux-gnueabi/core-image-minimal/1.0-r0/temp/create_image.sdcard' returned 1:
0+0 records in
0+0 records out
0 bytes (0 B) copied, 7.0948e-05 s, 0.0 kB/s
Model:  (file)
Disk /var/jenkins_home/jobs/GENIVI/jobs/build_yocto_udooneo/workspace/gdp-src-build/tmp-glibc/deploy/images/udooneo/core-image-minimal-udooneo-20160224140133.rootfs.sdcard: 25.2MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  12.6MB  8389kB  primary               lba
 2      12.6MB  21.0MB  8389kB  primary

62+0 records in
62+0 records out
31744 bytes (32 kB) copied, 0.000191588 s, 166 MB/s
225+1 records in
225+1 records out
231196 bytes (231 kB) copied, 0.000712553 s, 324 MB/s
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mkfs.fat 3.0.28 (2015-05-16)
/var/jenkins_home/jobs/GENIVI/jobs/build_yocto_udooneo/workspace/gdp-src-build/tmp-glibc/deploy/images/udooneo/m4clean.fw: No such file or directory
WARNING: exit code 1 from a shell command.
�[0m
Currently 2 running tasks (1301 of 1303):
0: python-2.7.9-r1 do_package_qa (pid 7285)
1: core-image-minimal-1.0-r0 do_rootfs (pid 12809)
�[137A�[J�[1;31mERROR�[0m: �[31mFunction failed: do_rootfs�[0m
gmacario commented 8 years ago

From http://dc7600-gm.solarma.it:9080/job/GENIVI/job/build_yocto_udooneo/ws/gdp-src-build/tmp-glibc/work/udooneo-oe-linux-gnueabi/core-image-minimal/1.0-r0/temp/create_image.sdcard/*view*/

...
_generate_boot_image() {
    local boot_part=$1

    # Create boot partition image
...

    # mkdosfs will sometimes use FAT16 when it is not appropriate,
    # resulting in a boot failure from SYSLINUX. Use FAT32 for
    # images larger than 512MB, otherwise let mkdosfs decide.
    ...

    mcopy -i /var/jenkins_home/workspace/GENIVI/build_yocto_udooneo/gdp-src-build/tmp-glibc/work/udooneo-oe-linux-gnueabi/core-image-minimal/1.0-r0/boot.img -s /var/jenkins_home/workspace/GENIVI/build_yocto_udooneo/gdp-src-build/tmp-glibc/deploy/images/udooneo/zImage-udooneo.bin ::/zImage

    # Copy boot scripts
    for item in uEnv.txt m4clean.fw m4startup.fw; do
        src=`echo $item | awk -F':' '{ print $1 }'`
        dst=`echo $item | awk -F':' '{ print $2 }'`

        mcopy -i /var/jenkins_home/workspace/GENIVI/build_yocto_udooneo/gdp-src-build/tmp-glibc/work/udooneo-oe-linux-gnueabi/core-image-minimal/1.0-r0/boot.img -s /var/jenkins_home/workspace/GENIVI/build_yocto_udooneo/gdp-src-build/tmp-glibc/deploy/images/udooneo/$src ::/$dst
    done
...

However by inspecting http://dc7600-gm.solarma.it:9080/job/GENIVI/job/build_yocto_udooneo/ws/gdp-src-build/tmp-glibc/deploy/images/udooneo/

gmacario commented 8 years ago

In Jenkins project build_yocto_udooneo > Build > Execute shell, try adding bitbake m4uploader before bitbake core-image-minimal

Result: The following files will be created on http://dc7600-gm.solarma.it:9080/job/GENIVI/job/build_yocto_udooneo/ws/gdp-src-build/tmp-glibc/work/cortexa9hf-vfp-neon-oe-linux-gnueabi/m4uploader/0.1.1+gitAUTOINC+53738b91a7-r0/image/boot/

but those files are not copied to http://dc7600-gm.solarma.it:9080/job/GENIVI/job/build_yocto_udooneo/ws/gdp-src-build/tmp-glibc/deploy/images/udooneo/

gmacario commented 8 years ago

Next steps: git blame https://github.com/graugans/meta-udoo/blob/jethro/conf/machine/udooneo.conf

gmacario commented 8 years ago

In Jenkins project build_yocto_udooneo > Build > Execute shell, try adding bitbake m4-firmware just before bitbake core-image-minimal

Result: SUCCESS

gmacario commented 8 years ago

Try reproducing on ies-genbld01-vm

Result: SUCCESS

gmacario commented 8 years ago

Close via 7447eb0a14bfcba44be5b0d53905f931078bb395

gmacario commented 8 years ago

NOTE: The workaround at commit https://github.com/gmacario/easy-jenkins/commit/7447eb0a14bfcba44be5b0d53905f931078bb395 may be removed once upstream bug https://github.com/graugans/meta-udoo/issues/3 is fixed