From: Seung-Woo Kim Date: Mon, 29 Apr 2019 06:23:27 +0000 (+0900) Subject: rpi: tizen-boot: rpi3-32b: pass network arguments on flash mode X-Git-Tag: submit/tizen/20190429.071428~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=653d68709c27fac6e5544af933a4f085e84cc472;p=platform%2Fkernel%2Fu-boot.git rpi: tizen-boot: rpi3-32b: pass network arguments on flash mode 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. Note: this is applying below patches from rpi3 to rpi3-32b: f6f75b5bb37d ("rpi: tizen-boot: rpi3: pass network arguments on flash mode") e2e0f18b9f3e ("rpi: tizen-boot: rpi3: remove dhcp as default network configuration") Change-Id: I95ec27c1e3c5f4728b3894fcb1c3f70c2b28499a Signed-off-by: Seung-Woo Kim --- diff --git a/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr b/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr index 29ec760653..a21beff1bd 100644 --- a/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr +++ b/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr @@ -19,6 +19,12 @@ 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}\" + fi +fi + # boot from ram0 if there is sbin if test -e $bootdev $mmcrootdev:$ramdiskpart sbin/init; then; setenv rootdev ram0