u-boot/common
Patrick Delaunay cfdaf4caa2 part:efi: add bootable parameter in gpt command
The optional parameter bootable is added in gpt command to set the
partition attribute flag "Legacy BIOS bootable"

This flag is used in extlinux and so in with distro to select
the boot partition where is located the configuration file
(please check out doc/README.distro for details).

With this parameter, U-Boot can be used to create the boot partition
needed for device using distro.

example of use:

setenv partitions "name=u-boot,size=60MiB;name=boot,size=60Mib,bootable;\
                   name=rootfs,size=0"

> gpt write mmc 0 $partitions

> part list mmc 0

Partition Map for MMC device 0  --   Partition Type: EFI

Part	Start LBA	End LBA		Name
	Attributes
	Type GUID
	Partition GUID
  1	0x00000022	0x0001e021	"u-boot"
	attrs:	0x0000000000000000
	type:	ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
	guid:	cceb0b18-39cb-d547-9db7-03b405fa77d4
  2	0x0001e022	0x0003c021	"boot"
	attrs:	0x0000000000000004
	type:	ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
	guid:	d4981a2b-0478-544e-9607-7fd3c651068d
  3	0x0003c022	0x003a9fde	"rootfs"
	attrs:	0x0000000000000000
	type:	ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
	guid:	6d6c9a36-e919-264d-a9ee-bd00379686c7

> part list mmc 0 -bootable devplist

> printenv devplist

devplist=2

Then the distro scripts will search extlinux in partition 2
and not in the first partition.

