public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/5] Add device tree support for VxWorks
@ 2013-09-16  9:58 Miao Yan
  2013-09-16  9:58 ` [U-Boot] [PATCH 1/5] common/cmd_bootm.c: seperate do_bootm_vxworks related code from CONFIG_CMD_ELF Miao Yan
                   ` (6 more replies)
  0 siblings, 7 replies; 33+ messages in thread
From: Miao Yan @ 2013-09-16  9:58 UTC (permalink / raw)
  To: u-boot

Hello Wolfgang and All,

   The next release of VxWorks will adopt device tree as its
hardware description mechanism (for PowerPC and ARM), thus
requiring boot interface changes for these two architechtures. 
And we would like to better support U-Boot with our operating 
system, because almost all the PowerPC and ARM boards that 
we support come with U-Boot pre-flashed and we would like to
create better experience for our users.

   Currently, U-Boot provides a 'bootvx' command (bootm internally
 uses bootvx) to load and run VxWorks image (for both ELF format
 or raw binary), for example:
   
    bootvx 0x1000000

or just:
   
    bootvx

if the environmental variable 'loadaddr' is set. The 'bootvx' will
 setup bootline and jump to the VxWorks entry using the following
 calling convention:

    (void)(*entry)(int arg /* 0 */)

With the new VxWorks, the kernel entry interface for PowerPC is going 
to be changed to conform to the ePAPR standard, and for ARM, we need
deivce tree's physical address to be passed to the kernel like this:

    (void)(*entry)(void *fdt_addr)

And VxWorks bootline will be saved into deivce tree's 'bootargs' node as
specified by the ePAPR (for both PowerPC and ARM).

The 'bootvx' commnad stays unchaged, and is still avalaible under
the configuration option CONFIG_CMD_ELF for older kernels. A new 
option CONFIG_BOOTM_VXWORKS is added for bootm to align with other
 bootm supported operating systems.

So the do_bootm_vxworks will work as below:

    #if (libfdt && (ppc || arm))
        if (using device tree)
            boot_vxworks_with_device_tree
        else
    #endif
            bootvx(...);

The following patches are rebased on today's master branch
(commit 6856254fc05d67f874d08a534724c842f93a605f).

Thanks,


Miao Yan (5):
  common/cmd_bootm.c: seperate do_bootm_vxworks related code from
    CONFIG_CMD_ELF.
  common/config_defaults.h: make CONFIG_BOOTM_VXWORKS default
    configuration
  common/cmd_bootm: extend do_bootm_vxworks to support the new VxWorks
    boot interface.
  common/fdt_support.c: avoid unintended return from
    fdt_fixup_memory_banks()
  doc/README.vxworks: add a document describing the new VxWorks boot
    interface

 arch/arm/lib/bootm.c      |   21 +++++++++++
 arch/powerpc/lib/bootm.c  |   52 ++++++++++++++++++++++++++
 common/cmd_bootm.c        |   90 +++++++++++++++++++++++++++++++++++++++++----
 common/fdt_support.c      |    5 ++-
 doc/README.vxworks        |   34 +++++++++++++++++
 include/common.h          |    4 ++
 include/config_defaults.h |    1 +
 include/vxworks.h         |    2 +
 8 files changed, 200 insertions(+), 9 deletions(-)
 create mode 100644 doc/README.vxworks

-- 
1.7.9.5

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

end of thread, other threads:[~2013-12-16 14:17 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-16  9:58 [U-Boot] [PATCH 0/5] Add device tree support for VxWorks Miao Yan
2013-09-16  9:58 ` [U-Boot] [PATCH 1/5] common/cmd_bootm.c: seperate do_bootm_vxworks related code from CONFIG_CMD_ELF Miao Yan
2013-09-16  9:58 ` [U-Boot] [PATCH 2/5] common/config_defaults.h: make CONFIG_BOOTM_VXWORKS default configuration Miao Yan
2013-09-16  9:58 ` [U-Boot] [PATCH 3/5] common/cmd_bootm: extend do_bootm_vxworks to support the new VxWorks boot interface Miao Yan
2013-09-16  9:58 ` [U-Boot] [PATCH 4/5] common/fdt_support.c: avoid unintended return from fdt_fixup_memory_banks() Miao Yan
2013-09-16  9:58 ` [U-Boot] [PATCH 5/5] doc/README.vxworks: add a document describing the new VxWorks boot interface Miao Yan
2013-09-16 19:35 ` [U-Boot] [PATCH 0/5] Add device tree support for VxWorks Wolfgang Denk
2013-09-17  2:14   ` myan
2013-09-17  6:14     ` Wolfgang Denk
2013-09-17  7:44       ` myan
2013-09-17 11:33 ` [U-Boot] [PATCH v2 " Miao Yan
2013-09-17 11:33   ` [U-Boot] [PATCH v2 1/5] common/cmd_bootm.c: seperate do_bootm_vxworks related code from CONFIG_CMD_ELF Miao Yan
2013-11-28  9:51     ` [U-Boot] [PATCH v3 " myan
2013-11-28  9:51       ` [U-Boot] [PATCH v3 2/5] common/config_defaults.h: make CONFIG_BOOTM_VXWORKS default configuration myan
2013-12-16 14:14         ` [U-Boot] [U-Boot, v3, " Tom Rini
2013-11-28  9:51       ` [U-Boot] [PATCH v3 3/5] common/cmd_bootm: extend do_bootm_vxworks to support the new VxWorks boot interface myan
2013-12-16 14:14         ` [U-Boot] [U-Boot, v3, " Tom Rini
2013-11-28  9:51       ` [U-Boot] [PATCH v3 4/5] common/fdt_support.c: avoid unintended return from fdt_fixup_memory_banks() myan
2013-12-16 14:14         ` [U-Boot] [U-Boot, v3, " Tom Rini
2013-11-28  9:51       ` [U-Boot] [PATCH v3 5/5] README.vxworks: add a document describing the new VxWorks boot interface myan
2013-12-16 14:15         ` [U-Boot] [U-Boot, v3, " Tom Rini
2013-12-16 14:17       ` [U-Boot] [U-Boot, v3, 1/5] common/cmd_bootm.c: seperate do_bootm_vxworks related code from CONFIG_CMD_ELF Tom Rini
2013-09-17 11:34   ` [U-Boot] [PATCH v2 2/5] common/config_defaults.h: make CONFIG_BOOTM_VXWORKS default configuration Miao Yan
2013-09-17 11:34   ` [U-Boot] [PATCH v2 3/5] common/cmd_bootm: extend do_bootm_vxworks to support the new VxWorks boot interface Miao Yan
2013-09-17 11:34   ` [U-Boot] [PATCH v2 4/5] common/fdt_support.c: avoid unintended return from fdt_fixup_memory_banks() Miao Yan
2013-09-17 11:34   ` [U-Boot] [PATCH v2 5/5] doc/README.vxworks: add a document describing the new VxWorks boot interface Miao Yan
2013-09-18  6:14   ` [U-Boot] [PATCH v2 0/5] Add device tree support for VxWorks myan
2013-09-22  2:57     ` myan
2013-09-23 23:27       ` Tom Rini
2013-10-31  9:56         ` myan
2013-10-31 11:31           ` Tom Rini
2013-11-01  7:44             ` myan
2013-11-01 12:23               ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox