Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-system-image
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
reform-system-image
Commits
47d972f3
Commit
47d972f3
authored
4 years ago
by
minute
Browse files
Options
Downloads
Patches
Plain Diff
mkimage: some bugfixes
parent
e11fcd65
No related branches found
No related tags found
1 merge request
!12
RC1 of MNT Reform System Image and Rescue Image
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reform2-imx8mq/mkimage.sh
+7
-6
7 additions, 6 deletions
reform2-imx8mq/mkimage.sh
with
7 additions
and
6 deletions
reform2-imx8mq/mkimage.sh
+
7
−
6
View file @
47d972f3
...
...
@@ -19,17 +19,17 @@ sudo ./mkuserland2.sh
# Rescue System ---------------------------------------------------------
SIZE
=
2048
M
SIZE
=
4096
M
# create ext4 partition from target root directory directly at 4MiB offset
sudo
/sbin/mke2fs
-v
-L
'MNTRESCUE'
-N
0
-O
64bit
-E
offset
=
4194304
-d
target-userland
-m
5
-r
1
-t
ext4 reform-system.img
$SIZE
sudo
/sbin/mke2fs
-v
-L
'MNTRESCUE'
-N
0
-O
64bit
-E
offset
=
4194304
-d
target-userland
-m
5
-r
1
-t
ext4 reform-
rescue-
system.img
$SIZE
sudo
/sbin/parted
-s
reform-system.img
"mklabel msdos"
sudo
/sbin/parted
-s
reform-system.img
"mkpart primary ext4 4MiB -1s"
sudo
/sbin/parted
-s
reform-system.img print
sudo
/sbin/parted
-s
reform-
rescue-
system.img
"mklabel msdos"
sudo
/sbin/parted
-s
reform-
rescue-
system.img
"mkpart primary ext4 4MiB -1s"
sudo
/sbin/parted
-s
reform-
rescue-
system.img print
# mkuboot.sh needs to run before. this creates flash.bin.
# install u-boot for i.MX8MQ
sudo dd
if
=
./u-boot/flash.bin
of
=
reform-system.img
conv
=
notrunc
bs
=
1k
seek
=
33
sudo dd
if
=
./u-boot/flash.bin
of
=
reform-
rescue-
system.img
conv
=
notrunc
bs
=
1k
seek
=
33
echo
Reform Rescue System Image created: reform-rescue-system.img
...
...
@@ -50,3 +50,4 @@ sudo /sbin/parted -s reform-system.img print
sudo dd
if
=
./u-boot/flash.bin
of
=
reform-system.img
conv
=
notrunc
bs
=
1k
seek
=
33
echo
Reform Full System Image created: reform-system.img
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment