From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel-space.org (mail.kernel-space.org [195.201.34.187]) by mx.groups.io with SMTP id smtpd.web08.3928.1620462050114053203 for ; Sat, 08 May 2021 01:20:50 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@kernel-space.org header.s=20190913 header.b=vQT+YjbA; spf=pass (domain: kernel-space.org, ip: 195.201.34.187, mailfrom: angelo@kernel-space.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-space.org; s=20190913; t=1620462048; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u5pH+ff8mWaaj3KknoBnCyKwTHSq6UJCltKyerETqSc=; b=vQT+YjbATKanfzDVeY6WHkNe9gUe9t2aepT7Z+IYQJ/rINbtbndGp5w5dnS6Gj38CeSntN mODgZlgqEPz6Mt60JFtqWxRrweGkQra7alwk8BRRz2Tsj6JGmU40WkwBUJ2X/ZUJ9+pVbV 23CAdZZDfK6TQOJ4R6BJnJRsL9gIDoA= Received: from [192.168.0.2] (host-95-232-37-181.retail.telecomitalia.it [95.232.37.181]) by ziongate (OpenSMTPD) with ESMTPSA id 56b768be (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sat, 8 May 2021 08:20:48 +0000 (UTC) From: "Angelo Dureghello" Subject: including firmware sdma-imx6q.bin To: meta-freescale@lists.yoctoproject.org Message-ID: Date: Sat, 8 May 2021 10:20:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Hi all, already had this issue more than one time, and solved in a way or another, but trying to figure out the most correct way to do this. This sdma firmware file on recent kernel > (4.14) could be needed, generally to be (even if not always) built-in. I need the kernel build to work both from yocto and from standalone source tree. Actually used below solutions: 1) yocto side, in kernel recipe/bbappend i copy the firmware blob into the kernel source path, in do_compile_prepend(), by: defconfig +CONFIG_EXTRA_FIRMWARE="imx/sdma/sdma-imx6q.bin" +CONFIG_EXTRA_FIRMWARE_DIR="firmware" kernel bbappend +DEPENDS += " \ + firmware-imx \ +" ... +do_compile_prepend() { + ## fetch the firmware blob + rm -rf ${S}/firmware + mkdir ${S}/firmware + cp -arv ${TMPDIR}/sysroots-components/all/firmware-imx/lib/firmware/imx ${S}/firmware/ +} This works, but if i build the kernel out of yocto, have to add separately the fw blob in the /firmware path. 2) i include the blob hex in the kernel tree, and modify makefile, so it get translated to bin, and included. Looks like there must me more proper solutions, if any hint, welcome. Thanks a lot. -- Angelo Dureghello +E: angelo AT kernel-space.org