Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-tools-update
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-tools-update
Commits
5d285fbd
Commit
5d285fbd
authored
Nov 25, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed plasma crash
parent
d01c7a31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
write_bootable_mmc.py
write_bootable_mmc.py
+7
-3
No files found.
write_bootable_mmc.py
View file @
5d285fbd
...
@@ -140,7 +140,11 @@ if something_is_missing:
...
@@ -140,7 +140,11 @@ if something_is_missing:
sys
.
exit
()
sys
.
exit
()
print
(
"= Erase partition table on "
+
DEVICE
+
" and everything else"
)
print
(
"= Erase partition table on "
+
DEVICE
+
" and everything else"
)
shout
(
"dd if=/dev/zero of="
+
DEVICE
+
" bs=1M count="
+
str
(
BOOT_SIZE
+
2
))
#shout("dd if=/dev/zero of="+DEVICE+" bs=1M count="+str(BOOT_SIZE+2))
shout
(
"dd if=/dev/zero of="
+
DEVICE
+
" bs=512 count=2"
)
shout
(
"dd if=/dev/zero of="
+
DEVICE
+
" bs=1MB count=1 seek=1"
)
shout
(
"dd if=/dev/zero of="
+
DEVICE
+
" bs=1MB count=1 seek="
+
str
(
BOOT_SIZE
))
print
(
"= Create partition table"
)
print
(
"= Create partition table"
)
shout
(
"parted -s "
+
DEVICE
+
" mktable "
+
PT_TYPE
)
shout
(
"parted -s "
+
DEVICE
+
" mktable "
+
PT_TYPE
)
...
@@ -149,8 +153,8 @@ print("= Create FAT parttion")
...
@@ -149,8 +153,8 @@ print("= Create FAT parttion")
shout
(
"parted -s "
+
DEVICE
+
" mkpart primary "
+
BOOT_FS
+
" 1 "
+
str
(
BOOT_SIZE
))
shout
(
"parted -s "
+
DEVICE
+
" mkpart primary "
+
BOOT_FS
+
" 1 "
+
str
(
BOOT_SIZE
))
shout
(
"parted -s "
+
DEVICE
+
" mkpart primary "
+
ROOT_FS
+
" "
+
str
(
BOOT_SIZE
+
1
)
+
" 100
%
"
)
shout
(
"parted -s "
+
DEVICE
+
" mkpart primary "
+
ROOT_FS
+
" "
+
str
(
BOOT_SIZE
+
1
)
+
" 100
%
"
)
# no need?
# no need?
#
shout("parted -s "+DEVICE+" align-check optimal 1")
shout
(
"parted -s "
+
DEVICE
+
" align-check optimal 1"
)
#
shout("parted -s "+DEVICE+" align-check optimal 2")
shout
(
"parted -s "
+
DEVICE
+
" align-check optimal 2"
)
#sys.exit()
#sys.exit()
...
...
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