All of lore.kernel.org
 help / color / mirror / Atom feed
* [vmlinuz.bin] Does u-boot support loading vmlinuz[.bin]?
@ 2018-06-13 11:19 Yuri Frolov
  2018-06-13 15:35 ` Daniel Golle
  0 siblings, 1 reply; 6+ messages in thread
From: Yuri Frolov @ 2018-06-13 11:19 UTC (permalink / raw)
  To: linux-mips

Hi,

do I understand correctly, that the native format for mips arch. u-boot uses is uImage?
Yocto's default for mips is vmlinuz.bin for some reason, here is the question.

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

* Re: [vmlinuz.bin] Does u-boot support loading vmlinuz[.bin]?
  2018-06-13 11:19 [vmlinuz.bin] Does u-boot support loading vmlinuz[.bin]? Yuri Frolov
@ 2018-06-13 15:35 ` Daniel Golle
  2018-06-13 16:28   ` Yuri Frolov
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Golle @ 2018-06-13 15:35 UTC (permalink / raw)
  To: Yuri Frolov; +Cc: linux-mips

Hi Yuri,

On Wed, Jun 13, 2018 at 02:19:06PM +0300, Yuri Frolov wrote:
> Hi,
> 
> do I understand correctly, that the native format for mips arch. u-boot uses is uImage?
> Yocto's default for mips is vmlinuz.bin for some reason, here is the question.
> 

You got to enable U-Boot's CONFIG_CMD_BOOTZ and use the bootz command
in order to boot that. Or change that default to generate FIT or legacy
uImage instead.

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

* Re: [vmlinuz.bin] Does u-boot support loading vmlinuz[.bin]?
  2018-06-13 15:35 ` Daniel Golle
@ 2018-06-13 16:28   ` Yuri Frolov
  2018-06-13 21:48       ` Paul Burton
  0 siblings, 1 reply; 6+ messages in thread
From: Yuri Frolov @ 2018-06-13 16:28 UTC (permalink / raw)
  To: Daniel Golle; +Cc: linux-mips



On 06/13/2018 06:35 PM, Daniel Golle wrote:
> Hi Yuri,
> 
> On Wed, Jun 13, 2018 at 02:19:06PM +0300, Yuri Frolov wrote:
>> Hi,
>>
>> do I understand correctly, that the native format for mips arch. u-boot uses is uImage?
>> Yocto's default for mips is vmlinuz.bin for some reason, here is the question.
>>
> 
> You got to enable U-Boot's CONFIG_CMD_BOOTZ and use the bootz command
> in order to boot that. Or change that default to generate FIT or legacy
> uImage instead.
> 

bootz_setup is properly defined only for arm (arch/arm/lib/zimage.c); default bootz_setup returns an error.
So, is bootz supposed to work for architectures other than arm?

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

* Re: [vmlinuz.bin] Does u-boot support loading vmlinuz[.bin]?
@ 2018-06-13 21:48       ` Paul Burton
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Burton @ 2018-06-13 21:48 UTC (permalink / raw)
  To: Yuri Frolov; +Cc: Daniel Golle, linux-mips

Hi Yuri,

On Wed, Jun 13, 2018 at 07:28:43PM +0300, Yuri Frolov wrote:
> On 06/13/2018 06:35 PM, Daniel Golle wrote:
> > On Wed, Jun 13, 2018 at 02:19:06PM +0300, Yuri Frolov wrote:
> > > do I understand correctly, that the native format for mips arch.
> > > u-boot uses is uImage?

Easy options are to use the legacy uImage or FIT as Daniel mentioned.

As an example, when running U-Boot the older MIPS Malta platform
generally uses a legacy uImage whilst the newer MIPS Boston platform
uses a FIT (.itb) image.

> > > Yocto's default for mips is vmlinuz.bin for some reason, here is
> > > the question.

Please note that, at least when targeting MIPS, vmlinuz.bin is not a
zImage - those are 2 different things. If you build vmlinuz.bin for MIPS
then what you get is a flat binary containing some decompression code
and a compressed version of vmlinux.bin. The file has no special header
as it appears the ARM zImage format does.

> > You got to enable U-Boot's CONFIG_CMD_BOOTZ and use the bootz command
> > in order to boot that. Or change that default to generate FIT or legacy
> > uImage instead.
> > 
> 
> bootz_setup is properly defined only for arm (arch/arm/lib/zimage.c);
> default bootz_setup returns an error.
>
> So, is bootz supposed to work for architectures other than arm?

So far as I can see it isn't - it's ARM specific.

But again that's not the same as a MIPS vmlinuz.bin, so I suspect with
that knowledge your question may change.

Thanks,
    Paul

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

* Re: [vmlinuz.bin] Does u-boot support loading vmlinuz[.bin]?
@ 2018-06-13 21:48       ` Paul Burton
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Burton @ 2018-06-13 21:48 UTC (permalink / raw)
  To: Yuri Frolov; +Cc: Daniel Golle, linux-mips

