Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MNT Reform Tools
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
Hanno Perrey
MNT Reform Tools
Commits
2cf6d5b4
Verified
Commit
2cf6d5b4
authored
1 year ago
by
Johannes Schauer Marin Rodrigues
Browse files
Options
Downloads
Patches
Plain Diff
reform-flash-uboot: inform about the DIP switch on imx8mq
parent
a6781e8d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sbin/reform-display-config
+0
-2
0 additions, 2 deletions
sbin/reform-display-config
sbin/reform-flash-uboot
+24
-0
24 additions, 0 deletions
sbin/reform-flash-uboot
with
24 additions
and
2 deletions
sbin/reform-display-config
+
0
−
2
View file @
2cf6d5b4
...
...
@@ -65,10 +65,8 @@ fi
if
[
"--emmc"
=
"
$1
"
]
;
then
echo
"Your /boot partition is on emmc (/dev/
$BOOTPART
)."
>
&2
echo
"Make sure that your DIP switch has been set to OFF."
>
&2
else
echo
"Your /boot partition is on your SD-Card (/dev/
$BOOTPART
)."
>
&2
echo
"Make sure that your DIP switch has been set to ON."
>
&2
fi
echo
"Restart MNT Reform (type: reboot) after saving your work to activate the changes."
This diff is collapsed.
Click to expand it.
sbin/reform-flash-uboot
+
24
−
0
View file @
2cf6d5b4
...
...
@@ -170,3 +170,27 @@ for dev in "$@"; do
dd
if
=
/boot/flash.bin
of
=
"
$dev
"
bs
=
512
seek
=
"
$ubootoffset
"
skip
=
"
$flashbinoffset
"
done
# inform about the DIP switch position only on imx8mq
case
"
$(
cat
/proc/device-tree/model
)
"
in
"MNT Reform 2"
|
"MNT Reform 2 HDMI"
)
DOMMC
=
0
DOSD
=
0
for
dev
in
"
$@
"
;
do
case
$dev
in
emmc
)
dev
=
/dev/
${
MMCDEV
}
boot0
;;
sd
)
dev
=
/dev/
${
SDDEV
}
;;
esac
case
$dev
in
"/dev/
${
MMCDEV
}
"
*
)
DOMMC
=
1
;;
"/dev/
${
SDDEV
}
"
*
)
DOSD
=
1
;;
esac
done
if
[
"
$DOMMC
"
!=
"0"
]
;
then
echo
"For the i.MX8MQ to load u-boot from MMC, make sure"
>
&2
echo
"that your DIP switch is set to OFF."
>
&2
fi
if
[
"
$DOSD
"
!=
"0"
]
;
then
echo
"For the i.MX8MQ to load u-boot from SD-Card, make sure"
>
&2
echo
"that your DIP switch is set to ON."
>
&2
fi
esac
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