tizen: bootscript: vf2: Set eth0 ip addr only for flash boot mode 20/298020/1 accepted/tizen/unified/riscv/20230903.234427
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 30 Aug 2023 06:35:00 +0000 (15:35 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 30 Aug 2023 06:38:22 +0000 (15:38 +0900)
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 <sw0312.kim@samsung.com>
tizen/bootscript/tizen-boot-vf2.scr

index 0be8dd6..2d5cd87 100644 (file)
@@ -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