All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vineeth Karumanchi <vineethchowz.chowdary@xilinx.com>
To: "Manjukumar Harthikote Matha" <MANJUKUM@xilinx.com>,
	"Martin Hundebøll" <mnhu@prevas.dk>,
	"openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] kernel-fitimage.bbclass: Deploy fitImage without Initramfs
Date: Thu, 8 Mar 2018 13:38:52 +0530	[thread overview]
Message-ID: <8ff8dc78-c574-1854-d410-e3e6dba1f565@xilinx.com> (raw)
In-Reply-To: <BY2PR02MB3479774AF4664F30E76058DB9DF0@BY2PR02MB347.namprd02.prod.outlook.com>

Hi Martin,


On 03/08/2018 01:25 PM, Manjukumar Harthikote Matha wrote:
> Hi Martin,
> 
>> -----Original Message-----
>> From: Martin Hundebøll [mailto:mnhu@prevas.dk]
>> Sent: Wednesday, March 07, 2018 11:26 PM
>> To: Vineeth Karumanchi <VINEETHC@xilinx.com>; openembedded-
>> core@lists.openembedded.org; Manjukumar Harthikote Matha
>> <MANJUKUM@xilinx.com>
>> Subject: Re: [OE-core] [PATCH] kernel-fitimage.bbclass: Deploy fitImage without
>> Initramfs
>>
>> Hi Vineeth,
>>
>> On 2018-03-07 15:41, Vineeth Chowdary Karumanchi wrote:
>>> This patch deploys fitImage (linux.bin + dtb ).
>>> The use case is to have 2 partioned sd card, with FAT partition having
>>> bootloader + fitImage and
>>> ext4 partion having rootfs.
>>>
>>> Signen-off-by: Vineeth Chowdary Karumanchi
>>> <vineethchowz.chowdary@xilinx.com>
>>> ---
>>>    meta/classes/kernel-fitimage.bbclass | 5 +++++
>>>    1 file changed, 5 insertions(+)
>>>
>>> diff --git a/meta/classes/kernel-fitimage.bbclass
>>> b/meta/classes/kernel-fitimage.bbclass
>>> index 50a91e1..25884d5 100644
>>> --- a/meta/classes/kernel-fitimage.bbclass
>>> +++ b/meta/classes/kernel-fitimage.bbclass
>>> @@ -464,6 +464,10 @@ kernel_do_deploy_append() {
>>>                   linux_bin_base_name="fitImage-linux.bin-${PV}-${PR}-${MACHINE}-
>> ${DATETIME}"
>>>                   linux_bin_symlink_name=fitImage-linux.bin-${MACHINE}
>>>                   install -m 0644 linux.bin
>>> ${DEPLOYDIR}/${linux_bin_base_name}.bin
>>> +               fitimage_base_name="fitImage-${PV}-${PR}-${MACHINE}-
>> ${DATETIME}"
>>> +               fitimage_symlink_name=fitImage-${MACHINE}
>>> +               install -m 0644 arch/${ARCH}/boot/fitImage
>>> + ${DEPLOYDIR}/${fitimage_base_name}.bin
>>> +
>>
>> Isn't this already handled by the "linux_bin_base_name" variable just above (i.e.
>> fitImahe-linux.bin-${MACHINE}).

It is linux.bin which is generated at the time of fitImage creation.

- linux.bin and arch/${ARCH}/boot/fitImage differ,
- uboot fails to recognise linux.bin
- arch/${ARCH}/boot/fitImage is the fitimage.

Thanks
VIneeth

>> I have various fitimages, and as far as I recall, a
>> non-initramfs fitimage is already deployed.
>>
> This patch seems to do the right thing.
> 
> linux.bin is being copied as fitImage-linux.bin-${MACHINE} , and I think it is incorrect.
> It should be fitImage, which is generated in do_assemble_fitimage
> 
> If you look at initramfs case:
> install -m 0644 arch/${ARCH}/boot/fitImage-${INITRAMFS_IMAGE} ${DEPLOYDIR}/${fit_initramfs_base_name}.bin which is correct
> 
> Thanks,
> Manju
> 



      reply	other threads:[~2018-03-08  8:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-07 14:41 [PATCH] kernel-fitimage.bbclass: Deploy fitImage without Initramfs Vineeth Chowdary Karumanchi
2018-03-07 16:32 ` ✗ patchtest: failure for " Patchwork
2018-03-08  7:25 ` [PATCH] " Martin Hundebøll
2018-03-08  7:55   ` Manjukumar Harthikote Matha
2018-03-08  8:08     ` Vineeth Karumanchi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8ff8dc78-c574-1854-d410-e3e6dba1f565@xilinx.com \
    --to=vineethchowz.chowdary@xilinx.com \
    --cc=MANJUKUM@xilinx.com \
    --cc=mnhu@prevas.dk \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.