All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Booting a dt zImage kernel
@ 2012-04-23 14:13 Fabio Estevam
  2012-04-23 14:26 ` Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Fabio Estevam @ 2012-04-23 14:13 UTC (permalink / raw)
  To: u-boot

Hi,

I am able to successfully boot a zImage kernel with latest 2012.04
U-boot on mx28evk.

Now I want to boot a dt zImage version.

These are the steps I am doing:

make menuconfig and select [*] Support MXS platforms from device tree

make imx28-evk.dtb

make

cat arch/arm/boot/imx28-evk.dtb arch/arm/boot/zImage > arch/arm/boot/zImage_dtb

cp arch/arm/boot/zImage_dtb  /tftpboot/zImage

Then I get the following result:

U-Boot 2012.04-00001-ga1f2367-dirty (Apr 23 2012 - 10:01:52)

Freescale i.MX28 family at 454 MHz
DRAM:  128 MiB
MMC:   MXS MMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   FEC0, FEC1
Hit any key to stop autoboot:  0
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 10.29.244.54
Using FEC0 device
TFTP from server 10.29.240.143; our IP address is 10.29.244.54
Filename 'zImage'.
Load address: 0x42000000
Loading: ## Warning: gatewayip needed but not set
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##################################################
done
Bytes transferred = 2250927 (2258af hex)
Bad Linux ARM zImage magic!

Any idea of why this is failing?

Thanks,

Fabio Estevam

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

* [U-Boot] Booting a dt zImage kernel
  2012-04-23 14:13 [U-Boot] Booting a dt zImage kernel Fabio Estevam
@ 2012-04-23 14:26 ` Marek Vasut
  2012-04-23 14:50 ` Shawn Guo
  2012-04-23 15:21 ` Stefano Babic
  2 siblings, 0 replies; 7+ messages in thread
From: Marek Vasut @ 2012-04-23 14:26 UTC (permalink / raw)
  To: u-boot

Dear Fabio Estevam,

> Hi,
> 
> I am able to successfully boot a zImage kernel with latest 2012.04
> U-boot on mx28evk.

Oh I'm so dead :-(

> Now I want to boot a dt zImage version.
> 
> These are the steps I am doing:
> 
> make menuconfig and select [*] Support MXS platforms from device tree
> 
> make imx28-evk.dtb
> 
> make
> 
> cat arch/arm/boot/imx28-evk.dtb arch/arm/boot/zImage >
> arch/arm/boot/zImage_dtb
> 
> cp arch/arm/boot/zImage_dtb  /tftpboot/zImage
> 
> Then I get the following result:
> 
> U-Boot 2012.04-00001-ga1f2367-dirty (Apr 23 2012 - 10:01:52)
> 
> Freescale i.MX28 family at 454 MHz
> DRAM:  128 MiB
> MMC:   MXS MMC: 0
> In:    serial
> Out:   serial
> Err:   serial
> Net:   FEC0, FEC1
> Hit any key to stop autoboot:  0
> BOOTP broadcast 1
> BOOTP broadcast 2
> DHCP client bound to address 10.29.244.54
> Using FEC0 device
> TFTP from server 10.29.240.143; our IP address is 10.29.244.54
> Filename 'zImage'.
> Load address: 0x42000000
> Loading: ## Warning: gatewayip needed but not set
> #################################################################
>          #################################################################
>          #################################################################
>          #################################################################
>          #################################################################
>          #################################################################
>          ##################################################
> done
> Bytes transferred = 2250927 (2258af hex)
> Bad Linux ARM zImage magic!
> 
> Any idea of why this is failing?

Dunno, maybe you need further patch?

> Thanks,
> 
> Fabio Estevam

Best regards,
Marek Vasut

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

* [U-Boot] Booting a dt zImage kernel
  2012-04-23 14:13 [U-Boot] Booting a dt zImage kernel Fabio Estevam
  2012-04-23 14:26 ` Marek Vasut
@ 2012-04-23 14:50 ` Shawn Guo
  2012-04-23 15:29   ` Fabio Estevam
  2012-04-23 15:21 ` Stefano Babic
  2 siblings, 1 reply; 7+ messages in thread
From: Shawn Guo @ 2012-04-23 14:50 UTC (permalink / raw)
  To: u-boot

On 23 April 2012 22:13, Fabio Estevam <festevam@gmail.com> wrote:
> Hi,
>
> I am able to successfully boot a zImage kernel with latest 2012.04
> U-boot on mx28evk.
>
> Now I want to boot a dt zImage version.
>
Why do you need to do that at all?  Turn on CONFIG_OF_LIBFDT, and you
will be able to boot an DT kernel (without dtb append) in the
following command.

tftpboot 42000000 uImage; tftpboot 42800000 imx28-evk.dtb; bootm
0x42000000 - 0x42800000

Regards,
Shawn

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

* [U-Boot] Booting a dt zImage kernel
  2012-04-23 14:13 [U-Boot] Booting a dt zImage kernel Fabio Estevam
  2012-04-23 14:26 ` Marek Vasut
  2012-04-23 14:50 ` Shawn Guo