Signed-off-by: Patrick Delaunay <patrick.delaunay73@gmail.com>
2015-11-23 11:01:52 -05:00
..
init board_init: Change the logic to setup malloc_base 2015-11-12 20:34:07 -05:00
spl spl: mmc: add support for BOOT_DEVICE_MMC2 2015-11-18 14:50:05 -05:00
autoboot.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
bedbug.c
board_f.c console: Add a console buffer 2015-11-19 20:27:50 -07:00
board_info.c generic-board: allow showing custom board info 2015-08-13 07:19:36 -04:00
board_r.c console: Add a console buffer 2015-11-19 20:27:50 -07:00
bootm.c Add support for LZ4 decompression algorithm 2015-10-11 17:12:10 -04:00
bootm_os.c
bootretry.c
bootstage.c
bouncebuf.c
cli.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cli_hush.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cli_readline.c spl, common, serial: build SPL without serial support 2015-08-12 20:47:13 -04:00
cli_simple.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_aes.c
cmd_ambapp.c sparc: leon3: Moved GRLIB core header files to common include/grlib directory 2015-11-13 10:23:33 +02:00
cmd_armflash.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_bdinfo.c nios2: use dram bank in board info 2015-11-06 09:14:11 +08:00
cmd_bedbug.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_blob.c
cmd_bmp.c
cmd_boot.c
cmd_bootldr.c
cmd_bootm.c
cmd_bootmenu.c
cmd_bootstage.c
cmd_cache.c
cmd_cbfs.c
cmd_clk.c
cmd_console.c video: Drop DEV_FLAGS_SYSTEM flag 2015-11-05 08:22:21 +01:00
cmd_cplbinfo.c
cmd_cpu.c dm: cpu: Fix undefined ENOSYS build error 2015-07-14 18:03:15 -06:00
cmd_cramfs.c
cmd_dataflash_mmc_mux.c
cmd_date.c cmd: date: Change to use CONFIG_DM_RTC instead of CONFIG_DM_I2C 2015-07-14 18:03:16 -06:00
cmd_dcr.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_demo.c
cmd_dfu.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_diag.c
cmd_disk.c
cmd_display.c
cmd_dtt.c
cmd_echo.c
cmd_eeprom.c eeprom: Clean up checkpatch issues 2015-11-21 21:50:27 -05:00
cmd_efi.c efi: Add a command to display the memory map 2015-08-05 08:44:07 -06:00
cmd_elf.c cmd: bootvx: Add asmlinkage to the VxWorks x86 entry 2015-10-21 07:46:26 -06:00
cmd_ethsw.c drivers/net/vsc9953: Add commands for VLAN ingress filtering 2015-09-21 08:29:48 -07:00
cmd_exit.c
cmd_ext2.c
cmd_ext4.c
cmd_fastboot.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_fat.c
cmd_fdc.c
cmd_fdt.c cmd_fdt: save fdtaddr in hex format 2015-07-20 07:21:47 -06:00
cmd_fitupd.c update: tftp: dfu: Extend update_tftp() function to support DFU 2015-09-07 13:41:05 +02:00
cmd_flash.c
cmd_fpga.c
cmd_fpgad.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_fs.c
cmd_fs_uuid.c
cmd_fuse.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_gettime.c
cmd_gpio.c
cmd_gpt.c part:efi: add bootable parameter in gpt command 2015-11-23 11:01:52 -05:00
cmd_hash.c
cmd_help.c
cmd_host.c
cmd_i2c.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_ide.c
cmd_immap.c
cmd_ini.c
cmd_io.c
cmd_iotrace.c
cmd_irq.c
cmd_itest.c itest: add missing break statements to evalexp() 2015-11-18 15:29:00 -05:00
cmd_jffs2.c
cmd_ldrinfo.c
cmd_led.c
cmd_license.c
cmd_load.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_log.c
cmd_lzmadec.c
cmd_mac.c
cmd_md5sum.c
cmd_mdio.c
cmd_mem.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_mfsl.c
cmd_mii.c common: mii: Do not allow to exceed max phy limit 2015-11-19 14:03:05 +01:00
cmd_misc.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_mmc.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_mmc_spi.c
cmd_mp.c cmd_mp: Add support for showing all CPU status by one command 2015-07-28 11:56:29 +02:00
cmd_mtdparts.c
cmd_nand.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_net.c
cmd_nvedit.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_onenand.c mtd, nand: Move common functions from cmd_nand.c to common place 2015-06-30 00:40:11 +05:30
cmd_otp.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_part.c
cmd_pci.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_pcmcia.c
cmd_pmic.c
cmd_portio.c
cmd_pxe.c pxe: add AArch64 image support 2015-07-27 15:53:48 -07:00
cmd_read.c
cmd_reginfo.c
cmd_regulator.c dm: pmic: Display the regulator limits on error 2015-08-05 21:06:13 -06:00
cmd_reiser.c
cmd_remoteproc.c drivers: Introduce a simplified remoteproc framework 2015-10-22 14:18:38 -04:00
cmd_sata.c
cmd_scsi.c scsi: fix compiler warning with DEBUG and 48bit LBAs 2015-07-11 08:01:54 -04:00
cmd_setexpr.c
cmd_sf.c sf: Add SPI NOR protection mechanism 2015-11-05 16:47:06 -05:00
cmd_sha1sum.c
cmd_softswitch.c
cmd_sound.c
cmd_source.c common/cmd_source.c: Fix the source command failure under 64-bit platform 2015-08-12 20:47:56 -04:00
cmd_spi.c
cmd_spibootldr.c
cmd_spl.c
cmd_strings.c
cmd_terminal.c
cmd_test.c mtd, nand: Move common functions from cmd_nand.c to common place 2015-06-30 00:40:11 +05:30
cmd_thordown.c
cmd_time.c
cmd_tpm.c dm: tpm: Remove every compilation switch for TPM driver model 2015-10-23 09:42:28 -06:00
cmd_tpm_test.c dm: tpm: Add a 'tpmtest' command 2015-08-31 07:57:29 -06:00
cmd_trace.c
cmd_tsi148.c dm: pci: Add support for PCI driver matching 2015-07-21 17:39:38 -06:00
cmd_ubi.c ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00
cmd_ubifs.c ubifs: Modify ubifs u-boot wrapper function prototypes for generic fs use 2015-10-24 13:50:31 -04:00
cmd_universe.c
cmd_unzip.c
cmd_usb.c usb: Refactor USB tree output code for testing 2015-11-19 20:27:51 -07:00
cmd_usb_mass_storage.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
cmd_version.c
cmd_ximg.c Allow imxtract to extract part of script image. 2015-10-24 13:50:31 -04:00
cmd_yaffs2.c
cmd_zfs.c
cmd_zip.c
command.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
console.c lib/tiny-printf.c: Add tiny printf function for space limited environments 2015-11-23 10:56:07 -05:00
cros_ec.c
ddr_spd.c
dlmalloc.c
dlmalloc.src
edid.c
env_attr.c
env_callback.c
env_common.c
env_dataflash.c
env_eeprom.c eeprom: Add bus argument to eeprom_init() 2015-11-21 21:50:26 -05:00
env_embedded.c
env_fat.c Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
env_flags.c common/env_flags.c: Add function to validate a MAC address 2015-09-21 08:29:47 -07:00
env_flash.c
env_mmc.c Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
env_nand.c Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
env_nowhere.c
env_nvram.c
env_onenand.c
env_remote.c
env_sf.c env: use cache line aligned memory for flash read 2015-08-17 23:29:14 +05:30
env_ubi.c env_ubi.c: Correct pointer error in env load 2015-11-19 07:32:49 +01:00
exports.c board/ls2085rdb: Export functions for standalone AQ FW load apps 2015-07-20 11:44:37 -07:00
fb_mmc.c mmc: Use lldiv() for 64-bit division in write_raw_image() 2015-11-12 15:58:59 -05:00
fb_nand.c sparse: Rename the file and header 2015-11-12 13:18:59 -05:00
fdt_support.c fdt_support: Don't panic if stdout alias is missing 2015-10-26 09:09:54 -07:00
flash.c
hash.c
hwconfig.c
image-android.c image: fix support for Android boot images with no ramdisk 2015-10-11 17:12:10 -04:00
image-fdt.c image-fdt.c: store returned error value 2015-08-13 07:19:37 -04:00
image-fit.c image-fit: Fix signature checking 2015-10-19 17:06:16 -04:00
image-sig.c
image-sparse.c sparse: Rename the file and header 2015-11-12 13:18:59 -05:00
image.c tools: zynqimage: Add Xilinx Zynq boot header generation to mkimage 2015-11-19 13:09:21 +01:00
iomux.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
iotrace.c
kallsyms.c
Kconfig console: Add a console buffer 2015-11-19 20:27:50 -07:00
kgdb.c
kgdb_stubs.c
lcd.c common/lcd_console: fix console/logo regression 2015-08-13 07:19:34 -04:00
lcd_console.c
lcd_console_rotation.c
lcd_simplefb.c common/lcd_simplefb: Add support for 32bit organized framebuffers 2015-07-23 18:10:58 +02:00
lynxkdi.c
main.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
Makefile sparse: Rename the file and header 2015-11-12 13:18:59 -05:00
malloc_simple.c Merge git://git.denx.de/u-boot-x86 2015-10-21 20:47:40 -04:00
memsize.c
menu.c
miiphyutil.c net: mdio: Add mdio_free() and mdio_unregister() API 2015-10-29 14:05:50 -05:00
modem.c
s_record.c
splash.c
splash_source.c splash_source: add support for filesystem formatted sata 2015-11-16 12:01:35 +01:00
stdio.c dm: stdio: Plumb in the new keyboard uclass 2015-11-19 20:13:40 -07:00
system_map.c
update.c update: tftp: dfu: Extend update_tftp() function to support DFU 2015-09-07 13:41:05 +02:00
usb.c Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
usb_hub.c dm: usb: Avoid time delays in sandbox tests 2015-11-19 20:27:50 -07:00
usb_kbd.c usb: Avoid open-coded USB constants in usb_kbd.c 2015-11-19 20:27:52 -07:00
usb_storage.c common/usb_storage.c: Clean up usb_storage_probe() 2015-11-03 17:29:33 +01:00
xyzModem.c