mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: new default environment
Date: Wed, 16 May 2012 09:04:53 +0200	[thread overview]
Message-ID: <1337151896-5888-1-git-send-email-s.hauer@pengutronix.de> (raw)

Hi all,

The new environment patches have been around for some
time and I have continued working on them. They are now in a state
which makes me sufficiently happy to give them a try in mainline.

Changes to the last version I posted is some refactoring and as
a main feature improvement menu support. While being optional I think
it's really worth giving it a try. It offers easily selectable boot
entries and also provides an easy way to configure barebox during
runtime.

The new default env still has some rough edges, like for example
the Kconfig dependencies are not accurate. I think we can sort
this out in tree though.

BTW I have no plans (yet) to remove the old environment template
as it still contains some features which the new one does not
have (update, dfu on some boards). In the long run I hope we can
migrate all boards over, but in the mean time the old environment
can still be worked on.

Sascha


The following changes since commit 3f66e8dc57d0dd05e22d321786da39810ba6b7ff:

  Merge branch 'pu/magicvar' into next (2012-05-15 20:34:34 +0200)

are available in the git repository at:


  git://git.pengutronix.de/git/barebox.git work/defenv-2

for you to fetch changes up to 2078535ff07702beea71420d47b3cd391831026f:

  ARM pcm038: Switch to new environment (2012-05-16 08:48:37 +0200)

