All of lore.kernel.org
 help / color / mirror / Atom feed
* IMX6DL: Rename dtb in boot partition
@ 2020-03-03 14:15 Mauro Ziliani
  2020-03-03 14:44 ` [yocto] " Laurent Gauthier
  0 siblings, 1 reply; 4+ messages in thread
From: Mauro Ziliani @ 2020-03-03 14:15 UTC (permalink / raw)
  To: Yocto discussion list

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

Hi all.

My recipes procude some dtb.

imx6dl-sabresd-disp1.dtb
imx6dl-sabresd-disp2.dtb


The image recipe gives an sdcard file with 2 partition: p1 and p2

p1 is vfat with zImage and imx6dl-sabresd.dtb

p2 is ext4 with the applications.

In p1 I find imx6dl-sabresd.dtb, imx6dl-sabresd-disp1.dtb and 
imx6dl-sabresd-disp2.dtb

I need to replace imx6dl-sabresd.dtb with that imx6dl-sabresd-disp1.dtb

I'd like to do this

cp -f imx6dl-sabresd-disp1.dtb imx6dl-sabresd.dtb


How can I do that?


There is a way to rename imx6dl-sabresd-disp1.dtb in imx6dl-sabresd.dtb 
inside some task?

do_rootfs, do_image or others?


Best regards,

MZ



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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] IMX6DL: Rename dtb in boot partition
  2020-03-03 14:15 IMX6DL: Rename dtb in boot partition Mauro Ziliani
@ 2020-03-03 14:44 ` Laurent Gauthier
  2020-03-03 15:59   ` Mauro Ziliani
  0 siblings, 1 reply; 4+ messages in thread
From: Laurent Gauthier @ 2020-03-03 14:44 UTC (permalink / raw)
  To: Mauro Ziliani; +Cc: Yocto discussion list

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

Ciao Mauro,

My best guess is that you should do the following:

1. Create a linux-imx_%.bbappend recipe in your layer (assuming you have
one).
2. Add a do_install_append function which overrides $D/boot/
imx6dl-sabresd.dtb

linux-imx is the name of the kernel recipe if you are using an NXP BSP. If
you are using another BSP the name of the kernel recipe might be different,
please adjust as required.

Prior to proceeding to this you should check that you can see your files in
your Yocto build directory under:

* .../tmp/work/imx*/linux-imx/*/packages-split/kernel-devicetree/

The content of the /boot partition normally includes content from the
kernel-devicetree package (created by the kernel recipe), because these are
installed under /boot in the rootfs.

After making the changes suggested above just cleanall + rebuild your
kernel and verify that the DTB file has been properly overwritten (look
again at this same directory I point you to above, compare file checksums
to ensure the copy worked).

If that worked, then just cleanall your final image, and rebuild it.

Hopefully this will work for you.

I hope this helps.

Kind regards, Laurent.

On Tue, Mar 3, 2020 at 3:16 PM Mauro Ziliani <mauro@faresoftware.it> wrote:

> Hi all.
>
> My recipes procude some dtb.
>
> imx6dl-sabresd-disp1.dtb
> imx6dl-sabresd-disp2.dtb
>
>
> The image recipe gives an sdcard file with 2 partition: p1 and p2
>
> p1 is vfat with zImage and imx6dl-sabresd.dtb
>
> p2 is ext4 with the applications.
>
> In p1 I find imx6dl-sabresd.dtb, imx6dl-sabresd-disp1.dtb and
> imx6dl-sabresd-disp2.dtb
>
> I need to replace imx6dl-sabresd.dtb with that imx6dl-sabresd-disp1.dtb
>
> I'd like to do this
>
> cp -f imx6dl-sabresd-disp1.dtb imx6dl-sabresd.dtb
>
>
> How can I do that?
>
>
> There is a way to rename imx6dl-sabresd-disp1.dtb in imx6dl-sabresd.dtb
> inside some task?
>
> do_rootfs, do_image or others?
>
>
> Best regards,
>
>   MZ
>
> 
>


-- 
Laurent Gauthier
Phone: +33 630 483 429
http://soccasys.com

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] IMX6DL: Rename dtb in boot partition
  2020-03-03 14:44 ` [yocto] " Laurent Gauthier
@ 2020-03-03 15:59   ` Mauro Ziliani
  2020-03-03 16:05     ` Laurent Gauthier
  0 siblings, 1 reply; 4+ messages in thread
From: Mauro Ziliani @ 2020-03-03 15:59 UTC (permalink / raw)
  To: Laurent Gauthier; +Cc: Yocto discussion list

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

You are right.

I have not think about linux-imx:do_install_append

Thanks for the help

MZ


