All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Help with spl: zImage support in Falcon mode
@ 2016-10-18 16:36 Diego Dorta
  2016-10-19  9:50 ` Ladislav Michl
  2016-10-19 16:00 ` Fabio Estevam
  0 siblings, 2 replies; 5+ messages in thread
From: Diego Dorta @ 2016-10-18 16:36 UTC (permalink / raw)
  To: u-boot

Hi all,

According to commit log: 

commit 431889d6ad9a39846636716478d504aa7ff976fc
Author: Ladislav Michl <ladis@linux-mips.org>
Date:   Tue Jul 12 20:28:14 2016 +0200

    spl: zImage support in Falcon mode
    
    Other payload than uImage is currently considered to be raw U-Boot
    image. Check also for zImage in Falcon mode.
    
    Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
    Reviewed-by: Heiko Schocher <hs@denx.de>

Already include at U-Boot 2016.09.01.

I was trying to apply Falcon mode on i.MX6 Sabre SD using zImage instead of uImage.
After the steps below I got an error trying to "spl export":

# dhcp ${fdt_addr} imx6q-sabresd.dtb

# dhcp ${loadaddr} zImage

# mmc write ${loadaddr} 0x1000 0x4000

# setenv bootargs 'console=ttymxc0,115200 root=/dev/mmcblk1p1 rootfstype=ext4 rootwait quiet rw'

# spl export fdt ${loadaddr} - ${fdt_addr}

i?{???]??o????;??]????????????o??k5???2s?C?????\x1f???x?????????????6?}??]?0???????????????m?\?S???????'??;}???????2?[??w<??O?????7?}?v?c?\x15????-??????????9??????w`o??????zoERROR: can't get kernel image!
   XIP Invalid Image ... OK
ERROR: booting os 'Invalid OS' (0) is not supported
ERROR: booting os 'Invalid OS' (0) is not supported
ERROR: booting os 'Invalid OS' (0) is not supported
ERROR prep subcommand failed!
Subcommand failed

I can't understand this error. Does anybody know how to fix it?

Regards,
Diego

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

* [U-Boot] Help with spl: zImage support in Falcon mode
  2016-10-18 16:36 [U-Boot] Help with spl: zImage support in Falcon mode Diego Dorta
@ 2016-10-19  9:50 ` Ladislav Michl
  2016-10-19 16:52   ` Diego Dorta
  2016-10-19 16:00 ` Fabio Estevam
  1 sibling, 1 reply; 5+ messages in thread
From: Ladislav Michl @ 2016-10-19  9:50 UTC (permalink / raw)
  To: u-boot

Hi,

On Tue, Oct 18, 2016 at 04:36:54PM +0000, Diego Dorta wrote:
> Hi all,
> 
> According to commit log: 
> 
> commit 431889d6ad9a39846636716478d504aa7ff976fc
> Author: Ladislav Michl <ladis@linux-mips.org>
> Date:   Tue Jul 12 20:28:14 2016 +0200
> 
>     spl: zImage support in Falcon mode
>     
>     Other payload than uImage is currently considered to be raw U-Boot
>     image. Check also for zImage in Falcon mode.
>     
>     Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
>     Reviewed-by: Heiko Schocher <hs@denx.de>
> 
> Already include at U-Boot 2016.09.01.
> 
> I was trying to apply Falcon mode on i.MX6 Sabre SD using zImage instead of uImage.
> After the steps below I got an error trying to "spl export":
> 
> # dhcp ${fdt_addr} imx6q-sabresd.dtb
> 
> # dhcp ${loadaddr} zImage
> 
> # mmc write ${loadaddr} 0x1000 0x4000

Where did you get those numbers above?

> # setenv bootargs 'console=ttymxc0,115200 root=/dev/mmcblk1p1 rootfstype=ext4 rootwait quiet rw'
> 
> # spl export fdt ${loadaddr} - ${fdt_addr}
[garbage deleted]
> ERROR: can't get kernel image!
>    XIP Invalid Image ... OK
> ERROR: booting os 'Invalid OS' (0) is not supported
> ERROR: booting os 'Invalid OS' (0) is not supported
> ERROR: booting os 'Invalid OS' (0) is not supported
> ERROR prep subcommand failed!
> Subcommand failed
> 
> I can't understand this error. Does anybody know how to fix it?

Does it work with uImage? Also patch you pointed at above has nothing to
do with u-boot itself, but SPL which does not seem to get involved.

> Regards,
> Diego

Best regards,
	ladis

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

* [U-Boot] Help with spl: zImage support in Falcon mode
  2016-10-18 16:36 [U-Boot] Help with spl: zImage support in Falcon mode Diego Dorta
  2016-10-19  9:50 ` Ladislav Michl
