summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2017-12-04 18:34:34 +0900
committerJaehoon Chung <jh80.chung@samsung.com>2019-01-21 16:23:03 +0900
commitf4907a9b77f381d61a78730204a22a45131ccccb (patch)
tree56e165ca06cd0b58b08667e90f9cdb9a9ca84c57
parentb8d15aa8d6f0f0cb6844a90d0d9f2687f5ee11ea (diff)
downloadu-boot-artik7-f4907a9b77f381d61a78730204a22a45131ccccb.tar.gz
u-boot-artik7-f4907a9b77f381d61a78730204a22a45131ccccb.tar.bz2
u-boot-artik7-f4907a9b77f381d61a78730204a22a45131ccccb.zip
configs: artik710_raptor: support the booting ramdisk-recovery image
If bootmode is recovery and there is a ramdisk-recovery.img, then it can be booted to ramdisk-recovery or fota mode. Change-Id: I2e331a558bca84b39942753e552073475464e370 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
-rw-r--r--include/configs/artik710_raptor.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/include/configs/artik710_raptor.h b/include/configs/artik710_raptor.h
index 87fb0b1128..ff2ed2613f 100644
--- a/include/configs/artik710_raptor.h
+++ b/include/configs/artik710_raptor.h
@@ -470,14 +470,28 @@
" fi\0" \
"load_kernel=ext4load mmc ${rootdev}:${bootpart} $kerneladdr $kernel_file\0" \
"load_initrd=" \
- "if test -e mmc ${rootdev}:${bootpart} ramdisk.img; then " \
- "setenv ramdisk_file ramdisk.img;" \
- "fi;" \
+ "if test ${bootmode} = recovery || test ${bootmode} = fota; then; " \
+ "if test -e mmc ${rootdev}:${bootpart} ramdisk-recovery.img; then " \
+ "echo ${bootmode} booting.;" \
+ "setenv ramdisk_file ramdisk-recovery.img;" \
+ "setenv ramdisksize 0xc00000;" \
+ "else " \
+ "echo There is no Recovery Image!!!;" \
+ "echo Try to do the Normal Ramdisk Booting!!;" \
+ "setenv ramdisk_file ramdisk.img;" \
+ "setenv bootmode ramdisk;" \
+ "fi;" \
+ "else " \
+ "if test -e mmc ${rootdev}:${bootpart} ramdisk.img; then " \
+ "echo ${bootmode} booting.;" \
+ "setenv ramdisk_file ramdisk.img;" \
+ "fi;" \
+ "fi;" \
"if test -e mmc ${rootdev}:${bootpart} ${ramdisk_file}; then " \
"setenv bootargs ${console} " \
"root=/dev/ram0 ${root_rw} " \
"${opts} ${recoverymode} " \
- "drm_panel=$lcd_panel;" \
+ "drm_panel=$lcd_panel bootmode=${bootmode};" \
"fi;" \
"ext4load mmc ${rootdev}:${bootpart} $ramdiskaddr $ramdisk_file\0" \
"boot_cmd_initrd=\n" \