Simon Glass fcabc24f4f fdt: Set kernaddr if fdt indicates a kernel is present
If kernel-offset is specified in the fdt, set an environment variable
so that scripts can access the attached kernel.

This can be used by a packaging program to tell U-Boot about a kernel
that has been downloaded alongside U-Boot. The value in the fdt is
the offset of the kernel from the start of the U-Boot image, so we can
find it just by adding CONFIG_SYS_TEXT_BASE.

It is then fairly easy to put something like this in the environment
variables in the board header file:

		"if test ${kernaddr} != \"\"; then "\
			"echo \"Using bundled kernel\"; "\
			"bootm ${kernaddr};" \
		"fi; "\
		/* rest of boot sequence follows here */

Signed-off-by: Simon Glass <sjg@chromium.org>
2012-11-12 23:14:57 -05:00
..
2012-11-04 11:00:35 -07:00
2012-10-03 16:01:22 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-10-15 11:53:07 -07:00
2011-10-22 01:22:21 +02:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:34 -07:00
2012-11-04 11:00:34 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:34 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-09-27 12:22:11 -05:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-03-27 22:05:28 +02:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-08-09 23:39:18 +02:00
2012-09-29 07:26:09 -07:00
2012-11-04 11:00:35 -07:00
2012-09-26 11:08:32 -07:00
2011-12-07 08:41:22 +01:00
2012-11-04 11:00:35 -07:00
2011-10-22 01:13:35 +02:00
2012-11-04 11:00:36 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00