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
41fd49ad
Commit
41fd49ad
authored
4 years ago
by
minute
Browse files
Options
Downloads
Patches
Plain Diff
skel: fixes to reform-display-config and reform-boot-config
parent
4eadb0ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!12
RC1 of MNT Reform System Image and Rescue Image
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reform2-imx8mq/template-skel/bin/reform-boot-config
+4
-5
4 additions, 5 deletions
reform2-imx8mq/template-skel/bin/reform-boot-config
reform2-imx8mq/template-skel/bin/reform-display-config
+5
-5
5 additions, 5 deletions
reform2-imx8mq/template-skel/bin/reform-display-config
with
9 additions
and
10 deletions
reform2-imx8mq/template-skel/bin/reform-boot-config
+
4
−
5
View file @
41fd49ad
...
...
@@ -25,12 +25,12 @@ then
exit
fi
MOUNTED_AT
=
$(
mount |
grep
mmblk1p1 |
cut
-d
' '
-s
-f
3
)
if
[
$?
-eq
0
]
MOUNTED_AT
=
$(
mount |
grep
mm
c
blk1p1 |
grep
"on /"
|
cut
-d
' '
-s
-f
3
)
if
[
[
"x
$MOUNTED_AT
"
!=
"x"
]
]
then
echo
"Found SD card mounted at
$MOUNTED_AT
."
echo
"
$BOOTPREF
"
>
"
$MOUNTED_AT
/reform-boot-medium"
echo
"Boot medium choice
$BOOTPREF
recorded in
$MOUNTED_AT
/reform-boot-medium."
echo
"
$BOOTPREF
"
>
"
$
{
MOUNTED_AT
}
/reform-boot-medium"
echo
"Boot medium choice
$BOOTPREF
recorded in
$
{
MOUNTED_AT
}
/reform-boot-medium."
echo
"Restart MNT Reform (type: reboot) after saving your work to activate the changes."
exit
fi
...
...
@@ -51,4 +51,3 @@ fi
echo
"Error: could not mount the SD card."
umount /boot
This diff is collapsed.
Click to expand it.
reform2-imx8mq/template-skel/bin/reform-display-config
+
5
−
5
View file @
41fd49ad
...
...
@@ -12,7 +12,7 @@ DTB_TARGET="imx8mq-mnt-reform2.dtb"
case
"
$1
"
in
dual
)
DTB
=
"imx8mq-mnt-reform2-dual-display.dtb"
;;
in
ternal
)
DTB
=
"imx8mq-mnt-reform2-single-display.dtb"
;;
s
in
gle
)
DTB
=
"imx8mq-mnt-reform2-single-display.dtb"
;;
esac
if
[[
"
$DTB
"
==
"x"
]]
...
...
@@ -23,18 +23,19 @@ then
exit
fi
MOUNTED_AT
=
$(
mount |
grep
mmblk1p1 |
cut
-d
' '
-s
-f
3
)
MOUNTED_AT
=
$(
mount |
grep
mm
c
blk1p1 |
grep
"on /"
|
cut
-d
' '
-s
-f
3
)
if
[[
"x
$MOUNTED_AT
"
!=
"x"
]]
then
if
[[
-e
"
$MOUNTED_AT
$
DTB_TARGET
"
]]
&&
[[
-e
"
$MOUNTED_AT
$
DTB
"
]]
if
[[
-e
"
$
{
MOUNTED_AT
}
/
${
DTB_TARGET
}
"
]]
&&
[[
-e
"
$
{
MOUNTED_AT
}
/
${
DTB
}
"
]]
then
echo
"Found source and target files in
$MOUNTED_AT
."
cp
-v
"/
$DTB
"
"/
$DTB_TARGET
"
cp
-v
"
${
MOUNTED_AT
}
/
$
{
DTB
}
"
"
${
MOUNTED_AT
}
/
$
{
DTB_TARGET
}
"
echo
"Restart MNT Reform (type: reboot) after saving your work to activate the changes."
exit
fi
echo
"Error: the SD card is already mounted at
$MOUNTED_AT
, but the DTB files (
$DTB_TARGET
and
$DTB
) are not there."
exit
fi
echo
"Assuming boot files are on SD card, but your system is not. Mounting /dev/mmcblk1p1 on /boot."
...
...
@@ -53,4 +54,3 @@ fi
echo
"Error: could not find the DTB files (
$DTB_TARGET
and
$DTB
) in any of the expected places."
umount /boot
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