tizen: bootscript: Set eth0 ip addr only for flash boot mode 70/320070/1 accepted/tizen/unified/x/20241108.111144
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 7 Nov 2024 09:33:02 +0000 (18:33 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 7 Nov 2024 09:33:14 +0000 (18:33 +0900)
The lpi-4a board has two ethernet interfaces and setting
ipaddr without an interface, 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-thead/tree/Documentation/admin-guide/nfs/nfsroot.rst?h=tizen

Change-Id: I3aa5d59551aea147cd14d464eb501fcc0e843d54
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
tizen/bootscript/tizen-boot-lpi4a.scr

index aa834e92e7402d9673e814bc264079921d0d5e0a..33226d9a3ad0d21adbd156bbbce3a199b56f6873 100644 (file)
@@ -54,7 +54,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