----------------------------------------------------------------
Sascha Hauer (3):
      bootm: Add default images variables
      Add next generation default environment template
      ARM pcm038: Switch to new environment

 arch/arm/boards/pcm038/env/config               |   52 ------------------
 arch/arm/boards/pcm038/env/init/bootargs-base   |    8 +++
 arch/arm/boards/pcm038/env/init/hostname        |    8 +++
 arch/arm/boards/pcm038/env/init/mtdparts-nand   |   11 ++++
 arch/arm/boards/pcm038/env/init/mtdparts-nor    |   11 ++++
 arch/arm/configs/pcm038_defconfig               |   14 ++---
 arch/arm/mach-imx/Kconfig                       |    1 +
 commands/Kconfig                                |    1 +
 commands/bootm.c                                |   66 ++++++++++++++++++-----
 common/Kconfig                                  |   20 ++++++-
 common/Makefile                                 |    7 +++
 defaultenv-2/base/bin/boot                      |   18 +++++++
 defaultenv-2/base/bin/bootargs-ip               |   11 ++++
 defaultenv-2/base/bin/bootargs-ip-barebox       |    7 +++
 defaultenv-2/base/bin/bootargs-ip-dhcp          |    5 ++
 defaultenv-2/base/bin/bootargs-ip-none          |    5 ++
 defaultenv-2/base/bin/bootargs-root-initrd      |   11 ++++
 defaultenv-2/base/bin/bootargs-root-jffs2       |    9 ++++
 defaultenv-2/base/bin/bootargs-root-nfs         |   15 ++++++
 defaultenv-2/base/bin/bootargs-root-ubi         |   13 +++++
 defaultenv-2/base/bin/ifup                      |   59 ++++++++++++++++++++
 defaultenv-2/base/bin/init                      |   46 ++++++++++++++++
 defaultenv-2/base/bin/mtdparts-add              |   49 +++++++++++++++++
 defaultenv-2/base/boot/nand-ubi                 |   10 ++++
 defaultenv-2/base/boot/net                      |   12 +++++
 defaultenv-2/base/data/ansi-colors              |   26 +++++++++
 defaultenv-2/base/data/boot-template            |   16 ++++++
 defaultenv-2/base/init/automount                |   27 ++++++++++
 defaultenv-2/base/init/bootargs-base            |    8 +++
 defaultenv-2/base/init/general                  |   18 +++++++
 defaultenv-2/base/init/hostname                 |    8 +++
 defaultenv-2/base/init/prompt                   |    7 +++
 defaultenv-2/base/network/eth0                  |   15 ++++++
 defaultenv-2/menu/menu/boot-entries-collect     |   13 +++++
 defaultenv-2/menu/menu/boot-entries-edit        |   20 +++++++
 defaultenv-2/menu/menu/boot-entries-remove      |   18 +++++++
 defaultenv-2/menu/menu/boot-menu-add-entry      |    5 ++
 defaultenv-2/menu/menu/boot-menu-new-boot-entry |   21 ++++++++
 defaultenv-2/menu/menu/init-entries-collect     |    9 ++++
 defaultenv-2/menu/menu/init-entries-edit        |   20 +++++++
 defaultenv-2/menu/menu/init-menu-add-entry      |    3 ++
 defaultenv-2/menu/menu/mainmenu                 |   28 ++++++++++
 42 files changed, 656 insertions(+), 75 deletions(-)
 delete mode 100644 arch/arm/boards/pcm038/env/config
 create mode 100644 arch/arm/boards/pcm038/env/init/bootargs-base
 create mode 100644 arch/arm/boards/pcm038/env/init/hostname
 create mode 100644 arch/arm/boards/pcm038/env/init/mtdparts-nand
 create mode 100644 arch/arm/boards/pcm038/env/init/mtdparts-nor
 create mode 100644 defaultenv-2/base/bin/boot
 create mode 100644 defaultenv-2/base/bin/bootargs-ip
 create mode 100644 defaultenv-2/base/bin/bootargs-ip-barebox
 create mode 100644 defaultenv-2/base/bin/bootargs-ip-dhcp
 create mode 100644 defaultenv-2/base/bin/bootargs-ip-none
 create mode 100644 defaultenv-2/base/bin/bootargs-root-initrd
 create mode 100644 defaultenv-2/base/bin/bootargs-root-jffs2
 create mode 100644 defaultenv-2/base/bin/bootargs-root-nfs
 create mode 100644 defaultenv-2/base/bin/bootargs-root-ubi
 create mode 100644 defaultenv-2/base/bin/ifup
 create mode 100644 defaultenv-2/base/bin/init
 create mode 100644 defaultenv-2/base/bin/mtdparts-add
 create mode 100644 defaultenv-2/base/boot/nand-ubi
 create mode 100644 defaultenv-2/base/boot/net
 create mode 100644 defaultenv-2/base/data/ansi-colors
 create mode 100644 defaultenv-2/base/data/boot-template
 create mode 100644 defaultenv-2/base/init/automount
 create mode 100644 defaultenv-2/base/init/bootargs-base
 create mode 100644 defaultenv-2/base/init/general
 create mode 100644 defaultenv-2/base/init/hostname
 create mode 100644 defaultenv-2/base/init/prompt
 create mode 100644 defaultenv-2/base/network/eth0
 create mode 100644 defaultenv-2/menu/menu/boot-entries-collect
 create mode 100644 defaultenv-2/menu/menu/boot-entries-edit
 create mode 100644 defaultenv-2/menu/menu/boot-entries-remove
 create mode 100644 defaultenv-2/menu/menu/boot-menu-add-entry
 create mode 100644 defaultenv-2/menu/menu/boot-menu-new-boot-entry
 create mode 100644 defaultenv-2/menu/menu/init-entries-collect
 create mode 100644 defaultenv-2/menu/menu/init-entries-edit
 create mode 100644 defaultenv-2/menu/menu/init-menu-add-entry
 create mode 100644 defaultenv-2/menu/menu/mainmenu

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2012-05-16  7:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16  7:04 Sascha Hauer [this message]
2012-05-16  7:04 ` [PATCH 1/3] bootm: Add default images variables Sascha Hauer
2012-05-16  7:04 ` [PATCH 2/3] Add next generation default environment template Sascha Hauer
2012-06-04  8:47   ` Juergen Beisert
2012-06-24 12:23     ` Sascha Hauer
2012-05-16  7:04 ` [PATCH 3/3] ARM pcm038: Switch to new environment Sascha Hauer

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=1337151896-5888-1-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox