u-boot/include
Sam Protsenko beffc170f2 am335x_evm: Consolidate eMMC partitions with DFU info
>From DFU_ALT_INFO_EMMC (include/environment/ti/dfu.h) we can see that
rootfs will be flashed to second partition on eMMC. But at the moment we
have only one partition in $partitions environment variable. Let's add
"bootloader" partition prior to "rootfs", so that DFU works correctly.
This also fixes eMMC boot, which looks for rootfs on second partition.

"bootloader" partition start corresponds to "u-boot.img.raw" in DFU
eMMC info, which is 0x300 sector (384 KiB offset from eMMC start).

rootfs start address can be also found from DFU eMMC info.
bootloader-related area is finished at 0x1500 sector (2688 KiB offset
from eMMC start). This should be the start address for rootfs in
$partitions environment variable.

While at it, fix U-Boot environment address to be the same as for
AM57x EVM, so that it doesn't clash with other partitions.

So now eMMC layout looks like this:

    ===============================================================

    0       +------------------------+
            | MBR/GPT header         |   128           -
    128     +------------------------+
            | MLO                    |   256           -
    384     +------------------------+
            | u-boot.img             |   1792          bootloader
    2176    +------------------------+
            | //////// hole //////// |   256           -
    2432    +------------------------+
            | U-Boot environment     |   128           -
    2560    +------------------------+
            | U-Boot environment     |   128           -
            | (redundant)            |
    2688    +------------------------+
            | rootfs                 |   remaining     rootfs
    end     +------------------------+

    ===============================================================

