summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongwoo Lee <dwoo08.lee@samsung.com>2018-12-12 17:19:40 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2018-12-28 08:17:17 +0000
commitf6f75b5bb37df61055d2ba132d0600239ea9f760 (patch)
treea64eb7f65982ca3405437f8cc5729b398cca87b3
parentdd7857bd55cf550b430e5a3bfae7cc94a0d96bd3 (diff)
downloadu-boot-f6f75b5bb37df61055d2ba132d0600239ea9f760.tar.gz
u-boot-f6f75b5bb37df61055d2ba132d0600239ea9f760.tar.bz2
u-boot-f6f75b5bb37df61055d2ba132d0600239ea9f760.zip
To setup network environment for flash manager, this patch makes passing parameters such as 'ipaddr', 'netmask', and 'gateway' through kernel bootcmd.Those parameters can be assigned by user-self before using flash mode. Change-Id: Ifda261598978b4cc985fe43e2e612fd58c49fdd1 Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
-rw-r--r--board/raspberrypi/rpi/tizen-boot-rpi3.scr10
1 files changed, 9 insertions, 1 deletions
diff --git a/board/raspberrypi/rpi/tizen-boot-rpi3.scr b/board/raspberrypi/rpi/tizen-boot-rpi3.scr
index 475a165960..b347cc4976 100644
--- a/board/raspberrypi/rpi/tizen-boot-rpi3.scr
+++ b/board/raspberrypi/rpi/tizen-boot-rpi3.scr
@@ -57,6 +57,14 @@ if test -e $bootdev $mmcbootdev:$mmcinformpart $rebootparamfile; then;
fi
fi
+if test "${bootmode}" = "flash"; then;
+ if test -n "${ipaddr}"; then;
+ ip_opt=\"ip=${ipaddr}::${gateway}:${netmask}\"
+ else
+ ip_opt=\"ip=dhcp\"
+ fi
+fi
+
# boot from ram0 if there is sbin
if test -e $bootdev $mmcrootdev:$ramdiskpart sbin/init; then;
rootdev=ram0
@@ -82,7 +90,7 @@ fi
setenv boot_prefixes \"/\"
# To use comdline for using serial console. /* Normal mode */
-setenv bootargs \"8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2709.serial=0xed6687d3 bcm2709.uart_clock=48000000 smsc95xx.macaddr=${ethaddr} root=/dev/${rootdev} rw bootmode=${bootmode} bcm2709.boardrev=0xa02082 rootwait ${console} vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 ${opts}\"
+setenv bootargs \"8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2709.serial=0xed6687d3 bcm2709.uart_clock=48000000 smsc95xx.macaddr=${ethaddr} root=/dev/${rootdev} rw bootmode=${bootmode} bcm2709.boardrev=0xa02082 rootwait ${console} vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 ${opts} ${ip_opt}\"
# Find the ramdisk offset and block count
part start $bootdev $mmcrootdev $ramdiskpart ramdisk_start