-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Linus Torvalds
committed
Jun 2, 2012
1 parent
ef35ed6
commit 0be2613
Showing
668 changed files
with
28,239 additions
and
10,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 9ca3cc6f3026946ba655e863ca2096339e667639 | ||
refs/heads/master: 4fc3acf2918fa158dc651a0c824a23944e956919 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
* Freescale General-Purpose Media Interface (GPMI) | ||
|
||
The GPMI nand controller provides an interface to control the | ||
NAND flash chips. We support only one NAND chip now. | ||
|
||
Required properties: | ||
- compatible : should be "fsl,<chip>-gpmi-nand" | ||
- reg : should contain registers location and length for gpmi and bch. | ||
- reg-names: Should contain the reg names "gpmi-nand" and "bch" | ||
- interrupts : The first is the DMA interrupt number for GPMI. | ||
The second is the BCH interrupt number. | ||
- interrupt-names : The interrupt names "gpmi-dma", "bch"; | ||
- fsl,gpmi-dma-channel : Should contain the dma channel it uses. | ||
|
||
The device tree may optionally contain sub-nodes describing partitions of the | ||
address space. See partition.txt for more detail. | ||
|
||
Examples: | ||
|
||
gpmi-nand@8000c000 { | ||
compatible = "fsl,imx28-gpmi-nand"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
reg = <0x8000c000 2000>, <0x8000a000 2000>; | ||
reg-names = "gpmi-nand", "bch"; | ||
interrupts = <88>, <41>; | ||
interrupt-names = "gpmi-dma", "bch"; | ||
fsl,gpmi-dma-channel = <4>; | ||
|
||
partition@0 { | ||
... | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
* Freescale's mxc_nand | ||
|
||
Required properties: | ||
- compatible: "fsl,imxXX-nand" | ||
- reg: address range of the nfc block | ||
- interrupts: irq to be used | ||
- nand-bus-width: see nand.txt | ||
- nand-ecc-mode: see nand.txt | ||
- nand-on-flash-bbt: see nand.txt | ||
|
||
Example: | ||
|
||
nand@d8000000 { | ||
compatible = "fsl,imx27-nand"; | ||
reg = <0xd8000000 0x1000>; | ||
interrupts = <29>; | ||
nand-bus-width = <8>; | ||
nand-ecc-mode = "hw"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
The EFI Boot Stub | ||
--------------------------- | ||
|
||
On the x86 platform, a bzImage can masquerade as a PE/COFF image, | ||
thereby convincing EFI firmware loaders to load it as an EFI | ||
executable. The code that modifies the bzImage header, along with the | ||
EFI-specific entry point that the firmware loader jumps to are | ||
collectively known as the "EFI boot stub", and live in | ||
arch/x86/boot/header.S and arch/x86/boot/compressed/eboot.c, | ||
respectively. | ||
|
||
By using the EFI boot stub it's possible to boot a Linux kernel | ||
without the use of a conventional EFI boot loader, such as grub or | ||
elilo. Since the EFI boot stub performs the jobs of a boot loader, in | ||
a certain sense it *IS* the boot loader. | ||
|
||
The EFI boot stub is enabled with the CONFIG_EFI_STUB kernel option. | ||
|
||
|
||
**** How to install bzImage.efi | ||
|
||
The bzImage located in arch/x86/boot/bzImage must be copied to the EFI | ||
System Partiion (ESP) and renamed with the extension ".efi". Without | ||
the extension the EFI firmware loader will refuse to execute it. It's | ||
not possible to execute bzImage.efi from the usual Linux file systems | ||
because EFI firmware doesn't have support for them. | ||
|
||
|
||
**** Passing kernel parameters from the EFI shell | ||
|
||
Arguments to the kernel can be passed after bzImage.efi, e.g. | ||
|
||
fs0:> bzImage.efi console=ttyS0 root=/dev/sda4 | ||
|
||
|
||
**** The "initrd=" option | ||
|
||
Like most boot loaders, the EFI stub allows the user to specify | ||
multiple initrd files using the "initrd=" option. This is the only EFI | ||
stub-specific command line parameter, everything else is passed to the | ||
kernel when it boots. | ||
|
||
The path to the initrd file must be an absolute path from the | ||
beginning of the ESP, relative path names do not work. Also, the path | ||
is an EFI-style path and directory elements must be separated with | ||
backslashes (\). For example, given the following directory layout, | ||
|
||
fs0:> | ||
Kernels\ | ||
bzImage.efi | ||
initrd-large.img | ||
|
||
Ramdisks\ | ||
initrd-small.img | ||
initrd-medium.img | ||
|
||
to boot with the initrd-large.img file if the current working | ||
directory is fs0:\Kernels, the following command must be used, | ||
|
||
fs0:\Kernels> bzImage.efi initrd=\Kernels\initrd-large.img | ||
|
||
Notice how bzImage.efi can be specified with a relative path. That's | ||
because the image we're executing is interpreted by the EFI shell, | ||
which understands relative paths, whereas the rest of the command line | ||
is passed to bzImage.efi. |
Oops, something went wrong.