summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f08bc6)
raw | patch | inline | side by side (parent: 0f08bc6)
author | Hongmei Gou <h-gou@ti.com> | |
Wed, 2 Mar 2016 17:33:34 +0000 (12:33 -0500) | ||
committer | Hongmei Gou <h-gou@ti.com> | |
Wed, 2 Mar 2016 17:33:34 +0000 (12:33 -0500) |
Signed-off-by: Hongmei Gou <h-gou@ti.com>
utilities_apps/utility_flash/flash/flashread.php | patch | blob | history |
diff --git a/utilities_apps/utility_flash/flash/flashread.php b/utilities_apps/utility_flash/flash/flashread.php
index 8d6677323b4e32152777c92b63fde2682f9e7aae..dd14cedd53b79d9dd610c0e92fdfdde0f3937f23 100644 (file)
if ($mtddevname == "") {
echo "<p>Could not find Nand partition for $partition ...</p>";
} else {
- $mtdsz = shell_exec("cat /proc/mtd | grep \\\"$partition\\\" | cut -d: -f2 | awk '{print $1}'");
+ $mtdsz = shell_exec("cat /proc/mtd | grep \\\"$partition\\\" | cut -d: -f2 | awk '{printf $1}'");
$mtdsz = "0x".$mtdsz;
echo "<p>Reading $mtdsz bytes from $mtddev ...</p>";
shell_exec("nanddump -q -f $image_name -l $mtdsz $mtddev");