Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
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
Jack Humbert
reform-boundary-uboot
Commits
13cc4273
Commit
13cc4273
authored
6 years ago
by
Gary Bisson
Committed by
Troy Kisky
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
boundary: bootscript-yocto: add i.MX8MQ support
Signed-off-by:
Gary Bisson
<
gary.bisson@boundarydevices.com
>
parent
9bd255f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
board/boundary/bootscripts/bootscript-yocto.txt
+21
-27
21 additions, 27 deletions
board/boundary/bootscripts/bootscript-yocto.txt
with
21 additions
and
27 deletions
board/boundary/bootscripts/bootscript-yocto.txt
+
21
−
27
View file @
13cc4273
...
@@ -2,6 +2,8 @@ setenv bootargs ''
...
@@ -2,6 +2,8 @@ setenv bootargs ''
setenv initrd_high 0xffffffff
setenv initrd_high 0xffffffff
m4=''
m4=''
kernelimage=zImage
bootcommand=bootz
a_base=0x10000000
a_base=0x10000000
if itest.s x51 == "x${imx_cpu}" ; then
if itest.s x51 == "x${imx_cpu}" ; then
a_base=0x90000000
a_base=0x90000000
...
@@ -9,10 +11,14 @@ elif itest.s x53 == "x${imx_cpu}"; then
...
@@ -9,10 +11,14 @@ elif itest.s x53 == "x${imx_cpu}"; then
a_base=0x70000000
a_base=0x70000000
elif itest.s x6SX == "x${imx_cpu}" || itest.s x7D == "x${imx_cpu}"; then
elif itest.s x6SX == "x${imx_cpu}" || itest.s x7D == "x${imx_cpu}"; then
a_base=0x80000000
a_base=0x80000000
if itest.s "x1" == "x$m4enabled" ; then
elif itest.s x8MQ == "x${imx_cpu}"; then
run m4boot;
a_base=0x40000000
m4='-m4';
kernelimage=Image
fi
bootcommand=booti
fi
if itest.s "x1" == "x$m4enabled" ; then
run m4boot;
m4='-m4';
fi
fi
setexpr a_script ${a_base} + 0x00800000
setexpr a_script ${a_base} + 0x00800000
...
@@ -39,6 +45,8 @@ if itest.s "x" == "x${fdt_file}" ; then
...
@@ -39,6 +45,8 @@ if itest.s "x" == "x${fdt_file}" ; then
fdt_file=imx6sx-${board}${m4}.dtb;
fdt_file=imx6sx-${board}${m4}.dtb;
elif itest.s x7D == "x${imx_cpu}" ; then
elif itest.s x7D == "x${imx_cpu}" ; then
fdt_file=imx7d-${board}${m4}.dtb;
fdt_file=imx7d-${board}${m4}.dtb;
elif itest.s x8MQ == "x${imx_cpu}" ; then
fdt_file=imx8mq-${board}${m4}.dtb;
elif itest.s x51 == "x${imx_cpu}" ; then
elif itest.s x51 == "x${imx_cpu}" ; then
fdt_file=imx51-${board}${m4}.dtb;
fdt_file=imx51-${board}${m4}.dtb;
elif itest.s x53 == "x${imx_cpu}" ; then
elif itest.s x53 == "x${imx_cpu}" ; then
...
@@ -65,50 +73,36 @@ else
...
@@ -65,50 +73,36 @@ else
exit;
exit;
fi
fi
cmd_xxx_present=
fdt resize
fdt resize
if itest.s "x" != "x${cmd_custom}" ; then
if itest.s "x" != "x${cmd_custom}" ; then
run cmd_custom
run cmd_custom
cmd_xxx_present=1;
fi
fi
if itest.s "x" != "x${cmd_hdmi}" ; then
if itest.s "x" != "x${cmd_hdmi}" ; then
run cmd_hdmi
run cmd_hdmi
cmd_xxx_present=1;
if itest.s x != x${allow_noncea} ; then
if itest.s x == x${allow_noncea} ; then
setenv bootargs ${bootargs} mxc_hdmi.only_cea=1;
echo "only CEA modes allowed on HDMI port";
else
setenv bootargs ${bootargs} mxc_hdmi.only_cea=0;
setenv bootargs ${bootargs} mxc_hdmi.only_cea=0;
echo "non-CEA modes allowed on HDMI, audio may be affected";
echo "non-CEA modes allowed on HDMI, audio may be affected";
fi
fi
fi
fi
if itest.s "x" != "x${cmd_lcd}" ; then
if itest.s "x" != "x${cmd_lcd}" ; then
run cmd_lcd
run cmd_lcd
cmd_xxx_present=1;
fi
fi
if itest.s "x" != "x${cmd_lcd2}" ; then
if itest.s "x" != "x${cmd_lcd2}" ; then
run cmd_lcd2
run cmd_lcd2
cmd_xxx_present=1;
fi
fi
if itest.s "x" != "x${cmd_lvds}" ; then
if itest.s "x" != "x${cmd_lvds}" ; then
run cmd_lvds
run cmd_lvds
cmd_xxx_present=1;
fi
fi
if itest.s "x" != "x${cmd_lvds2}" ; then
if itest.s "x" != "x${cmd_lvds2}" ; then
run cmd_lvds2
run cmd_lvds2
cmd_xxx_present=1;
fi
fi
if itest.s "x" != "x${cmd_mipi}" ; then
if itest.s "x" == "x${cmd_xxx_present}" ; then
run cmd_mipi
echo "!!!!!!!!!!!!!!!!"
echo "warning: your u-boot may be outdated, please upgrade"
echo "!!!!!!!!!!!!!!!!"
fi
fi
bpart=2
if itest.s "x" == "x${bpart}" ; then
bpart=2
fi
if test "sata" = "${devtype}" ; then
if test "sata" = "${devtype}" ; then
setenv bootargs "${bootargs} root=/dev/sda${bpart}" ;
setenv bootargs "${bootargs} root=/dev/sda${bpart}" ;
elif test "usb" = "${devtype}" ; then
elif test "usb" = "${devtype}" ; then
...
@@ -126,7 +120,7 @@ if itest.s "x" != "x${disable_giga}" ; then
...
@@ -126,7 +120,7 @@ if itest.s "x" != "x${disable_giga}" ; then
fi
fi
if itest.s "x" != "x${wlmac}" ; then
if itest.s "x" != "x${wlmac}" ; then
setenv bootargs ${bootargs}
wlan.mac=${wlmac}
wlcore.mac=${wlmac}
setenv bootargs ${bootargs} wlcore.mac=${wlmac}
fi
fi
if itest.s "x" != "x${bd_addr}" ; then
if itest.s "x" != "x${bd_addr}" ; then
...
@@ -159,7 +153,7 @@ if itest.s "x" != "x${show_env}" ; then
...
@@ -159,7 +153,7 @@ if itest.s "x" != "x${show_env}" ; then
printenv
printenv
fi
fi
if load ${devtype} ${devnum}:${distro_bootpart} ${a_zImage} ${prefix}
zI
mage ; then
if load ${devtype} ${devnum}:${distro_bootpart} ${a_zImage} ${prefix}
${kerneli
mage
}
; then
boot
z
${a_zImage} - ${a_fdt}
${
boot
command}
${a_zImage} - ${a_fdt}
fi
fi
echo "Error loading kernel image"
echo "Error loading kernel image"
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