T2080 Merge files into rootfs when using yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

T2080 Merge files into rootfs when using yocto

913 Views
qwertyuiop
Contributor I

We merge files into rootfs use meta-freescale/recipes-extended/merge-files/merge/ path,but i find binary files can not merged when appearing following error in bitbake process.

ERROR: QA Issue: merge-files: Recipe inherits the allarch class, but has packaged architecture-specific binaries [arch]
WARNING: QA Issue: /root/i2cget_merge-files contained in package merge-files requires libc.so.6(GLIBC_2.4), but no providers found in its RDEPENDS [file-rdeps]
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/panyuanyuan/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb/tmp/work/all-fsl-linux/merge-files/1.0-r0/temp/log.do_package_qa.11262
ERROR: Task 1358 (/home/panyuanyuan/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-extended/merge-files/merge-files_1.0.bb, do_package_qa) failed with exit code '1'

Can someone to give me some help?

Best regards.

0 Kudos
1 Reply

563 Views
Pavel
NXP Employee
NXP Employee

Test your board using static library for your software.

Use similar command for gcc:

$CC test.c --static -o test.elf

 

Other method is the following:

Use the following command sequence for adding file to RAM disk image.

  1. rename your RAM disk image to rootfs.ext2.gz.uboot
  2. sudo apt-get install u-boot-tools

Following are the steps for adding files into rootfilesystem:

 

  1. dd if=rootfs.ext2.gz.uboot of=rootfs.ext2.gz bs=64 skip=1

 

  1. gunzip rootfs.ext2.gz

 

  1. mkdir /mnt/iso_1

 

  1. sudo mount -oloop rootfs.ext2 /mnt/iso_1

 

  1. Now, one can copy files into appropriate location under “./mnt/iso_1” directory.

 

  1. sudo umount /mnt/iso_1

 

  1. gzip -9 rootfs.ext2

 

  1. mkimage -A ppc -O linux -T ramdisk -C gzip -n 'rootfs.ext2.gz.uboot' -d rootfs.ext2.gz rootfs.ext2.gz.uboot


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos