From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/6] add README.distro file
Date: Tue, 25 Mar 2014 14:24:14 -0600 [thread overview]
Message-ID: <5331E5EE.1040906@wwwdotorg.org> (raw)
In-Reply-To: <1395353581-5839-2-git-send-email-dennis@ausil.us>
On 03/20/2014 04:12 PM, Dennis Gilmore wrote:
> Add documentation on how to setup a system to use the generic distro
> configs and boot commands. This spells out what is needed to make a
> system conformant, but does not limit the board to only the defaults.
> diff --git a/doc/README.distro b/doc/README.distro
> +There is some memory addresses you will need to define in
> +CONFIG_EXTRA_ENV_SETTINGS
> +fdt_addr:
> +Optional, If specified a dtb to boot the system must be available at the given
> +address.
Perhaps add "when the kernel is booted"? To avoid someone putting it
somewhere that will get over-written between when U-Boot starts and the
kernel is booted.
> +fdt_addr_r:
> +Mandatory, This is the location where the sysboot/pxeboot with load the dtb to,
s/with/will/ Both here and other place(s).
> +using the fdtdir/devicetreedir or fdt/devicetree options in the pxe/extlinux
> +config file. The location can be anywhere in ram it just needs to not overlap
> +with anything, allowing 1 megabyte seems to be a safe option.
Related to Tom's comments, I think saying that the location doesn't
matter isn't quite true. For example, an ARM zImage assumes it's located
with the first 128M of RAM, and will decompress the image to the start
of RAM. If the DTB was located in the decompression target region, it
would at least need to be moved by the decompressor (wasted effort) or
perhaps just get blindly over-written (boot fails).
> +ramdisk_addr_r:
> +Mandatory, This is the location where the sysboot/pxeboot with load the
> +initramfs to, using the initrd option in the pxe/extlinux config file, the
> +location of the initramfs does not matter, there needs to be enough room to be
> +able to store any image. Making the image the last item stored should allow for
> +any initramfs to fit and not overwrite anything else.
"last item" could refer to time not space. Perhaps s/Making the image
the last item stored/Placing the image higher in RAM than any other image/
> +kernel_addr_r:
> +Mandatory, This is the location where the sysboot/pxeboot with load the kernel
> +to,using the kernel option in the pxe/extlinux config file, the location of the
> +kernel needs to
That sentence isn't complete.
> +You should not set initrd_high and fdt_high to 0xffffffff as the user should
> +not need to edit the memory locations having the initramfs and dtb being
> +relocatable is best to ensure the system will boot in all situations.
Perhaps CONFIG_SYS_BOOTMAPSZ is worth a mention too. The commit
description for 7f1b767aea94 "ARM: tegra: define CONFIG_SYS_BOOTMAPSZ"
might be useful when writing this part of the document.
> +booting your system
> +-------------------
> +in the most simplest form CONFIG_BOOTCOMMAND just needs one line
> +
> +"for target in ${boot_targets}; do run bootcmd_${target}; done "
> +
> +you can run any setup before going through the targets for example run a
> +command to set "fdtfile" variable for the dtb for your board.
Isn't this automatic based on using config_distro_defaults.h? It seems
like it should be, and it is were, you wouldn't need this section of
this document at all; it's happen automatically.
next prev parent reply other threads:[~2014-03-25 20:24 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-17 17:56 [U-Boot] RFC unified boot environment Dennis Gilmore
2014-02-17 17:56 ` [U-Boot] [RFC PATCH 1/3] add file with a default boot environment based heavily on Stephen Warrens recent tegra work Dennis Gilmore
2014-02-19 13:42 ` Tom Rini
2014-02-19 13:57 ` Dennis Gilmore
2014-02-19 15:54 ` Marek Vasut
2014-02-19 17:28 ` Stephen Warren
2014-02-19 17:30 ` Marek Vasut
2014-02-19 17:41 ` Stephen Warren
2014-02-19 17:44 ` Marek Vasut
2014-02-19 17:40 ` Stephen Warren
2014-02-22 8:20 ` Dennis Gilmore
2014-02-24 18:40 ` Stephen Warren
2014-02-24 20:07 ` Tom Rini
2014-02-19 18:44 ` Dan Murphy
2014-02-19 18:48 ` Stephen Warren
2014-02-19 18:52 ` Dan Murphy
2014-02-19 18:57 ` Stephen Warren
2014-02-19 18:59 ` Dan Murphy
2014-02-19 19:04 ` Stephen Warren
2014-02-19 19:10 ` Tom Rini
2014-02-19 19:16 ` Stephen Warren
2014-02-19 19:36 ` Tom Rini
2014-02-19 19:43 ` Stephen Warren
2014-02-19 19:57 ` Tom Rini
2014-02-19 20:10 ` Dennis Gilmore
2014-02-19 19:32 ` Dan Murphy
2014-02-19 19:38 ` Stephen Warren
2014-02-19 20:03 ` Dan Murphy
2014-02-19 19:02 ` Eric Nelson
2014-02-19 19:05 ` Dan Murphy
2014-02-19 19:16 ` Tom Rini
2014-02-19 19:24 ` Dan Murphy
2014-02-19 19:29 ` Stephen Warren
2014-02-19 19:37 ` Dan Murphy
2014-02-19 19:43 ` Tom Rini
2014-02-19 19:41 ` Tom Rini
2014-02-19 21:20 ` Denys Dmytriyenko
2014-02-20 12:31 ` Otavio Salvador
2014-02-20 13:46 ` Tom Rini
2014-02-22 12:56 ` Otavio Salvador
2014-02-17 17:56 ` [U-Boot] [RFC PATCH 2/3] move the beaglebones over to the generic configs Dennis Gilmore
2014-02-19 13:52 ` Tom Rini
2014-02-19 17:46 ` Stephen Warren
2014-02-19 19:57 ` Dan Murphy
2014-02-19 19:58 ` Dan Murphy
2014-02-19 20:05 ` Stephen Warren
2014-02-19 20:20 ` Dan Murphy
2014-02-19 20:22 ` Stephen Warren
2014-02-19 20:31 ` Dan Murphy
2014-02-19 20:38 ` Stephen Warren
2014-02-19 20:58 ` Dan Murphy
2014-02-19 21:07 ` Dennis Gilmore
2014-02-17 17:56 ` [U-Boot] [RFC PATCH 3/3] move wandboard over to use the generic distro configuratin and environment Dennis Gilmore
2014-02-19 11:52 ` Otavio Salvador
2014-02-19 17:50 ` Stephen Warren
2014-02-18 10:18 ` [U-Boot] RFC unified boot environment Stefano Babic
2014-02-18 16:09 ` Dennis Gilmore
2014-02-19 13:33 ` Tom Rini
2014-03-20 22:12 ` [U-Boot] [PATCH 0/6] " Dennis Gilmore
2014-03-20 22:12 ` [U-Boot] [PATCH 1/6] add README.distro file Dennis Gilmore
2014-03-21 18:48 ` Tom Rini
2014-03-25 20:40 ` Stephen Warren
2014-03-25 20:24 ` Stephen Warren [this message]
2014-03-28 15:42 ` Tom Rini
2014-03-28 16:11 ` Stephen Warren
2014-03-28 16:25 ` Tom Rini
2014-03-20 22:12 ` [U-Boot] [PATCH 2/6] add header with a generic set of boot commands defined Dennis Gilmore
2014-03-21 18:37 ` Marek Vasut
2014-03-21 18:53 ` Tom Rini
2014-03-21 21:00 ` Marek Vasut
2014-03-21 18:48 ` Tom Rini
2014-03-25 20:38 ` Stephen Warren
2014-03-25 20:36 ` Stephen Warren
2014-03-20 22:12 ` [U-Boot] [PATCH 3/6] move wandboard over to use the generic distro configuation and environment Dennis Gilmore
2014-03-20 22:12 ` [U-Boot] [PATCH 4/6] move beagleboard " Dennis Gilmore
2014-03-21 18:48 ` Tom Rini
2014-03-20 22:13 ` [U-Boot] [PATCH 5/6] move pandaboard " Dennis Gilmore
2014-03-21 18:49 ` Tom Rini
2014-03-20 22:13 ` [U-Boot] [PATCH 6/6] pxe: additionaly check for fdt_file env variable Dennis Gilmore
2014-03-21 18:49 ` Tom Rini
2014-03-25 20:45 ` Stephen Warren
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=5331E5EE.1040906@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=u-boot@lists.denx.de \
/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