Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Production Test Suite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Production Test Suite
Commits
9d54f9a1
Commit
9d54f9a1
authored
Jan 16, 2017
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdbfs/gen_flash_image: erase sector is 256KB for M25P128 (SVEC)
parent
cdf507b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
gen_flash_image.py
sdbfs/gen_flash_image.py
+6
-2
No files found.
sdbfs/gen_flash_image.py
View file @
9d54f9a1
...
...
@@ -23,7 +23,8 @@ import shutil
SDBFS_MAC
=
"{path}sdbfs-{type}/mac-address"
SDBFS_BSTR
=
"{path}sdbfs-{type}/bitstream"
SDBFS_IMG
=
"{path}sdbfs-{type}-{mac}.bin"
GEN_FLASH_CMD
=
"{path}./gensdbfs -b 65536 {path}sdbfs-{type} {img}"
GEN_SPEC_CMD
=
"{path}./gensdbfs -b 65536 {path}sdbfs-spec {img}"
GEN_SVEC_CMD
=
"{path}./gensdbfs -b 262144 {path}sdbfs-svec {img}"
###########################################################
...
...
@@ -72,7 +73,10 @@ def gen_sdb_image(type, mac, bstr, output=None):
# 3. generate SDBFS image
sdbfs_img
=
SDBFS_IMG
.
format
(
path
=
abs_path
,
type
=
type
,
mac
=
mac
)
# gensdbfs for spec/svec
cmd
=
GEN_FLASH_CMD
.
format
(
path
=
abs_path
,
type
=
type
,
img
=
sdbfs_img
)
if
type
==
"spec"
:
cmd
=
GEN_SPEC_CMD
.
format
(
path
=
abs_path
,
img
=
sdbfs_img
)
else
:
cmd
=
GEN_SVEC_CMD
.
format
(
path
=
abs_path
,
img
=
sdbfs_img
)
subprocess
.
Popen
(
cmd
,
shell
=
True
)
.
wait
()
print
"Generated "
+
sdbfs_img
# 4. Copy generated SDBFS image to <output>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment