Commit 05f477fa301b1c8e1b48d9411c5836c314fe59ac
Committed by
guoyin.chen
1 parent
f2d295e18b
Exists in
smarc-imx_v2015.04_4.1.15_1.0.0_ga
and in
1 other branch
MLK-12483-1 common: Fix fdt command systemsetup issue
The fdt command "fdt systemsetup" can't work because the do_fdt check the start char 's' for command "fdt set". So the fdt systemsetup will also go into the "fdt set" in fault. Fix this problem by checking the whole word "set" for "fdt set" command. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 771dab97f93e1ab07a5f2f29f1622528b9477969)
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
common/cmd_fdt.c
... | ... | @@ -243,7 +243,7 @@ |
243 | 243 | /* |
244 | 244 | * Set the value of a property in the working_fdt. |
245 | 245 | */ |
246 | - } else if (argv[1][0] == 's') { | |
246 | + } else if (strncmp(argv[1], "set", 3) == 0) { | |
247 | 247 | char *pathp; /* path */ |
248 | 248 | char *prop; /* property */ |
249 | 249 | int nodeoffset; /* node offset from libfdt */ |