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-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89ca251becf052be56d67198315e80b5b780e6b1;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: I8de2c8f26f0a5c276ac32e46a83d8fc71eb1e7fd 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 29ec760..a21beff 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