All of lore.kernel.org
 help / color / mirror / Atom feed
* Writing the recipes to add new custom DTS file in to the image and configure as as default DTS file to boot image   #imx6
@ 2023-03-15 12:20 Mahendra Sondagar
  0 siblings, 0 replies; only message in thread
From: Mahendra Sondagar @ 2023-03-15 12:20 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 3391 bytes --]

Hello geeks
Hope all are doing well!

Right now, I'm using the i.mx6 SOM from Variscite

I have created the custom image by adding my custom meta layers
Previously, the kernel generated the .wic image along with the default hardware configuration as mentioned in the DTS file through  meta-variscite-bsp layers

Now, I wanted to add my own custom DTS file.. (I'm not intended to modify the default DTS configuration, as it's a fresh DTS file)
And that's how I followed the below steps

*Procedure That I followed*

1. Created the recipes file called "recipes-kernel" in my custom meta-mylayer

2. added the new DTS file as followed the file configuration as.. *recipes-kernel/linux/files/imx6ul-var-som-aio-controller-board-v2-emmc-sd-card.dts*

3. Created the recipe file as, *"linux-aio-controller_1.0.bb"* by adding the following contents
-----------------------------------------------------------------------------------------------------------------------
DESCRIPTION= "AIO Controller board v2 custom kernel configuration"

LICENSE= "MIT"

LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI += "file://imx6ul-var-som-aio-controller-board-v2-emmc-sd-card.dts"
#LINUX_KERNEL_TYPE = "custom"

S = "${WORKDIR}"
DTS_DIR = "${S}/arch/arm/boot/dts"
DTS_NAME = "imx6ul-var-som-aio-controller-board-v2-emmc-sd-card.dts"
DTS_DEST = "${DTS_DIR}/${DTS_NAME}"

do_install() {
install -d ${DTS_DIR}
install -m 0644 ${WORKDIR}/${DTS_NAME} ${DTS_DEST}
}

do_compile() {
oe_runmake -C ${S} ARCH=${ARCH} dtbs
}

DEPENDS = "virtual/kernel"
---------------------------------------------------------------------------------------------------------

4. instead the image with the custom recipes as...
*INSTALLED_IMAGE_append = "  linux-aio-controller"*

5. Listed the dtb file in to the Makefile of the dtb list in /arc/arm/boot/dts directory

*Problem statement
-------------------------------------------------------------------------------------------------------
* During the baking the image, the dts file get parsed
However, it's failed to compile
As the logs shows....

*|ERROR: oe_runmake failed*
*|make: * No rule to make target 'dtbs'.  Stop.

The brief logs are as follows

*

*| DEBUG: Executing shell function do_compile*

*| NOTE: make -j 4 -C /home/mahendra/Documents/AIO_System/Yocto_Src/var-fslc-yocto/build_aio/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/linux-aio-controller/1.0-r0 ARCH= dtbs*

*| ERROR: oe_runmake failed*

*| make: Entering directory '/home/mahendra/Documents/AIO_System/Yocto_Src/var-fslc-yocto/build_aio/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/linux-aio-controller/1.0-r0'*

*| make: Leaving directory '/home/mahendra/Documents/AIO_System/Yocto_Src/var-fslc-yocto/build_aio/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/linux-aio-controller/1.0-r0'*

*| WARNING: exit code 1 from a shell command.*

*| make: * No rule to make target 'dtbs'.  Stop.*

*| ERROR: ExecutionError('/home/mahendra/Documents/AIO_System/Yocto_Src/var-fslc-yocto/build_aio/tmp/work/imx6ul_var_dart-fslc-linux-gnueabi/linux-aio-controller/1.0-r0/temp/run.do_compile.21607', 1, None, None)

----------------------------------------------------------------------------------------------

* Can anyone help me here to figure out the issue?

Thanks
Mahendra

[-- Attachment #2: Type: text/html, Size: 4408 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-15 12:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 12:20 Writing the recipes to add new custom DTS file in to the image and configure as as default DTS file to boot image #imx6 Mahendra Sondagar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.