Il 03/03/20 15:44, Laurent Gauthier ha scritto:
> Ciao Mauro,
>
> My best guess is that you should do the following:
>
> 1. Create a linux-imx_%.bbappend recipe in your layer (assuming you 
> have one).
> 2. Add a do_install_append function which overrides 
> $D/boot/imx6dl-sabresd.dtb
>
> linux-imx is the name of the kernel recipe if you are using an NXP 
> BSP. If you are using another BSP the name of the kernel recipe might 
> be different, please adjust as required.
>
> Prior to proceeding to this you should check that you can see your 
> files in your Yocto build directory under:
>
> * .../tmp/work/imx*/linux-imx/*/packages-split/kernel-devicetree/
>
> The content of the /boot partition normally includes content from the 
> kernel-devicetree package (created by the kernel recipe), because 
> these are installed under /boot in the rootfs.
>
> After making the changes suggested above just cleanall + rebuild your 
> kernel and verify that the DTB file has been properly overwritten 
> (look again at this same directory I point you to above, compare file 
> checksums to ensure the copy worked).
>
> If that worked, then just cleanall your final image, and rebuild it.
>
> Hopefully this will work for you.
>
> I hope this helps.
>
> Kind regards, Laurent.
>
> On Tue, Mar 3, 2020 at 3:16 PM Mauro Ziliani <mauro@faresoftware.it 
> <mailto:mauro@faresoftware.it>> wrote:
>
>     Hi all.
>
>     My recipes procude some dtb.
>
>     imx6dl-sabresd-disp1.dtb
>     imx6dl-sabresd-disp2.dtb
>
>
>     The image recipe gives an sdcard file with 2 partition: p1 and p2
>
>     p1 is vfat with zImage and imx6dl-sabresd.dtb
>
>     p2 is ext4 with the applications.
>
>     In p1 I find imx6dl-sabresd.dtb, imx6dl-sabresd-disp1.dtb and
>     imx6dl-sabresd-disp2.dtb
>
>     I need to replace imx6dl-sabresd.dtb with that
>     imx6dl-sabresd-disp1.dtb
>
>     I'd like to do this
>
>     cp -f imx6dl-sabresd-disp1.dtb imx6dl-sabresd.dtb
>
>
>     How can I do that?
>
>
>     There is a way to rename imx6dl-sabresd-disp1.dtb in
>     imx6dl-sabresd.dtb inside some task?
>
>     do_rootfs, do_image or others?
>
>
>     Best regards,
>
>       MZ
>
>
>     
>
>
>
> -- 
> Laurent Gauthier
> Phone: +33 630 483 429
> http://soccasys.com

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] IMX6DL: Rename dtb in boot partition
  2020-03-03 15:59   ` Mauro Ziliani
@ 2020-03-03 16:05     ` Laurent Gauthier
  0 siblings, 0 replies; 4+ messages in thread
From: Laurent Gauthier @ 2020-03-03 16:05 UTC (permalink / raw)
  To: Mauro Ziliani; +Cc: Yocto discussion list

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

Hi Mauro,

Glad this helps.

Another option I thought of after replying was to change which dtb is
loaded by u-boot at boot time. This would involve changes to u-boot-imx.

Kind regards, Laurent.

On Tue, Mar 3, 2020 at 4:59 PM Mauro Ziliani <mauro@faresoftware.it> wrote:

> You are right.
>
> I have not think about linux-imx:do_install_append
>
> Thanks for the help
>
> MZ
>
>
> Il 03/03/20 15:44, Laurent Gauthier ha scritto:
>
> Ciao Mauro,
>
> My best guess is that you should do the following:
>
> 1. Create a linux-imx_%.bbappend recipe in your layer (assuming you have
> one).
> 2. Add a do_install_append function which overrides $D/boot/
> imx6dl-sabresd.dtb
>
> linux-imx is the name of the kernel recipe if you are using an NXP BSP. If
> you are using another BSP the name of the kernel recipe might be different,
> please adjust as required.
>
> Prior to proceeding to this you should check that you can see your files
> in your Yocto build directory under:
>
> * .../tmp/work/imx*/linux-imx/*/packages-split/kernel-devicetree/
>
> The content of the /boot partition normally includes content from the
> kernel-devicetree package (created by the kernel recipe), because these are
> installed under /boot in the rootfs.
>
> After making the changes suggested above just cleanall + rebuild your
> kernel and verify that the DTB file has been properly overwritten (look
> again at this same directory I point you to above, compare file checksums
> to ensure the copy worked).
>
> If that worked, then just cleanall your final image, and rebuild it.
>
> Hopefully this will work for you.
>
> I hope this helps.
>
> Kind regards, Laurent.
>
> On Tue, Mar 3, 2020 at 3:16 PM Mauro Ziliani <mauro@faresoftware.it>
> wrote:
>
>> Hi all.
>>
>> My recipes procude some dtb.
>>
>> imx6dl-sabresd-disp1.dtb
>> imx6dl-sabresd-disp2.dtb
>>
>>
>> The image recipe gives an sdcard file with 2 partition: p1 and p2
>>
>> p1 is vfat with zImage and imx6dl-sabresd.dtb
>>
>> p2 is ext4 with the applications.
>>
>> In p1 I find imx6dl-sabresd.dtb, imx6dl-sabresd-disp1.dtb and
>> imx6dl-sabresd-disp2.dtb
>>
>> I need to replace imx6dl-sabresd.dtb with that imx6dl-sabresd-disp1.dtb
>>
>> I'd like to do this
>>
>> cp -f imx6dl-sabresd-disp1.dtb imx6dl-sabresd.dtb
>>
>>
>> How can I do that?
>>
>>
>> There is a way to rename imx6dl-sabresd-disp1.dtb in imx6dl-sabresd.dtb
>> inside some task?
>>
>> do_rootfs, do_image or others?
>>
>>
>> Best regards,
>>
>>   MZ
>>
>> 
>>
>
>
> --
> Laurent Gauthier
> Phone: +33 630 483 429
> http://soccasys.com
>
>

-- 
Laurent Gauthier
Phone: +33 630 483 429
http://soccasys.com

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-03 16:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 14:15 IMX6DL: Rename dtb in boot partition Mauro Ziliani
2020-03-03 14:44 ` [yocto] " Laurent Gauthier
2020-03-03 15:59   ` Mauro Ziliani
2020-03-03 16:05     ` Laurent Gauthier

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.