Get rid of special partition for storing environment and read it from
boot (4th) FAT partition from uboot.env file, like on the other Tizen
boards.
This requires an update of sd_fusing.py to skip creating 'env' partition
and make boot partition the 4th one.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I980a7e061405629a018913281110ff068ac0b0f5
return (ulong *)&_end;
}
+#ifndef CONFIG_TIZEN_K1_X
enum env_location env_get_location(enum env_operation op, int prio)
{
if (prio >= 1)
#endif
}
}
+#endif
int misc_init_r(void)
{
CONFIG_SYS_MALLOC_LEN=0x1000000
CONFIG_NR_DRAM_BANKS=2
CONFIG_ENV_SIZE=0x4000
-CONFIG_ENV_OFFSET=0x60000
CONFIG_DM_GPIO=y
CONFIG_SPL_DM_SPI=y
CONFIG_DEFAULT_DEVICE_TREE="k1-x_spl"
CONFIG_PARTITION_TYPE_GUID=y
CONFIG_MULTI_DTB_FIT=y
CONFIG_ENV_IS_IN_FAT=y
-CONFIG_ENV_IS_IN_MMC=y
+CONFIG_ENV_FAT_DEVICE_AND_PART="0:4"
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
CONFIG_SPL_ENV_IS_NOWHERE=y
mkdir -p %{buildroot}/var/tmp
install -m 755 u-boot.itb %{buildroot}/var/tmp/
install -m 755 FSBL.bin %{buildroot}/var/tmp/
-install -m 755 u-boot-env-default.bin %{buildroot}/var/tmp/
install -m 755 bootinfo_sd.bin %{buildroot}/var/tmp/
install -m 755 boot.scr.uimg %{buildroot}/boot/
install -m 755 uboot.env %{buildroot}/boot/
%defattr(-,root,root,-)
/var/tmp/u-boot.itb
/var/tmp/FSBL.bin
-/var/tmp/u-boot-env-default.bin
/var/tmp/bootinfo_sd.bin
/boot/uboot.env
/boot/boot.scr.uimg