• Wu, Josh's avatar
    env_fat: use get_device_and_partition() during env save and load · be354c1a
    Wu, Josh authored
    Use get_device_and_partition() is better since:
    1. It will call the device initialize function internally. So we can
    remove the mmc intialization code to save many lines.
    2. It is used by fatls/fatload/fatwrite. So saveenv & load env should
    use it too.
    3. It can parse the "D:P", "D", "D:", "D:auto" string to get correct
    device and partition information by run-time.
    
    Also we remove the FAT_ENV_DEVICE and FAT_ENV_PART. We use a string:
    FAT_ENV_DEVICE_AND_PART.
    For at91sam9m10g45ek, it is "0". That means use device 0 and if:
    a)device 0 has no partition table, use the whole device as a FAT file
    system.
    b)device 0 has partittion table, use the partition #1.
    
    Refer to the commit: 10a37fd7 for details of device & partition string.
    Signed-off-by: default avatarJosh Wu <josh.wu@atmel.com>
    Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
    be354c1a
Name
Last commit
Last update
..
spl Loading commit data...
Makefile Loading commit data...
autoboot.c Loading commit data...
bedbug.c Loading commit data...
board_f.c Loading commit data...
board_r.c Loading commit data...
bootm.c Loading commit data...
bootm_os.c Loading commit data...
bootretry.c Loading commit data...
bootstage.c Loading commit data...
bouncebuf.c Loading commit data...
cli.c Loading commit data...
cli_hush.c Loading commit data...
cli_readline.c Loading commit data...
cli_simple.c Loading commit data...
cmd_aes.c Loading commit data...
cmd_ambapp.c Loading commit data...
cmd_bdinfo.c Loading commit data...
cmd_bedbug.c Loading commit data...
cmd_bmp.c Loading commit data...
cmd_boot.c Loading commit data...
cmd_bootldr.c Loading commit data...
cmd_bootm.c Loading commit data...
cmd_bootmenu.c Loading commit data...
cmd_bootstage.c Loading commit data...
cmd_cache.c Loading commit data...
cmd_cbfs.c Loading commit data...
cmd_clk.c Loading commit data...
cmd_console.c Loading commit data...
cmd_cplbinfo.c Loading commit data...
cmd_cramfs.c Loading commit data...
cmd_dataflash_mmc_mux.c Loading commit data...
cmd_date.c Loading commit data...
cmd_dcr.c Loading commit data...
cmd_demo.c Loading commit data...
cmd_dfu.c Loading commit data...
cmd_diag.c Loading commit data...
cmd_disk.c Loading commit data...
cmd_display.c Loading commit data...
cmd_dtt.c Loading commit data...
cmd_echo.c Loading commit data...
cmd_eeprom.c Loading commit data...
cmd_elf.c Loading commit data...
cmd_exit.c Loading commit data...
cmd_ext2.c Loading commit data...
cmd_ext4.c Loading commit data...
cmd_fastboot.c Loading commit data...
cmd_fat.c Loading commit data...
cmd_fdc.c Loading commit data...
cmd_fdt.c Loading commit data...
cmd_fitupd.c Loading commit data...
cmd_flash.c Loading commit data...
cmd_fpga.c Loading commit data...
cmd_fpgad.c Loading commit data...
cmd_fs.c Loading commit data...
cmd_fuse.c Loading commit data...
cmd_gettime.c Loading commit data...
cmd_gpio.c Loading commit data...
cmd_gpt.c Loading commit data...
cmd_hash.c Loading commit data...
cmd_help.c Loading commit data...
cmd_i2c.c Loading commit data...
cmd_ide.c Loading commit data...
cmd_immap.c Loading commit data...
cmd_ini.c Loading commit data...
cmd_io.c Loading commit data...
cmd_iotrace.c Loading commit data...
cmd_irq.c Loading commit data...
cmd_itest.c Loading commit data...
cmd_jffs2.c Loading commit data...
cmd_ldrinfo.c Loading commit data...
cmd_led.c Loading commit data...
cmd_license.c Loading commit data...
cmd_load.c Loading commit data...
cmd_log.c Loading commit data...
cmd_lzmadec.c Loading commit data...
cmd_mac.c Loading commit data...
cmd_md5sum.c Loading commit data...
cmd_mdio.c Loading commit data...
cmd_mem.c Loading commit data...
cmd_mfsl.c Loading commit data...
cmd_mii.c Loading commit data...
cmd_misc.c Loading commit data...
cmd_mmc.c Loading commit data...
cmd_mmc_spi.c Loading commit data...
cmd_mp.c Loading commit data...
cmd_mtdparts.c Loading commit data...
cmd_nand.c Loading commit data...
cmd_net.c Loading commit data...
cmd_nvedit.c Loading commit data...
cmd_onenand.c Loading commit data...
cmd_otp.c Loading commit data...
cmd_part.c Loading commit data...
cmd_pci.c Loading commit data...
cmd_pcmcia.c Loading commit data...
cmd_portio.c Loading commit data...
cmd_pxe.c Loading commit data...
cmd_read.c Loading commit data...
cmd_reginfo.c Loading commit data...
cmd_reiser.c Loading commit data...
cmd_sandbox.c Loading commit data...
cmd_sata.c Loading commit data...
cmd_scsi.c Loading commit data...
cmd_setexpr.c Loading commit data...
cmd_sf.c Loading commit data...
cmd_sha1sum.c Loading commit data...
cmd_softswitch.c Loading commit data...
cmd_sound.c Loading commit data...
cmd_source.c Loading commit data...
cmd_spi.c Loading commit data...
cmd_spibootldr.c Loading commit data...
cmd_spl.c Loading commit data...
cmd_strings.c Loading commit data...
cmd_terminal.c Loading commit data...
cmd_test.c Loading commit data...
cmd_thordown.c Loading commit data...
cmd_time.c Loading commit data...
cmd_tpm.c Loading commit data...
cmd_trace.c Loading commit data...
cmd_tsi148.c Loading commit data...
cmd_ubi.c Loading commit data...
cmd_ubifs.c Loading commit data...
cmd_universe.c Loading commit data...
cmd_unzip.c Loading commit data...
cmd_usb.c Loading commit data...
cmd_usb_mass_storage.c Loading commit data...
cmd_version.c Loading commit data...
cmd_ximg.c Loading commit data...
cmd_yaffs2.c Loading commit data...
cmd_zfs.c Loading commit data...
cmd_zip.c Loading commit data...
command.c Loading commit data...
console.c Loading commit data...
cros_ec.c Loading commit data...
ddr_spd.c Loading commit data...
dlmalloc.c Loading commit data...
dlmalloc.src Loading commit data...
edid.c Loading commit data...
env_attr.c Loading commit data...
env_callback.c Loading commit data...
env_common.c Loading commit data...
env_dataflash.c Loading commit data...
env_eeprom.c Loading commit data...
env_embedded.c Loading commit data...
env_fat.c Loading commit data...
env_flags.c Loading commit data...
env_flash.c Loading commit data...
env_mmc.c Loading commit data...
env_nand.c Loading commit data...
env_nowhere.c Loading commit data...
env_nvram.c Loading commit data...
env_onenand.c Loading commit data...
env_remote.c Loading commit data...
env_sf.c Loading commit data...
env_ubi.c Loading commit data...
exports.c Loading commit data...
fdt_support.c Loading commit data...
flash.c Loading commit data...
hash.c Loading commit data...
hwconfig.c Loading commit data...
image-android.c Loading commit data...
image-fdt.c Loading commit data...
image-fit.c Loading commit data...
image-sig.c Loading commit data...
image.c Loading commit data...
iomux.c Loading commit data...
iotrace.c Loading commit data...
kallsyms.c Loading commit data...
kgdb.c Loading commit data...
kgdb_stubs.c Loading commit data...
lcd.c Loading commit data...
lynxkdi.c Loading commit data...
main.c Loading commit data...
memsize.c Loading commit data...
menu.c Loading commit data...
miiphyutil.c Loading commit data...
modem.c Loading commit data...
s_record.c Loading commit data...
splash.c Loading commit data...
stdio.c Loading commit data...
system_map.c Loading commit data...
update.c Loading commit data...
usb.c Loading commit data...
usb_hub.c Loading commit data...
usb_kbd.c Loading commit data...
usb_storage.c Loading commit data...
xyzModem.c Loading commit data...