@ 2012-04-23 15:21 ` Stefano Babic
  2 siblings, 0 replies; 7+ messages in thread
From: Stefano Babic @ 2012-04-23 15:21 UTC (permalink / raw)
  To: u-boot

On 23/04/2012 16:13, Fabio Estevam wrote:
> Hi,
> 

Hi Fabio,

> I am able to successfully boot a zImage kernel with latest 2012.04
> U-boot on mx28evk.
> 
> Now I want to boot a dt zImage version.
> 
> These are the steps I am doing:
> 
> make menuconfig and select [*] Support MXS platforms from device tree
> 
> make imx28-evk.dtb
> 
> make
> 
> cat arch/arm/boot/imx28-evk.dtb arch/arm/boot/zImage > arch/arm/boot/zImage_dtb

Is it possible ? Do you not set CONFIG_ARM_APPENDED_DTB in kernel and
let kbuild doing the rest of the job ?

Is there some reason doing this ? I mean, the easy and tested way is to
produce an uImage, and start the kernel from U-Boot with "bootm
<address> - <dtb in ram>". Of course, CONFIG_OF_LIBFDT must be enabled,
it is currently not set in mainline for mx28.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

* [U-Boot] Booting a dt zImage kernel
  2012-04-23 14:50 ` Shawn Guo
@ 2012-04-23 15:29   ` Fabio Estevam
  2012-04-23 15:41     ` Stephen Warren
  0 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2012-04-23 15:29 UTC (permalink / raw)
  To: u-boot

On Mon, Apr 23, 2012 at 11:50 AM, Shawn Guo <shawn.guo@linaro.org> wrote:

> Why do you need to do that at all? ?Turn on CONFIG_OF_LIBFDT, and you
> will be able to boot an DT kernel (without dtb append) in the
> following command.
>
> tftpboot 42000000 uImage; tftpboot 42800000 imx28-evk.dtb; bootm
> 0x42000000 - 0x42800000

Ok, turned CONFIG_OF_LIBFDT and set:

bootcmd_net=run netargs; dhcp 0x42000000 uImage; dhcp 0x42800000
imx28-evk.dtb; bootm 0x42000000 - 0x42800000


U-Boot 2012.04-00002-ge8c5d3d-dirty (Apr 23 2012 - 12:19:15)

Freescale i.MX28 family at 454 MHz
DRAM:  128 MiB
MMC:   MXS MMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   FEC0, FEC1
Hit any key to stop autoboot:  0
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 10.29.244.54
Using FEC0 device
TFTP from server 10.29.240.143; our IP address is 10.29.244.54
Filename 'uImage'.
Load address: 0x42000000
Loading: ## Warning: gatewayip needed but not set
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################################################
done
Bytes transferred = 2237480 (222428 hex)
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 10.29.244.54
Using FEC0 device
TFTP from server 10.29.240.143; our IP address is 10.29.244.54
Filename 'imx28-evk.dtb'.
Load address: 0x42800000
Loading: ## Warning: gatewayip needed but not set
##
done
Bytes transferred = 5367 (14f7 hex)
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-3.4.0-rc3-next-20120419
   Created:      2012-04-23  15:02:08 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2237416 Bytes = 2.1 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 42800000
   Booting using the fdt blob at 0x42800000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 47b7e000, end 47b824f6 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

,no console output after that. Any suggestions?

Thanks,

Fabio Estevam

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

* [U-Boot] Booting a dt zImage kernel
  2012-04-23 15:29   ` Fabio Estevam
@ 2012-04-23 15:41     ` Stephen Warren
  2012-04-23 15:46       ` Fabio Estevam
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Warren @ 2012-04-23 15:41 UTC (permalink / raw)
  To: u-boot

On 04/23/2012 09:29 AM, Fabio Estevam wrote:
> On Mon, Apr 23, 2012 at 11:50 AM, Shawn Guo <shawn.guo@linaro.org> wrote:
> 
>> Why do you need to do that at all?  Turn on CONFIG_OF_LIBFDT, and you
>> will be able to boot an DT kernel (without dtb append) in the
>> following command.
>>
>> tftpboot 42000000 uImage; tftpboot 42800000 imx28-evk.dtb; bootm
>> 0x42000000 - 0x42800000
> 
> Ok, turned CONFIG_OF_LIBFDT and set:
> 
> bootcmd_net=run netargs; dhcp 0x42000000 uImage; dhcp 0x42800000
> imx28-evk.dtb; bootm 0x42000000 - 0x42800000
...
> Starting kernel ...
> 
> Uncompressing Linux... done, booting the kernel.
> 
> ,no console output after that. Any suggestions?

There could well be many additional reasons, but it's probably due to
http://lists.denx.de/pipermail/u-boot/2012-April/122781.html

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

* [U-Boot] Booting a dt zImage kernel
  2012-04-23 15:41     ` Stephen Warren
@ 2012-04-23 15:46       ` Fabio Estevam
  0 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2012-04-23 15:46 UTC (permalink / raw)
  To: u-boot

Hi Stephen,

On Mon, Apr 23, 2012 at 12:41 PM, Stephen Warren <swarren@wwwdotorg.org> wrote:

> There could well be many additional reasons, but it's probably due to
> http://lists.denx.de/pipermail/u-boot/2012-April/122781.html

Yes, that fixes the boot :-)

I saw your patch earlier, but I thought it would be included in 2012.04.

Thanks,

Fabio Estevam

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

end of thread, other threads:[~2012-04-23 15:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-23 14:13 [U-Boot] Booting a dt zImage kernel Fabio Estevam
2012-04-23 14:26 ` Marek Vasut
2012-04-23 14:50 ` Shawn Guo
2012-04-23 15:29   ` Fabio Estevam
2012-04-23 15:41     ` Stephen Warren
2012-04-23 15:46       ` Fabio Estevam
2012-04-23 15:21 ` Stefano Babic

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.