"hole" area can be used further for storing U-Boot environment (like
it's done in AM57x EVM config file) or for increasing u-boot.img area
(in case u-boot.img size increased, e.g. if new dtbs were added).

This commit conforms with Linux partition table from f6d245b8c5
("arm: am57xx: Fix Linux boot from eMMC") commit, making things in
uniform way.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2018-02-14 12:14:14 -05:00
..
andestech
asm-generic efi_loader: fix building crt0 on arm 2018-02-10 00:24:00 +01:00
bedbug
cavium
configs am335x_evm: Consolidate eMMC partitions with DFU info 2018-02-14 12:14:14 -05:00
cramfs
dm dm: core: fix typo in comment (device.h) 2018-02-13 23:24:22 -05:00
dt-bindings imx: imx8mq: add dtsi file 2018-02-04 12:00:58 +01:00
environment/ti env: ti: Select dtb name for dra76x and am574 2018-01-19 15:49:27 -05:00
faraday
fsl-mc driver: net: fsl-mc: flib changes for MC 10.3.0 2017-12-06 14:55:17 -08:00
jffs2
linux libfdt: fix <linux/libfdt.h> 2018-01-28 12:27:30 -05:00
lzma
mtd
net
pcmcia
power power: regulator: s2mps11: add a regulator driver for s2mps11 2018-01-24 16:07:19 +09:00
samsung ARM: Samsung: Add Exynos5422-based Odroid HC1 support 2017-12-05 10:18:39 +09:00
spmi
synopsys
tee
test test: compression: Convert to unit test framework 2017-12-04 09:58:20 -05:00
u-boot
usb bitops: collect BIT macros to include/linux/bitops.h 2017-11-29 00:28:57 +09:00
zfs
.gitignore
ACEX1K.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
SA-1100.h
_exports.h
adc.h
addr_map.h
ahci.h ata: Fix ahci wording 2017-11-28 16:08:52 +01:00
ali512x.h
altera.h
android_image.h
ansi.h
api.h
api_public.h
armcoremodule.h
asm-offsets.h
ata.h
atf_common.h
atmel_hlcdc.h
atmel_lcd.h
atmel_lcdc.h
atmel_mci.h
atsha204a-i2c.h
autoboot.h
axp152.h
axp209.h
axp221.h
axp809.h
axp818.h
axp_pmic.h
backlight.h
bcd.h
binman_sym.h binman: Add binman symbol support to SPL 2017-12-12 19:53:45 -07:00
bios_emul.h
bitfield.h
blk.h SystemACE: Remove 2018-02-13 23:24:22 -05:00
bmp_layout.h
boot_fit.h
bootcount.h
bootm.h
bootretry.h
bootstage.h
bouncebuf.h
btrfs.h
bus_vcxk.h
bzlib.h
cbfs.h
charset.h efi_loader: new function utf8_to_utf16 2017-12-01 13:22:55 +01:00
circbuf.h
cli.h
cli_hush.h
clk-uclass.h clk: add clk_set_parent() 2018-01-28 17:12:35 +01:00
clk.h clk: implement clk_set_defaults() 2018-01-28 17:12:36 +01:00
cmd_spl.h
command.h
common.h common: board_f: vid: Add VID specific API to adjust core voltage 2018-01-23 11:20:46 -08:00
common_timing_params.h drivers/ddr/fsl: Dual-license DDR driver 2018-02-09 08:36:40 -08:00
commproc.h
compiler.h Fix FreeBSD endian checks 2018-02-05 20:58:11 -05:00
config_defaults.h
config_distro_bootcmd.h distro bootcmd: Allow board defined UBI partition and volume names 2018-01-28 12:27:29 -05:00
config_distro_defaults.h
config_fallbacks.h Move most CONFIG_HAVE_BLOCK_DEVICE to Kconfig 2018-02-08 19:09:03 -05:00
config_fsl_chain_trust.h
config_phylib_all_drivers.h
config_uncmd_spl.h
console.h
cortina.h
cpsw.h
cpu.h
crc.h
cros_ec.h
cros_ec_message.h
ddr_spd.h drivers/ddr/fsl: Add calculation of register control words 2018-01-30 09:14:07 -08:00
debug_uart.h
dfu.h
dialog_pmic.h
display.h
display_options.h
div64.h
dm-demo.h
dm.h
dm9000.h
dma.h
dp83848.h
ds1722.h
dt-structs.h
dw_hdmi.h
dwc3-omap-uboot.h
dwc3-sti-glue.h sti: fix STMicroelectronics copyright 2017-11-06 09:51:01 -05:00
dwc3-uboot.h
dwc_ahsata.h
dwmmc.h
e500.h
ec_commands.h
edid.h
eeprom_field.h
eeprom_layout.h
efi.h efi: Conflict efi_loader with different stub bitness 2018-01-28 21:37:13 +01:00
efi_api.h efi_loader: add missing runtime services stubs 2018-02-10 00:25:49 +01:00
efi_driver.h efi_driver: comment struct efi_driver_ops 2018-02-13 23:24:22 -05:00
efi_loader.h efi_loader: correct efi_disk_register 2018-02-10 00:25:49 +01:00
efi_selftest.h efi_selftest: colored test output 2018-01-22 23:09:12 +01:00
elf.h riscv: Modify generic codes to support RISC-V 2018-01-12 08:05:12 -05:00
env_attr.h
env_callback.h
env_default.h
env_flags.h
environment.h env: move more common code to env_import_redund 2018-02-01 08:05:49 -05:00
errno.h
ethsw.h
exports.h
ext4fs.h
ext_common.h
exynos_lcd.h
fastboot.h
fat.h fs: fat: Drop CONFIG_SUPPORT_VFAT 2018-01-22 16:43:31 -05:00
fb_mmc.h
fb_nand.h
fdt.h libfdt: change fdt.h to a wrapper of scripts/dtc/libfdt/* 2017-11-17 07:44:13 -05:00
fdt_simplefb.h
fdt_support.h driver: fsl-mc: Perform fsl-mc fdt fixup for lazyapply dpl 2018-01-30 09:13:32 -08:00
fdtdec.h fdtdec: allow board to provide fdt for CONFIG_OF_SEPARATE 2018-01-15 16:29:03 -05:00
fis.h
flash.h flash: Fix spelling of "ERR_TIMOUT" 2018-01-29 07:48:59 +01:00
fm_eth.h
fpga.h fpga: allow programming fpga from FIT image for all FPGA drivers 2017-12-14 16:09:39 +01:00
fs.h
fs_internal.h
fsl_csu.h
fsl_dcu_fb.h
fsl_ddr.h drivers/ddr/fsl: Dual-license DDR driver 2018-02-09 08:36:40 -08:00
fsl_ddr_dimm_params.h drivers/ddr/fsl: Dual-license DDR driver 2018-02-09 08:36:40 -08:00
fsl_ddr_sdram.h drivers/ddr/fsl: Add 3DS RDIMM support 2018-01-30 09:14:07 -08:00
fsl_ddrc_version.h drivers/ddr/fsl: Dual-license DDR driver 2018-02-09 08:36:40 -08:00
fsl_devdis.h
fsl_diu_fb.h
fsl_dspi.h
fsl_dtsec.h
fsl_errata.h
fsl_esdhc.h mmc: fsl_esdhc: support SDR104 and HS200 2018-02-04 12:00:58 +01:00
fsl_fman.h
fsl_ifc.h
fsl_immap.h drivers/ddr/fsl: Dual-license DDR driver 2018-02-09 08:36:40 -08:00
fsl_lpuart.h
fsl_mdio.h
fsl_memac.h
fsl_mmdc.h drivers/ddr/fsl: Dual-license DDR driver 2018-02-09 08:36:40 -08:00
fsl_pmic.h
fsl_qbman.h drivers/misc: Share qbman init between archs 2018-01-10 12:28:47 -08:00
fsl_qe.h
fsl_sec.h crypto/fsl: instantiate all rng state handles 2018-02-09 08:34:34 -08:00
fsl_sec_mon.h
fsl_secboot_err.h
fsl_sfp.h
fsl_tgec.h
fsl_usb.h
fsl_validate.h
fsl_wdog.h
fuse.h
g_dnl.h
gdsys_fpga.h
generic-phy.h
gt64120.h
hash.h
hw_sha.h
hwconfig.h
i2c.h
i2c_eeprom.h
i2s.h
i8042.h
ide.h
image-sparse.h
image.h move booti_setup to arch/arm/lig/image.c 2018-02-07 22:06:11 -05:00
imx_sip.h imx: add sip function 2018-02-04 12:00:58 +01:00
imx_thermal.h
imximage.h
init_helpers.h
initcall.h
input.h
inttypes.h
iomux.h
ioports.h
iotrace.h
ipu_pixfmt.h
key_matrix.h
keyboard.h
kgdb.h
lattice.h
lcd.h
lcd_console.h
lcdvideo.h
ld9040.h
led-display.h
led.h
libata.h
libfdt.h libfdt: migrate libfdt.h to a wrapper + U-Boot own code 2018-01-28 12:27:31 -05:00
libfdt_env.h libfdt: migrate include/libfdt_env.h to a wrapper 2018-01-28 12:27:31 -05:00
libtizen.h
linker_lists.h
linux_logo.h
lmb.h
log.h log: add category LOGC_EFI 2018-02-03 10:09:28 -07:00
lxt971a.h
lynxkdi.h
mailbox-uclass.h
mailbox.h
malloc.h
mapmem.h
mb862xx.h
mc9sdz60.h
mc13783.h
mc13892.h
mc34704.h
memalign.h
membuff.h
menu.h
micrel.h
mii_phy.h
miiphy.h
mipi_display.h
misc.h
mk48t59.h
mmc.h mmc: remove hc_wp_grp_size from struct mmc if not needed 2018-01-12 18:11:24 +09:00
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h
mpc85xx.h
mpc86xx.h
mpc106.h
msc01.h Update Paul Burton's email address 2017-11-28 21:59:30 +01:00
mtd.h
mtd_node.h
mv88e6352.h
mvebu_mmc.h
mvmfp.h
nand.h mtd: nand: Rename nand.h into rawnand.h 2017-12-04 22:00:00 +09:00
net.h
netdev.h
ns16550.h
ns87308.h
nuvoton_nct6102d.h
nvme.h
of_live.h
onenand_uboot.h
os.h Revert "sandbox: remove os_putc() and os_puts()" 2017-12-07 15:17:00 -05:00
palmas.h
panel.h
part.h
part_efi.h part: efi: Add a Kconfig option for the number of partition entries 2017-12-07 16:24:31 +01:00
pc_keyb.h
pca953x.h
pca9564.h
pca9698.h
pch.h
pci.h
pci_gt64120.h
pci_ids.h
pci_msc01.h Update Paul Burton's email address 2017-11-28 21:59:30 +01:00
pci_rom.h
pcmcia.h pcmcia: Drop a bunch of unused CONFIG_SYS_PCMCIA_ macros 2018-01-19 15:49:31 -05:00
pe.h efi_loader: fix building crt0 on arm 2018-02-10 00:24:00 +01:00
phy.h net: phy: Add Broadcom BCM53xx switch driver 2018-01-15 12:05:21 -06:00
phys2bus.h
physmem.h
post.h Drop the log buffer 2017-12-07 15:17:00 -05:00
power-domain-uclass.h
power-domain.h
ppc_asm.tmpl
ppc_defs.h
ps2mult.h
pwm.h
pwrseq.h
pxa_lcd.h
qfw.h
radeon.h
ram.h
rc4.h
regmap.h
reiserfs.h
relocate.h
remoteproc.h
reset-uclass.h
reset.h
rtc.h
rtc_def.h
s6e63d6.h
s_record.h
samsung-usb-phy-uboot.h
sandbox-adc.h
sandboxblockdev.h
sandboxfs.h
sata.h
scf0403_lcd.h
scsi.h
sdhci.h
sdp.h
search.h
serial.h
sh_pfc.h
sh_tmu.h
sja1000.h
slre.h
smbios.h
smsc_lpc47m.h
smsc_sio1007.h
sound.h
sparse_defs.h
sparse_format.h
spartan2.h
spartan3.h
spd.h
spd_sdram.h
spi.h spi: Remove spi_setup_slave_fdt 2018-01-24 12:04:07 +05:30
spi_flash.h spi: Remove spi_flash_probe_fdt 2018-01-24 12:04:07 +05:30
spl.h binman: Add binman symbol support to SPL 2017-12-12 19:53:45 -07:00
splash.h
status_led.h
stdio.h
stdio_dev.h
stdlib.h
stm32_rcc.h stm32: migrate clock structs in include/stm32_rcc.h 2017-11-29 22:30:50 -05:00
stratixII.h
sy8106a.h
sym53c8xx.h
syscon.h
sysreset.h
tables_csum.h
tca642x.h
tegra-kbc.h
thermal.h
thor.h
ti-usb-phy-uboot.h
time.h
timer.h
timestamp.h
tmu.h
tpm.h tpm: add more useful NV storage permission flags 2017-11-17 07:15:52 -07:00
tps6586x.h
trace.h
tsec.h
tsi108.h
tsi148.h
twl4030.h
twl6030.h
ubi_uboot.h
ubifs_uboot.h
ubispl.h
uboot_aes.h aes: Allow non-zero initialization vector 2018-01-29 12:50:13 -05:00
universe.h
usb.h
usb_cdc_acm.h
usb_defs.h
usb_ether.h
usb_mass_storage.h
usbdescriptors.h
usbdevice.h
usbroothubdes.h
uuid.h
vbe.h
version.h
video.h
video_bridge.h dm: video: bridge: add operation to read EDID 2017-10-26 14:17:01 +02:00
video_console.h
video_easylogo.h
video_fb.h
video_font.h
video_font_4x6.h
video_font_data.h
video_logo.h
virtex2.h
vsc7385.h
vsc9953.h
vsprintf.h
vxworks.h
w83c553f.h
wait_bit.h wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2018-01-24 12:03:43 +05:30
watchdog.h
wdt.h
winbond_w83627.h
xilinx.h
xyzModem.h
zfs_common.h
zynqmppl.h
zynqpl.h