From: Seung-Woo Kim Date: Wed, 30 Aug 2023 06:35:00 +0000 (+0900) Subject: tizen: bootscript: vf2: Set eth0 ip addr only for flash boot mode X-Git-Tag: accepted/tizen/unified/riscv/20230903.234427^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3dcf99b65eab51d5ce2b2154e0fe06bb31d3bbb;p=platform%2Fkernel%2Fu-boot.git tizen: bootscript: vf2: Set eth0 ip addr only for flash boot mode The visionfive2 board has two ethernet interfaces and setting ipaddr without intercace, it tries all interface for all enabled autoconfiguration protocol. Sometimes, this causes boot hang to get recv from an ethernet interface for an autoconfiguration protocol. To remove the possible boot hang, set only eth0 ip addr for flash boot mode. Refer "ip=" part of below kernel doc: https://git.tizen.org/cgit/platform/kernel/linux-starfive/tree/Documentation/admin-guide/nfs/nfsroot.rst?h=tizen Change-Id: Ia927d2e64945ef9cc48685e4640c9f366898eb6e Signed-off-by: Seung-Woo Kim --- diff --git a/tizen/bootscript/tizen-boot-vf2.scr b/tizen/bootscript/tizen-boot-vf2.scr index 0be8dd6a62..2d5cd87508 100644 --- a/tizen/bootscript/tizen-boot-vf2.scr +++ b/tizen/bootscript/tizen-boot-vf2.scr @@ -84,7 +84,7 @@ fi if test "${bootmode}" = "flash"; then; if test -n "${ipaddr}"; then; - ip_opt=\"ip=${ipaddr}::${gateway}:${netmask}\" + ip_opt=\"ip=${ipaddr}::${gateway}:${netmask}::eth0:off\" fi fi