From: Jaehoon Chung Date: Thu, 19 Oct 2017 03:38:06 +0000 (+0900) Subject: configs: artik530_raptor: support the booting ramdisk-recovery image X-Git-Tag: submit/tizen/20180327.075642~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=889753d25df6d18e514f4dc882d20de700fd4312;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik7.git configs: artik530_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 mode. This patch is for booting ramdisk-recovery image. Change-Id: Ie2357be45b2a17b214736b50689c207a7d8204b2 Signed-off-by: Jaehoon Chung --- diff --git a/include/configs/artik530_raptor.h b/include/configs/artik530_raptor.h index c116f18424..e04efe4541 100644 --- a/include/configs/artik530_raptor.h +++ b/include/configs/artik530_raptor.h @@ -442,6 +442,7 @@ "lcd1_0=s6e8fa0\0" \ "lcd2_0=gst7d0038\0" \ "lcd_panel=s6e8fa0\0" \ + "bootmode=ramdisk\0" \ "sdrecovery=run boot_cmd_sdboot;" \ "sd_recovery mmc 1:3 $sdrecaddr partmap_emmc.txt\0" \ "factory_load=factory_info load mmc 0 " \ @@ -471,14 +472,28 @@ "run load_args; " \ "fi;\0" \ "load_initrd=" \ - "if test -e mmc ${rootdev}:${bootpart} ramdisk.img; then " \ - "setenv ramdisk_file ramdisk.img;" \ - "fi;" \ + "if test ${bootmode} = recovery; then; " \ + "if test -e mmc ${rootdev}:${bootpart} ramdisk-recovery.img; then " \ + "echo ${bootmode} booting.;" \ + "setenv ramdisk_file ramdisk-recovery.img;" \ + "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 bootdev=mmcblk${rootdev};" \ + "drm_panel=$lcd_panel bootdev=mmcblk${rootdev} " \ + "bootmode=${bootmode};" \ "fi;" \ "ext4load mmc ${rootdev}:${bootpart} $ramdiskaddr $ramdisk_file\0" \ "boot_cmd_initrd=" \