On 12.09.2017 09:30, Eswaran Vinothkumar (BEG/PJ-IOT-EL) wrote:

Hello,

Hi,

I am using Yocto based build system for my project. The Yocto version used in pyro.( BB_VERSION = "1.34.0").

I am trying to build an SD card image by setting the,

IMAGE_FSTYPES = "sdcard" and also set the SDCARD_GENERATION_COMMAND = "generate_imx_sdcard" .

I don't know what's the current state of sdcard generation bbclass. However, I can assure you that it is not the most comofrtable way of disk image generation. I would encourage you to switch to wic tool already instead (especially if you are using pyro revision). An example wks file for i.MX SoC family can be found at: http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/scripts/lib/image/canned-wks/imx-uboot-spl.wks

To enable it, you would need to add following lines to machine configuration file:

WKS_FILES = "imx-uboot-spl.wks"
IMAGE_DEPENDS_wic_append = " virtual/bootloader"
IMAGE_FSTYPES = "wic"

After trying to build the image , I am seeing the following error messages,

| NOTE: libpthread-stubs-native exists in sysroot, skipping

| DEBUG: Python function extend_recipe_sysroot finished

| DEBUG: Executing shell function do_image_sdcard

| 0+0 records in

| 0+0 records out

| 0 bytes copied, 0.000164164 s, 0.0 kB/s

| Model:  (file)

| Disk /home/evk1206/Projects/test/build/tmp/work/cl_som_imx7-fsl-linux-gnueabi/iot-eval-image/1.0-r0/deploy-iot-eval-image-image-complete/iot-eval-image-cl-som-imx7-20170912065601.rootfs.sdcard: 1057MB

| 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  1053MB  1040MB primary

|

| 846+0 records in

| 846+0 records out

| 433152 bytes (433 kB, 423 KiB) copied, 0.00094238 s, 460 MB/s

| mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows

| mkfs.fat 4.1 (2017-01-24)

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_image_sdcard (log file is located at /home/evk1206/Projects/test/build/tmp/work/cl_som_imx7-fsl-linux-gnueabi/iot-eval-image/1.0-r0/temp/log.do_image_sdcard.28053)

ERROR: Task (/home/evk1206/Projects/test/sources/meta-alen/recipes-core/images/iot-eval-image.bb:do_image_sdcard) failed with exit code '1'

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

Summary: 1 task failed:

/home/evk1206/Projects/test/sources/meta-alen/recipes-core/images/iot-eval-image.bb:do_image_sdcard

Summary: There was 1 WARNING message shown.

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

May I know how to fix this issue.

Mit freundlichen Grüßen / Best regards

*Vinothkumar Eswaran
BEG-PT/PJ-EL*




--
Maciej Pijanowski
Embedded Systems Engineer
http://3mdeb.com | @3mdeb_com

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to