On Fri, Sep 11, 2020 at 02:29 AM, Andrey Zhizhikin wrote:

> 
> On Thu, Sep 10, 2020 at 11:59 PM Brian Hutchinson <[email protected]>
> wrote:
> 
>> On Thu, Sep 10, 2020 at 05:22 AM, Fabio Estevam wrote:
>> 
>> Hi Otavio,
>> 
>> On Thu, Sep 10, 2020 at 9:09 AM Otavio Salvador
>> <[email protected]> wrote:
>> 
>> Could U-Boot load the correct dtb for the board revision?
>> 
>> Unfortunately, this cannot be determined in run-time.
>> 
>> When the sdcard is created, the u-boot environment has fdt_file defaulted
>> to imx8mm-evk.dtb. I've not yet figured out how to override the recipe to
>> specify which .dtb file should be used.
> 
> You can try to do something like this in your layer via creating a
> u-boot-imx_%.bbapend:
> 
> patch_uboot_defconfig () {
> sed -i -e '/^[ ]*CONFIG_DEFAULT_FDT_FILE[ ]*=/d' ${S}/configs/$1
> echo 'CONFIG_DEFAULT_FDT_FILE="'$2'"' >>${S}/configs/$1
> }
> 
> do_configure_prepend_imx8mmevk () {
> patch_uboot_defconfig imx8mm_evk_defconfig imx8mm-evk-revb.dtb
> }
> 
> NOTE: This is not the most clean solution on how to approach the

Ha, ha, I figured there was already some way to do it and I just overlooked it 
or wasn't smart enough to figure it out.  Yeah, you can do anything with good 
ole sed.

I plan to switch back to using the original .config and try the rev B .dtb to 
see if that fixes things when I get a chance.

> 
> setting of U-Boot DTB and would (most probably) break reproducibility.
> You can use it to see what should be changed, and try out if that
> would solve the PCIe hang during boot. Also: "For verification
> purposes ONLY!". :)

Thanks!

Brian
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#24405): 
https://lists.yoctoproject.org/g/meta-freescale/message/24405
Mute This Topic: https://lists.yoctoproject.org/mt/75867493/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to