Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
hardkernel/u-boot
longsleep/u-boot-odroidc
Bing0/u-boot
Cthulu201/u-boot
FiachAntaw/u-boot
JeonghwaCho/u-boot
JohnOH/u-boot
JoshDi/u-boot
JulianLiu/u-boot-odroid
Khemal/u-boot
Kr0n0/odroid_u-boot
Kwiboo/u-boot
Protiq/u-boot
RKalkani/hardkernel-uboot
Reneg973/u-boot
Rhomb-io/u-boot-rhomb
Ssj4oR/u-boot-odroid-u2
Stane1983/u-boot
TLoebner/u-boot
TizenTeam/u-boot
VittGam/hardkernel-u-boot
aballier/u-boot
aesamson/u-boot-1
animecomico/u-boot
asicer/u-boot
bheu/odroid_u-boot
bingbuidea/u-boot
bsmr-hardkernel/u-boot
bugrax/u-boot
buildc/u-boot
c-jheengut/u-boot
cottsay/u-boot
czheji/u-boot
djselbeck/u-boot
euser101/u-boot
fboudra/u-boot
federerlee/u-boot
foxdalas/u-boot
fshh520/u-boot
funman/u-boot
gale320/u-boot
geggio84/u-boot-1
glennodotcom/u-boot
graugans/u-boot
gripped/u-boot
harlanstars/u-boot
hellbentv/hardkernel-u-boot
hhtrace/u-boot
hunterhu/u-boot
iamGavinJ/u-boot
jerome-benoit/u-boot
john1117/u-boot-odroid
jongwonk/u-boot
jyizheng/u-boot-1
khwon/u-boot
kim6515516/u-boot
kmwhite/u-boot
lilbro1062000/u-boot
loli10K/u-boot
martinezjavier/u-boot-1
mfkiwl/hardkernel-uboot
mhaehnel/u-boot
misak113/u-boot
mkaczanowski/u-boot
mkjasia/u-boot
monojo/u-boot-1
nekromant/u-boot
notthetup/u-boot
nxmyoz/u-boot
ozcoder/u-boot
pRiVi/u-boot
pacificIT/u-boot
parkskevin/u-boot
patelhardik/u-boot
peick/u-boot
philippe-nuaa/u-boot
pytaloud/u-boot
rubeniskov/u-boot-odroid-c2
ruppi/u-boot
rzr/u-boot
sanyaade-embedded-systems/u-boot-2
schspa/u-boot
sdelavega/u-boot
severnt/u-boot
shadeslayer/u-boot
showliu/u-boot
silverwolfceh/u-boot
smartharlan/u-boot
steev/u-boot-1
sttytry/u-boot
sugarme/u-boot
sytnik1/u-boot
tklengyel/u-boot
tobetter/u-boot
tommie-lie/u-boot
totyc/u-boot
umiddelb/u-boot
vamanea/u-boot-odroid
wisesky/u-boot
wom-bat/u-boot
xoduddk123/uboot_hardkernel
xtitany/u-boot
xypron/hardkernel-u-boot
yongyucode/u-boot
yuyuyak/u-boot
zehome/u-boot
Nothing to show
...
Choose a Head Repository
hardkernel/u-boot
longsleep/u-boot-odroidc
Bing0/u-boot
Cthulu201/u-boot
FiachAntaw/u-boot
JeonghwaCho/u-boot
JohnOH/u-boot
JoshDi/u-boot
JulianLiu/u-boot-odroid
Khemal/u-boot
Kr0n0/odroid_u-boot
Kwiboo/u-boot
Protiq/u-boot
RKalkani/hardkernel-uboot
Reneg973/u-boot
Rhomb-io/u-boot-rhomb
Ssj4oR/u-boot-odroid-u2
Stane1983/u-boot
TLoebner/u-boot
TizenTeam/u-boot
VittGam/hardkernel-u-boot
aballier/u-boot
aesamson/u-boot-1
animecomico/u-boot
asicer/u-boot
bheu/odroid_u-boot
bingbuidea/u-boot
bsmr-hardkernel/u-boot
bugrax/u-boot
buildc/u-boot
c-jheengut/u-boot
cottsay/u-boot
czheji/u-boot
djselbeck/u-boot
euser101/u-boot
fboudra/u-boot
federerlee/u-boot
foxdalas/u-boot
fshh520/u-boot
funman/u-boot
gale320/u-boot
geggio84/u-boot-1
glennodotcom/u-boot
graugans/u-boot
gripped/u-boot
harlanstars/u-boot
hellbentv/hardkernel-u-boot
hhtrace/u-boot
hunterhu/u-boot
iamGavinJ/u-boot
jerome-benoit/u-boot
john1117/u-boot-odroid
jongwonk/u-boot
jyizheng/u-boot-1
khwon/u-boot
kim6515516/u-boot
kmwhite/u-boot
lilbro1062000/u-boot
loli10K/u-boot
martinezjavier/u-boot-1
mfkiwl/hardkernel-uboot
mhaehnel/u-boot
misak113/u-boot
mkaczanowski/u-boot
mkjasia/u-boot
monojo/u-boot-1
nekromant/u-boot
notthetup/u-boot
nxmyoz/u-boot
ozcoder/u-boot
pRiVi/u-boot
pacificIT/u-boot
parkskevin/u-boot
patelhardik/u-boot
peick/u-boot
philippe-nuaa/u-boot
pytaloud/u-boot
rubeniskov/u-boot-odroid-c2
ruppi/u-boot
rzr/u-boot
sanyaade-embedded-systems/u-boot-2
schspa/u-boot
sdelavega/u-boot
severnt/u-boot
shadeslayer/u-boot
showliu/u-boot
silverwolfceh/u-boot
smartharlan/u-boot
steev/u-boot-1
sttytry/u-boot
sugarme/u-boot
sytnik1/u-boot
tklengyel/u-boot
tobetter/u-boot
tommie-lie/u-boot
totyc/u-boot
umiddelb/u-boot
vamanea/u-boot-odroid
wisesky/u-boot
wom-bat/u-boot
xoduddk123/uboot_hardkernel
xtitany/u-boot
xypron/hardkernel-u-boot
yongyucode/u-boot
yuyuyak/u-boot
zehome/u-boot
Nothing to show
  • 11 commits
  • 8 files changed
  • 0 commit comments
  • 6 contributors
Commits on Jul 20, 2015
Maximilian Schwerin + longsleep
Add support for loading and saving the environment to a FAT partition
The following must be defined:

CONFIG_ENV_IS_IN_FAT
	Enable this saving environment to FAT.

FAT_ENV_INTERFACE
	Interface the FAT resides on (e.g. mmc).

FAT_ENV_DEVICE
	The interface device number (e.g. 0 for mmc0)

FAT_ENV_PART
	The device part (e.g. 1 for mmc0:1)

FAT_ENV_FILE
	The filename of the environment file.

Author:    Maximilian Schwerin <mvs@tigris.de>

Removed dead DEBUG comment.
Signed-off-by: Wolfgang Denk <wd@denx.de>

Conflicts:
	common/cmd_nvedit.c
README: document the CONFIG_ENV_IS_IN_FAT option
In README file, add document for the missing configuration option:
CONFIG_ENV_IS_IN_FAT.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

Conflicts:
	README
env: remove duplicated env_get_char_spec()
env_fat and env_remote have an implementation of env_get_char_spec()
function that is not different than the default.
Remove the duplicated code.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>

Conflicts:
	common/env_remote.c
env: checkpatch clean env_fat
env_fat has several checkpatch warnings - clean those up.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
David Wagner + longsleep
new tool mkenvimage: generates an env image from an arbitrary config …
…file

This tool takes a key=value configuration file (same as would a `printenv' show)
and generates the corresponding environment image, ready to be flashed.

use case: flash the environment with an external tool

Signed-off-by: David Wagner <david.wagner@free-electrons.com>
Acked-by; Mike Frysinger <vapier@gentoo.org>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Conflicts:
	tools/Makefile
Commits on Jul 23, 2015
Commits on Jul 28, 2015
ODROID-C1+: Cold reset of SD card by power cycle
This patch reset the power lane of SD card on kernel boot, so that SD card's
state can be initiated to SD mode.

Change-Id: I81e6d9003c8a0f0bbaefcde1c8c683174b25f654
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Commits on Sep 26, 2015
Showing with 609 additions and 26 deletions.
  1. +109 −0 README
  2. +13 −0 arch/arm/lib/bootm.c
  3. +1 −0 common/Makefile
  4. +25 −24 common/cmd_nvedit.c
  5. +170 −0 common/env_fat.c
  6. +14 −1 include/configs/hardkernel/odroidc.h
  7. +7 −1 tools/Makefile
  8. +270 −0 tools/mkenvimage.c
View
109 README
@@ -2710,6 +2710,115 @@ to save the current settings.
environment. If redundant environment is used, it will be copied to
CONFIG_NAND_ENV_DST + CONFIG_ENV_SIZE.
+- CONFIG_ENV_IS_IN_UBI:
+
+ Define this if you have an UBI volume that you want to use for the
+ environment. This has the benefit of wear-leveling the environment
+ accesses, which is important on NAND.
+
+ - CONFIG_ENV_UBI_PART:
+
+ Define this to a string that is the mtd partition containing the UBI.
+
+ - CONFIG_ENV_UBI_VOLUME:
+
+ Define this to the name of the volume that you want to store the
+ environment in.
+
+ - CONFIG_ENV_UBI_VOLUME_REDUND:
+
+ Define this to the name of another volume to store a second copy of
+ the environment in. This will enable redundant environments in UBI.
+ It is assumed that both volumes are in the same MTD partition.
+
+ - CONFIG_UBI_SILENCE_MSG
+ - CONFIG_UBIFS_SILENCE_MSG
+
+ You will probably want to define these to avoid a really noisy system
+ when storing the env in UBI.
+
+- CONFIG_ENV_IS_IN_FAT:
+ Define this if you want to use the FAT file system for the environment.
+
+ - FAT_ENV_INTERFACE:
+
+ Define this to a string that is the name of the block device.
+
+ - FAT_ENV_DEV_AND_PART:
+
+ Define this to a string to specify the partition of the device. It can
+ be as following:
+
+ "D:P", "D:0", "D", "D:" or "D:auto" (D, P are integers. And P >= 1)
+ - "D:P": device D partition P. Error occurs if device D has no
+ partition table.
+ - "D:0": device D.
+ - "D" or "D:": device D partition 1 if device D has partition
+ table, or the whole device D if has no partition
+ table.
+ - "D:auto": first partition in device D with bootable flag set.
+ If none, first valid paratition in device D. If no
+ partition table then means device D.
+
+ - FAT_ENV_FILE:
+
+ It's a string of the FAT file name. This file use to store the
+ envrionment.
+
+ - CONFIG_FAT_WRITE:
+ This should be defined. Otherwise it cannot save the envrionment file.
+
+- CONFIG_ENV_IS_IN_MMC:
+
+ Define this if you have an MMC device which you want to use for the
+ environment.
+
+ - CONFIG_SYS_MMC_ENV_DEV:
+
+ Specifies which MMC device the environment is stored in.
+
+ - CONFIG_SYS_MMC_ENV_PART (optional):
+
+ Specifies which MMC partition the environment is stored in. If not
+ set, defaults to partition 0, the user area. Common values might be
+ 1 (first MMC boot partition), 2 (second MMC boot partition).
+
+ - CONFIG_ENV_OFFSET:
+ - CONFIG_ENV_SIZE:
+
+ These two #defines specify the offset and size of the environment
+ area within the specified MMC device.
+
+ If offset is positive (the usual case), it is treated as relative to
+ the start of the MMC partition. If offset is negative, it is treated
+ as relative to the end of the MMC partition. This can be useful if
+ your board may be fitted with different MMC devices, which have
+ different sizes for the MMC partitions, and you always want the
+ environment placed at the very end of the partition, to leave the
+ maximum possible space before it, to store other data.
+
+ These two values are in units of bytes, but must be aligned to an
+ MMC sector boundary.
+
+ - CONFIG_ENV_OFFSET_REDUND (optional):
+
+ Specifies a second storage area, of CONFIG_ENV_SIZE size, used to
+ hold a redundant copy of the environment data. This provides a
+ valid backup copy in case the other copy is corrupted, e.g. due
+ to a power failure during a "saveenv" operation.
+
+ This value may also be positive or negative; this is handled in the
+ same way as CONFIG_ENV_OFFSET.
+
+ This value is also in units of bytes, but must also be aligned to
+ an MMC sector boundary.
+
+ - CONFIG_ENV_SIZE_REDUND (optional):
+
+ This value need not be set, even when CONFIG_ENV_OFFSET_REDUND is
+ set. If this value is set, it must be set to the same value as
+ CONFIG_ENV_SIZE.
+
- CONFIG_SYS_SPI_INIT_OFFSET
Defines offset to the initial SPI buffer area in DPRAM. The
View
@@ -29,6 +29,9 @@
#include <fdt.h>
#include <libfdt.h>
#include <fdt_support.h>
+#if defined(CONFIG_MACH_MESON8_ODROIDC)
+#include <asm/arch/gpio.h>
+#endif
DECLARE_GLOBAL_DATA_PTR;
@@ -274,6 +277,16 @@ static int bootm_linux_fdt(int machid, bootm_headers_t *images)
announce_and_cleanup();
+#if defined(CONFIG_MACH_MESON8_ODROIDC)
+ amlogic_gpio_direction_output(GPIOAO_3, 1); // TF_3V3N_1V8 -> 1.8V
+ amlogic_gpio_direction_output(GPIOY_12, 0); // TFLASH_VDD_EN -> disable
+
+ udelay(500000);
+
+ amlogic_gpio_direction_output(GPIOAO_3, 0); // TF_3V3N_1V8 -> 3.3V
+ amlogic_gpio_direction_output(GPIOY_12, 1); // TFLASH_VDD_EN -> enable
+#endif
+
kernel_entry(0, machid, *of_flat_tree);
/* does not return */
View
@@ -62,6 +62,7 @@ COBJS-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o
COBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
COBJS-$(CONFIG_ENV_IS_IN_MG_DISK) += env_mgdisk.o
COBJS-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
+COBJS-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
COBJS-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
ifeq ($(CONFIG_NEXT_NAND),y)
View
@@ -59,6 +59,7 @@ DECLARE_GLOBAL_DATA_PTR;
!defined(CONFIG_ENV_IS_IN_DATAFLASH) && \
!defined(CONFIG_ENV_IS_IN_MG_DISK) && \
!defined(CONFIG_ENV_IS_IN_MMC) && \
+ !defined(CONFIG_ENV_IS_IN_FAT) && \
!defined(CONFIG_ENV_IS_IN_NAND) && \
!defined(CONFIG_ENV_IS_IN_NVRAM) && \
!defined(CONFIG_ENV_IS_IN_ONENAND) && \
@@ -70,7 +71,7 @@ DECLARE_GLOBAL_DATA_PTR;
!defined(CONFIG_SPI_NAND_EMMC_COMPATIBLE) &&\
!defined(CONFIG_STORE_COMPATIBLE)
# error Define one of CONFIG_ENV_IS_IN_{EEPROM|FLASH|DATAFLASH|ONENAND|\
-SPI_FLASH|MG_DISK|NVRAM|MMC|NOWHERE}
+SPI_FLASH|MG_DISK|NVRAM|MMC|FAT|NOWHERE}
#endif
#define XMK_STR(x) #x
@@ -172,7 +173,7 @@ int do_env_print (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
int _do_env_set (int flag, int argc, char * const argv[])
{
-
+
bd_t *bd = gd->bd;
int i, len;
int console = -1;
@@ -1041,8 +1042,8 @@ char * args[]=
"disp.fromleft"
};
-void set_env_without_def()
-{
+void set_env_without_def()
+{
int size_args = sizeof(args)/sizeof(char*);
@@ -1051,7 +1052,7 @@ void set_env_without_def()
int do_defenv (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
-{
+{
set_env_without_def();
#ifdef CONFIG_STORE_COMPATIBLE
run_command("put store",0);
@@ -1084,7 +1085,7 @@ int do_defenv_without (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
char *init_val=NULL;
int i,envCnt=0;
-
+
#define CONFIG_ENV_NUMBER 80 //effective environment variable number of max
char *varName[CONFIG_ENV_NUMBER];
char varValue[CONFIG_ENV_NUMBER][CONFIG_SYS_CBSIZE];
@@ -1093,30 +1094,30 @@ int do_defenv_without (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
if (argc < 2)
return cmd_usage(cmdtp);
-
+
for(i=1;i<argc;i++)
{
init_val = getenv(argv[i]); //get environment variable value
if(init_val)
{
varName[envCnt] = argv[i];
- strcpy(varValue[envCnt], init_val);
+ strcpy(varValue[envCnt], init_val);
envCnt ++;
-
+
printf("%s = %s\n",varName[envCnt-1],varValue[envCnt-1]);
}
//else
// printf("## Error: \"%s\" not defined\n",argv[i]);
}
-
+
set_default_env(NULL); //defenv
if(envCnt>0)
{
for(i=0;i<envCnt;i++)
setenv((char *)varName[i],(char *)varValue[i]); //set specified environment variables
}
-
+
return 0;
}
@@ -1130,14 +1131,14 @@ U_BOOT_CMD(
#ifdef CONFIG_STORE_COMPATIBLE
void replace(char* org, char* find, char* rep)
-{
- char *p1, *p2;
- while(p1 = strstr(org, find)){
- p2 = p1 + strlen(find);
- memmove(p1 + strlen(rep), p2, strlen(p2) + 1);
- memcpy(p1, rep, strlen(rep));
+{
+ char *p1, *p2;
+ while(p1 = strstr(org, find)){
+ p2 = p1 + strlen(find);
+ memmove(p1 + strlen(rep), p2, strlen(p2) + 1);
+ memcpy(p1, rep, strlen(rep));
}
-
+
return;
}
@@ -1148,11 +1149,11 @@ int put_storage(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
char rep[20];
unsigned char store=0,tmp = 0;
char *p1 = NULL, *p2;
-
+
if (argc < 2)
return cmd_usage(cmdtp);
-
- cmd = argv[1];
+
+ cmd = argv[1];
if(!strcmp(cmd,"storage")){
char env_bootargs[512];
@@ -1178,7 +1179,7 @@ int put_storage(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return -1;
}
p2 = p1+strlen("storage")+1;
-
+
tmp = simple_strtoul(p2 ,NULL,16);
// printf("@put_storage: tmp %d store %d\n",tmp,store);
if(tmp!= store){
@@ -1211,7 +1212,7 @@ int put_storage(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return -1;
}
p2 = p1+strlen("storage")+1;
-
+
tmp = simple_strtoul(p2 ,NULL,16);
// printf("@put_storage: tmp %d store %d\n",tmp,store);
if(tmp!= store){
@@ -1229,7 +1230,7 @@ int put_storage(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}else{
return cmd_usage(cmdtp);
}
-
+
return 0;
}
Oops, something went wrong.

No commit comments for this range