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
Reform
reform-boundary-uboot
Commits
7d4327e9
Commit
7d4327e9
authored
4 years ago
by
minute
Browse files
Options
Downloads
Patches
Plain Diff
WIP: MNT Reform: hack to set default env vars to boot from mmc
parent
6ea506ae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
board/boundary/nitrogen8m_som/nitrogen8m_som.c
+10
-4
10 additions, 4 deletions
board/boundary/nitrogen8m_som/nitrogen8m_som.c
with
10 additions
and
4 deletions
board/boundary/nitrogen8m_som/nitrogen8m_som.c
+
10
−
4
View file @
7d4327e9
...
...
@@ -258,6 +258,7 @@ int board_usb_cleanup(int index, enum usb_init_type init)
int
board_detect_hdmi
(
struct
display_info_t
const
*
di
)
{
printf
(
"board_detect_hdmi()"
);
return
hdmi_hpd_status
()
?
1
:
0
;
}
...
...
@@ -277,6 +278,8 @@ int board_init(void)
return
0
;
}
// FIXME Reform: ideally we would save the env on the SD card, not the eMMC
// but setting this to 1 crashes u-boot
int
board_mmc_get_env_dev
(
int
devno
)
{
return
0
;
...
...
@@ -320,13 +323,16 @@ void init_usb_clk(int usbno);
static
void
set_env_vars
(
void
)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
if
(
!
env_get
(
"board"
))
env_set
(
"board"
,
"nitrogen8m_som"
);
printf
(
"set_env_vars()"
);
env_set
(
"board"
,
"MNT Reform 2.0"
);
// "nitrogen8m_som");
env_set
(
"soc"
,
"imx8mq"
);
env_set
(
"imx_cpu"
,
get_imx_type
((
get_cpu_rev
()
&
0xFF000
)
>>
12
));
env_set
(
"uboot_defconfig"
,
CONFIG_DEFCONFIG
);
#endif
// MNT Reform 2
env_set
(
"fdt_addr"
,
"0x50000000"
);
env_set
(
"bootargs"
,
"noinitrd root=/dev/mmcblk1p1 rootwait rw console=ttymxc0,115200 cma=512M no_console_suspend pci=nomsi"
);
env_set
(
"bootcmd"
,
"ext4load mmc 1 ${loadaddr} /Image; ext4load mmc 1 ${fdt_addr} /imx8mq-mnt-reform2.dtb; booti ${loadaddr} - ${fdt_addr}"
);
}
void
board_set_default_env
(
void
)
...
...
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