Hi Yuri,

On Wed, Jun 13, 2018 at 07:28:43PM +0300, Yuri Frolov wrote:
> On 06/13/2018 06:35 PM, Daniel Golle wrote:
> > On Wed, Jun 13, 2018 at 02:19:06PM +0300, Yuri Frolov wrote:
> > > do I understand correctly, that the native format for mips arch.
> > > u-boot uses is uImage?

Easy options are to use the legacy uImage or FIT as Daniel mentioned.

As an example, when running U-Boot the older MIPS Malta platform
generally uses a legacy uImage whilst the newer MIPS Boston platform
uses a FIT (.itb) image.

> > > Yocto's default for mips is vmlinuz.bin for some reason, here is
> > > the question.

Please note that, at least when targeting MIPS, vmlinuz.bin is not a
zImage - those are 2 different things. If you build vmlinuz.bin for MIPS
then what you get is a flat binary containing some decompression code
and a compressed version of vmlinux.bin. The file has no special header
as it appears the ARM zImage format does.

> > You got to enable U-Boot's CONFIG_CMD_BOOTZ and use the bootz command
> > in order to boot that. Or change that default to generate FIT or legacy
> > uImage instead.
> > 
> 
> bootz_setup is properly defined only for arm (arch/arm/lib/zimage.c);
> default bootz_setup returns an error.
>
> So, is bootz supposed to work for architectures other than arm?

So far as I can see it isn't - it's ARM specific.

But again that's not the same as a MIPS vmlinuz.bin, so I suspect with
that knowledge your question may change.

Thanks,
    Paul

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

* Re: [vmlinuz.bin] Does u-boot support loading vmlinuz[.bin]?
  2018-06-13 21:48       ` Paul Burton
  (?)
@ 2018-06-14  9:33       ` Yuri Frolov
  -1 siblings, 0 replies; 6+ messages in thread
From: Yuri Frolov @ 2018-06-14  9:33 UTC (permalink / raw)
  To: Paul Burton; +Cc: Daniel Golle, linux-mips

Hi, Paul,

On 06/14/2018 12:48 AM, Paul Burton wrote:
> Hi Yuri,
> 
> On Wed, Jun 13, 2018 at 07:28:43PM +0300, Yuri Frolov wrote:
>> On 06/13/2018 06:35 PM, Daniel Golle wrote:
>>> On Wed, Jun 13, 2018 at 02:19:06PM +0300, Yuri Frolov wrote:
>>>> do I understand correctly, that the native format for mips arch.
>>>> u-boot uses is uImage?
> 
> Easy options are to use the legacy uImage or FIT as Daniel mentioned.

so it was my suggestion to the engineer who reached me and asked to provide support
for vmlinuz.bin boot in u-boot for p5600-based development board.
Basically, my recomendation was to change somehow the type of kernel built in their
machine-specific yocto *.conf; afaik, yocto/bitbake allows to do that.
Hopefully, KERNEL_IMAGETYPE variable will work for them.

> 
> As an example, when running U-Boot the older MIPS Malta platform
> generally uses a legacy uImage whilst the newer MIPS Boston platform
> uses a FIT (.itb) image.
> 
>>>> Yocto's default for mips is vmlinuz.bin for some reason, here is
>>>> the question.
> 
> Please note that, at least when targeting MIPS, vmlinuz.bin is not a
> zImage - those are 2 different things. If you build vmlinuz.bin for MIPS
> then what you get is a flat binary containing some decompression code
> and a compressed version of vmlinux.bin.

Yeah, I've got this surfing linux build scripts and 'decompression' directory.

> The file has no special header as it appears the ARM zImage format does.

Good to know, thank you. I've tried to find mips-specific header structure
in attempt to set things up as "in arm world", but failed.
So, there is no such header, ok.

> 
>>> You got to enable U-Boot's CONFIG_CMD_BOOTZ and use the bootz command
>>> in order to boot that. Or change that default to generate FIT or legacy
>>> uImage instead.
>>>
>>
>> bootz_setup is properly defined only for arm (arch/arm/lib/zimage.c);
>> default bootz_setup returns an error.
>>
>> So, is bootz supposed to work for architectures other than arm?
> 
> So far as I can see it isn't - it's ARM specific.

Ok, thanks.

Thank you very much,
Yuri

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

end of thread, other threads:[~2018-06-14  9:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-13 11:19 [vmlinuz.bin] Does u-boot support loading vmlinuz[.bin]? Yuri Frolov
2018-06-13 15:35 ` Daniel Golle
2018-06-13 16:28   ` Yuri Frolov
2018-06-13 21:48     ` Paul Burton
2018-06-13 21:48       ` Paul Burton
2018-06-14  9:33       ` Yuri Frolov

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.