AnsweredAssumed Answered

Bitbake error - unable to create .sdcard file

Question asked by Mark Bohanon on Aug 10, 2016
Latest reply on Aug 16, 2016 by Mark Bohanon

Hello,

I am having multiple issues that may be related.  I've been attempting to do bitbake fsl-community imx6ulevk core-image-base.  Does anyone have any ideas?  I can't find anything by doing searches on internet.

 

Ubuntu 16.04 64bit

 

I get following with either core-image-minimal and core-image-base

design@IL14U27fjm72:~/fsl-community-bsp/build$ bitbake -k core-image-minimal

WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.

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

Loaded 2197 entries from dependency cache.

NOTE: Resolving any missing task queue dependencies

 

Build Configuration:

BB_VERSION        = "1.30.0"

BUILD_SYS         = "x86_64-linux"

NATIVELSBSTRING   = "universal"

TARGET_SYS        = "arm-poky-linux-gnueabi"

MACHINE           = "imx6ulevk"

DISTRO            = "poky"

DISTRO_VERSION    = "2.1.1"

TUNE_FEATURES     = "arm armv7ve vfp thumb neon callconvention-hard cortexa7"

TARGET_FPU        = "hard"

meta             

meta-poky         = "HEAD:f5da2a5913319ad6ac2141438ba1aa17576326ab"

meta-oe          

meta-multimedia   = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"

meta-fsl-arm      = "HEAD:e713e9d0cc2fc0dd407e2cbf9d1eea9c573a4de7"

meta-fsl-arm-extra = "HEAD:698cf389aa446244a39b597fbf58be1d55096500"

meta-fsl-demos    = "HEAD:7e4237db1f48cbbde776b17a66d71def14e3809e"

 

NOTE: Preparing RunQueue

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: core-image-minimal-1.0-r0 do_image_sdcard: Function failed: do_image_sdcard (log file is located at /home/design/fsl-community-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.12660)

ERROR: Logfile of failure stored in: /home/design/fsl-community-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.12660

Log data follows:

| DEBUG: Executing python function set_image_size

| DEBUG: Python function set_image_size finished

| DEBUG: Executing shell function do_image_sdcard

| 0+0 records in

| 0+0 records out

| 0 bytes copied, 7.3147e-05 s, 0.0 kB/s

| Error: Error opening /home/design/fsl-community-bsp/build/tmp/deploy/images/imx6ulevk/core-image-minimal-imx6ulevk-20160810183903.rootfs.sdcard: Operation not permitted

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_image_sdcard (log file is located at /home/design/fsl-community-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.12660)

ERROR: Task 16 (/home/design/fsl-community-bsp/sources/poky/meta/recipes-core/images/core-image-minimal.bb, do_image_sdcard) failed with exit code '1'

NOTE: Tasks Summary: Attempted 2064 tasks of which 2056 didn't need to be rerun and 1 failed.

No currently running tasks (2064 of 2066)

 

Summary: 1 task failed:

/home/design/fsl-community-bsp/sources/poky/meta/recipes-core/images/core-image-minimal.bb, do_image_sdcard

Summary: There was 1 WARNING message shown.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

design@IL14U27fjm72:~/fsl-community-bsp/build$

 

log file:

DEBUG: Executing python function set_image_size

DEBUG: Python function set_image_size finished

DEBUG: Executing shell function do_image_sdcard

0+0 records in

0+0 records out

0 bytes copied, 6.2577e-05 s, 0.0 kB/s

Error: Error opening /home/design/fsl-community-bsp/build/tmp/deploy/images/imx6ulevk/core-image-base-imx6ulevk-20160810184401.rootfs.sdcard: Operation not permitted

WARNING: exit code 1 from a shell command.

ERROR: Function failed: do_image_sdcard (log file is located at /home/design/fsl-community-bsp/build/tmp/work/imx6ulevk-poky-linux-gnueabi/core-image-base/1.0-r0/temp/log.do_image_sdcard.12752)

 

I have other issues related to the .sdcard file that may be related.

 

I am unable to dd a .sdcard file to an SD card.  Person who created .sdcard does not have issue with it.

design@IL14U27fjm72:~$ cd akash/

design@IL14U27fjm72:~/akash$ cd Prototypes/

design@IL14U27fjm72:~/akash/Prototypes$ cd Software/

design@IL14U27fjm72:~/akash/Prototypes/Software$ lsblk

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT

sda           8:0    0 465.8G 0 disk

─sda1        8:1    0 457.9G 0 part /

─sda2        8:2    0 1K  0 part

└─sda5        8:5    0 7.9G  0 part [SWAP]

sdb 8:16   1   3.6G 0 disk

└─sdb1 8:17   1   3.6G 0 part

mmcblk0     179:0    0 15G  0 disk

└─mmcblk0p1 179:1 0    15G  0 part

design@IL14U27fjm72:~/akash/Prototypes/Software$ sudo dd if=custom-image.rootfs.sdcard of=/dev/mmcblk0 bs=1M && sync

[sudo] password for design:

dd: failed to open 'custom-image.rootfs.sdcard': Operation not permitted

design@IL14U27fjm72:~/akash/Prototypes/Software$ sudo dd if=custom-image.rootfs.sdcard of=mmcblk0 bs=1M && sync

dd: failed to open 'custom-image.rootfs.sdcard': Operation not permitted

design@IL14U27fjm72:~/akash/Prototypes/Software$

 

I have permissions

-rw-rw-rw- 1 design design 83886080 Jun  9 19:15 custom-image.rootfs.sdcard

 

If I double click on an .sdcard file, I get permission denied.

 

I am unable to download from an svn repository

design@IL14U27fjm72:~$ cd akash/

design@IL14U27fjm72:~/akash$ svn checkout https://acssvn.honeywell.com/HSF/NorthAmerica/Video-Beam/trunk/Source/HTS/Prototypes

A Prototypes/Test_Linux_SVN

A Prototypes/Software

A Prototypes/Test_Linux_SVN/Common_SVN_commands.txt

A Prototypes/Test_Linux_SVN/history.txt

A Prototypes/Test_Linux_SVN/SVN_Commands

A Prototypes/Software/my_first_app

A Prototypes/Software/README_custom-image.rootfs.txt

A Prototypes/Software/steps_another_machine.txt

A Prototypes/Software/custom-image.rootfs.sdcard

svn: E155009: Failed to run the WC DB work queue associated with '/home/design/akash/Prototypes/Software', work item 7 (file-install Software/custom-image.rootfs.sdcard 1 0 1 1)

svn: E000001: Can't open file '/home/design/akash/Prototypes/.svn/pristine/2b/2b3cbb47ef36d71c0d315b409f717719aff084b0.svn-base': Operation not permitted

design@IL14U27fjm72:~/akash$

Outcomes