@ 2016-10-19 16:00 ` Fabio Estevam
  1 sibling, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2016-10-19 16:00 UTC (permalink / raw)
  To: u-boot

Hi Diego,

On Tue, Oct 18, 2016 at 2:36 PM, Diego Dorta <diego.dorta@nxp.com> wrote:

> # spl export fdt ${loadaddr} - ${fdt_addr}

>    XIP Invalid Image ... OK
> ERROR: booting os 'Invalid OS' (0) is not supported
> ERROR: booting os 'Invalid OS' (0) is not supported
> ERROR: booting os 'Invalid OS' (0) is not supported
> ERROR prep subcommand failed!
> Subcommand failed
>
> I can't understand this error. Does anybody know how to fix it?

Looking at cmd/spl.c the spl_export() function calls call_bootm(),
which can only handle bootm/uImage kernel images currently.

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

* [U-Boot] Help with spl: zImage support in Falcon mode
  2016-10-19  9:50 ` Ladislav Michl
@ 2016-10-19 16:52   ` Diego Dorta
  2016-10-19 19:52     ` Ladislav Michl
  0 siblings, 1 reply; 5+ messages in thread
From: Diego Dorta @ 2016-10-19 16:52 UTC (permalink / raw)
  To: u-boot

Hi Ladislay,

>From: Ladislav Michl <ladis@linux-mips.org>
>Sent: Wednesday, October 19, 2016 7:50 AM
>To: Diego Dorta
>Cc: u-boot at lists.denx.de; hs at denx.de
>Subject: Re: Help with spl: zImage support in Falcon mode
>
>Hi,
>
>On Tue, Oct 18, 2016 at 04:36:54PM +0000, Diego Dorta wrote:
>> Hi all,
>>
>> According to commit log:
>>
>> commit 431889d6ad9a39846636716478d504aa7ff976fc
>> Author: Ladislav Michl <ladis@linux-mips.org>
>> Date:   Tue Jul 12 20:28:14 2016 +0200
>>
>>     spl: zImage support in Falcon mode
>>
>>     Other payload than uImage is currently considered to be raw U-Boot
>>     image. Check also for zImage in Falcon mode.
>>
>>     Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
>>     Reviewed-by: Heiko Schocher <hs@denx.de>
>>
>> Already include at U-Boot 2016.09.01.
>>
>> I was trying to apply Falcon mode on i.MX6 Sabre SD using zImage instead of uImage.
>> After the steps below I got an error trying to "spl export":
>>
>> # dhcp ${fdt_addr} imx6q-sabresd.dtb
>>
>> # dhcp ${loadaddr} zImage
>>
>> # mmc write ${loadaddr} 0x1000 0x4000
>
>Where did you get those numbers above?

I got these informations from Gateworks tutorial on section: 4.2. Falcon Mode on micro-SD card.

http://git.denx.de/?p=u-boot.git;a=blob;f=board/gateworks/gw_ventana/README;h=f3f8998aae613787946465887bf3877577df6df4;hb=HEAD

>
>> # setenv bootargs 'console=ttymxc0,115200 root=/dev/mmcblk1p1 rootfstype=ext4 rootwait quiet rw'
>>
>> # spl export fdt ${loadaddr} - ${fdt_addr}
>[garbage deleted]
>> ERROR: can't get kernel image!
>>    XIP Invalid Image ... OK
>> ERROR: booting os 'Invalid OS' (0) is not supported
>> ERROR: booting os 'Invalid OS' (0) is not supported
>> ERROR: booting os 'Invalid OS' (0) is not supported
>> ERROR prep subcommand failed!
>> Subcommand failed
>>
>> I can't understand this error. Does anybody know how to fix it?
>
>Does it work with uImage? Also patch you pointed at above has nothing to
>do with u-boot itself, but SPL which does not seem to get involved.

Yes, all these commands works fine with uImage. I understood now.
But, how do I do to use zImage instead of uImage?
Is there any document that I can learn the steps?

Regards,
Diego

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

* [U-Boot] Help with spl: zImage support in Falcon mode
  2016-10-19 16:52   ` Diego Dorta
@ 2016-10-19 19:52     ` Ladislav Michl
  0 siblings, 0 replies; 5+ messages in thread
From: Ladislav Michl @ 2016-10-19 19:52 UTC (permalink / raw)
  To: u-boot

On Wed, Oct 19, 2016 at 04:52:50PM +0000, Diego Dorta wrote: 
[snip]
> Yes, all these commands works fine with uImage. I understood now.
> But, how do I do to use zImage instead of uImage?

I've never used spl export as I have fdt prepared during build time.
Looking at source, zImage support is not implemented.

> Is there any document that I can learn the steps?

See common/bootm.c:boot_get_kernel. You'll need a bit of hacking
to support zImage.

	ladis

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

end of thread, other threads:[~2016-10-19 19:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-18 16:36 [U-Boot] Help with spl: zImage support in Falcon mode Diego Dorta
2016-10-19  9:50 ` Ladislav Michl
2016-10-19 16:52   ` Diego Dorta
2016-10-19 19:52     ` Ladislav Michl
2016-10-19 16:00 ` Fabio Estevam

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.