-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imx6ull: boot from plo on nor flash #662
Conversation
Converting to draft, as it needs submodule checkout before merge |
c30b476
to
ebf79a6
Compare
7bfe6c5
to
baa1975
Compare
@@ -29,51 +29,60 @@ export PORTS_OPENVPN=y | |||
export PORTS_JANSSON=y | |||
export PORTS_CURL=y | |||
|
|||
# | |||
# Boot configuration (project specific) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, it should be in project build config, not in generic TARGET_SUBFAMILY
one.
This file is also used by the DTR project so for now booting from NAND (with host syspage generation) needs to be retained.
The decision to use NOR/PLO as a booting device needs to be done in _projects/armv7a7-imx6ull-evk/build.project
(but this file should probably support both options or keep only the common part of the booting procedure).
I'm voting request changes to avoid accidental merge of this PR before restoring NAND booting functionality. Please also test it on HW before the merge ;).
d5ef77d
to
d1433bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpicks, changing to comment
, please confirm that the PR was tested on DTR target before the merge
NOTE: maybe commit message title should be imx6ull: add option to boot from plo
as we're not removing the previous functionality yet
b_mkscript_user "${USER_SCRIPT[@]}" | ||
b_kernel_image "$PREFIX_BOOT/phoenix-kernel.img" | ||
b_syspage_gen "$PREFIX_BOOT/phoenix-kernel.img" "$PLO_SCRIPT_DIR/$NAME_USER_SCRIPT" | ||
fi; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary ;
6e4bbbf
to
eb46cf2
Compare
yup DTR was boroken, as this build uses PRIMARY_SCRIPT to detect which apps should be uploaded and in which format should the kernel be. I had to revert name change from USER_SCRIPT to PRIMARY_SCRIPT as this change breaks DTR. SHOULD the name PRIMARY_SCRIPT stay, as in other project USER_SCRIPT is used? |
bb70f0b
to
72f4dc1
Compare
I'm not a |
72f4dc1
to
3d851f0
Compare
It should be called USER_SCRIPT, but I'm opting to leave as is to keep DTR compatibility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
3d851f0
to
ac33b7d
Compare
JIRA: RTOS-398
ac33b7d
to
c9157b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
) | ||
|
||
|
||
#TODO: if flash driver for imx6ull-evk implementation is introduced, psh should be replaced by imx6ul-flash and psd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: typo (second imx6ul
-> missing l
)
JIRA: RTOS-398
Description
boot from plo on nor flash.
phoenix-rtos-doc 4eaac00...5d1f42a (3):
phoenix-rtos-hostutils 853e232...a56b518 (1):
plo 315360b...42bc591 (4):
Motivation and Context
imx6ull lacks support for starting from flash
Types of changes
How Has This Been Tested?
Checklist:
Special treatment
imx6ull: boot from plo phoenix-rtos-kernel#378
imx6ull: nor-driver qspi plo#231
imx6ull: boot from qspi nor flash plo#236
imx6ull: boot from qspi nor flash phoenix-rtos-hostutils#42
imx6ull: boot from nor phoenix-rtos-doc#139