u-boot/board/keymile/scripts
Gerlando Falauto b1c2a7ae32 arm/km: define fdt_high env variable and allow backwards compatibility
Add set_fdthigh subcommand to "subbootcmds" (release) so to set "fdt_high"
This is necessary on Kirkwood so that the FDT does not get relocated
above the memory limit that the kernel cannot access
(that is the memory part reserved for the switch).
This was tested on NUSA1, where it is necessary, and on ETER1, where it
doesn't seem to hurt.

We want the scripts to also work with older versions of u-boot, where:
a) set_fdthigh is not defined (will be default env for newer u-boots)
b) the fdt will not be available

For this reason, we use "set_fdthigh" to tell whether we are running
a newer (FDT-aware) u-boot or not.
So if "set_fdthigh" runs successfully or arch != arm we try loading
the fdt; otherwise we proceed normally.

Notice how, contrary to release mode, set_fdthigh will _not_ be part of
subbootcmds for develop and ramfs, but will be executed as part of
"tftpfdt".

Since this is only needed for kirkwood cards, and it prevents the kernel
from booting on QorIQ (though it seemed to work on ETER1), we change
its definition in the default env for powerpc so that the value is only
set on ARM.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Valentin Longchamp <valentin.longchamp@keymile.com>
2014-02-13 16:18:13 +01:00
..
develop-arm.txt arm/km: enable FDT for km_kirwkood 2014-02-13 16:17:54 +01:00
develop-common.txt arm/km: define fdt_high env variable and allow backwards compatibility 2014-02-13 16:18:13 +01:00
develop-ppc_8xx.txt arm/km: enable FDT for km_kirwkood 2014-02-13 16:17:54 +01:00
develop-ppc_82xx.txt arm/km: enable FDT for km_kirwkood 2014-02-13 16:17:54 +01:00
ramfs-arm.txt arm/km: enable FDT for km_kirwkood 2014-02-13 16:17:54 +01:00
ramfs-common.txt arm/km: define fdt_high env variable and allow backwards compatibility 2014-02-13 16:18:13 +01:00
ramfs-ppc_8xx.txt arm/km: enable FDT for km_kirwkood 2014-02-13 16:17:54 +01:00
ramfs-ppc_82xx.txt arm/km: enable FDT for km_kirwkood 2014-02-13 16:17:54 +01:00
README km/common: add toolchain variable 2011-12-20 23:43:45 +01:00

These scripts are needed for our development usecases. Copy this directory
into your tftp root directory to be able to use this scripts.
cp -r <u-boot-repo>/board/keymile/scripts <your_tftp_root>/

To load and configure these usecase, two environment variables in the u-boot
default environment must be parsed:
run develop : setup environment to configure for rootfs via nfs
run ramfs   : setup environment to configure for rootfs in ram

Last change: 24.11.2011

develop-common.txt
============================
This file defines variables for working with rootfs via nfs for powerpc and
arm.

develop-<arch>.txt
============================
This file defines architecture specific variables for working with rootfs via
nfs arm.


ramfs-common.txt
============================
This file defines variables for working with rootfs inside the ram for powerpc
and arm.

ramfs-<arch>.txt
============================
This file defines architecture specific variables for working with rootfs inside
ram.