How to add mtd-tests for LS1043ARDB?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add mtd-tests for LS1043ARDB?

544 Views
Contributor IV

Need the recipe/.bb to add user level mtd-tests (included in mtd-utils) for bitbake fsl-image-core.  I see a basic mtd-utils .bb under poky/meta/recipes-core/images/core-image-minimal-mtdutils.bb, but this doesn't compile the mtd-tests.

Memory Technology Device (MTD) Subsystem for Linux. 

git.infradead.org Git - mtd-utils.git/summary 

Memory Technology Device (MTD) Subsystem for Linux. 

I need the mtd-tests on the LS1043ardb, how do I add them to the recipes so they are compiled? Please provide the needed recipe that compiles the user level mtd-tests. I need specifically the user level mtd-tests, NOT looking for information on the driver mtd tests. Using the yocto bitbake rather than the LSDK/flex-builder. There is no documentation from NXP on user level mtd-tests, so links will not be helpful here.

Labels (2)
Tags (2)
0 Kudos
6 Replies

27 Views
Contributor IV

./flash_readtest -v /dev/mtd1
libmtd: error!: ECCGETLAYOUT ioctl request failed
error 95 (Operation not supported)
not NAND flash, assume page size is 512 bytes.
testing page read
Successfully read erase block 0
Successfully read erase block 1
....
Successfully read erase block 509
Successfully read erase block 510
Successfully read erase block 511

The message "ECCGETLAYOUT ioctl request failed" indicates the driver is unable to get the ECC NOR memory layout, and requires a NOR ECC no support option be used to remove the message or for layout to be used. Tests ran successfully to completion regardless. How do I provide a No ECC support and how is the layout configured and in what file?

0 Kudos

27 Views
Contributor IV

There is no meta-qoriq-demos in SDK 2.0 1703 so this failed to work even after adding.

0 Kudos

27 Views
NXP TechSupport
NXP TechSupport

Hello Tracy Smith,

In SDK 2.0, please edit the recipe meta-freescale/recipes-fsl/packagegroups/packagegroup-fsl-mfgtools.bb to add "mtd-utils-tests".

Thanks,

Yiping

0 Kudos

27 Views
Contributor IV

Parsing recipes: 100% |#########################################################################################################################| Time: 00:00:18
Parsing of 2956 .bb files complete (0 cached, 2956 parsed). 3701 targets, 253 skipped, 5 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'mtd-utils-tests' (but /home/tlsmith/repo/sources/meta-freescale/recipes-fsl/packagegroups/packagegroup-fsl-mfgtools.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'mtd-utils-tests' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['mtd-utils-tests']
NOTE: Runtime target 'packagegroup-fsl-mfgtools' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-fsl-mfgtools', 'mtd-utils-tests']
ERROR: Required build target 'fsl-image-core' has no buildable providers.
Missing or unbuildable dependency chain was: ['fsl-image-core', 'packagegroup-fsl-mfgtools', 'mtd-utils-tests']

bitbake fsl-image-core builds mtd-utils-tests after adding it in SDK 2.0 1703 meta-freescale/recipes-fsl/packagegroups/packagegroup-fsl-mfgtools.bb?

0 Kudos

27 Views
NXP TechSupport
NXP TechSupport

Hello Tracy Smith,

Please update mtd-utils recipes to higher version, please back up the original sources/poky/meta/recipes-devtools/mtd folder and use the attached mtd recipes folder to replace it.

Thanks,

Yiping

0 Kudos

27 Views
NXP TechSupport
NXP TechSupport

Hello Tracy Smith,

Mtd-test utils applications have been configured to be installed with EXTRA_OECONF += "--enable-install-tests" in recipe poky/meta/recipes-devtools/mtd/mtd-utils_git.bb.

Please add "mtd-utils-tests" in the variable RDEPENDS_${PN} in meta-qoriq-demos/recipes-fsl/packagegroups/packagegroup-fsl-mfgtools.bb

RDEPENDS_${PN} = " \
    packagegroup-core-boot \
    bash \
    util-linux \
    dosfstools \
    mtd-utils \
    mtd-utils-ubifs \
    mtd-utils-jffs2 \
    e2fsprogs-mke2fs \
    mtd-utils-tests \
    hdparm \
"

The regenerate rootfs filesystem and boot up the system.

Please check mtd-test related applications in /usr/libexec/mtd-utils/ on the target board.

 


Have a great day,
TIC

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos