From: Chanho Park Date: Tue, 28 Jul 2015 06:11:07 +0000 (+0900) Subject: artik5: config: support bootcmd environment variable X-Git-Tag: submit/tizen/20160318.071304~93 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3cf175170da97fdf4856c21f3fafedd9c8a2fd6a;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik.git artik5: config: support bootcmd environment variable This patch arranges bootcmd environment variables to change them from u-boot shell. Signed-off-by: Chanho Park --- diff --git a/include/configs/artik5.h b/include/configs/artik5.h index cea2b5f7f..30e2dc963 100755 --- a/include/configs/artik5.h +++ b/include/configs/artik5.h @@ -251,8 +251,7 @@ #define CONFIG_BOOTCOMMAND "emmc open 0;movi r z f 0 40000000;emmc close 0;" \ "movi read kernel 0 40008000;movi read rootfs 0 41000000 100000;bootz 40008000 41000000" #else -/*#define CONFIG_BOOTCOMMAND "movi read kernel 0 40008000;movi read rootfs 0 41000000 200000;bootz 40008000 41000000"*/ -#define CONFIG_BOOTCOMMAND "movi read kernel 0 40008000;movi read rootfs 0 41000000 1000000;bootz 40008000 41000000" +#define CONFIG_BOOTCOMMAND "run mmcboot" #endif #define CONFIG_BOOTCOMMAND_VIA_SCRIPT "movi init 1;fatload mmc 1 0x40000000 booting_script;source 0x40000000" @@ -417,6 +416,9 @@ #define CONFIG_ROOTFS_OFFSET 25 #endif +#define CONFIG_ROOT_DEV 0 +#define CONFIG_ROOT_PART 1 + #define PARTS_DEFAULT \ "uuid_disk=${uuid_gpt_disk};" \ "name=rootfs,start=" __stringify(CONFIG_ROOTFS_OFFSET) "MiB,size=" \ @@ -428,7 +430,22 @@ "consoleon=set console console=" CONFIG_DEFAULT_CONSOLE "; saveenv; reset\0" \ "consoleoff=set console console=ram; saveenv; reset\0" \ "rootfslen=" __stringify(CONFIG_ROOTFS_LEN) "\0" \ - "partitions=" PARTS_DEFAULT + "partitions=" PARTS_DEFAULT \ + "rootdev=" __stringify(CONFIG_ROOT_DEV) "\0" \ + "rootpart=" __stringify(CONFIG_ROOT_PART) "\0" \ + "root_rw=rw\0" \ + "opts=loglevel=4\0" \ + "boot_cmd=movi read kernel 0 40008000;" \ + "movi read rootfs 0 41000000 1000000;" \ + "bootz 40008000 41000000\0" \ + "ramfsboot=setenv bootargs ${console} root=/dev/ram0 " \ + "rootfstype=ext2 initrd=0x41000000," \ + __stringify(CONFIG_RAMDISK_PART_SIZE)"M ${opts};" \ + "run boot_cmd\0" \ + "mmcboot=setenv bootargs ${console} " \ + "root=/dev/mmcblk${rootdev}p${rootpart} ${root_rw} " \ + "${opts};run boot_cmd\0" \ + "bootcmd=run mmcboot\0" #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - 0x1000000)