mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-21 01:54:51 +08:00
441848282c
booting-without-of.rst is an ancient document that first outlined Flattened DeviceTree on PowerPC initially. The DT world has evolved a lot in the 15 years since and booting-without-of.rst is pretty stale. The name of the document itself is confusing if you don't understand the evolution from real 'OpenFirmware'. Most of what booting-without-of.rst contains is now in the DT specification (which evolved out of the ePAPR). The few things that weren't documented in the DT specification are now. All that remains is the boot entry details, so let's move these to arch specific documents. The exception is arm which already has the same details documented. Cc: Frank Rowand <frowand.list@gmail.com> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Geert Uytterhoeven <geert+renesas@glider.be> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Paul Mackerras <paulus@samba.org> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: x86@kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-mips@vger.kernel.org Cc: linux-doc@vger.kernel.org Cc: linux-sh@vger.kernel.org Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Borislav Petkov <bp@suse.de> Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Signed-off-by: Rob Herring <robh@kernel.org>
22 lines
938 B
ReStructuredText
22 lines
938 B
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
DeviceTree Booting
|
|
------------------
|
|
|
|
There is one single 32bit entry point to the kernel at code32_start,
|
|
the decompressor (the real mode entry point goes to the same 32bit
|
|
entry point once it switched into protected mode). That entry point
|
|
supports one calling convention which is documented in
|
|
Documentation/x86/boot.rst
|
|
The physical pointer to the device-tree block is passed via setup_data
|
|
which requires at least boot protocol 2.09.
|
|
The type filed is defined as
|
|
|
|
#define SETUP_DTB 2
|
|
|
|
This device-tree is used as an extension to the "boot page". As such it
|
|
does not parse / consider data which is already covered by the boot
|
|
page. This includes memory size, reserved ranges, command line arguments
|
|
or initrd address. It simply holds information which can not be retrieved
|
|
otherwise like interrupt routing or a list of devices behind an I2C bus.
|