balena-os / meta-artik

BSP Yocto layer for Samsung Artik board
Apache License 2.0
11 stars 13 forks source link

File .sdcard generation fails #27

Open koansoftware opened 7 years ago

koansoftware commented 7 years ago

$ bitbake core-image-minimal Loading cache: 100% |###########################################################################################################| Time: 0:00:00 Loaded 2051 entries from dependency cache. Parsing recipes: 100% |#########################################################################################################| Time: 0:00:00 Parsing of 1491 .bb files complete (1483 cached, 8 parsed). 2051 targets, 139 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies

Build Configuration: BB_VERSION = "1.32.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal-4.8" TARGET_SYS = "aarch64-poky-linux" MACHINE = "artik710" DISTRO = "poky" DISTRO_VERSION = "2.2.2" TUNE_FEATURES = "aarch64" TARGET_FPU = "" meta meta-poky meta-yocto-bsp = "morty:4b1974d57c997840f7134244145b51c6790c795a" meta-oe = "morty:b40116cf457b88a2db14b86fda9627fb34d56ae6" meta-artik = "morty:bf9e2cdaa1e034ff0afa626d105f9f7c16c083f8" meta-artik710 = "master:c66eb39ed909cda104b7907f9fbd582320261987"

ERROR: core-image-minimal-1.0-r0 do_image_artik_sdimg: Function failed: do_image_artik_sdimg (log file is located at /home/koan/yocto-artik710-morty/poky/build/tmp/work/artik710-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_artik_sdimg.24517) ERROR: Logfile of failure stored in: /home/koan/yocto-artik710-morty/poky/build/tmp/work/artik710-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_artik_sdimg.24517 Log data follows: DEBUG: Executing python function set_image_size DEBUG: Python function set_image_size finished DEBUG: Executing shell function do_image_artik_sdimg du: cannot access ‘/home/koan/yocto-artik710-morty/poky/build/tmp/deploy/images/artik710/core-image-minimal-artik710-20170925181659.rootfs.ext4’: No such file or directory Creating filesystem with Boot partition 20480 KiB and RootFS 61440 KiB 0+0 records in 0+0 records out 0 bytes (0 B) copied, 8.5331e-05 s, 0.0 kB/s Model: (file) Disk /home/koan/yocto-artik710-morty/poky/build/tmp/deploy/images/artik710/core-image-minimal-artik710-20170925181659.rootfs.artik-sdimg: 88.1MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:
Number Start End Size Type File system Flags
1 4194kB 25.2MB 21.0MB primary boot, lba
2 25.2MB 88.1MB 62.9MB primary
mkfs.fat 4.0 (2016-05-06)
Total number of sectors (40960) not a multiple of sectors per track (63)!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test
Several file names given, but last argument (s5p6818-artik710-raptor-rev03.dtb) not a directory
/home/koan/yocto-artik710-morty/poky/build/tmp/deploy/images/artik710/Image-: No such file or directory
nexell/s5p6818-artik710-raptor-rev00.dtb: No such file or directory
nexell/s5p6818-artik710-raptor-rev01.dtb: No such file or directory
nexell/s5p6818-artik710-raptor-rev03.dtb: No such file or directory
Total number of sectors (40960) not a multiple of sectors per track (63)!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test
mkdir: No such file or directory
Failure to make directory nexell/s5p6818-artik710-raptor-rev03.dtb
nexell/s5p6818-artik710-raptor-rev00.dtb: No such file or directory
nexell/s5p6818-artik710-raptor-rev01.dtb: No such file or directory
WARNING: /home/koan/yocto-artik710-morty/poky/build/tmp/work/artik710-poky-linux/core-image-minimal/1.0-r0/temp/run.do_image_artik_sdimg.24517:1 exit 1 from 'mcopy -i /home/koan/yocto-artik710-morty/poky/build/tmp/work/artik710-poky-linux/core-image-minimal/1.0-r0/boot.img -s /home/koan/yocto-artik710-morty/poky/build/tmp/deploy/images/artik710/Image- nexell/s5p6818-artik710-raptor-rev00.dtb nexell/s5p6818-artik710-raptor-rev01.dtb nexell/s5p6818-artik710-raptor-rev03.dtb :: nexell/s5p6818-artik710-raptor-rev00.dtb nexell/s5p6818-artik710-raptor-rev01.dtb nexell/s5p6818-artik710-raptor-rev03.dtb'
ERROR: Function failed: do_image_artik_sdimg (log file is located at /home/koan/yocto-artik710-morty/poky/build/tmp/work/artik710-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_artik_sdimg.24517)

ERROR: Task (/home/koan/yocto-artik710-morty/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_artik_sdimg) failed with exit code '1' NOTE: Tasks Summary: Attempted 2534 tasks of which 2529 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /home/koan/yocto-artik710-morty/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_artik_sdimg Summary: There was 1 ERROR message shown, returning a non-zero exit code.

rzr commented 6 years ago

Is artik7x supported ?

I don't see it on: https://github.com/resin-os/meta-artik/tree/master/conf/machine

But I can test again for artik10 or 5, it worked for me in the past:

https://blogs.s-osg.org/run-iotivity-artik-yocto/

agherzan commented 6 years ago

@floion Could you take a look at this?

floion commented 6 years ago

@koansoftware artik710 is supported by this repository:https://github.com/resin-os/resin-artik710/tree/master/layers

Can you try with it and report back please?

rzr commented 6 years ago

can https://github.com/resin-os/meta-artik710 be merged into meta-artik ?

koansoftware commented 6 years ago

@floion and everybody, I was able to build for Artik710 using both meta-artik and meta-artik710. The issue here is the failure creating the sdcard image, so I am creating it partitioning, formatting and copying everything manually at the moment.

rzr commented 6 years ago

So maybe we should adjust offsets after this patch is merged:

https://github.com/resin-os/meta-artik/pull/28

rzr commented 6 years ago

Please confirm this issue status on current base: https://github.com/resin-os/meta-artik/pull/28

koansoftware commented 6 years ago

Problem still present. I can't figure out why artik-dsimg.bbclass is called BEFORE the ext4 file. This generate the error because you don't have any file with the same IMAGE_NAME timestamp.

du: cannot access ...../core-image-minimal-artik710-20170925181659.rootfs.ext4’: No such file or directory

rzr commented 6 years ago

Please detail what layers are you pulling ?

koansoftware commented 6 years ago

@rzr details are at the beginning of this thread

JohnniePeters commented 6 years ago

I am having the same issue while trying to build the artik530 target. I am using meta-artik from the head of master and Yocto Sumo.

koansoftware commented 6 years ago

I am having the same issue while trying to build the artik530 target. I am using meta-artik from the head of master and Yocto Sumo.

Hi @JohnniePeters, the meta-artik repo doesn't have any sumo branch, so please use the latest available here (morty). If you want to use the latest version though, please use this where I solved some issues: https://github.com/koansoftware/koan-artik-bsp-repo https://github.com/koansoftware/meta-artik710