Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support Adesto flash in the validate-spi script.... #3

Open
mithro opened this issue Aug 13, 2019 · 0 comments
Open

Support Adesto flash in the validate-spi script.... #3

mithro opened this issue Aug 13, 2019 · 0 comments

Comments

@mithro
Copy link
Member

mithro commented Aug 13, 2019

diff --git a/jig/bin/validate-spi.sh b/jig/bin/validate-spi.sh
index 0798d9e..c4da243 100755
--- a/jig/bin/validate-spi.sh
+++ b/jig/bin/validate-spi.sh
@@ -9,29 +9,38 @@ rm -f $infofile
 # Memory size: 16 Mbit (15)
 # Device ID: 15
 
+# Manufacturer ID: Adesto (1f)
+# Memory model: AT25SF161 (86)
+# Memory size: 16 Mbit (01)
+# Device ID: 14
+# Serial number: ff ff ff ff
+# Status 1: 02
+# Status 2: 00
+# Status 3: ff
+
 error_count=0
-if ! grep -q 'Manufacturer ID: Macronix (c2)' $infofile
+if ! grep -q 'Manufacturer ID: Adesto (1f)' $infofile
 then
        echo -n "Unrecognized SPI manufacturer: "
        grep 'Manufacturer ID: ' $infofile
        error_count=$(($error_count+1))
 fi
 
-if ! grep -q 'Memory model: MX25R1635F (28)' $infofile
+if ! grep -q 'Memory model: AT25SF161 (86)' $infofile
 then
        echo -n "Unrecognized memory model: "
        grep 'Memory model: ' $infofile
        error_count=$(($error_count+1))
 fi
 
-if ! grep -q 'Memory size: 16 Mbit (15)' $infofile
+if ! grep -q 'Memory size: 16 Mbit (01)' $infofile
 then
        echo -n "Unrecognized memory size: "
        grep 'Memory size: ' $infofile
        error_count=$(($error_count+1))
 fi
 
-if ! grep -q 'Device ID: 15' $infofile
+if ! grep -q 'Device ID: 14' $infofile
 then
        echo -n "Unrecognized device id: "
        grep 'Device ID: ' $infofile
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant